Install
openclaw skills install spec-writerGenerate structured implementation spec documents for coding projects or features. Use when a user provides a requirement, feature idea, bug description, or...
openclaw skills install spec-writerGenerate high-quality, AI-agent-friendly spec documents from vague requirements.
A single Markdown spec document saved to the project directory (default: SPEC.md or spec/<name>.md).
Collect information from available sources. Do not ask the user for things you can find yourself.
From the user's input:
From the project (if accessible):
From external sources (if referenced):
Use the spec template at references/spec-template.md. Read it before generating.
Fill every section based on gathered context. Key principles:
Present the draft to the user. Common discussion points:
Revise until the user confirms. Mark status as "✅ Confirmed" when approved.
Save the confirmed spec to the project. Suggested locations:
SPEC.md in project rootspec/<feature-name>.mdTell the user the spec is ready and suggest next steps:
Small task (bug fix, small feature):
Medium task (feature, refactor):
Large task (new module, major feature):
These come from industry best practices (GitHub's study of 2,500+ agent files, Anthropic's context engineering research, and practical spec-driven development patterns):
Spec is the source of truth — It persists across sessions, anchoring the agent when context gets long or sessions restart.
Structure for parseability — Clear Markdown headings, consistent format. AI models handle well-structured text better than free-form prose.
Six core areas — Commands, Testing, Project Structure, Code Style, Git Workflow, Boundaries. Use as a completeness checklist.
Three-tier boundaries — ✅ Always do (proceed without asking) / ⚠️ Ask first (need human approval) / 🚫 Never do (hard stop). More effective than flat rule lists.
Modularity — Each section should be independently useful. A coding agent working on the backend doesn't need the frontend spec section in its context.
Living document — Update the spec when decisions change. An outdated spec is worse than no spec.