recipe-front-build
GitHub自动化执行前端构建任务,通过编排子代理完成代码生成、质量修复与提交。明确工作流范围与提交时机,修复因质量门控模糊导致的多余提交问题,确保流程规范。
Trigger Scenarios
Install
npx skills add shinpr/claude-code-workflows --skill recipe-front-build -g -y
SKILL.md
Frontmatter
{
"name": "recipe-front-build",
"description": "Execute materialized frontend task files in autonomous execution mode",
"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.
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:
- Invoke named specialists for deliverable production — pass deliverable paths between them and validate their results (see subagents-orchestration-guide "Orchestrator Execution Boundary")
- Follow the 4-step task cycle exactly for each task in the Consumed Task Set: execute → branch on executor result → quality-fix → commit. Corrections produced outside that cycle reuse its executor-result branching and quality gate, and defer only the commit to their own phase's rule
- Enter autonomous mode when the user provides execution instruction with an existing Work Plan or task files — this IS the batch approval
- Scope: Complete consumed task-set execution, post-implementation verification, consumed-task cleanup, and completion reporting in order, or stop autonomous execution at the current phase for a valid user-owned escalation. Advance only when the current phase's stated transition condition is satisfied.
CRITICAL: Commit only after quality-fixer-frontend returns approved or verification_incomplete. A quality-fixer-frontend pass authorizes a commit at a defined commit point; it does not create one.
Work plan: $ARGUMENTS
Pre-execution Prerequisites
Work Plan Resolution
Before any task processing, locate the work plan. Resolution rule:
- Use the work plan explicitly supplied in
$ARGUMENTSwhen present. - Otherwise group single-layer task files by the existing
{plan-name}-task-*.mdnaming contract and map each group todocs/plans/{plan-name}.md. Exclude layer-aware fullstack task sets. - When task groups produce no candidate, use the only Work Plan under
docs/plans/when exactly one exists. - Select the sole candidate. When multiple candidates remain, present them for selection. When none exists, continue through the missing-prerequisite branch below.
Consumed Task Set
Compute the Consumed Task Set for this run — the exact files this recipe owns, executes, and later deletes. Use the same restricted pattern as Work Plan Resolution:
- List task files in
docs/plans/tasks/matching the single-layer pattern{plan-name}-task-*.mdfor the{plan-name}resolved by Work Plan Resolution. Layer-aware fullstack tasks are excluded
Every subsequent reference to "task files" in this recipe — Task Generation Decision Flow, Task Execution Cycle iteration, and Final Cleanup — uses this set, not the unrestricted docs/plans/tasks/*.md glob.
Task Generation Decision Flow
Analyze the Consumed Task Set and determine the action required:
| State | Criteria | Next Action |
|---|---|---|
| Tasks exist | Consumed Task Set is non-empty | User's execution instruction serves as batch approval → Enter autonomous execution immediately |
| No tasks + plan exists | Consumed Task Set is empty and the resolved work plan exists | User's execution instruction serves as batch approval → Run task-decomposer |
| Neither exists + Design Doc exists | No plan, no Consumed Task Set, but docs/design/*.md exists |
Invoke work-planner to create a work plan, then run document-reviewer (dev-workflows-fullstack:document-reviewer, doc_type: WorkPlan). Run Review Resolution through correction re-review, its parent requirement or authority exits, and convergence, using work-planner for rerouted corrections; then present the resolved plan for batch approval before task materialization |
| Neither exists | No plan, no Consumed Task Set, no Design Doc | Report missing prerequisites to user and stop |
Task Materialization Phase (Conditional)
When the Consumed Task Set is empty:
1. Task Materialization
Invoke task-decomposer using Agent tool:
subagent_type: "dev-workflows-fullstack:task-decomposer"description: "Materialize work plan tasks"prompt: "Read work plan at docs/plans/[plan-name].md and output individual single-commit task files in docs/plans/tasks/."
2. Verify Generation
Recompute the Consumed Task Set using the same restricted pattern from the Consumed Task Set section above. When it remains empty, apply Specialist Result Acceptance: validate the invocation and returned artifacts, correct recoverable input or naming errors, and rerun.
Flow: Task generation → Consumed Task Set recompute → Autonomous execution (in this order)
Pre-execution Checklist
- Confirmed Consumed Task Set is non-empty (computed in the Consumed Task Set section above)
- Identified task execution order within the Consumed Task Set (dependencies)
- 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
Task Execution Cycle (4-Step Cycle)
MANDATORY EXECUTION CYCLE (per task in the Consumed Task Set): execute → branch on executor result → quality-fix → commit
For EACH task in the Consumed Task Set, YOU MUST:
- EXECUTE: invoke Agent tool (subagent_type: "dev-workflows-fullstack:task-executor-frontend") → Record the current HEAD as
diffBase, passtask_file: [path], and receive the structured response - BRANCH ON EXECUTOR RESULT:
status: "escalation_needed"or"blocked"→ Apply subagents-orchestration-guide Specialist Result AcceptancerequiresTestReviewistrue→ Identify the changed integration/E2E test files in the current changes and invoke integration-test-reviewer with them aschangedTestFiles, plusdiffBase,taskFile, prompt-only claims, andmutationEvidenceapproved→ Proceed to step 3blocked→ Apply Specialist Result Acceptanceneeds_revision→ PassqualityIssuesunchanged into the Review Resolution Gate; return to step 1 for rerouted corrections and derive convergence from correction re-reviewprior_feedback_reconciliation
status: completed→ Proceed to step 3
- QUALITY-FIX: Invoke quality-fixer-frontend with
task_file, upstreammutationEvidence, andqualityCommandwhen available (caller first, otherwise current task)stub_detected→ Return to step 1 with quality-fixer-frontend'sincompleteImplementationsarray unchanged as the canonicalincompleteImplementationsfieldblocked→ Apply Specialist Result Acceptanceverification_incomplete→ Retain the complete result for final retry and proceed to step 4approved→ Proceed to step 4
- COMMIT: Apply subagents-orchestration-guide Commit Boundary Check, then execute git commit after quality-fixer-frontend returns
approvedorverification_incomplete; append its verification trailers for the latter
Use each subagent's semantic result and repository evidence through Specialist Result Acceptance; canonical status fields provide the normal routing shortcut. Proceed to the next task after step 4 and retain any verification limitation with its status kept proof-limited.
Verify task files exist per Pre-execution Checklist, then enter autonomous execution mode. When requirement changes are detected during execution, escalate to the user with the change summary before continuing.
Post-Implementation Review (After All Tasks Complete)
Before invoking post-implementation reviewers, apply subagents-orchestration-guide's retained verification limitation retry with quality-fixer-frontend. Continue with the reviewers after clearing or retaining each result; include only repeated limitations in the completion report.
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-fullstack:code-reviewer") → review the completed implementation with the resolved typed
governingDocuments, the actual files changed by completed tasks asimplementationFiles, and the Work Plan path - security-reviewer (subagent_type: "dev-workflows-fullstack: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.
Final Cleanup
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 in the Consumed Task Set
- 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 with a filesystem error, report the failure and continue to the completion report.
Completion Report Contract
Final report must include:
- Task materialization status
- Implemented task count
- Quality check result
- Verification limitations that remained after final retry
- Commit count
- Cleanup result
- Declined actionable findings with ID, governing reason, and evidence, when any occurred
- Escalation or blocking summary, if any
Version History
-
6d58447
Current 2026-09-08 22:28
修正工作流提交逻辑,将4步任务循环范围限定于已消耗任务集,明确仅在质量检查通过后提交,避免无意义提交;增加清理前显式提交步骤并升级插件版本。
-
7b95bcd
2026-08-28 00:53
新增仓库感知的实现审查功能
-
e245981
2026-08-19 14:36
移除了对特定任务工具工作流的依赖,简化了执行前置条件。
-
416af89
2026-08-12 16:38
重构工作流以对齐证据驱动模型,移除无效约束;拆分外部资源上下文协议,优化文档路由与引用规范,删除无消费方的冗余状态字段。
-
0d96a63
2026-08-05 22:04
修复测试发现规则以放宽限制;简化质量变更审查逻辑;关闭工作流契约缺口。
-
51b7dbc
2026-08-05 01:45
新增强制性的审查决议门控,要求在执行修正前通过子代理解决所有可操作的审查发现;简化规划逻辑并收敛审查流程。
-
d439b50
2026-07-31 02:52
重构以集中化工作流任务边界,对齐编排周期契约与最终验证器并发逻辑,最小化提示词并完善工作流提示合同审查。
-
56ab6c1
2026-07-19 22:43
重构:改进提示词执行指导
- 66e3b29 2026-07-05 11:59


