diff --git a/design-consultation/SKILL.md b/design-consultation/SKILL.md index 25d32cf7..20c73a1a 100644 --- a/design-consultation/SKILL.md +++ b/design-consultation/SKILL.md @@ -403,12 +403,23 @@ if [ -x "$D" ]; then else echo "DESIGN_NOT_AVAILABLE" fi +B="" +[ -n "$_ROOT" ] && [ -x "$_ROOT/.claude/skills/gstack/browse/dist/browse" ] && B="$_ROOT/.claude/skills/gstack/browse/dist/browse" +[ -z "$B" ] && B=~/.claude/skills/gstack/browse/dist/browse +if [ -x "$B" ]; then + echo "BROWSE_READY: $B" +else + echo "BROWSE_NOT_AVAILABLE (will use 'open' to view comparison boards)" +fi ``` If `DESIGN_NOT_AVAILABLE`: skip visual mockup generation and fall back to the existing HTML wireframe approach (`DESIGN_SKETCH`). Design mockups are a progressive enhancement, not a hard requirement. +If `BROWSE_NOT_AVAILABLE`: use `open file://...` instead of `$B goto` to open +comparison boards. The user just needs to see the HTML file in any browser. + If `DESIGN_READY`: the design binary is available for visual mockup generation. Commands: - `$D generate --brief "..." --output /path.png` — generate a single mockup diff --git a/design-review/SKILL.md b/design-review/SKILL.md index d7e2ba35..2740d7a6 100644 --- a/design-review/SKILL.md +++ b/design-review/SKILL.md @@ -564,12 +564,23 @@ if [ -x "$D" ]; then else echo "DESIGN_NOT_AVAILABLE" fi +B="" +[ -n "$_ROOT" ] && [ -x "$_ROOT/.claude/skills/gstack/browse/dist/browse" ] && B="$_ROOT/.claude/skills/gstack/browse/dist/browse" +[ -z "$B" ] && B=~/.claude/skills/gstack/browse/dist/browse +if [ -x "$B" ]; then + echo "BROWSE_READY: $B" +else + echo "BROWSE_NOT_AVAILABLE (will use 'open' to view comparison boards)" +fi ``` If `DESIGN_NOT_AVAILABLE`: skip visual mockup generation and fall back to the existing HTML wireframe approach (`DESIGN_SKETCH`). Design mockups are a progressive enhancement, not a hard requirement. +If `BROWSE_NOT_AVAILABLE`: use `open file://...` instead of `$B goto` to open +comparison boards. The user just needs to see the HTML file in any browser. + If `DESIGN_READY`: the design binary is available for visual mockup generation. Commands: - `$D generate --brief "..." --output /path.png` — generate a single mockup diff --git a/scripts/resolvers/design.ts b/scripts/resolvers/design.ts index afc37ce5..5d074894 100644 --- a/scripts/resolvers/design.ts +++ b/scripts/resolvers/design.ts @@ -736,12 +736,23 @@ if [ -x "$D" ]; then else echo "DESIGN_NOT_AVAILABLE" fi +B="" +[ -n "$_ROOT" ] && [ -x "$_ROOT/${ctx.paths.localSkillRoot}/browse/dist/browse" ] && B="$_ROOT/${ctx.paths.localSkillRoot}/browse/dist/browse" +[ -z "$B" ] && B=${ctx.paths.browseDir}/browse +if [ -x "$B" ]; then + echo "BROWSE_READY: $B" +else + echo "BROWSE_NOT_AVAILABLE (will use 'open' to view comparison boards)" +fi \`\`\` If \`DESIGN_NOT_AVAILABLE\`: skip visual mockup generation and fall back to the existing HTML wireframe approach (\`DESIGN_SKETCH\`). Design mockups are a progressive enhancement, not a hard requirement. +If \`BROWSE_NOT_AVAILABLE\`: use \`open file://...\` instead of \`$B goto\` to open +comparison boards. The user just needs to see the HTML file in any browser. + If \`DESIGN_READY\`: the design binary is available for visual mockup generation. Commands: - \`$D generate --brief "..." --output /path.png\` — generate a single mockup