بنقرة واحدة
camel-execute
Execute an approved implementation plan with two-stage review.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Execute an approved implementation plan with two-stage review.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Design and plan Camel integrations through collaborative dialogue.
Internal reference skill — loaded by camel-brainstorm during flow design. Contains guides for component selection, EIP catalog, data formats, integration patterns, and design spec assembly. NOT user-invocable.
Internal reference skill — loaded by camel-execute during implementation tasks. Contains guides for YAML generation, component loading, properties, Docker Compose, DataMapper, and route validation. NOT user-invocable.
Migrate an existing integration from another product to Apache Camel
Break a design spec into implementation tasks with wave analysis.
Internal reference skill — loaded by camel-execute during test generation tasks. Contains guides for route analysis, test generation, test configuration, and test execution with Citrus + Testcontainers. NOT user-invocable.
| name | camel-execute |
| description | Execute an approved implementation plan with two-stage review. |
| user_invocable | false |
Execute the approved implementation plan by dispatching fresh subagents per task, with two-stage review after each.
Announce at start: "I'm using the camel-execute skill to implement the plan."
Core principle: Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration.
/camel-plan first to create one/camel-knowledge instead/camel-validate instead/camel-brainstorm first; this skill implements plans, not ideasViolating the letter of these rules is violating the spirit of these rules.
This skill supports two invocation modes (see shared/pipeline-infrastructure.md for details):
Auto-invoked by camel-plan after planning completes. The plan content is available in conversation context. After execution, auto-invokes camel-validate.
Invoked directly (e.g., /camel-execute or /camel-execute <PIPELINE_ID>) in a new session. No conversation context — reads the implementation plan from docs/camel-kit/<PIPELINE_ID>/implementation-plan.md.
Detection at start:
implementation-plan.md exists in the pipeline directory → standalone modeimplementation-plan.md does not exist → error: "No implementation plan found. Run /camel-plan first."Standalone behavior:
implementation-plan.md from disk as the inputdesign-spec.md (needed for spec compliance reviews){COMMAND_PREFIX} doc check <file> on both files to detect staleness — if stale, warn but proceedexecution-report.md to the pipeline directorycamel-validate (standalone mode suppresses auto-transitions)digraph execute {
rankdir=TB;
start [label="Read approved plan\nExtract all tasks", shape=box];
dispatch [label="Dispatch implementer\nsubagent for task N", shape=box];
impl_status [label="Implementer\nstatus?", shape=diamond];
answer_q [label="Answer questions\nprovide context", shape=box];
spec_review [label="Dispatch spec-compliance\nreviewer", shape=box];
spec_pass [label="Spec review\npasses?", shape=diamond];
spec_fix [label="Implementer fixes\nspec gaps", shape=box];
quality_review [label="Dispatch code-quality\nreviewer", shape=box];
quality_pass [label="Quality review\npasses?", shape=diamond];
quality_fix [label="Implementer fixes\nquality issues", shape=box];
mark_done [label="Mark task complete", shape=box];
more [label="More tasks?", shape=diamond];
final [label="Final cross-cutting\nreview", shape=box];
verify [label="Internal verification\n(camel-verify subagent)", shape=box];
done [label="Completion summary", shape=doublecircle];
next [label="Pipeline continues to\n/camel-validate (Stage 3)", shape=note, style=dashed];
start -> dispatch;
dispatch -> impl_status;
impl_status -> answer_q [label="NEEDS_CONTEXT"];
answer_q -> dispatch [label="re-dispatch"];
impl_status -> spec_review [label="DONE"];
impl_status -> spec_review [label="DONE_WITH_CONCERNS\n(note concerns)"];
impl_status -> dispatch [label="BLOCKED\n(change approach)"];
spec_review -> spec_pass;
spec_pass -> spec_fix [label="FAIL"];
spec_fix -> spec_review [label="re-review"];
spec_pass -> quality_review [label="PASS"];
quality_review -> quality_pass;
quality_pass -> quality_fix [label="Critical issues"];
quality_fix -> quality_review [label="re-review"];
quality_pass -> mark_done [label="PASS\n(or only non-critical)"];
mark_done -> more;
more -> dispatch [label="yes"];
more -> final [label="no"];
final -> verify;
verify -> done;
done -> next [style=dashed];
}
Before executing tasks, analyze the plan for parallel execution waves:
{COMMAND_PREFIX} plan analyze docs/camel-kit/<activePipeline>/implementation-plan.md
This outputs JSON with parallel execution waves — groups of tasks that can run simultaneously because they touch different files:
{
"waves": [
{"wave": 1, "tasks": [1, 2, 4]},
{"wave": 2, "tasks": [3, 5]},
{"wave": 3, "tasks": [6]}
],
"dependencies": {"3": [2], "5": [4], "6": [3, 5]}
}
Execution strategy:
plan analyze command fails or is unavailable, fall back to sequential execution (execute tasks in plan order)For agents that cannot parallelize (single-conversation agents):
Before dispatching any implementers, validate the target environment.
guides/environment-probe.mdguides/re-plan-loop.md
The probe prevents wasting implementation cycles on environments that cannot support the planned architecture.
Read shared/iron-laws.md for the full Iron Laws. This phase enforces ALL six:
catalog-researcher pre-verification summary satisfies this rule for the wave; otherwise implementer subagents must
verify directly via MCP.| Excuse | Reality |
|---|---|
| "I can run both reviews in parallel to save time" | Iron Law 4: spec first, quality second. Sequential. Always. |
| "The implementation clearly matches the spec" | Clearly ≠ verified. Run the spec review. |
| "I'll fix issues after all tasks are done" | Fix per task. Don't accumulate tech debt across tasks. |
| "The implementer's self-review is sufficient" | Self-review catches obvious issues. Reviewer catches what self-review misses. Both needed. |
| "This task is too simple for two-stage review" | Simple tasks get simple reviews. But they still get reviews. |
| "I'll dispatch multiple implementers in parallel without wave analysis" | Only parallelize within waves from plan analyze. Tasks in different waves may conflict. |
| "The subagent can read the plan file itself" | Provide full task text. Don't make subagents read plan files. |
| "I should ask before proceeding to the next task" | The user approved the ENTIRE plan. Execute ALL tasks without asking. |
| "Let me check if the user wants to continue" | They already said yes — to the whole plan. Keep going. |
| "The input plan is stale but I'll ignore the warning" | Always warn about staleness. Execution will produce fresh output, but the user should know the plan may be outdated. |
| "Let me summarize what was completed so far" | No mid-plan summaries. Print ONE LINE per task. Summary only at the END (Step 4). |
| "The scaffolding phase is complete, ready for implementation" | Scaffolding is ONE task. The plan has N tasks. Execute all N. Don't stop at 1. |
| "Next Steps: Ready to proceed with Task N" | There are no "Next Steps" — you ARE executing the next step RIGHT NOW. |
Resolve the active pipeline using shared/pipeline-infrastructure.md:
.camel-kit/pipeline.json -> get activePipelinedocs/camel-kit/<activePipeline>/implementation-plan.mddocs/camel-kit/<activePipeline>/execution-report.mdExtract ALL tasks with:
Before dispatching implementers for a wave, batch-verify all MCP catalog artifacts referenced in the wave's tasks. This keeps MCP response traces (~500 tokens each) out of the orchestrator and implementer contexts.
catalog-researcher subagent (from agents/catalog-researcher.md) with:
The verification summary replaces per-implementer MCP lookups. The implementer receives pre-verified catalog data and MUST use it as the source of truth for this wave. Iron Law 1 remains enforced via delegated MCP verification by catalog-researcher.
Pass the verification summary to each implementer subagent as part of the context (see guides/implementer-context.md).
For each wave (sequential across waves, parallel within a wave for agents that support it). For single-conversation agents, execute tasks within each wave sequentially in plan order:
Build the implementer prompt using guides/implementer-context.md.
Dispatch a fresh subagent with:
agents/[persona].md)Model selection:
| Status | Action |
|---|---|
| DONE | Proceed to spec compliance review |
| DONE_WITH_CONCERNS | Read concerns. If correctness/scope issues: address before review. If observations: note and proceed. |
| NEEDS_CONTEXT | Provide missing context, re-dispatch same subagent |
| BLOCKED | Assess blocker: context problem → provide more context. Task too large → break it up. Plan wrong → note for user. |
After the implementer reports DONE (or DONE_WITH_CONCERNS), run the Adversarial Code Review pre-filter. This dispatches parallel Critic Lanes via a Moderator subagent to catch defects before the more expensive two-stage review.
agents/acr-moderator.md) with:
See guides/adversarial-code-review.md for full workflow, convergence tracking, and theater detection.
Dispatch spec-compliance-reviewer subagent using guides/spec-reviewer-criteria.md.
Provide:
If review FAILS: return feedback to implementer, re-dispatch implementer to fix, re-review. Loop until pass.
DO NOT proceed to quality review until spec review passes.
Dispatch code-quality-reviewer subagent using guides/quality-reviewer-criteria.md.
Provide:
If review finds Critical issues: return to implementer, fix, re-review. If review finds only Important/Suggestion issues: note them, proceed.
Record completion with a ONE-LINE status: ✅ Task N complete. Starting Task N+1...
Then IMMEDIATELY start Step 2a for the next task. No summary, no "Next Steps", no pause.
The per-task loop is AUTOMATIC and UNINTERRUPTED.After completing a task (implement → spec review → quality review):
✅ Task N complete. Starting Task N+1...Do NOT:
The user approved the entire plan — that approval covers ALL tasks. Execute them ALL without interruption, following wave policy (parallel within a wave where supported, sequential across waves). The ONLY time you stop is after the LAST task, when you print the Step 4 completion summary.
After all tasks complete, dispatch the cross-cutting review as a subagent to keep review traces out of the orchestrator context:
code-quality-reviewer subagent (from agents/code-quality-reviewer.md) with:
docs/constitution.md)camel-implement/guides/smoke-test.md). MANDATORY when RUNTIME=main — JBang has no compile step, so the smoke test is the only pre-delivery execution check. For spring-boot/quarkus, run it if the plan includes one. (This stays in the orchestrator context — it's a build command, not a review.)/camel-validate (Stage 3), not by this step.Only the structured report flows back to the orchestrator. The full review trace (file reads, MCP calls, reasoning) stays in the subagent's context.
After the cross-cutting review, dispatch the full verification loop as a subagent to keep build output and fix traces out of the orchestrator context.
camel-verify skill (skills/camel-verify/SKILL.md)verify-loop.md and error-taxonomy.mdKey rules:
Re-plan trigger: If verification failures persist after fix attempts within the verify loop, the verify loop may trigger guides/re-plan-loop.md to modify affected flow design sections and re-execute. See camel-verify/guides/verify-loop.md Phase 2 for trigger conditions.
===============================================================
IMPLEMENTATION COMPLETE
===============================================================
Pipeline: <PIPELINE_ID>
Plan: docs/camel-kit/<PIPELINE_ID>/implementation-plan.md
Design Spec: docs/camel-kit/<PIPELINE_ID>/design-spec.md
Tasks Completed: [N/N]
Generated Files:
[list all generated files with paths]
Review Results:
Spec Compliance: [N/N] tasks passed
Code Quality: [N/N] tasks passed ([M] non-critical issues noted)
Cross-Cutting Review: PASS/FAIL
Smoke Test: PASS/FAIL/NOT_RUN
Verification: PASS/PARTIAL/FAIL/NOT_RUN
[Include the full verification report from Step 3.5]
===============================================================
Save the completion summary as docs/camel-kit/<PIPELINE_ID>/execution-report.md.
Add frontmatter metadata — run {COMMAND_PREFIX} doc init --by camel-execute --from implementation-plan.md <execution-report.md> to add provenance metadata. This is idempotent — if frontmatter already exists, it is preserved.
Mark downstream artifacts stale — per shared/pipeline-infrastructure.md, run {COMMAND_PREFIX} doc stale --reason "execution report regenerated" --cascade <first-downstream-artifact> (e.g., validation-report.md) to propagate staleness to all downstream artifacts. The --cascade flag walks the generated.from chain automatically — do NOT loop over individual artifacts. Do NOT mark the freshly regenerated execution-report.md itself stale.
Post-completion transition (invocation mode dependent):
camel-validate (the pipeline continues to Stage 3)plan analyze, and only for agents that support concurrent conversations