What it does
Single home for task-level planning intelligence: (1) classify by type/domain/complexity → agent specializations, (2) estimate complexity + iteration count, (3) recommend specialists from recurring feedback themes, (4) initialize config with scope boundaries, deliverables, acceptance criteria, (5) decompose large tasks into subtasks within tool budgets.
Absorbed cfn-task-intelligence (now a deprecated redirect): classification, complexity/iteration estimation, and specialist recommendation are documented here. cfn-task-planning classifies and estimates; cfn-agent-lifecycle consumes that classification to select and spawn agents.
When to use (6 triggers)
- Starting CFN Loop Task Mode → Generate scope config before spawning
- Analyzing complexity → Select right agents and iteration thresholds
- Estimating iterations → How many loops before gates pass
- Recurring feedback → After repeated themes (e.g. 3 security), recommend a specialist
- Breaking down epics → Sequential subtasks when one agent can't complete
- Scope contracts → Establish in/out-of-scope before implementation
When NOT to use (4 anti-patterns)
- Well-defined and scoped → Go straight to spawning
- Real-time classification during execution → Planning phase only
- CLI mode with Redis → CLI stores in Redis, this is for Task Mode configs
- Simple single-step → Skip for trivial changes
How to use
Step 1 Classify: ./cli/classify-task.sh "Create REST API..." --format=json
Step 2 Estimate complexity + iterations: $HOME/.claude/skills/cfn-task-intelligence/lib/complexity/estimate-complexity.sh --description "..."
Step 3 Init: ./cli/init-config.sh --task-id cfn-phase-123 --task-description "..." --mode standard
Step 4 Decompose: ./cli/decompose-task.sh --task-id ... --description "..." --complexity high
Step 5 (after recurring feedback) Recommend specialist: $HOME/.claude/skills/cfn-task-intelligence/lib/specialist/recommend-specialist.sh --current-loop3 "..." --feedback-themes "security,auth" --recurring-count 3
Canonical script locations
Classification, config, decomposition, and audit live in this skill (cli/ + lib/). Complexity/iteration estimation and specialist recommendation are absorbed from the deprecated cfn-task-intelligence skill; its scripts stay runnable in place and are the canonical implementations:
- Complexity + iterations:
.claude/skills/cfn-task-intelligence/lib/complexity/estimate-complexity.sh
- Specialist recommendation:
.claude/skills/cfn-task-intelligence/lib/specialist/recommend-specialist.sh
- Feedback-loop integration hooks:
.claude/skills/cfn-task-intelligence/lib/integration/
Parameters
- classify: TASK_DESCRIPTION, --format (json/simple)
- complexity: --description (returns complexity, estimated_iterations 2-7, confidence 0.70-0.80, factors)
- specialist: --current-loop3, --feedback-themes, --recurring-count
- init: --task-id, --task-description, --mode (mvp/standard/enterprise)
- decompose: --task-id, --description, --tool-budget, --complexity
Expected output
- Classify:
{task_type, complexity, keywords_matched, suggested_agents}
- Complexity:
{complexity, estimated_iterations, confidence, factors, reasoning}
- Specialist:
{add_specialist, reasoning, new_loop3_agents[]}
- Init:
.cfn/task-configs/task-{id}.json with scope, agents, thresholds, acceptance criteria
- Decompose: JSON array of subtasks with deliverables, tool_budget, estimated_effort
Real-world example
"Add JWT auth" → classify backend → estimate complexity (high, ~6 iterations) → init config with deliverables [src/auth/jwt.ts, tests/] + acceptance criteria → hand classification to cfn-agent-lifecycle to select and spawn agents with known scope
Related skills
- cfn-agent-lifecycle (
.claude/skills/cfn-agent-lifecycle/): consumes this skill's classification to select and spawn agents. Planning classifies and estimates here; lifecycle selects and spawns there. Do not re-classify in lifecycle.
- cfn-task-intelligence (deprecated): consolidated into this skill. Its lib scripts remain the canonical complexity/specialist implementations referenced above.
1---2name: cfn-task-planning3description: Classify tasks (type/domain), estimate complexity + iterations, recommend specialists, init structured configs with scope boundaries, decompose complex tasks. Use when starting CFN Loop Task Mode (scope config before spawning), setting scope contracts, estimating loop count, or breaking one task into sequential subtasks.4---56## What it does7Single home for task-level planning intelligence: (1) classify by type/domain/complexity → agent specializations, (2) estimate complexity + iteration count, (3) recommend specialists from recurring feedback themes, (4) initialize config with scope boundaries, deliverables, acceptance criteria, (5) decompose large tasks into subtasks within tool budgets.89Absorbed cfn-task-intelligence (now a deprecated redirect): classification, complexity/iteration estimation, and specialist recommendation are documented here. cfn-task-planning classifies and estimates; cfn-agent-lifecycle consumes that classification to select and spawn agents.1011## When to use (6 triggers)121. Starting CFN Loop Task Mode → Generate scope config before spawning132. Analyzing complexity → Select right agents and iteration thresholds143. Estimating iterations → How many loops before gates pass154. Recurring feedback → After repeated themes (e.g. 3 security), recommend a specialist165. Breaking down epics → Sequential subtasks when one agent can't complete176. Scope contracts → Establish in/out-of-scope before implementation1819## When NOT to use (4 anti-patterns)201. Well-defined and scoped → Go straight to spawning212. Real-time classification during execution → Planning phase only223. CLI mode with Redis → CLI stores in Redis, this is for Task Mode configs234. Simple single-step → Skip for trivial changes2425## How to use26Step 1 Classify: `./cli/classify-task.sh "Create REST API..." --format=json`27Step 2 Estimate complexity + iterations: `$HOME/.claude/skills/cfn-task-intelligence/lib/complexity/estimate-complexity.sh --description "..."`28Step 3 Init: `./cli/init-config.sh --task-id cfn-phase-123 --task-description "..." --mode standard`29Step 4 Decompose: `./cli/decompose-task.sh --task-id ... --description "..." --complexity high`30Step 5 (after recurring feedback) Recommend specialist: `$HOME/.claude/skills/cfn-task-intelligence/lib/specialist/recommend-specialist.sh --current-loop3 "..." --feedback-themes "security,auth" --recurring-count 3`3132## Canonical script locations33Classification, config, decomposition, and audit live in this skill (`cli/` + `lib/`). Complexity/iteration estimation and specialist recommendation are absorbed from the deprecated cfn-task-intelligence skill; its scripts stay runnable in place and are the canonical implementations:34- Complexity + iterations: `.claude/skills/cfn-task-intelligence/lib/complexity/estimate-complexity.sh`35- Specialist recommendation: `.claude/skills/cfn-task-intelligence/lib/specialist/recommend-specialist.sh`36- Feedback-loop integration hooks: `.claude/skills/cfn-task-intelligence/lib/integration/`3738## Parameters39- **classify**: TASK_DESCRIPTION, --format (json/simple)40- **complexity**: --description (returns complexity, estimated_iterations 2-7, confidence 0.70-0.80, factors)41- **specialist**: --current-loop3, --feedback-themes, --recurring-count42- **init**: --task-id, --task-description, --mode (mvp/standard/enterprise)43- **decompose**: --task-id, --description, --tool-budget, --complexity4445## Expected output46- **Classify**: `{task_type, complexity, keywords_matched, suggested_agents}`47- **Complexity**: `{complexity, estimated_iterations, confidence, factors, reasoning}`48- **Specialist**: `{add_specialist, reasoning, new_loop3_agents[]}`49- **Init**: `.cfn/task-configs/task-{id}.json` with scope, agents, thresholds, acceptance criteria50- **Decompose**: JSON array of subtasks with deliverables, tool_budget, estimated_effort5152## Real-world example53"Add JWT auth" → classify backend → estimate complexity (high, ~6 iterations) → init config with deliverables `[src/auth/jwt.ts, tests/]` + acceptance criteria → hand classification to cfn-agent-lifecycle to select and spawn agents with known scope5455## Related skills56- **cfn-agent-lifecycle** (`.claude/skills/cfn-agent-lifecycle/`): consumes this skill's classification to select and spawn agents. Planning classifies and estimates here; lifecycle selects and spawns there. Do not re-classify in lifecycle.57- **cfn-task-intelligence** (deprecated): consolidated into this skill. Its lib scripts remain the canonical complexity/specialist implementations referenced above.