/kairos:ralph-initiative <initiative short code> [--max-iterations N]from kairos
Run the open tasks of a Kairos initiative in a Ralph loop, in the sequence of their blocks edges.
Ships in kairos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The arguments are: $ARGUMENTS
get_item with the initiative short code (the form is PREFIX-I-NNNN). If get_item does not find it, tell the user, and do not start the loop.get_item for each child task. Ignore a task in a done column. For each other task, record:
get_item marks a done blocker [done]).Give the tasks to the script as JSON on stdin, sorted by short code. The script puts each blocker before the task that it blocks. It skips these tasks:
blocks edges, or a task after a skipped blocker."${CLAUDE_PLUGIN_ROOT}/plugin/hooks/ralph.py" start-initiative --session "${CLAUDE_SESSION_ID}" $ARGUMENTS <<'JSON'
{"tasks": [
{"code": "PREFIX-T-0001", "column": "Todo", "blockers": []},
{"code": "PREFIX-T-0002", "column": "Todo", "blockers": [{"code": "PREFIX-T-0001", "done": false}]}
]}
JSON
The fields are code, column and blockers (each with code and done). The script refuses each other field. If the command fails, show its message to the user and stop. The loop did not start.
The script writes the state of the loop to ~/.claude/kairos-ralph/<session id>.json, outside the repository. The Stop hook of the plugin reads this file and gives you the next step at each stop.
The output of the script gives the tasks in sequence and the procedure. It also gives the skipped tasks and the reasons. Write the skipped tasks and their reasons on the initiative with append_note.
Do the tasks in that sequence. Each task goes through each step of /kairos:implement:
The loop pushes the branch of each task and opens a draft PR (KAIROS-A-0046). It does not merge, release or tag.
Follow the commit rules of the repository and of the user. Every few tasks, write a short progress note on the initiative with append_note.
What remains lives on the items: the open tasks of the initiative and their blocks edges. When the loop finds work that no task holds, record it as a task with its edge (or a note on the task when it is small) before it goes on. A deliverable of the active task is never "out of scope" in a reply: it is done, split into a task with a reason, or left on the task as open. Do not rewrite the list of what is left from memory: read it (get_item, search with traverse).
The loop ends in one of four ways:
Each task in the sequence is in Completed. End your reply with <promise>ALL TASKS COMPLETE</promise>. Do not move the initiative: the user reviews it.
A task stops the loop. Do not guess. Stop when one of these conditions occurs:
Write the reason on the task and on the initiative. Give the reason in your reply. End the reply with <promise>LOOP STOPPED</promise>.
The loop needs an answer from the user. Do not guess. Write the question on the task with append_note. Give the question in your reply. End the reply with <promise>NEED INPUT</promise>. The user answers, then starts the loop again.
The loop gets to the iteration limit (25 by default). Each stop of the session is one iteration. --max-iterations N changes the limit, and --max-iterations 0 removes it. The hook then lets the session stop.
Write a promise only when it is true. To stop the loop at a different time, the user runs /kairos:cancel-ralph.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub colliery-io/kairos --plugin kairos28 skills in this plugin
/architecture-reviewReview the codebase's architecture — scan, classify by altitude, present deepening candidates as an HTML report, then grill through the one you pick./bootstrapWire this repo and engineer to a Kairos deployment — MCP endpoint config, auth check, repository detection from the git remote, board discovery, and the wiring (a project entry in ~/.config/kairos/config.toml)./cancel-ralphStop the Ralph loop of this session, or of this folder after /clear. Then the Stop hook lets the session stop./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./code-reviewReview the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — repo Standards and the originating Kairos item's Spec — and post the record back to the item. Use when the user wants to review a branch, a PR, or work-in-progress changes, or asks to "review since X"./decomposeBreak an initiative, plan, or PRD into independently-grabbable Kairos tasks using tracer-bullet vertical slices.