Pipeline

The three-phase design-to-code pipeline

Overview

The Camel-Kit pipeline transforms integration requirements into working code through a three-phase orchestrated workflow. Each phase has a specific responsibility, and explicit approval gates ensure you maintain control.

The Three Phases

Approval Gates

Each phase has a gate. The AI cannot proceed without your explicit approval. Toggle to see each gate:

Gate 1: Design Approval

After /camel-brainstorm completes, the AI presents the Design Specification with 7 sections (business purpose, flows, endpoints, data formats, error handling, technical requirements, observability).

You must explicitly approve before /camel-plan begins. You can request changes — the AI revises and re-presents.

Gate 2: Plan Approval

After /camel-plan completes, the AI presents the task breakdown with wave analysis showing which tasks can run in parallel.

You must explicitly approve before /camel-execute begins. Review task scope, acceptance criteria, and dependencies.

Verification: No approval needed. After /camel-execute completes, /camel-verify runs automatically. It’s non-destructive — builds, starts, tests, and reports. If it fails, the AI fixes and retries without asking.

Iron Laws

Four non-negotiable rules enforced across all phases:

Every Apache Camel component name must be verified against the MCP catalog before appearing in any design or code. Prevents AI hallucination — no invented component names.

User: I need to connect to Kafka

AI: (Calls MCP catalog lookup for "kafka")
    ✓ Found: camel-kafka

If a component doesn’t exist, the AI asks for clarification instead of guessing.

Every generated route must comply with the Constitution’s 7 rules:

  1. Route Structure — from → process → to
  2. Single Responsibility — one route = one business capability
  3. Separation of Concerns — no business logic in technical routes
  4. Naming Conventions — kebab-case route IDs, camelCase beans
  5. Observability — metrics, logging, tracing
  6. External Configuration — no hardcoded values
  7. Supported Components — only catalog-verified components

The AI cannot generate implementation code until the Design Specification is explicitly approved. Prevents wasted effort — if the design is wrong, the implementation will be wrong.

/camel-execute checks for approved design spec before starting. If none found: “Please run /camel-brainstorm first.”

Every artifact must pass spec compliance review before code quality review. Two-stage review per task:

  1. Stage 1: Does this match the spec’s acceptance criteria?
  2. Stage 2: Is this well-written? Does it follow the constitution?

If stage 1 fails, regenerate without running stage 2.

Internal Skills

Three skills are loaded by /camel-execute — not user-invocable:

Generates Camel YAML route definitions from task specifications. Uses templates and follows the constitution.

  • Input: Task description with acceptance criteria
  • Output: .camel.yaml route file
  • Loaded by: /camel-execute for each implementation task

Creates Citrus integration tests for behavioral verification with Testcontainers.

  • Input: Route specification and test scenarios
  • Output: Citrus Java test class
  • Loaded by: /camel-execute during test generation tasks

Validates component names against the MCP catalog and checks YAML syntax, constitution compliance, and security.

  • Input: Route YAML file
  • Output: Timestamped validation report
  • Loaded by: /camel-execute during spec compliance review

Pipeline Patterns

You: I need to build an order processing integration

AI: /camel-brainstorm → Interview → Design Spec
    (You approve)
AI: /camel-plan → Task decomposition → Plan
    (You approve)
AI: /camel-execute → Wave-based generation → Code
AI: /camel-verify → Build → Start → Test → Report

Total: 1 command, 2 approvals, 4 phases
You: Migrate my MuleSoft flows to Camel

AI: /camel-migrate → Detect → Parse → Graph → Design
    (You approve flow 1 design)
AI: /camel-plan → Task decomposition
    (You approve)
AI: /camel-execute → Generate migrated code
AI: /camel-verify → Verify migrated flow

Flow 1 complete! Ready for flow 2?
You: I need a REST API that writes to a database

AI: /camel-brainstorm → Interview → Design Spec

You: Actually, add caching before the database

AI: (Revises design spec)

You: Approved

AI: /camel-plan → /camel-execute → /camel-verify
You: The build is failing with a dependency error

AI: /camel-verify
    → Classifies as build error
    → Fixes POM dependency
    → Retries build
    → Build succeeds
    → Continues to runtime tests...

What’s Next

Dive into each phase: