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-brainstorm or /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:

  1. Executive Summary → Understand the goal and constraints
  2. Systems Landscape → Determine external systems and component requirements
  3. Flow Designs → Identify implementation tasks and contracts
  4. Cross-Cutting Concerns → Plan errors, security, resilience, observability, and configuration
  5. Constitution Compliance → Carry the approved architectural constraints into each task
  6. 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:

  1. Flow-to-Task Mapping - Each flow becomes one or more discrete tasks
  2. Acceptance Criteria - Clear definition of “done” for each task
  3. Component Listing - Required Camel components per task
  4. Wave Analysis - Dependency graph with optional parallel candidates
  5. Two-Stage Review - Spec compliance + code quality per task
  6. 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.