/dd:flow:specfrom dd:flow
Writes or updates the repo's design spec documenting how each domain works and why it was built that way. Use when a decision is settled and worth keeping, or when closing a slice that changed a domain's shape.
Ships in dd:flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The repo's durable memory: how each domain works, and why it was built that way. Two readers — a teammate a year from now, and a fresh session starting the next feature. Both arrive with no context and no way to ask.
The context doc (/dd:flow:go) holds what's in flight; this holds what's
settled. A decision moves here when the slice that made it ships, and the
context doc is deleted with nothing lost.
Voice: plain sentences, technical register, no marketing. Written to be read on the first pass — but structured, because half the readers arrive by grepping a heading rather than reading top to bottom.
docs/design/
README.md index — one line per domain, what it covers
<domain>.md one per domain
A domain is a bounded piece of the system with its own vocabulary — match how the code is already grouped (crate, module, service). Don't invent a domain before the code has one.
A repo with code and no spec at all doesn't need this file written by hand —
/dd:flow:backfill bootstraps docs/design/ from the code and git history.
Register docs/design/README.md in the repo's CLAUDE.md on first write. A
spec nothing links to is a spec nothing loads, and an unread doc rots silently.
Only what the code can't say for itself:
path, file:line), never pasted code.Leave out anything a reader gets faster from the code: signatures, field lists, call sequences, file inventories. A spec that restates the code drifts away from it and then lies.
Describe the built state, never the plan. No planning vocabulary — slices, go numbers, "next up", context-doc references. A reader of this file has never seen the plan and never will.
# <domain>
<one paragraph: what this domain is responsible for>
## How it works
## Invariants
## Decisions
- <choice> — <why>; rejected <alternative> because <reason>.
## Known gaps
Drop a heading that has nothing under it. Keep the ones that do in this order, so a session knows where to look without reading the whole file.
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/backfillOne-time bootstrap of `docs/design/` for a repo that has code but no spec — plan the domains as slices, then write them one per session. Invoked explicitly with /dd:flow:backfill./goPlan and ship a feature as vertical slices driven by one living doc, one slice ("go") at a time. Use when the user starts a new feature or project, asks how to build or approach something, wants to break scope into tasks or slices, says "let's plan this", "how should I build X", "do a go", "next slice", "what do I do next", or wants to update/continue from a feature context doc. Also use to run the close-slice ritual after finishing a piece of work./lookSend background agents at the primary sources and come back with cited findings — facts, or a menu of options with their costs. Use before framing a feature, or any time the user says "look into X", "research X", "check whether X", "what are my options for X", "I need to start but don't know where".Other plugins' skills for the same job
npx claudepluginhub napalmpapalam/skills --plugin flow