Prompt Engine
prompt_engineExecute prompts with C.A.G.E.E.R.F, providing structured phase guidance for context, analysis, goals, execution, evaluation, and refinement.
Instructions
🚀 PROMPT ENGINE [CAGEERF]: Execute prompts with C.A.G.E.E.R.F framework and ground-truth validation.
WHAT IT RETURNS: Prepared prompt + CAGEERF phase instructions (Context→Analysis→Goals→Execution→Evaluation→Refinement). WHAT YOU DO: Execute each phase yourself using the returned structure.
SYNTAX:
prompt_id key:"value" # Run prompt with arguments
step1 --> >>step2 # Chain multiple steps
@CAGEERF >>prompt # Apply CAGEERF framework
:: verify:"npm test" :full # Shell validation (5 attempts, 5min)
:: verify:"cmd" loop:true # Autonomous until pass
PRESETS: :fast (1 try), :full (5 tries), :extended (10 tries) MODIFIERS: %clean (no injection), %lean (gates only), %judge (preview)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gates | No | Unified gate specification - Accepts gate IDs (strings), custom checks ({name, description}), or full gate definitions. Supports mixed types in single array for maximum flexibility. Canonical parameter for all gate specification (v3.0.0+). | |
| command | No | Prompt ID to expand. Resulting prompt will include CAGEERF phase guidance for you to apply. | |
| options | No | Additional execution options (key-value pairs) passed through to execution. | |
| chain_id | No | Resume token (e.g., `chain-demo#2`). RESUME: chain_id + user_response only. Omit command. | |
| gate_action | No | User choice after gate retry limit exhaustion. "retry" resets attempt count, "skip" bypasses the gate, "abort" stops execution. | |
| gate_verdict | No | Gate review result when resuming. PREFERRED (structured, cannot be malformed): {overall:"PASS"|"FAIL", rationale:"...", per_gate:[{index:1, passed:true, rationale:"..."}]}. Also accepts the legacy string "GATE_REVIEW: PASS - rationale". Rationales are single-line. Keep user_response for actual step output. | |
| force_restart | No | Create a new chain execution (increments chain ID). Use `command`. | |
| user_response | No | Your Step output to capture before advancing. Supply the same text you would reply with during manual execution. |