/dm-work:spec-shapingfrom dm-work
Shape a durable spec before implementation — interview the operator to the goal, draft the spec as a repo artifact, checkpoint key decisions explicitly, then slice into bounded beads. Use when starting any M+ piece of work, when a request is fuzzy at any size ("make it feel better", "add reporting"), when the user asks for a spec / plan doc / design doc, before a long autonomous implementation run, or before delegating implementation to subagents or Codex. Do NOT use for XS/S well-understood work — a bead description suffices there, and forcing the protocol onto small work is waterfall ceremony. The spec is what makes implementers interchangeable: any model, any session, any harness can pick up a bounded slice and be judged against the same criteria.
Ships in dm-work. 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 operator's understanding is the scarce input; the spec is how it reaches the agent in a form that survives the session. Plans that live in conversation die with the context window. A spec is a durable repo artifact.
Exempt: XS/S well-understood work. A good bead description is its spec. Small specs beat big ones — the recurring failure of spec-driven tooling is overhead exceeding return on small features. Scale the spec to the work.
The operator states a task; the spec needs the goal — the decision or outcome the work drives. Ask narrow questions that discriminate between implementations:
Skip questions the request or the repo already answers. If the operator has answered everything up front, say so and go straight to the draft.
For a user-facing feature, a workflow, or an algorithm with established solutions, write a short brief into the spec before drafting: the named references you studied, the patterns they share, where they differ, and what each rules out for this work. Research informs the spec; it does not authorize a pivot from the operator's goal. Skip it for internal plumbing.
Size the target within the requested scope, by goal and resources, not human build time: a well-mapped strongest solution is the target, built smallest working slice first.
Home: the bead's linked plan doc is the spec. Use docs/specs/<slug>.md
only when no bead exists yet, and link it from the bead once one does. One
home, no drift.
Template — include only sections that carry content, never pad:
# <slug> — spec
**Goal:** <the decision/outcome this drives — not the task restated>
**Non-goals:** <what this deliberately does not do>
**Approach changes if:** <result or evidence that would overturn this approach>
## Invariants
<what must stay true: contracts, architecture boundaries, data shapes>
## Key decisions
| Decision | Choice | Status |
|----------|--------|--------|
| <e.g. identity model> | <persistent user IDs> | decided-by-operator / PROPOSED |
## Acceptance criteria
<numbered; split RUNTIME ("user can...") vs CODE ("function exists...") —
each one checkable by an independent judge; tag each machine-checked,
felt (operator), or measured>
## Verification plan
<which gates run; which external signal proves it (browser-qa, state dump,
seed replay, API response, historical artifact); whether an independent judge runs;
name the real entry points the checks exercise>
## Slices
<ordered bounded slices, each → one bead carrying its criteria>
UI specs: keep product copy and evaluator notes apart. When someone will evaluate the screen before it ships (a prototype, mock backend, sample data, inert features), do not write the honesty into the product's copy. Specify an annotation layer: on by default with one control to turn it off, notes anchored to elements, all notes in one registry. Acceptance checks both directions: every evaluator-only disclosure has a note, and with the layer off no demo or prototype wording is left in the product.
The lead owns task definition, architecture, acceptance criteria, and verification design. Present unsettled decisions with their concrete consequences. Honor decisions and authority already given; do not ask for the same approval again. Resolve routine reversible details from the code and context. Checkpoint materially different product/architectural choices with the operator before dependent implementation, continuing independent work where useful. Understanding cannot be outsourced: explain consequential tradeoffs clearly enough that the operator can judge the decision.
Each slice = one bead. The bead carries its acceptance criteria and links the spec. Implementers (subagent, Codex, fresh session) receive the spec excerpt + criteria — bounded context, not conversation history. Return consequential ambiguity to the lead instead of silently changing the contract.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub rbergman/dark-matter-marketplace --plugin dm-work6 skills in this plugin
/browser-qaQA web applications using Chrome DevTools MCP. Use when testing running apps, verifying acceptance criteria against a live UI, checking for console errors, evaluating UI behavior, or running regression checks. Requires the chrome-devtools MCP server to be connected. Complements code-level review with runtime verification./compare-optionsSettle a taste or feel decision by comparing a few real options instead of steering one build round after round. Use when a layout, interaction, visual direction or wording choice is substantially a matter of taste: before it goes into a spec, or when one attempt has not settled it; when two rounds of UI changes have passed without the operator saying it hits the mark; or when asked "which of these is better" about something only a person can judge. Do NOT use for work a test can settle, or for decisions already made: settled work gets built once./miseDev-tool and runtime version management with mise — the modern replacement for nvm, pyenv, goenv, rbenv, and asdf. Use when setting up a new repo, pinning Node/Python/Go/Rust/Bun versions, configuring per-project tool versions via .mise.toml or .tool-versions, wiring direnv-style env loading, debugging "wrong version active" errors, or migrating off legacy version managers. Covers mise.toml schema, env hooks, task definitions, and integration with just and CI./repo-initInitialize a new repository with standard scaffolding - git, gitignore, AGENTS.md, justfile, mise, beads, and timbers. Use when starting a new project or setting up an existing repo for Claude Code workflows./tauri-devDevelop and verify Tauri features across a Rust backend and frontend, including mixed-language monorepos. Use for feature iteration, test routing, or development gate design; preserve the repository’s native and release requirements.