Agent skill
write-spec
Write a detailed feature specification from requirements. Use after shaping to create spec.md with goals, user stories, requirements, and technical approach.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/product/write-spec
SKILL.md
Write Spec
Create a comprehensive specification document from gathered requirements.
When to Use
- Requirements are gathered in
planning/requirements.md - Ready to document the technical specification
- Need a clear spec before task breakdown
Workflow
-
Analyze Inputs
- Read
amp-os/specs/[feature]/planning/requirements.md - Review any visuals in
planning/visuals/ - Load relevant standards skills
- Read
-
Search for Reusable Code
- Use
finderto locate similar implementations - Document patterns to reuse
- Note existing components to leverage
- Use
-
Write Specification
- Follow template exactly from spec-template.md
- Save to
amp-os/specs/[feature]/spec.md
-
Generate Architecture Diagram
- Load
amp-os-architecture-diagramsskill - Create system/component diagram with
mermaid
- Load
-
Verify Spec Quality
- Load
amp-os-spec-verifierskill - Ensure completeness and feasibility
- Load
Important Constraints
- Do NOT write actual code in spec.md
- Keep sections concise and skimmable
- Reference visual assets when available
- Follow template structure exactly
Resources
- Spec Template
Amp Tools to Use
finder- Find similar implementationsmermaid- Architecture diagramsoracle- Review spec for completeness
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?