Agent Skillsshinpr/claude-code-workflows › recipe-implement

recipe-implement

GitHub

全周期实现编排技能,覆盖需求到部署。通过子代理协调分析、设计、实施与质检流程,强制评审闭环与阶段确认,确保高质量交付。

skills/recipe-implement/SKILL.md shinpr/claude-code-workflows

Trigger Scenarios

用户启动新功能或修复的全流程实现 需要协调多个专家代理完成复杂开发任务

Install

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

Use without installing

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

指定 Agent (Claude Code)

npx skills add shinpr/claude-code-workflows --skill recipe-implement -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-implement",
    "description": "Orchestrate the complete implementation lifecycle from requirements to deployment",
    "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: Full-cycle implementation management (Requirements Analysis → Design → Planning → Implementation → Quality Assurance)

Orchestrator Definition

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 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. Follow subagents-orchestration-guide skill flows exactly:
    • Execute one step at a time in the defined flow (Large/Medium/Small scale)
    • When flow specifies "Execute document-reviewer" → Execute it immediately
    • Stop at every [Stop: ...] marker → Use AskUserQuestion for confirmation and wait for approval before proceeding
  3. Enter autonomous mode after confirmed Small requirements or Medium/Large batch approval

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 all steps, sub-agents, and stopping points defined in subagents-orchestration-guide skill flows.

Execution Decision Flow

1. Current Situation Assessment

Instruction Content: $ARGUMENTS

Assess the current situation:

Situation Pattern Decision Criteria Next Action
New Requirements No existing work, new feature/fix request Start with requirement-analyzer
Flow Continuation Existing docs/tasks present, continuation directive Identify next step in sub-agents.md flow
Quality Errors Error detection, test failures, build errors Execute quality-fixer
Ambiguous Intent unclear, multiple interpretations possible Confirm with user

2. Progress Verification for Continuation

When continuing existing flow, verify:

  • Latest artifacts (PRD/ADR/Design Doc/Work Plan/Tasks)
  • Current phase position (Requirements/Design/Planning/Implementation/QA)
  • Identify next step in subagents-orchestration-guide skill corresponding flow

3. Next Action Execution

MANDATORY subagents-orchestration-guide skill reference:

  • Verify scale-based flow (Large/Medium/Small scale)
  • Confirm autonomous execution mode conditions
  • Recognize mandatory stopping points
  • Invoke next sub-agent defined in flow

After requirement-analyzer [Stop]

Execute Skill: requirement-convergence before running the hearing protocol.

Build and judge the convergence record from the user's statements and requirement-analyzer requestSignals, using scopeEvidence and costEvidence as supporting facts, then run the requirement-convergence hearing protocol. After the requirements are confirmed, apply the subagents-orchestration-guide Small evidence gate before assigning the final Structural Scale; when the gate is unresolved, invoke codebase-analyzer before routing.

When user responds to questions:

  • Update the orchestrator-owned convergence record from the answer, then update the Structural Scale judgment through the Small evidence gate.
  • Re-execute requirement-analyzer only when the answer changes the repository analysis target or scope evidence.
  • Repeat the hearing until every convergence field is ready or weak-but-explicit, then proceed with the resulting Scale.
  • For Small, the user's requirement confirmation authorizes the direct implementation scope; proceed to the 4-step cycle without a Work Plan.

4. Bind the Applicable Flow

After Structural Scale is determined, follow only that scale's applicable path. Treat each applicable design, review, approval, planning, implementation, verification, cleanup, and reporting phase as a gate. Advance only when the current phase's stated evidence or approval exists; skip only branches whose stated condition is false.

Subagents Orchestration Guide Compliance Execution

Pre-execution Checklist (MANDATORY):

  • Confirmed relevant subagents-orchestration-guide skill flow
  • Identified current progress position
  • Clarified next step
  • Recognized stopping points
  • codebase-analyzer included before Design Doc creation (Medium/Large scale)
  • code-verifier included before document-reviewer for Design Doc review (Medium/Large scale)
  • Environment check: Can I execute per-task commit cycle?
    • If commit capability is unavailable → Apply Specialist Result Acceptance before autonomous mode
    • Other environments (tests, quality tools) → Quality agents retain proof limitations while the task cycle continues

Required Flow Compliance:

  • Commit only after quality-fixer returns approved or verification_incomplete; a quality-fixer pass authorizes a commit at a defined commit point rather than creating one
  • Obtain user approval before Edit/Write/MultiEdit outside autonomous mode

Mandatory Orchestrator Responsibilities

Task Execution Quality Cycle (4-Step Cycle per Task)

Per-task cycle (complete each task before starting next):

  1. Agent tool (subagent_type: "dev-workflows:task-executor") → Record the current HEAD as diffBase; pass task_file: [path] when one exists, otherwise pass direct_scope as the confirmed outcome and exclusions, governing_sources, target_paths, and observable_verification
  2. Check task-executor response:
    • status: escalation_needed or blocked → Apply subagents-orchestration-guide Specialist Result Acceptance
    • requiresTestReview is true → Identify the changed integration/E2E test files in the current changes and invoke integration-test-reviewer with them as changedTestFiles, plus diffBase, optional taskFile, prompt-only claims, and mutationEvidence
      • approved → Proceed to step 3
      • blocked → Apply Specialist Result Acceptance
      • needs_revision → Pass qualityIssues unchanged into the Review Resolution Gate; return to step 1 for rerouted corrections and derive convergence from correction re-review prior_feedback_reconciliation
    • Otherwise → Proceed to step 3
  3. quality-fixer → Pass task_file when one exists; otherwise copy step 1 direct_scope, governing_sources, and observable_verification inputs unchanged, including correction_findings when supplied. Add upstream mutationEvidence and qualityCommand when available (caller first, otherwise current task)
    • stub_detected → Return to step 1 with quality-fixer's incompleteImplementations array unchanged as the canonical incompleteImplementations field
    • blocked → Apply Specialist Result Acceptance
    • verification_incomplete → Retain the complete result for final retry and proceed to step 4
    • approved → Proceed to step 4
  4. git commit → Apply subagents-orchestration-guide Commit Boundary Check, then execute with Bash after approved or verification_incomplete; append its verification trailers for the latter

Post-Implementation Review (Medium/Large, After All Tasks Complete)

Apply subagents-orchestration-guide's retained verification limitation retry before the document-dependent reviewers. Continue after clearing or retaining each result and report only repeated limitations.

Resolve the Work Plan's readable Design Doc; missing input blocks review.

Emit these Agent calls in one assistant message, then await both:

  • code-reviewer (subagent_type: "dev-workflows:code-reviewer") → review the completed implementation with the resolved typed governingDocuments, the actual files changed by completed tasks as implementationFiles, and the Work Plan path
  • security-reviewer (subagent_type: "dev-workflows:security-reviewer") → review the completed implementation against the same typed governingDocuments

Apply subagents-orchestration-guide's Post-Implementation Review status-routing and fix/re-run rules. Present the unified report; proceed to Final Cleanup after the complete review set reaches Review Resolution convergence.

For Small, skip this document-dependent review. Retry a retained verification limitation once after the task commit; complete with observed observable_verification evidence and report any proof that remains unavailable.

Final Cleanup

For Medium/Large, before the completion report, commit the post-review corrections applied at Review Resolution convergence when any remain uncommitted, applying subagents-orchestration-guide Commit Boundary Check, then delete the implementation task files this recipe consumed. Their work is then committed; docs/plans/ is ephemeral working state and is not retained between recipe runs:

  • Delete every file matching docs/plans/tasks/{plan-name}-task-*.md (the {plan-name} derived from the work plan path used in this run)
  • Preserve the work plan itself (docs/plans/{plan-name}.md) — the user decides whether to delete it after final review

If task-file deletion fails, include the filesystem error in the completion report and finish the report with the implementation result.

Small has no task-file cleanup.

In the completion report, list each declined actionable finding with its ID, governing reason, and evidence when any occurred.

Test Information Communication

After acceptance-test-generator execution, when invoking work-planner (subagent_type: "dev-workflows:work-planner"), communicate:

  • testSkeletons: every non-null path from generatedFiles

Execution Method

Deliverable production is executed through the specialist selected by subagents-orchestration-guide; workflow decisions and returned-result validation remain with the orchestrator.

Version History

  • 6d58447 Current 2026-09-08 22:31

    修正工作流提交范围,明确仅对已消费任务集执行四步循环;优化质量门控逻辑,规范修复周期中的未提交修正处理及最终清理步骤。

  • 7b95bcd 2026-08-28 00:57

    新增仓库感知的实现审查功能 (feat: add repository-aware implementation review)

  • e245981 2026-08-19 14:39

    移除对 task 工具工作流的依赖

  • 416af89 2026-08-12 16:41

    优化自主工作流提示词,重构以对齐证据驱动的模型自主性边界

  • 0d96a63 2026-08-05 22:08

    优化测试发现逻辑,简化质量变更审查流程,关闭工作流契约缺口,收敛基于证据的设计决策。

  • 51b7dbc 2026-08-05 01:49

    新增基于证据的审查解决机制;重构以简化规划流程并收敛审查逻辑;强化以结果为导向的编排策略。

  • 29b9210 2026-08-03 04:24

    重构需求听证协议,要求每个步骤提供完成证据以防止跳过;赋予需求分析器任务注册职责以序列化步骤;优化收敛JSON格式及范围声明;修正相关提示词以避免无关代理介入。

  • d439b50 2026-07-31 02:56

    重构以对齐编排周期与集成测试审查契约,分离任务跟踪逻辑,优化最终验证器的并发执行能力及权威质量指令传递,最小化工作流提示词。

  • 56ab6c1 2026-07-19 22:46

    重构:改进了提示词执行指导说明

  • 66e3b29 2026-07-05 12:02

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-quality-profile/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-design/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

Metadata

Files
0
Version
6d58447
Hash
c0a12eb0
Indexed
2026-07-05 12:02

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-10 21:24
浙ICP备14020137号-1 $mapa de visitantes$