CtrlK
BlogDocsLog inGet started
Tessl Logo

recipe-build

Execute decomposed tasks in autonomous execution mode

44

Quality

31%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./skills/recipe-build/SKILL.md
SKILL.md
Quality
Evals
Security

Orchestrator Definition

Core Identity: "I am not a worker. I am an orchestrator." (see subagents-orchestration-guide skill)

Execution Protocol:

  1. Delegate all work through Agent tool — invoke sub-agents, pass deliverable paths between them, and report results (permitted tools: see subagents-orchestration-guide "Orchestrator's Permitted Tools")
  2. Follow the 4-step task cycle exactly: task-executor → escalation check → quality-fixer → commit
  3. Enter autonomous mode when user provides execution instruction with existing task files — this IS the batch approval
  4. Scope: Complete when all tasks are committed or escalation occurs

CRITICAL: Run quality-fixer before every commit.

Work plan: $ARGUMENTS

Pre-execution Prerequisites

Task File Existence Check

# Check work plans
! ls -la docs/plans/*.md | grep -v template | tail -5

# Check task files
! ls docs/plans/tasks/*.md 2>/dev/null || echo "⚠️ No task files found"

Task Generation Decision Flow

Analyze task file existence state and determine the action required:

StateCriteriaNext Action
Tasks exist.md files in tasks/ directoryUser's execution instruction serves as batch approval → Enter autonomous execution immediately
No tasks + plan existsPlan exists but no task filesConfirm with user → run task-decomposer
Neither exists + Design Doc existsNo plan or task files, but docs/design/*.md existsInvoke work-planner to create work plan from Design Doc, then proceed to task decomposition
Neither existsNo plan, no task files, no Design DocReport missing prerequisites to user and stop

Task Decomposition Phase (Conditional)

When task files don't exist:

1. User Confirmation

No task files found.
Work plan: docs/plans/[plan-name].md

Generate tasks from the work plan? (y/n):

2. Task Decomposition (if approved)

Invoke task-decomposer using Agent tool:

  • subagent_type: "dev-workflows:task-decomposer"
  • description: "Decompose work plan"
  • prompt: "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"

3. Verify Generation

# Verify generated task files
! ls -la docs/plans/tasks/*.md | head -10

Flow: Task generation → Autonomous execution (in this order)

Pre-execution Checklist

  • Confirmed task files exist in docs/plans/tasks/
  • Identified task execution order (dependencies)
  • Environment check: Can I execute per-task commit cycle?
    • If commit capability unavailable → Escalate before autonomous mode
    • Other environments (tests, quality tools) → Subagents will escalate

Task Execution Cycle (4-Step Cycle)

MANDATORY EXECUTION CYCLE: task-executor → escalation check → quality-fixer → commit

For EACH task, YOU MUST:

  1. Register tasks using TaskCreate: Register work steps. Always include: first "Confirm skill constraints", final "Verify skill fidelity"
  2. Agent tool (subagent_type: "dev-workflows:task-executor") → Pass task file path in prompt, receive structured response
  3. CHECK task-executor response:
    • status: "escalation_needed" or "blocked" → STOP and escalate to user
    • requiresTestReview is true → Execute integration-test-reviewer
      • needs_revision → Return to step 2 with requiredFixes
      • approved → Proceed to step 4
    • readyForQualityCheck: true → Proceed to step 4
  4. INVOKE quality-fixer: Execute all quality checks and fixes
  5. COMMIT on approval: After approved: true from quality-fixer → Execute git commit

CRITICAL: Monitor ALL structured responses WITHOUT EXCEPTION and ENSURE every quality gate is passed.

Sub-agent Invocation Constraints

MANDATORY suffix for ALL sub-agent prompts:

[SYSTEM CONSTRAINT]
This agent operates within build skill scope. Use orchestrator-provided rules only.

Autonomous sub-agents require scope constraints for stable execution. ALWAYS append this constraint to every sub-agent prompt.

! ls -la docs/plans/*.md | head -10

VERIFY approval status before proceeding. Once confirmed, INITIATE autonomous execution mode. STOP IMMEDIATELY upon detecting ANY requirement changes.

Security Review (After All Tasks Complete)

After all task cycles finish, invoke security-reviewer before the completion report:

  1. Agent tool (subagent_type: "dev-workflows:security-reviewer") → Pass Design Doc path and implementation file list
  2. Check response:
    • approved or approved_with_notes → Proceed to completion report (include notes if present)
    • needs_revision → Execute task-executor with requiredFixes, then quality-fixer, then re-invoke security-reviewer
    • blocked → Escalate to user

Output Example

Implementation phase completed.

  • Task decomposition: Generated under docs/plans/tasks/
  • Implemented tasks: [number] tasks
  • Quality checks: All passed
  • Commits: [number] commits created
Repository
shinpr/claude-code-workflows
Last updated
Created

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.