* fix(#2949): wire sketch --wrap-up flag dispatch Add dispatch logic to commands/gsd/sketch.md so --wrap-up routes to the sketch-wrap-up workflow instead of silently falling through to the normal sketch workflow. Also adds sketch-wrap-up.md to execution_context and updates companion references in workflows/sketch.md from the deleted /gsd-sketch-wrap-up command to /gsd-sketch --wrap-up. Fixes #2949 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(#2949): use exact-match "If it is" instead of "If it contains" for --wrap-up dispatch Aligns with the established pattern across all consolidated commands (workspace.md, update.md, progress.md) where the first-token check uses "If it is `--flag`" for exact equality, not substring matching. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
60 lines
2.4 KiB
Markdown
60 lines
2.4 KiB
Markdown
---
|
|
name: gsd:sketch
|
|
description: Sketch UI/design ideas with throwaway HTML mockups, or propose what to sketch next (frontier mode)
|
|
argument-hint: "[design idea to explore] [--quick] [--text] [--wrap-up] or [frontier]"
|
|
allowed-tools:
|
|
- Read
|
|
- Write
|
|
- Edit
|
|
- Bash
|
|
- Grep
|
|
- Glob
|
|
- AskUserQuestion
|
|
- WebSearch
|
|
- WebFetch
|
|
- mcp__context7__resolve-library-id
|
|
- mcp__context7__query-docs
|
|
---
|
|
<objective>
|
|
Explore design directions through throwaway HTML mockups before committing to implementation.
|
|
Each sketch produces 2-3 variants for comparison. Sketches live in `.planning/sketches/` and
|
|
integrate with GSD commit patterns, state tracking, and handoff workflows. Loads spike
|
|
findings to ground mockups in real data shapes and validated interaction patterns.
|
|
|
|
Two modes:
|
|
- **Idea mode** (default) — describe a design idea to sketch
|
|
- **Frontier mode** (no argument or "frontier") — analyzes existing sketch landscape and proposes consistency and frontier sketches
|
|
|
|
Does not require `/gsd-new-project` — auto-creates `.planning/sketches/` if needed.
|
|
</objective>
|
|
|
|
<execution_context>
|
|
@~/.claude/get-shit-done/workflows/sketch.md
|
|
@~/.claude/get-shit-done/workflows/sketch-wrap-up.md
|
|
@~/.claude/get-shit-done/references/ui-brand.md
|
|
@~/.claude/get-shit-done/references/sketch-theme-system.md
|
|
@~/.claude/get-shit-done/references/sketch-interactivity.md
|
|
@~/.claude/get-shit-done/references/sketch-tooling.md
|
|
@~/.claude/get-shit-done/references/sketch-variant-patterns.md
|
|
</execution_context>
|
|
|
|
<runtime_note>
|
|
**Copilot (VS Code):** Use `vscode_askquestions` wherever this workflow calls `AskUserQuestion`.
|
|
</runtime_note>
|
|
|
|
<context>
|
|
Design idea: $ARGUMENTS
|
|
|
|
**Available flags:**
|
|
- `--quick` — Skip mood/direction intake, jump straight to decomposition and building. Use when the design direction is already clear.
|
|
- `--wrap-up` — Package sketch design findings into a persistent project skill for future build conversations. Runs the sketch-wrap-up workflow.
|
|
</context>
|
|
|
|
<process>
|
|
Parse the first token of $ARGUMENTS:
|
|
- If it is `--wrap-up`: strip the flag, execute the sketch-wrap-up workflow from @~/.claude/get-shit-done/workflows/sketch-wrap-up.md end-to-end.
|
|
- Otherwise: execute the sketch workflow from @~/.claude/get-shit-done/workflows/sketch.md end-to-end.
|
|
|
|
Preserve all workflow gates (intake, decomposition, target stack research, variant evaluation, MANIFEST updates, commit patterns).
|
|
</process>
|