ai-development-guide
Applies language-agnostic and backend technical decision criteria, anti-pattern detection, debugging, and quality gates. Use when reviewing general/backend…
Update existing design documents (Design Doc / PRD / ADR) with review
$ npx -y skills add shinpr/claude-code-workflows --skill recipe-update-doc --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/recipe-update-docContext preview
The summary Claude sees to decide when to auto-load this skill.
Update existing design documents (Design Doc / PRD / ADR) with review
name: recipe-update-doc description: Update existing design documents (Design Doc / PRD / ADR) with review disable-model-invocation: true
**Explicit User Instruction**: The user explicitly instructs and authorizes every subagent call named in this recipe. Execute each applicable call when its prerequisites are met.
Execute Skill: llm-friendly-context before writing Agent prompts, handoffs, or generated artifacts. Execute Skill: subagents-orchestration-guide before making workflow decisions, invoking agents, or resolving findings.
**Context**: Dedicated to updating existing design documents.
**Core Identity**: "I am an orchestrator." (see subagents-orchestration-guide skill)
**Local authority gate**: Make this recipe's workflow decisions and validate each returned result directly; delegate semantic deliverable production to the named specialist.
**Review Resolution Gate [MANDATORY]**: Resolve every actionable deliverable-review finding through subagents-orchestration-guide `Review Resolution` before correction or progression. Before the first finding disposition, read `references/review-resolution.md` from the loaded subagents-orchestration-guide skill.
**Execution Gate**: Complete Steps 1-6 in order, following only the branches activated by document type and review result. Advance only through each step's stated evidence, review convergence, or approval condition. Complete after the final approval gate and every applicable Completion Criterion is satisfied.
**Execution Protocol**: 1. **Invoke named specialists for deliverable production** — pass deliverable paths between them and validate their results (see subagents-orchestration-guide "Orchestrator Execution Boundary") 2. **Execute update flow**:
3. **Scope**: Complete when the user approves completing the update
At each Agent invocation below, build the prompt as a mechanical extraction: copy the named source values into the exact fields, apply only the declared serialization, then invoke immediately.
**CRITICAL**: Execute document-reviewer — it is the quality gate for document accuracy.
Target document → change clarification
↓
technical-designer / technical-designer-frontend / prd-creator (update mode)
↓ (Design Doc only)
code-verifier → document-reviewer
↓ (Design Doc only)
design-sync → [Stop: Final approval]**Included in this skill**:
**Out of scope** (redirect to appropriate skills):
**Responsibility Boundary**: This skill completes when the user approves completing the update.
Target document: $ARGUMENTS
Discover the existing documents under `docs/design/`, `docs/prd/`, and `docs/adr/`.
**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**:
Determine which sections need updating, the reason for the change, and the expected outcome after the update. Derive them from the request and the target document. Use AskUserQuestion only for an item the request and document leave undetermined, and only when a different answer would change which sections are updated or what the update must achieve.
Pass the resulting items, covered sections, and any stated total size budget to update or revision agents. Before the next approval gate, map every diff hunk to an approved item or required consistency update. Remove accidental unmapped changes; when a necessary change would alter the requested document outcome or explicit size constraint, return to the request clarification gate.
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 [Step 3 statements for the sections to update, reason, and expected outcome, copied verbatim] Update the document t
Claude Code can explore a codebase deeply. On non-trivial work, the harder problem is convergence.
Repo: shinpr/claude-code-workflows
Applies language-agnostic and backend technical decision criteria, anti-pattern detection, debugging, and quality gates. Use when reviewing general/backend…
Language-agnostic coding principles for maintainability, readability, and quality. Use when implementing features, refactoring code, or reviewing code quality.
Determines which of PRD, ADR, UI Spec, Design Doc, and Work Plan a change requires, and where each is stored. Use when deciding documentation scope, or when…
Records where resources outside the repository live (design source, design system, API schema, IaC source, secret store) and how design, implementation, and…
Applies React/TypeScript-specific technical decision criteria, anti-pattern detection, debugging, and frontend quality gates. Use when reviewing components,…
Implementation strategy selection framework. Use when planning implementation strategy, selecting development approach, or defining verification criteria.