Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
Framework for decomposing agent-driven tasks into independently verifiable units
version
0.1.0
level
3
triggers
["decompose this task","break down the work","agent workflow","how should i approach this"]
context_files
["context/project.md","context/learnings.md"]
steps
[{"name":"Task Decomposition","description":"Break task into 15-minute independently verifiable units"},{"name":"Eval Definition","description":"Define success criteria and evaluation for each unit"},{"name":"Model Selection","description":"Route units to appropriate model (Haiku/Sonnet/Opus)"},{"name":"Execution Planning","description":"Determine session strategy and compaction boundaries"},{"name":"Risk Identification","description":"Identify dominant risk for each unit"},{"name":"Done Condition Specification","description":"Define clear completion criteria per unit"}]
Agentic Engineering Skill
Framework for decomposing agent-driven tasks into manageable, verifiable units with appropriate model routing.
What Claude Gets Wrong Without This Skill
Without systematic task decomposition, Claude:
Attempts monolithic implementations that exceed context windows
Uses expensive models (Opus) for tasks that Haiku could handle
Doesn't define success criteria before starting work
Fails to identify the dominant risk per unit, leading to incorrect prioritization
Continues working past natural checkpoints, compounding errors
Agentic engineering ensures tasks are right-sized, model-routed correctly, and verifiably complete.
The 15-Minute Unit Rule
Each work unit should be independently verifiable in 15 minutes or less.
Default to Sonnet; escalate to Opus only when needed
Use Haiku aggressively for preparatory work (classification, data gathering)
Per-role model assignment (multi-agent workflows):
In multi-agent workflows, assign models at the role level, not the session level:
Role
Model
Rationale
Architect / Planner
Opus
High-complexity decomposition and tradeoff analysis
Implementer
Sonnet
Default for most code tasks
Reviewer / Verifier
Sonnet
Review needs reasoning, not raw speed
Classifier / Fetcher
Haiku
Fast, cheap, deterministic lookups
A session-wide model does not override role-level assignments. An Architect agent uses Opus even if the session default is Sonnet.
Integration with model-router skill:
This skill provides task category definitions; model-router handles the actual routing logic. Reference model-router for cost calculation and fallback strategies.
Session Strategy
When to Start Fresh Session
After major phase transitions:
Research → Planning: new session for planning agent
Planning → Implementation: new session for clean implementation start
Implementation → Review: new session for code-reviewer agent (eliminates author bias)
Feature complete → Next feature: new session to avoid context contamination
After context compaction:
If you compacted during a phase, consider fresh session
Compaction loses error traces and alternative approaches
Fresh session = clean slate for next unit
When to Continue Existing Session
During iterative refinement:
Debugging within same unit (error traces needed)
Incremental feature additions to same file
Test-driven development cycles (Red → Green → Refactor)
When context is still relevant:
Next unit builds directly on previous unit (shared context valuable)
Working within 15-minute units in same phase
Error messages from prior attempts inform current approach
When to Compact
Compact after milestones:
Feature complete and tested
Bug fixed and regression test passing
Refactor complete with all tests green
Documentation written and reviewed
Do NOT compact during:
Active debugging (stack traces and error messages needed)
Mid-implementation (variable state and partial progress would be lost)
Trying alternative approaches (context of what failed is critical)
Reference strategic-compact skill for detailed compaction decision guide.
Dominant Risk Per Unit
Each unit has one dominant risk. Identify it explicitly before starting.
If you identify 2+ dominant risks, the unit is too large. Split into smaller units, each with a single dominant risk.
Done Condition Specification
Every unit must have a clear, binary done condition.
Good done conditions:
"Unit test passes"
"API returns 200 with expected JSON shape"
"Bug no longer reproduces in test case"
"Coverage increased from 78% to 82%"
"Documentation includes working code example"
Bad done conditions:
"Code looks good" (subjective)
"Mostly working" (incomplete)
"Ready for review" (review is a separate unit)
"Feature implemented" (too vague)
Pattern: Every done condition should be verifiable by running one command (npm test, curl, coverage check, etc.).
Tool Parallelism (Free Performance)
Claude Code's tool orchestration engine automatically parallelizes consecutive read-only tool calls (up to 10 concurrent). Write-heavy tools force a serial boundary.
To get free parallelism: group reads before writes.
When designing agent prompts, group all information-gathering steps before any implementation steps. This is not a discipline — it's a scheduling hint the engine uses automatically.
Implication for multi-step tasks: Batch all reads in one conceptual block, then all writes. Never interleave reads and writes unless the read depends on a prior write.
PR Sentinel Protocol (for Parallel Workflows)
When coordinating multiple parallel agents, use a sentinel string as the completion signal instead of a shared database or callback mechanism.
Each agent ends its final message with exactly one of: