gdd-pencil-write
Dispatches the design-pencil-writer agent to write design decisions back to .pen spec files. Unlike Figma/paper.design, pencil.dev keeps .pen YAML specs as the project's git-tracked source of truth; no MCP is required and every write is committed atomically. The probe pattern (file-based, no ToolSearch) and integration contract are documented at ../../connections/pencil-dev.md.
Usage
/get-design-done pencil-write <mode> [--dry-run]
Modes:
annotate- append DESIGN-DEBT findings as comments to the relevant.penfilesroundtrip- update.penspec frontmatter (design-tokens, state) from verified implementation
There is no tokenize mode; .pen files are source-of-truth specs, not derived artifacts.
Flags:
--dry-run- emit the proposal without writing or committing any.penchanges
Prerequisites
- pencil.dev workspace detected; one or more
.penfiles incwd(no MCP install required):bashfind . -name "*.pen" -not -path "*/node_modules/*" | head -5 .design/DESIGN-CONTEXT.mdexists (rundiscoverfirst). Forannotatemode,.design/DESIGN-DEBT.mdis also required. Forroundtripmode,.design/DESIGN-VERIFICATION.mdis also required..design/STATE.md<connections>showspencil-dev: available. Ifnot_configured, no.penfiles were found at probe time; re-rundiscoverorconnectionsafter adding.penspecs.
Required Reading
Read .design/STATE.md and .design/DESIGN-CONTEXT.md before dispatching the agent.
Dispatch
Task("design-pencil-writer", """ mode: <annotate|roundtrip> dry_run: <true|false> required_reading: - .design/STATE.md - .design/DESIGN-CONTEXT.md """)
Pass mode from the first positional argument; dry_run from --dry-run.
Wait for the agent's completion marker before returning.


