Goal: Create or update project documentation based on the dependency chain
Dependency Chain
product-vision.md + business-plan.md → product-brief.md → decisions.md → architecture.md → coding-standards.md → definition-of-done.md
Context
- Action to be performed (create, update, delete): $0
- Doc type (product-vision, product-brief, architecture, coding-standards, definition-of-done): $1
- Instructions: $2
Instructions
- Each doc depends on its predecessors.
decisions.mdis standalone and can be updated at any time. - If
Action to be performediscreateandDoc typeis specified, then create the specified doc while respecting the dependency chain. If dependency is not met yet, exit and inform the user to create the missing docs first. - If
Action to be performediscreatebutDoc typeis not specified, then create all docs in the dependency chain. - If
Action to be performedisupdateordeletebutDoc typeis not specified, ask the user to specify the doc type to update or delete. - If No
Action to be performedis specified and noDoc typeis specified and noInstructionsare provided, default tocreateand create all docs in the dependency chain.
Workflow
- Identify which doc type the user wants to create or update
- Verify all dependencies exist (read predecessor docs in the chain)
- Read
project/docs/executive/product-vision.mdfor project context - Read
project/docs/executive/business-plan.mdfor business plan context - Read predecessor docs for context relevant to the target doc
- Choose template from
.claude/skills/specs-creator/templates/depending on theDoc type - Generate doc with project-specific content
- Save to the correct path in
project/docs/(SeeOutput Pathsection for details) - Report completion with file path and next steps in the dependency chain
Constraints
- NEVER create a doc if its dependency doesn't exist yet
- NEVER overwrite existing docs without user approval
- NEVER assume requirements - ask for clarification
- KEEP docs aligned with the project's constitution and existing decisions
Acceptance Criteria
- Doc contains all required sections from its template
- Saved to the correct path under
project/docs/ - Content is consistent with predecessor docs in the chain
- Completion report includes: file path, doc type, next steps
References
- Product Vision:
project/docs/executive/product-vision.md - Business Plan:
project/docs/executive/business-plan.md - Templates:
.claude/skills/specs-creator/templates/
Output Path
- Product Brief:
project/docs/product/product-brief.md - Architecture:
project/docs/architecture.md/architecture.md - Coding Standards:
project/docs/architecture.md/coding-standards.md - Definition of Done:
project/docs/governance/definition-of-done.md - Decisions:
project/docs/architecture.md/decisions.md
Available Doc Types
| Type | Path | Template | Depends On |
|---|---|---|---|
| Product Vision | project/docs/executive/product-vision.md |
templates/product-vision.md |
app-vision.md |
| Product Brief | project/docs/product/product-brief.md |
templates/product-brief.md |
product-vision.md |
| Architecture | project/docs/architecture.md/architecture.md |
templates/architecture.md |
product-brief.md |
| Coding Standards | project/docs/architecture.md/coding-standards.md |
templates/coding-standards.md |
architecture.md |
| Definition of Done | project/docs/governance/definition-of-done.md |
templates/definition-of-done.md |
coding-standards.md |
| Decisions | project/docs/architecture.md/decisions.md |
templates/decisions.md |
None |