One-click install
npx skills add https://github.com/kamelmh/opencode --skill ralph-kamelmh
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ralph
Source: https://github.com/kamelmh/opencode/tree/main/skills/ralph
Command: npx skills add https://github.com/kamelmh/opencode --skill ralph-kamelmh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ralph eliminates the risk of “done-but-wrong” outcomes by repeatedly implementing work until every PRD user story is explicitly verified as passing, with a reviewer sign-off before completion.

Core Features & Use Cases

  • PRD-driven persistence loop: Maintains a structured prd.json of user stories and acceptance criteria, auto-scaffolding it when missing.
  • Story-by-story execution and tracking: Selects the next highest-priority story that has passes: false, updates progress.txt, and can add new stories when sub-tasks are discovered.
  • Tiered verification and mandatory reviewer approval: Re-validates each story’s acceptance criteria with fresh evidence and performs a completion approval pass using a configurable reviewer tier (architect, critic, or codex).
  • Deslop cleanup and regression re-verification: Runs an ai-slop-cleaner pass on the changed files (unless opted out) and then re-runs relevant tests/build checks to ensure nothing regresses.

Quick Start

Run ralph on your task so it iterates until all PRD stories pass and a reviewer verifies completion: ralph fix the TypeScript errors in the project.

Frequently Asked Questions about ralph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify acceptance criteria are met during iterative development?▼

A PRD-driven persistence loop verifies acceptance criteria by repeatedly implementing code until every user story passes. It tracks story priority, gathers fresh evidence for each criterion, and requires reviewer sign-off before completion to eliminate done-but-wrong outcomes.

What is the best way to prevent done-but-wrong code completion outcomes?▼

Preventing done-but-wrong outcomes requires mandatory reviewer approval passes using configurable tiers like architect, critic, or codex. A PRD-driven loop re-validates each story's acceptance criteria with fresh evidence before allowing completion sign-off.

Can I automate PRD scaffolding and refinement for multi-iteration engineering tasks?▼

Automating PRD scaffolding and refinement is possible by maintaining a structured prd.json of user stories and acceptance criteria. The system auto-scaffolds the PRD when missing and can add new stories dynamically when sub-tasks are discovered during execution.

How do I run cleanup and regression checks after code completion?▼

Running cleanup and regression checks involves executing an ai-slop-cleaner pass on changed files followed by relevant test or build checks. This ensures the cleanup process does not introduce regressions and maintains passing acceptance criteria.

How does multi-agent orchestration handle story-by-story execution and tracking?▼

Multi-agent orchestration handles story-by-story execution by selecting the next highest-priority user story with a false pass status, updating progress tracking, and iterating until all stories pass verification with reviewer sign-off.

When should I not use a PRD-driven verification loop for code completion?▼

A PRD-driven verification loop is not ideal for simple, single-pass tasks that lack defined acceptance criteria or user stories. It is designed for multi-iteration engineering tasks where partial failures require persistence and re-verification.