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 numbered sections and applies the global Not Doing (and Why) boundaries when mapping flows to tasks and defining acceptance criteria:

  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, with Catalog Verification Evidence recording the matched runtime, full platform BOM, returned Camel version, and each artifact’s VERIFIED result and tool provenance
  6. Project Structure → Select runtime-specific files and module layout

Migration designs add a seventh migration-context section, which the planner also incorporates.

The planner never creates a task for an explicitly excluded capability. If another approved section requires the same capability, planning stops so the design contradiction can be resolved and re-approved instead of passing an impossible plan to /camel-execute.

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.