# Cancel Ralph

> Cancel an active Ralph Loop. Use when the user wants to stop, cancel, or abort a running ralph loop.

- Skill: `poteto/cancel-ralph` (Agent Skill)
- Install (CLI): `npx skillmds@latest add poteto/cancel-ralph`
- Raw SKILL.md: https://api.skillmd.com/api/skills/poteto/cancel-ralph/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: poteto (https://skillmd.com/u/poteto)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/poteto/cancel-ralph

---


# Cancel Ralph

## Trigger

The user wants to cancel or stop an active Ralph loop.

## Workflow

1. Check if `.cursor/ralph/scratchpad.md` exists.

2. **If it does not exist**: Tell the user "No active Ralph loop found."

3. **If it exists**:
   - Read `.cursor/ralph/scratchpad.md` to get the current iteration from the `iteration:` field.
   - Remove the state file and any done flag:
     ```bash
     rm -rf .cursor/ralph
     ```
   - Report: "Cancelled Ralph loop (was at iteration N)."

## Output

A short confirmation with the iteration count, or a message that no loop was active.

