用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/shinpr/codex-workflows --skill recipe-update-doc命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Proposes and, after user confirmation, creates or maintains docs/project-context/quality.yaml from repository-specific review requirements. Use when asked to generate or update a repository quality profile.
Execute an approved backend Work Plan autonomously through task execution, quality fixes, commits, and final verification.
Execute an approved frontend Work Plan autonomously through frontend implementation, quality fixes, commits, and final verification.
基于 SOC 职业分类
正在显示 SKILL.md
| name | recipe-update-doc |
| description | Update existing design documents (Design Doc / PRD / ADR) with review and consistency verification. |
documentation-criteria — document creation rules and templatessubagents-orchestration-guide — agent coordination and workflow flowsllm-friendly-context — document update and review handoffsSpawn rule: every spawn_agent call uses fork_turns="none" so the subagent receives only the task message and explicitly provided context.
Context: Dedicated to updating existing design documents.
Core Identity: Coordinate document updates, perform lightweight routing and status changes directly, and invoke document specialists for semantic authoring and review.
Execution Plan: Reuse the active execution plan. When the workflow has multiple dependent actions and no plan exists, create one that tracks them through final verification.
Execution Protocol:
CRITICAL: MUST execute document-reviewer and all stopping points -- each serves as a quality gate for document accuracy. ENFORCEMENT: Skipping document-reviewer risks propagating inconsistencies to downstream workflows.
Target document -> Clarify changes -> update agent
|
[Design Doc: code-verifier -> Review Resolution]
|
document-reviewer
|
[Design Doc: design-sync]
|
[Stop: Document 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 for existing documents in docs/design/, docs/prd/, 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 to user |
| No documents found | Report and end (suggest $recipe-design instead) |
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:
Derive the sections, reason, and expected outcome from the user request and target document. Ask only for a missing item whose plausible interpretations would materially change the updated document.
For PRD or Design Doc updates, apply the confirmed changes to the target document's current outcome, requirements, and exclusions to form confirmed_requirement_context; preserve fields the request does not change. Incorporate later user corrections or additions into the same context before the next update or review action. For ADR updates, use confirmed_requirement_context: N/A — ADR update and carry the accepted decision plus the requested changes as governing context.
For PRD or Design Doc, spawn [Update Agent from Step 2]: "Operation Mode: update. Existing Document: [path from Step 1]. Changes Required: [Changes clarified in Step 3]. confirmed_requirement_context: [Step 3 current context]. Update the document to reflect the specified changes. Add change history entry."
For a minor ADR change, spawn the update agent with Operation Mode: update, the existing path, confirmed changes, and confirmed_requirement_context: N/A — ADR update. For a major ADR change, leave this update path and use the normal ADR creation and approval flow to create the superseding ADR.
For Design Doc updates, first verify the updated document against code:
Spawn code-verifier agent: "Verify the updated Design Doc against current code. doc_type: design-doc. document_path: [path from Step 1]. verbose: false. Focus especially on literal identifier referential integrity for concrete paths, endpoints, type names, config keys, and other exact identifiers changed in this update."
Apply Review Resolution to every discrepancy. Pass the apply discrepancies to the update agent, rerun code-verifier, and store the resolved summary, declines with reasons, and material limitations as $VERIFICATION_RESOLUTION after the apply set becomes empty.
For Design Doc updates: Spawn document-reviewer agent: "Review the following updated document. doc_type: DesignDoc. review_context: update. target: [path from Step 1]. confirmed_requirement_context: [Step 3 current context]. verification_resolution: $VERIFICATION_RESOLUTION. Focus on consistency of the updated sections, governing requirements, and change history."
For PRD updates, spawn document-reviewer with the target and confirmed_requirement_context from Step 3. For minor ADR updates, use doc_type: ADRBatch, targets: [updated ADR path], and review_context: update; review the requested changes and their dependent consistency while carrying the accepted, unchanged decision content as governing context.
Store output as: $STEP_5_OUTPUT
On review result:
approved -> proceed to Step 6needs_revision -> Apply Review Resolution with the update agent, then review the updated documentrejected -> Apply Orchestrator Escalation Resolution. Continue after self-resolution; ask the user only when that procedure reaches a user-decision conditionFor PRD or ADR, skip design-sync and present the reviewed document for user approval.
For Design Doc, spawn design-sync agent: "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 (suggest $recipe-design instead) |
| Sub-agent update fails or returns an unusable result | Apply Orchestrator Escalation Resolution |
| Review Resolution requires a user-owned decision | Apply Orchestrator Escalation Resolution |
| design-sync detects conflicts | Apply Orchestrator Escalation Resolution against the governing sources |
confirmed_requirement_context from the target document and confirmed changesDocument update completed.