dev-workflows/skills/recipe-update-doc/SKILL.md
Update existing design documents (Design Doc / PRD / ADR) with review
npx skillsauth add shinpr/claude-code-workflows recipe-update-docInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Context: Dedicated to updating existing design documents.
Core Identity: "I am an orchestrator." (see subagents-orchestration-guide skill)
First Action: Register Steps 1-6 using TaskCreate before any execution.
Execution Protocol:
[Stop: ...] marker → Wait for user approval before proceedingCRITICAL: Execute document-reviewer and all stopping points — each serves as a quality gate for document accuracy.
Target document → [Stop: Confirm changes]
↓
technical-designer / technical-designer-frontend / prd-creator (update mode)
↓ (Design Doc only)
code-verifier → document-reviewer → [Stop: Review approval]
↓ (Design Doc only)
design-sync → [Stop: Final approval]
Included in this skill:
Out of scope (redirect to appropriate skills):
Responsibility Boundary: This skill completes with updated document approval.
Target document: $ARGUMENTS
# Check existing documents
ls docs/design/*.md docs/prd/*.md docs/adr/*.md 2>/dev/null | grep -v template
Decision flow:
| Situation | Action | |-----------|--------| | $ARGUMENTS specifies a path | Use specified document | | $ARGUMENTS describes a topic | Search documents matching the topic | | Multiple candidates found | Present options with AskUserQuestion | | No documents found | Report and end (document creation is out of scope) |
Determine type from document path, then determine the layer to select the correct update agent:
| Path Pattern | Type | Update Agent | Notes |
|-------------|------|--------------|-------|
| docs/design/*.md | Design Doc | technical-designer or technical-designer-frontend | See layer detection below |
| docs/prd/*.md | PRD | prd-creator | - |
| docs/adr/*.md | ADR | technical-designer or technical-designer-frontend | See layer detection below |
Layer detection (for Design Doc and ADR): Read the document and determine its layer from content signals:
ADR Update Guidance:
Use AskUserQuestion to clarify what changes are needed:
Confirm understanding of changes with user before proceeding.
Invoke the update agent determined in Step 2:
subagent_type: [Update Agent from Step 2]
description: "Update [Type from Step 2]"
prompt: |
Operation Mode: update
Existing Document: [path from Step 1]
## Changes Required
[Changes clarified in Step 3]
Update the document to reflect the specified changes.
Add change history entry.
For Design Doc updates only: Before document-reviewer, invoke code-verifier:
subagent_type: code-verifier
description: "Verify updated Design Doc"
prompt: |
doc_type: design-doc
document_path: [path from Step 1]
Verify the updated Design Doc against current codebase.
Verification focus: Pay special attention to literal identifier referential
integrity in the updated sections (paths, endpoints, type names, config keys).
Store output as: $CODE_VERIFICATION_OUTPUT
Invoke document-reviewer:
subagent_type: document-reviewer
description: "Review updated document"
prompt: |
Review the following updated document.
doc_type: [Design Doc / PRD / ADR]
target: [path from Step 1]
mode: standard
code_verification: $CODE_VERIFICATION_OUTPUT (Design Doc only, omit for PRD/ADR)
Focus on:
- Consistency of updated sections with rest of document
- No contradictions introduced by changes
- Completeness of change history
Store output as: $STEP_5_OUTPUT
On review result:
subagent_type: [Update Agent from Step 2]
description: "Revise [Type from Step 2]"
prompt: |
Operation Mode: update
Existing Document: [path from Step 1]
## Review Feedback to Address
$STEP_5_OUTPUT
Address each issue raised in the review feedback.
Present review result to user for approval.
Skip condition: Document type is PRD or ADR → Proceed to completion.
For Design Doc, invoke design-sync:
subagent_type: design-sync
description: "Verify consistency"
prompt: |
Verify consistency of the updated Design Doc with other design documents.
Updated document: [path from Step 1]
On consistency result:
| Error | Action | |-------|--------| | Target document not found | Report and end (document creation is out of scope) | | Sub-agent update fails | Log failure, present error to user, retry once | | Review rejects after 2 revisions | Stop loop, flag for human intervention | | design-sync detects conflicts | Present to user for resolution decision |
Document update completed.
testing
Language-agnostic testing principles including TDD, test quality, coverage standards, and test design patterns. Use when writing tests, designing test strategies, or reviewing test quality.
research
Performs metacognitive task analysis and skill selection. Use when determining task complexity, selecting appropriate skills, or estimating work scale.
development
Technical decision criteria, anti-pattern detection, debugging techniques, and quality check workflow. Use when making technical decisions, detecting code smells, or performing quality assurance.
testing
Language-agnostic testing principles including TDD, test quality, coverage standards, and test design patterns. Use when writing tests, designing test strategies, or reviewing test quality.