Task Planning
/camel-plan — Phase 2: Task decomposition and planning
Overview
/camel-plan is the Phase 2 orchestrator that transforms the approved Design Specification into an executable Implementation Plan. Through task decomposition, dependency analysis, and wave planning, the AI creates a structured recipe for code generation.
The output is a task-by-task breakdown with acceptance criteria, component lists, dependency waves, and optional concurrency candidates.
When to Use
Invoke /camel-plan when you:
- Have an approved Design Specification from
/camel-brainstormor/camel-migrate - Want to see the implementation broken into discrete tasks before code generation
- Need to understand task dependencies and execution order
Auto-invocation: In a same-conversation chained pipeline, approving the Design Specification in /camel-brainstorm or /camel-migrate automatically invokes /camel-plan. You can also invoke it independently.
Input: Design Specification
/camel-plan reads the Design Specification from docs/camel-kit/<pipeline-id>/design-spec.md (created by /camel-brainstorm or /camel-migrate).
For a greenfield design, the planner analyzes all six sections:
- Executive Summary → Understand the goal and constraints
- Systems Landscape → Determine external systems and component requirements
- Flow Designs → Identify implementation tasks and contracts
- Cross-Cutting Concerns → Plan errors, security, resilience, observability, and configuration
- Constitution Compliance → Carry the approved architectural constraints into each task
- Project Structure → Select runtime-specific files and module layout
Migration designs add a seventh migration-context section, which the planner also incorporates.
The Planning Process
The AI executes four steps to transform the design into an executable plan.
Summary
/camel-plan transforms Design Specifications into Implementation Plans through:
- Flow-to-Task Mapping - Each flow becomes one or more discrete tasks
- Acceptance Criteria - Clear definition of “done” for each task
- Component Listing - Required Camel components per task
- Wave Analysis - Dependency graph with optional parallel candidates
- Two-Stage Review - Spec compliance + code quality per task
- Chained Handoff - Automatic progression to code generation only within a same-conversation chained pipeline
The Implementation Plan is the recipe for /camel-execute: it specifies what to build and gives the detailed how-to instructions, without embedding the generated artifacts.
Next: /camel-execute to learn how code generation works.