How this skill is triggered — by the user, by Claude, or both
Slash command
/ralph-swarm:cancelThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Cancel an active ralph-swarm session, shut down any running teammates, and clean up state. Spec files are preserved unless cancelled during planning (incomplete specs are removed).
Cancel an active ralph-swarm session, shut down any running teammates, and clean up state. Spec files are preserved unless cancelled during planning (incomplete specs are removed).
.ralph-swarm-state.json from the project root using the Read tool.No active swarm to cancel. Nothing to do.
name, goal, phase, specPath, execution.swarm, and execution fields.Only if execution.swarm is true AND phase is "execution":
Attempt to read the team config to discover teammates:
"ralph-<name>" based on the swarm naming convention.~/.claude/teams/ralph-<name>/config.json using the Read tool.members array to get teammate names.Send shutdown requests to all teammates:
type: "shutdown_request"
recipient: "<teammate-name>"
content: "Swarm cancelled by user. Shutting down."
sleep 5 or similar).Delete the team:
If the team config file does not exist (team was never created or already cleaned up), skip this step silently.
Regardless of swarm mode, check for and clean up orphaned worktrees:
git worktree listralph- or .claude/worktrees/git worktree remove <path> --forcegit worktree pruneIf no orphaned worktrees are found, skip silently. If removal fails for any worktree, warn but continue.
Only if phase is "planning":
rm -rf <specPath>git add <specPath> (stages the deletion)git commit -m "chore(swarm): remove partial specs for <name>"If phase is NOT "planning", skip this step entirely — specs are preserved.
Delete .ralph-swarm-state.json from the project root using Bash:
rm -f .ralph-swarm-state.json
Verify deletion by checking the file no longer exists.
Output a summary:
Swarm cancelled.
Name: <name>
Goal: <goal>
Phase at cancellation: <phase>
If execution.completedTasks is greater than 0:
Completed tasks: <completedTasks>/<totalTasks>
Note: Changes from completed tasks remain in the working tree. Review with `git diff` or `git status`.
If phase was "planning" (partial specs were removed):
Partial spec files removed from: <specPath>
To restart, run /ralph-swarm:start "your goal"
If phase was NOT "planning" (specs preserved):
Spec files preserved at: <specPath>
- research.md
- requirements.md
- design.md
- tasks.md
To restart, run /ralph-swarm:start "your goal"
To reuse this plan, copy the spec files and edit as needed.
Only list spec files that actually exist (check with Read or Bash ls).
git status and git diff.git checkout . or git reset --hard or any destructive git command. Cancelling the swarm only removes the orchestration state, not the work product.npx claudepluginhub divkix/ralph-swarm --plugin ralph-swarmProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.