Execute a backend-ralph-plan with Ralph Wiggum Loop
Executes a RALPH plan using the Ralph Wiggum Loop to complete defined tasks.
/plugin marketplace add DiversioTeam/agent-skills-marketplace/plugin install plan-directory@diversiotech<plan-slug> [--max-iterations N]Execute an existing backend-ralph-plan using the Ralph Wiggum Loop.
When the user runs /plan-directory:run <slug>:
Check these locations in order using Glob:
docs/plans/<slug>/RALPH-PROMPT.mdplans/<slug>/RALPH-PROMPT.md<slug>/RALPH-PROMPT.md (if user is already in a plans directory)If not found, tell the user and suggest running /plan-directory:backend-ralph-plan.
Use Read to get RALPH-PROMPT.md contents, then find this pattern:
<promise>...</promise>
Extract the text between the tags. This is the completion promise.
Example: If the prompt contains <promise>ALL 4 USER-PREFERENCES TASKS COMPLETE</promise>,
the completion promise is ALL 4 USER-PREFERENCES TASKS COMPLETE.
--max-iterations N, use NUse the Skill tool to invoke ralph-wiggum:ralph-loop:
skill: "ralph-wiggum:ralph-loop"
args: <prompt-content> --completion-promise "<extracted promise>" --max-iterations <N>
Where <prompt-content> is the full content of RALPH-PROMPT.md that you read in Step 2.
Note: The Skill tool should handle multi-line content. If it doesn't work properly, fall back to telling the user to run manually:
cd <plan-directory>
/ralph-wiggum:ralph-loop "$(cat RALPH-PROMPT.md)" \
--completion-promise "<promise>" \
--max-iterations <N>
After invoking, tell the user:
/ralph-wiggum:cancel-ralph to stop early/plan-directory:run user-preferences
/plan-directory:run manager-weekly-digest --max-iterations 50
/plan-directory:run notification-service
Plan not found:
Could not find plan "xyz". Looked in:
- docs/plans/xyz/RALPH-PROMPT.md
- plans/xyz/RALPH-PROMPT.md
Run
/plan-directory:backend-ralph-planto create a new plan.
No completion promise found:
Warning: No
<promise>...</promise>tag found in RALPH-PROMPT.md. Ralph will run until max iterations (N) without a completion signal. Continue anyway? [Proceed / Cancel]
Ralph plugin not installed:
The ralph-wiggum plugin is required but not installed. Install it with:
/plugin install ralph-wiggum