From specclaw
Generates spec, design, and ordered task list from an approved proposal by analyzing the codebase and project context. Run after /specclaw:propose, before /specclaw:build.
How this skill is triggered — by the user, by Claude, or both
Slash command
/specclaw:planThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**First, run** `specclaw-ensure-init .specclaw` — idempotently creates `.specclaw/` if it doesn't exist (silent if already initialized; auto-inits using the current directory's basename as the project name).
First, run specclaw-ensure-init .specclaw — idempotently creates .specclaw/ if it doesn't exist (silent if already initialized; auto-inits using the current directory's basename as the project name).
Turn an approved proposal into an executable plan.
--author-spec — delegate spec authoring to the spec-author subagent for an interactive, technique-driven dialogue (5 Whys, Jobs-to-be-Done, Inversion, Pre-mortem, MoSCoW). When this flag is present, pause for explicit user approval of spec.md before generating design.md and tasks.md. Without the flag, behavior is unchanged (single-shot generation, no dialogue) so /specclaw:auto remains non-interactive.
Detect the flag as a whitespace-delimited token anywhere in ARGUMENTS (positional-agnostic), and strip it before using the rest of ARGUMENTS as <change>.
specclaw-validate-change .specclaw <change> plan. If it fails, report missing prerequisites and stop..specclaw/changes/<change>/proposal.md..specclaw/context.md if it exists — it contains project-level coding rules, patterns, architecture decisions, and constraints; apply them throughout spec, design, and tasks generation.
git ls-files | cut -d/ -f1-2 | sort -u), detected manifests (package.json, pyproject.toml, go.mod, Cargo.toml, *.csproj, pom.xml, Makefile, ...) and the languages/tooling they imply, and where tests live.specclaw-discover-context .specclaw list to see ranked candidate docs (rank, line count, path), then specclaw-discover-context .specclaw emit for the budget-capped digest. Read the digest and apply the project's documented conventions, constraints, and non-goals throughout planning. Prefer docs most relevant to this change when deciding what to read in depth. Cite your evidence: when a spec requirement, design decision, or task constraint comes from a discovered doc, name the doc path and quote the exact line(s) it rests on — never attribute a claim to a doc without a quote. If discovery is disabled or finds nothing, both commands print nothing — skip this step silently..specclaw/knowledge/spec-guidelines.md if it exists — it holds spec/design guidance promoted from earlier build learnings; apply it when writing spec.md and design.md..specclaw/changes/<change>/:
spec.md — functional requirements, non-functional requirements, acceptance criteria, edge cases.
--author-spec is set: invoke the spec-author subagent via the Agent tool with subagent_type: "spec-author" to author the spec interactively. After the agent writes the file, STOP and require explicit user approval (e.g. "approved", "yes", "go") before proceeding to design.md and tasks.md. Do not generate the remaining files until the user approves.spec.md directly using $CLAUDE_PLUGIN_ROOT/templates/spec.md as a starting template (single-shot, no dialogue).spec.md already exists (e.g. authored previously via /specclaw:author-spec): do not overwrite it; skip the spec step and proceed to design.md / tasks.md.design.md — technical approach, architecture, file changes map, key decisions, risks. Template: $CLAUDE_PLUGIN_ROOT/templates/design.md. When discovery produced docs, add a "Grounding sources" section listing the discovered files you actually used — each entry cites the path plus the specific convention or quoted line applied. The paper trail for what informed the design, backed by quotable evidence rather than vague attribution.tasks.md — ordered tasks grouped into waves with dependencies. Template: $CLAUDE_PLUGIN_ROOT/templates/tasks.md. Tag each task with an optional Kind: hint (docs | test | config | refactor | impl | migration) inferred from what the task does — it lets build.dynamic_agents (when enabled) synthesize a specialized subagent with the right role, minimal tools, and cost-appropriate model. When a task's nature is genuinely mixed or unclear, omit Kind and build will classify heuristically (default impl).specclaw-update-status .specclaw.specclaw-gh-sync update .specclaw <change> to attach the task checklist to the GitHub Issue.azdo.boards.sync: true): specclaw-azdo-issue update .specclaw <change> to refresh the Work Item description with the rendered task checklist.When generating tasks.md, apply the same rules /specclaw:build injects into coding agents — see references/agent-guardrails.md. In particular: Rule 1 (Think Before Coding) — state assumptions explicitly in the spec/design and ask if anything is unclear, rather than picking silently between interpretations. Rule 2 (Simplicity First) — no speculative tasks, no over-decomposition; if three tasks could be one, make it one.
npx claudepluginhub chan4lk/specclaw --plugin specclawInteractively co-author a spec.md for an approved proposal using structured brainstorming techniques (5 Whys, JTBD, Inversion, Pre-mortem, MoSCoW). Use when you want a dialogue-driven spec instead of a single-shot plan.
Writes OpenSpec design.md and tasks.md artifacts for spec-driven features. Useful when producing technical designs or task checklists from a proposal.
Writes implementation plans from approved specs, iterates with human annotations, and creates structured tasks. Use after spec-brainstorm to break work into phases and tasks.