# ralph-loop-workflow

This skill runs an agent through a coding loop that turns a broad goal into tasks, changes code, and checks the result. Use it for work that needs repeated agent-led iterations.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 625 installs · ★ 22
- Author: andrelandgraf
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/andrelandgraf/fullstackrecipes/tree/HEAD/skills/ralph-loop-workflow/SKILL.md
- Updated: 2026-06-08
- HTML: https://affpapa.org/en/nevibecode/skills/ralph-loop-workflow

## What it does

Start the workflow with `/ralph`. The agent keeps its own task list, chooses a priority, makes a change, writes tests, and checks the build and app in a browser. Once checks pass, it updates user-facing docs and commits the work before moving on.

Before the first task, the skill checks whether relevant CLIs are installed, linked to the project, and authenticated. A failed check stops the run and prompts the agent to give you fix commands. It also stops when you have not provided a broad outcome to pursue. Prepare the agent configuration, code-health checks, and tests first. Browser checks use `http://localhost:3000`, and the development server should stay up with `bun run dev`.

The workflow depends on project context, tools, and checks: these can include `AGENTS.md`, MCP servers, and installed skills. Tests run against an isolated database branch. A missing CLI or login blocks the loop before it starts, so the preflight has to pass first.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add andrelandgraf/fullstackrecipes --skill ralph-loop-workflow -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/ralph-loop-workflow/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/ralph-loop-workflow/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add andrelandgraf/fullstackrecipes --skill ralph-loop-workflow -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/ralph-loop-workflow/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add andrelandgraf/fullstackrecipes --skill ralph-loop-workflow -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/ralph-loop-workflow/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install andrelandgraf/fullstackrecipes ralph-loop-workflow
```

2. **Manually: put the files in place**
- File: `.github/skills/ralph-loop-workflow/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add andrelandgraf/fullstackrecipes --skill ralph-loop-workflow -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/andrelandgraf/fullstackrecipes --path skills/ralph-loop-workflow
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/ralph-loop-workflow/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add andrelandgraf/fullstackrecipes --skill ralph-loop-workflow -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/andrelandgraf/fullstackrecipes/tree/HEAD/skills/ralph-loop-workflow/SKILL.md

## When to use it
- turn a broad development goal into agent-managed tasks
- check CLI setup and authentication before a run
- test and verify changes as the agent works
- update docs and commit completed tasks

## Example prompts
- \`/ralph` — add account creation and sign-in to the app, then verify the flow.
- \`/ralph` — build project search and check it with tests.
- \`/ralph` — prepare the app for deployment and test it in the browser.

## Similar
- [setup-matt-pocock-skills](https://affpapa.org/en/nevibecode/skills/setup-matt-pocock-skills.md) — skill · 1052851 installs
- [ask-matt](https://affpapa.org/en/nevibecode/skills/ask-matt.md) — skill · 766587 installs
- [to-tickets](https://affpapa.org/en/nevibecode/skills/to-tickets.md) — skill · 711230 installs
- [writing-plans](https://affpapa.org/en/nevibecode/skills/writing-plans.md) — skill · 282859 installs
- [caveman-review](https://affpapa.org/en/nevibecode/skills/caveman-review.md) — skill · 411800 installs
- [caveman-compress](https://affpapa.org/en/nevibecode/skills/caveman-compress.md) — skill · 411500 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
