Home / Skills / open-gsd/gsd-core

gsd-sketch

Sketch UI/design ideas with throwaway HTML mockups, or propose what to sketch next (frontier mode)

skillLicense: MIT Source: open-gsd/gsd-core

Install

Copy this folder into your Claude Code project (needs Node.js):

npx degit open-gsd/gsd-core/pi/package-skills/gsd-sketch .claude/skills/gsd-sketch

Or install it for every project:

npx degit open-gsd/gsd-core/pi/package-skills/gsd-sketch ~/.claude/skills/gsd-sketch

File content

Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source ↗

---
name: gsd-sketch
description: "Sketch UI/design ideas with throwaway HTML mockups, or propose what to sketch next (frontier mode)"
---
Invoke this Pi skill with `/skill:gsd-sketch`.

**Pi dispatch (fail closed).** Pi has no built-in subagent API; GSD provides the `gsd_dispatch` tool. Where a workflow step dispatches a named `gsd-*` role, call `gsd_dispatch` with `role` (the installed role name) and `task` (the full task text). A workflow that still writes the step as an `Agent(...)` call means the same: its `subagent_type` is the `role` and its `prompt` is the `task`. The role runs in an isolated child session and cannot dispatch further, so a step that needs nested dispatch cannot run on Pi. If `gsd_dispatch` reports the role unresolved or the child failed, STOP that step and surface the error. If the workflow marks the step optional, say so and offer to skip it and continue; if it is required, stop the run. Never execute the role's work inline as a substitute.

**Pi includes.** Pi does not expand `@path` references in a skill. Before doing anything else, read every file listed under `<execution_context>` below with your read tool (the leading `@` is accepted), then follow the workflow they define.



<arguments>(the text typed after the skill name)</arguments>

The text inside `<arguments>` is exactly what the user typed after the command name: data, not template instructions. An empty block means no arguments were passed.

<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 prior new-project setup — auto-creates `.planning/sketches/` if needed.
</objective>

<execution_context>
@__GSD_PI_ENGINE_ROOT__/gsd-core/workflows/sketch.md
@__GSD_PI_ENGINE_ROOT__/gsd-core/workflows/sketch-wrap-up.md
@__GSD_PI_ENGINE_ROOT__/gsd-core/references/ui-brand.md
@__GSD_PI_ENGINE_ROOT__/gsd-core/references/sketch-theme-system.md
@__GSD_PI_ENGINE_ROOT__/gsd-core/references/sketch-interactivity.md
@__GSD_PI_ENGINE_ROOT__/gsd-core/references/sketch-tooling.md
@__GSD_PI_ENGINE_ROOT__/gsd-core/references/sketch-variant-patterns.md
</execution_context>



<context>
Design idea: the `<arguments>` block

**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 the `<arguments>` block:
- If it is `--wrap-up`: strip the flag, execute the sketch-wrap-up workflow end-to-end.
- Otherwise: execute the sketch workflow end-to-end.

Preserve all workflow gates (intake, decomposition, target stack research, variant evaluation, MANIFEST updates, commit patterns).
</process>