mit einem Klick
recipe-build
// Execute decomposed backend tasks in autonomous execution mode using task-executor and quality-fixer.
// Execute decomposed backend tasks in autonomous execution mode using task-executor and quality-fixer.
| name | recipe-build |
| description | Execute decomposed backend tasks in autonomous execution mode using task-executor and quality-fixer. |
coding-rules — coding standardstesting — test strategy and quality gatesai-development-guide — AI development patternssubagents-orchestration-guide — agent coordination and workflow flowsSpawn rule: every spawn_agent call MUST pass fork_turns="none" or fork_context=false for context isolation.
Core Identity: "I am not a worker. I am an orchestrator." (see subagents-orchestration-guide skill)
Execution Protocol:
CRITICAL: MUST run quality-fixer before every commit. ENFORCEMENT: Commits without quality-fixer approval are invalid and MUST be reverted.
Work plan: $ARGUMENTS
Before task processing, locate the work plan to gate against.
Resolution rule:
$ARGUMENTS contains a work plan path, use that exact file and derive {plan-name} from its basename. This takes precedence over task-file mtimes.$ARGUMENTS is empty, list task files in docs/plans/tasks/ matching the single-layer pattern {plan-name}-task-*.md.*-task-prep-*.md, _overview-*.md, *-phase*-completion.md, review-fixes-*.md, and integration-tests-*-task-*.md.{plan-name} from the most recent matching task file and use docs/plans/{plan-name}.md.docs/plans/.Read the work plan header and apply the Implementation Readiness Marker Contract from subagents-orchestration-guide.
Compute the Consumed Task Set for this run: task files in docs/plans/tasks/ matching {plan-name}-task-*.md, excluding *-task-prep-*.md, _overview-*.md, *-phase*-completion.md, review-fixes-*.md, and integration-tests-*-task-*.md.
Every subsequent reference to task files in this recipe uses this set, not an unrestricted docs/plans/tasks/*.md scan.
Analyze task file existence state 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 + reviewed plan | Consumed Task Set is empty and WorkPlan Review records Status: approved, Conditions: none | Confirm with user -> spawn task-decomposer |
| No tasks + small simplified plan | Consumed Task Set is empty, plan exists, and the plan references no Design Doc | Confirm with user -> spawn task-decomposer |
| No tasks + plan exists + unreviewed plan | Consumed Task Set is empty, the plan references a Design Doc, and WorkPlan Review is absent, pending, conditional, or not approved | Run work plan review, then confirm with user -> spawn task-decomposer |
| Neither exists | No plan or task files | Error: Prerequisites not met |
When task files don't exist, the plan references a Design Doc, and the WorkPlan Review section is absent, pending, conditional, or not approved:
Spawn document-reviewer agent: "Review the work plan before task decomposition. doc_type: WorkPlan. target: docs/plans/[plan-name].md. mode: composite. Review semantic traceability to the Design Doc, early verification placement, real-boundary verification coverage, Proof Strategy, Failure Mode Checklist, Review Scope, and Quality Assurance coverage."
Branch on verdict.decision:
approved -> spawn work-planner in update mode once to record Status: approved and Conditions: none in WorkPlan Review, then continue to user confirmationapproved_with_conditions -> stop before task decomposition and report that the work plan needs update via recipe-planneeds_revision -> stop before task decomposition and report that the work plan needs update via recipe-planrejected -> stop before task decomposition and present the blocking findings to the userWhen task files don't exist and the WorkPlan Review section records Status: approved and Conditions: none, skip Work Plan Review and continue to user confirmation.
No task files found.
Work plan: docs/plans/[plan-name].md
Generate tasks from the work plan? (y/n):
Spawn task-decomposer agent: "Read work plan at docs/plans/[plan-name].md and decompose into atomic tasks. Output: Individual task files in docs/plans/tasks/. Granularity: 1 task = 1 commit = independently executable."
Recompute the Consumed Task Set and verify it is non-empty.
MANDATORY EXECUTION CYCLE: task-executor -> escalation check -> quality-fixer -> commit
For EACH task, YOU MUST:
status: "escalation_needed" or "blocked" -> STOP and escalate to userrequiresTestReview is true -> Spawn integration-test-reviewer agent: "Review integration tests in [test-files]"
needs_revision -> Return to step 2 with requiredFixesapproved -> Proceed to step 4readyForQualityCheck: true -> Proceed to step 4task_file input. Read its Quality Assurance Mechanisms section as supplementary quality-check hints. filesModified: [task-executor response filesModified]. Use these files as the stub-detection scope."status: "stub_detected" -> Return to step 2 with stubFindingsstatus: "blocked" -> STOP and escalate to userstatus: "approved" -> Proceed to step 6status: "approved" from quality-fixer -> Execute git commitCRITICAL: MUST monitor ALL structured responses WITHOUT EXCEPTION and ENSURE every quality gate is passed. ENFORCEMENT: Proceeding past a failed quality gate invalidates all subsequent work.
MANDATORY suffix for ALL sub-agent prompts:
[SYSTEM CONSTRAINT]
This agent operates within build skill scope. Use the task file as the primary instruction source. Use the active Design Doc or work plan only as supporting context when the task file references them. Constraints explicitly passed in this prompt by the orchestrator take precedence over supporting context. The agent's own role contract and required quality rules remain in force.
Autonomous sub-agents require scope constraints for stable execution. MUST append this constraint to every sub-agent prompt. ENFORCEMENT: Sub-agent prompts missing the constraint suffix MUST be re-issued with the constraint appended.
VERIFY approval status before proceeding. Once confirmed, INITIATE autonomous execution mode.
After all task cycles finish, collect all filesModified from every task-executor response (deduplicated), then run both verification agents before the completion report:
doc_type: design-doc. document_path: [path]. code_paths: [collected filesModified list]. Work Plan Review Scope: [Review Scope value from the active work plan, used only to confirm the collected file set is complete]."summary.status is consistent or mostly_consistentsummary.status is needs_review or inconsistentstatus is approved or approved_with_notesstatus is needs_revisionblocked -> Escalate to userBefore the completion report, delete only these files for the current {plan-name}:
docs/plans/tasks/{plan-name}-phase*-completion.mddocs/plans/tasks/_overview-{plan-name}.mdPreserve the work plan itself.
If cleanup fails, report the failed path but do not invalidate completed implementation work.
[STOP — BLOCKING] Upon detecting ANY requirement changes, halt execution immediately. CANNOT proceed until user explicitly confirms the change scope.
Backend implementation phase completed.
Documentation creation criteria for PRD, ADR, Design Doc, UI Spec, and Work Plan with templates. Use when: creating or reviewing technical documents, determining which documents are required, or following document templates.
Execute frontend tasks in autonomous execution mode using task-executor-frontend and quality-fixer-frontend.
Create frontend work plan from design document with test skeleton generation.
Frontend Design Doc compliance and security validation with optional auto-fixes using React-specific quality checks.
Execute decomposed fullstack tasks with layer-aware agent routing between backend and frontend executors.
Create work plan from design document with optional test skeleton generation.