用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/shinpr/codex-workflows --skill recipe-design命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | recipe-design |
| description | Execute from codebase-scoped analysis to design document creation. |
documentation-criteria — document creation rules and templatesimplementation-approach — design convergence and verification strategysubagents-orchestration-guide — agent coordination and review resolutionllm-friendly-context — document 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 the design phase.
Core Identity: Coordinate design, make workflow decisions from compact specialist materials, and invoke specialists for analysis, 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:
[Stop: ...] marker -> Present status to user for confirmation. CANNOT proceed until user explicitly confirms.CRITICAL: MUST execute document-reviewer and all stopping points. MUST execute design-sync for Design Docs. Each serves as a quality gate. ENFORCEMENT: Skipping any quality gate invalidates the design output.
Requirements -> scope evidence -> codebase-analyzer -> [Stop: Scope confirmation]
|
optional PRD update/review -> [Stop: PRD approval]
|
optional ADR batch/review -> [Stop: ADR-batch approval]
|
Design Doc -> code-verifier -> Review Resolution -> document-reviewer
|
design-sync -> [Stop: Design approval]
Included in this skill:
Responsibility Boundary: This skill completes with approval of the Design Doc and its preceding ADR when required. Work planning and beyond are outside scope.
Requirements: $ARGUMENTS
ADRs record the considered options and one selected decision. PRDs and Design Docs contain only confirmed requirements and selected conclusions; evaluation-only ideas and unselected design candidates remain in the active workflow context.
Execute the process below within design scope.
Spawn requirement-analyzer with the original requirements. Treat exact user quotes according to their returned signal type: implementation requirements and exclusions can enter confirmed scope; evaluation requests, speculation, and prescribed mechanisms remain non-binding until the orchestrator resolves them against the user's wording. Treat scope evidence, cost evidence, and questions as material; the orchestrator determines requirements, scale, and ADR routing.
Spawn codebase-analyzer agent: "Analyze the existing codebase to provide compact decision materials for requirement confirmation, ADR selection, minimal Design Doc creation, and verification. requirement_analysis: [Step 1 scopeEvidence]. requirements: $ARGUMENTS. target_paths: [Step 1 scopeEvidence.affectedFiles]."
After codebase-analyzer returns, confirm the requirements, determine Structural Scale, and identify qualifying ADR decision points:
requirement-convergence. The orchestrator builds and judges its record from the user's wording, using Step 1 scope/cost evidence and Step 2 analysis for trade-offs, questions, and routing decisions. Mark an existing but incomplete or scope-mismatched PRD for update; otherwise mark the carrier as absent.decisionMaterials.candidateDecisionPoints. adrDecisionPoints contains every current-scope point that passes both filters; an empty array routes directly to Design Doc regardless of scale.prdRequired when the scale is Large and the current PRD carrier is absent.Present the design scope to the user:
analysisScope.filesAnalyzed and directly relevant modulesanalysisScope.affectedLayersadrDecisionPoint and its filter evidenceprdRequired is true and whether the convergence carrier is current, requires update, or is absentlimitations and unresolved risksAsk the user to choose one:
prdRequired is trueprdRequired is true and no PRD will be providedIf prdRequired is true and the user neither provides a PRD path nor explicitly approves proceeding without a PRD, stop. This recipe does not create PRDs.
[STOP — BLOCKING] Wait for user confirmation before proceeding.
After confirmation, record the final scale, derive adrRequired from adrDecisionPoints.length > 0, and record documentTypeRationale from the actual ADR decision points. When the user's answer changes the scope or PRD carrier, recompute the affected values before proceeding. Use the current PRD path as carrier when available; otherwise use the compact convergence object.
When Step 3 marked an existing PRD for update, spawn prd-creator in update mode with that PRD path and the confirmed convergence object. Review the updated PRD with document-reviewer using its path as target, then resolve findings through Review Resolution. After the review permits approval, present the updated PRD for user approval. Continue with its path as the carrier after approval.
[STOP — BLOCKING when a PRD was updated] Wait for user approval of the updated PRD.
Create documents according to documentTypeRationale:
adrDecisionPoints is non-empty, spawn technical-designer once with document_to_create: ADRBatch, decision_points: [adrDecisionPoints], confirmed requirements, and decision_materials: [only the Step 2 reuse, invalidation, option/cost, contract, and decision-changing unknown material relevant to those points]. Review all returned paths[] in one document-reviewer invocation using doc_type: ADRBatch and targets: [all paths]. Apply Review Resolution to the batch, rerun the batch review when an accepted correction changes a file, then present one ADR-batch approval request.[STOP — BLOCKING when ADRs were created] Wait for one user approval of the reviewed ADR batch before creating the Design Doc.
Record every approved ADR file as Accepted when ADRs were created. Spawn technical-designer with document_to_create: DesignDoc, adr_paths: [accepted ADR paths or []], the confirmed requirement carrier, and decision_materials: [only Step 2 material that changes reuse, implementation validity, a selected ADR decision, a preserved contract, or verification]. The confirmed requirements define scope, and selected ADR decisions constrain their relevant technical questions.
Spawn code-verifier agent: "Verify the Design Doc against the current codebase. document_path: [Design Doc path from Step 4]. doc_type: design-doc."
Apply Review Resolution to every discrepancy before document review. Pass only the apply discrepancies to technical-designer in update mode, then rerun code-verifier. When the apply set is empty, carry the resolved verification summary, declines with reasons, and material limitations to Step 6.
Spawn document-reviewer agent: "Review the Design Doc for consistency, completeness, and adopted design validity. doc_type: DesignDoc. review_context: creation. target: [Design Doc path]. requirements_verbatim: [original user requirements]. confirmed_requirement_context: [complete confirmed requirement context from Step 3]. decision_materials: [only Step 2 material that constrains this design]. verification_resolution: [resolved Step 5 evidence]."
Route the result before consistency verification:
approved: continueneeds_revision: apply Review Resolution with the creating technical-designer, then review the updated documentrejected: apply Orchestrator Escalation Resolution. Continue after an evidence-based self-resolution; ask the user only when that procedure reaches a user-decision conditionSpawn design-sync agent: "Verify consistency of the design document with other existing design documents and project constraints."
Note: design-sync returns sync_status: "SKIPPED" when only 1 Design Doc exists. This is distinct from NO_CONFLICTS and MUST be reported as such to the user.
[Stop: ...] markers honored with user confirmationDesign phase completed.