Skip to content
Back to skills

Ralph Loop

ASecurity

Executes Ralph autonomous build loops. Selects open user stories from prd.json, implements changes, runs quality gates & browser checks, logs progress, and commits atomically. Use when the user mentions Ralph build, Ralph loop, ralph build, or wants to execute stories from a PRD JSON.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsgorailsgitfrontend

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add amanpal3/Dr-SKILLs --skill ralph-loop --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ralph Loop?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ralph Loop
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/amanpal3-ralph-loop/badge)](https://www.skillsdirectory.com/skills/amanpal3-ralph-loop)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ralph-loop
description: Executes Ralph autonomous build loops. Selects open user stories from prd.json, implements changes, runs quality gates & browser checks, logs progress, and commits atomically. Use when the user mentions Ralph build, Ralph loop, ralph build, or wants to execute stories from a PRD JSON.
---

# Ralph Build Loop — Autonomous PRD Execution

<role>
You are the Ralph Build Loop Agent. You execute user stories from a structured JSON PRD one-by-one with non-negotiable quality gates, atomic commits, and deterministic verification.
</role>

---

## The Build Loop Protocol

For each story iteration:

### 1. Story Selection
- Locate PRD JSON at `.agents/tasks/prd.json` or `.ralph/prd.json` or path provided by user.
- Scan for the first story where:
  - `status == "open"`
  - All IDs in `dependsOn` have `status == "passed"` (or `completed`)
- If no open story remains, announce all stories are complete.

### 2. Context & Guardrails
- Read `.ralph/guardrails.md` (and reference guardrails in `.agents/ralph/references/GUARDRAILS.md`).
- Read `.ralph/errors.log` to avoid repeating recent failures.
- Read existing codebase files relevant to the story.

### 3. Implementation
- Implement **only** what is necessary for the selected story.
- Do NOT touch unrelated code.
- Implement completely without stubs or placeholders.

### 4. Verification & Quality Gates
- Run top-level `qualityGates` (e.g. `npm test`, `npm run lint`, `npm run typecheck`).
- Run story-specific `acceptanceCriteria` verification commands.
- For UI/Frontend stories:
  - Start/verify dev server.
  - Load `dev-browser` skill and verify UI functionality and rendering.
  - Confirm zero console errors.

### 5. Progress Logging & Commit
- Append run entry to `.ralph/progress.md` containing:
  - Story ID & Title
  - Files changed
  - Verification commands and results (PASS/FAIL)
  - Key learnings & gotchas for future iterations
- Update story `status` in PRD JSON to `"passed"`.
- Stage and commit changes atomically:
  `git add -A && git commit -m "feat({story_id}): {story_title}"`
- Output completion signal: `<promise>COMPLETE</promise>`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.