recipe-design

GitHub

协调从代码库分析到设计文档审批的设计阶段,包括需求收敛、架构决策记录(ADR)评估及文档审查。

dev-workflows-fullstack/skills/recipe-design/SKILL.md shinpr/claude-code-workflows

Trigger Scenarios

需要生成或评审系统设计文档时 进行复杂功能的技术方案设计与决策确认时

Install

npx skills add shinpr/claude-code-workflows --skill recipe-design -g -y
More Options

Non-standard path

npx skills add https://github.com/shinpr/claude-code-workflows/tree/main/dev-workflows-fullstack/skills/recipe-design -g -y

Use without installing

npx skills use shinpr/claude-code-workflows@recipe-design

指定 Agent (Claude Code)

npx skills add shinpr/claude-code-workflows --skill recipe-design -a claude-code -g -y

安装 repo 全部 skill

npx skills add shinpr/claude-code-workflows --all -g -y

预览 repo 内 skill

npx skills add shinpr/claude-code-workflows --list

SKILL.md

Frontmatter
{
    "name": "recipe-design",
    "description": "Execute from codebase-scoped analysis through optional ADR decisions to complete Design Doc approval",
    "disable-model-invocation": true
}

Execute Skill: documentation-criteria before document routing or creation. Execute Skill: llm-friendly-context before writing Agent prompts, handoffs, or generated artifacts. Execute Skill: subagents-orchestration-guide before invoking agents or resolving findings.

Outcome and Ownership

Coordinate the design phase from repository evidence to an approved Design Doc. The orchestrator owns requirement convergence, Structural Scale, ADR qualification, evidence selection, and Review Resolution. Named specialists own semantic investigation and artifact authorship.

The Design Doc is always the complete implementation design for Medium/Large work. A qualifying ADR batch narrows technical choices before the Design Doc, which retains the complete flow and implementation boundary.

Requirements: $ARGUMENTS

Flow

requirement source -> codebase-analyzer -> scope/decision confirmation [Stop]
                                             |
                               optional ADR batch -> batch review [Stop]
                                             |
                 Design Doc -> code-verifier -> Review Resolution
                                             |
                     document-reviewer -> design-sync -> approval [Stop]

Execute each dependent step after its prerequisite evidence exists. Use Review Resolution for every actionable verifier, reviewer, or design-sync finding. Wait at each [Stop] for explicit user confirmation.

At each Invoke below, build the Agent prompt as a mechanical extraction: copy the named source values into the exact fields, apply only the declared serialization, then invoke immediately.

Step 1: Select the Governing Requirement Source

Use the approved PRD path when one exists. Otherwise use the confirmed requirements verbatim.

Set confirmed_requirement_context to the approved PRD path exactly. Only when no approved PRD exists, use the orchestrator-confirmed convergence record unchanged.

Step 2: Collect Decision Material

Invoke dev-workflows-fullstack:codebase-analyzer:

prd_path: [approved PRD path]

or, when no approved PRD exists:

requirements: [confirmed requirements verbatim]

Invoke once for the complete confirmed scope. Require one valid JSON result and let the analyzer discover affected paths, responsibility boundaries, and cross-layer contracts. Treat its focus areas as existing-behavior safeguards, not as new requirements.

This independent discovery keeps scope and option convergence grounded in repository evidence rather than the orchestrator's unverified implementation hypothesis.

Step 3: Confirm Scope and ADR Decisions

Execute Skill: requirement-convergence. The orchestrator builds and judges the convergence record from the user request and Step 2 evidence.

Judge all four convergence fields. Assign cost from Step 2 structural evidence and record its unknowns; run the hearing only for fields below ready.

Determine Structural Scale from outcomes and responsibility boundaries. File count is supporting evidence only.

Resolve decisionMaterials.candidateDecisionPoints against the governing requirement source, reuse, and invalidations. Remove a point when that evidence already converges on one sufficient approach. For each remaining item, apply documentation-criteria filters in order:

  1. Choice requires judgment between at least two credible, materially distinct options inside confirmed scope.
  2. The selection has durable material impact.

Record every passing item as adrDecisionPoints; an empty list routes directly to the Design Doc. ADR creation is limited to items that pass both filters.

Present:

  • confirmed outcome and requirements;
  • cost band, structural evidence, and remaining unknowns;
  • exclusions;
  • target responsibilities and strongest file evidence;
  • Structural Scale and its boundary rationale;
  • each qualifying ADR decision point with filter evidence, or none;
  • material unknowns whose answers change the confirmed outcome or scope.

Offer proceed, or correct scope and re-run analysis. Ask a question only when its answer can change a convergence field, the confirmed outcome, or scope. Continue only when every convergence field is ready or weak-but-explicit. [Stop: Scope confirmation].

Step 4: Create and Approve an ADR Batch When Needed

When adrDecisionPoints is non-empty:

  1. Invoke dev-workflows-fullstack:technical-designer once with exact inputs: document_to_create: ADRBatch; confirmed_requirement_context; decision_points as the ordered adrDecisionPoints confirmed in Step 3, unchanged; and decision_materials as the corresponding objects from Step 2 decisionMaterials.candidateDecisionPoints, copied unchanged in that order.
  2. Invoke dev-workflows-fullstack:document-reviewer once with exact inputs: doc_type: ADRBatch, targets: [all returned paths], and confirmed_requirement_context.
  3. Route the reviewer verdict first: approved proceeds with issues: []; needs_revision applies Review Resolution, updates one ADR per path serially, and re-reviews the complete batch; rejected resolves the governing-source conflict before another review.
  4. Present one batch decision only after an approved review. [Stop: ADR batch approval].
  5. After user approval, update each ADR status to Accepted and verify the changed status.

Step 5: Create the Design Doc

Create the complete MVP implementation design from reviewed artifacts and unchanged repository evidence; this keeps the Design Doc traceable to approved sources instead of an orchestrator-authored shadow design.

Invoke dev-workflows-fullstack:technical-designer with exactly:

  • document_to_create: DesignDoc;
  • confirmed_requirement_context;
  • structural_scale;
  • adr_paths: [accepted paths or []];
  • codebase_analysis: [complete Step 2 JSON unchanged].

The Design Doc owns the full end-to-end design and retains all applicable downstream safeguards in the documentation-criteria template.

Step 6: Verify and Resolve Repository Claims

Keep verifier observations unchanged so corrections remain traceable to observed repository evidence instead of becoming orchestrator-authored design instructions.

Invoke dev-workflows-fullstack:code-verifier with doc_type: design-doc and the Design Doc path. Leave code_paths absent so future behavior remains intent and current premises and feasibility are verified.

Apply Review Resolution to every discrepancy before document review. Send only apply findings to technical-designer in update mode and rerun code-verifier after a correction. Build the single verification_evidence object defined by Review Resolution from the latest result. Continue only when it contains no unresolved apply or user_decision_required item.

Step 7: Review and Approve

Invoke dev-workflows-fullstack:document-reviewer with exact inputs: doc_type: DesignDoc, target, review_context: creation, the original user requirements verbatim as requirements_verbatim, confirmed_requirement_context, codebase_analysis, and verification_evidence from Step 6.

  • approved: continue.
  • needs_revision: apply Review Resolution, update through technical-designer, then rerun Steps 6-7 for the affected boundary.
  • rejected: resolve the governing-source conflict; ask the user only when it changes the product outcome or a major approved decision.

Invoke dev-workflows-fullstack:design-sync for consistency with other Design Docs and apply Review Resolution to actionable conflicts. Report SKIPPED distinctly when only one Design Doc exists.

Present the Design Doc, accepted ADR paths, resolved limitations/declines, and design-sync result. [Stop: Design approval].

Completion Criteria

  • Scope and Structural Scale were confirmed from outcomes and responsibility boundaries.
  • ADRs exist only for decision points passing both filters, and the complete batch received one review and approval.
  • A Design Doc exists regardless of whether ADRs were needed.
  • Applicable existing-behavior, contract, assumption, equivalence, and verification safeguards reached the Design Doc.
  • Review Resolution routed only needs_revision issues into correction work.
  • All stop points received explicit user confirmation.

Version History

  • 0d96a63 Current 2026-08-05 22:04

    重构:基于证据收敛设计决策

  • 51b7dbc 2026-08-05 01:45

    新增强制性的审查结果解决机制;重构以简化编排指南并强化以结果为导向的编排逻辑。

  • 29b9210 2026-08-03 04:21

    重构需求听证协议,要求每个步骤提供完成证据以防止跳过;规范任务注册机制以序列化步骤;优化提示词修复规则选择及截止日期相关问题。

  • d439b50 2026-07-31 02:52

    修复工作流提示词契约;优化设计以聚焦核心价值。

  • 36bf637 2026-07-19 14:01

    改进了设计文档的有效性审查机制

  • 66e3b29 2026-07-05 11:59

Same Skill Collection

dev-skills/skills/ai-development-guide/SKILL.md
dev-skills/skills/coding-principles/SKILL.md
dev-skills/skills/documentation-criteria/SKILL.md
dev-skills/skills/external-resource-context/SKILL.md
dev-skills/skills/frontend-ai-guide/SKILL.md
dev-skills/skills/implementation-approach/SKILL.md
dev-skills/skills/integration-e2e-testing/SKILL.md
dev-skills/skills/llm-friendly-context/SKILL.md
dev-skills/skills/requirement-convergence/SKILL.md
dev-skills/skills/test-implement/SKILL.md
dev-skills/skills/testing-principles/SKILL.md
dev-skills/skills/typescript-rules/SKILL.md
dev-workflows-frontend/skills/ai-development-guide/SKILL.md
dev-workflows-frontend/skills/coding-principles/SKILL.md
dev-workflows-frontend/skills/documentation-criteria/SKILL.md
dev-workflows-frontend/skills/external-resource-context/SKILL.md
dev-workflows-frontend/skills/frontend-ai-guide/SKILL.md
dev-workflows-frontend/skills/implementation-approach/SKILL.md
dev-workflows-frontend/skills/integration-e2e-testing/SKILL.md
dev-workflows-frontend/skills/llm-friendly-context/SKILL.md
dev-workflows-frontend/skills/recipe-diagnose/SKILL.md
dev-workflows-frontend/skills/recipe-front-adjust/SKILL.md
dev-workflows-frontend/skills/recipe-front-build/SKILL.md
dev-workflows-frontend/skills/recipe-front-design/SKILL.md
dev-workflows-frontend/skills/recipe-front-plan/SKILL.md
dev-workflows-frontend/skills/recipe-front-review/SKILL.md
dev-workflows-frontend/skills/recipe-task/SKILL.md
dev-workflows-frontend/skills/recipe-update-doc/SKILL.md
dev-workflows-frontend/skills/requirement-convergence/SKILL.md
dev-workflows-frontend/skills/subagents-orchestration-guide/SKILL.md
dev-workflows-frontend/skills/task-analyzer/SKILL.md
dev-workflows-frontend/skills/test-implement/SKILL.md
dev-workflows-frontend/skills/testing-principles/SKILL.md
dev-workflows-frontend/skills/typescript-rules/SKILL.md
dev-workflows-fullstack/skills/ai-development-guide/SKILL.md
dev-workflows-fullstack/skills/coding-principles/SKILL.md
dev-workflows-fullstack/skills/documentation-criteria/SKILL.md
dev-workflows-fullstack/skills/external-resource-context/SKILL.md
dev-workflows-fullstack/skills/frontend-ai-guide/SKILL.md
dev-workflows-fullstack/skills/implementation-approach/SKILL.md
dev-workflows-fullstack/skills/integration-e2e-testing/SKILL.md
dev-workflows-fullstack/skills/llm-friendly-context/SKILL.md
dev-workflows-fullstack/skills/recipe-add-integration-tests/SKILL.md
dev-workflows-fullstack/skills/recipe-build/SKILL.md
dev-workflows-fullstack/skills/recipe-diagnose/SKILL.md
dev-workflows-fullstack/skills/recipe-front-adjust/SKILL.md
dev-workflows-fullstack/skills/recipe-front-build/SKILL.md
dev-workflows-fullstack/skills/recipe-front-design/SKILL.md
dev-workflows-fullstack/skills/recipe-front-plan/SKILL.md

Metadata

Files
0
Version
4a931f4
Hash
f4e554be
Indexed
2026-07-05 11:59

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 07:25
浙ICP备14020137号-1 $Carte des visiteurs$