ralph

ralph is a skill for Claude Code, Codex from naimkatiman/continuous-improvement. It costs 66 tokens per session (2,022 once invoked), scanned A, original, MIT.

An autonomous agent loop that repeatedly selects and implements stories from a product requirements document (PRD), a written list of feature requirements.

In plain words
What is it for?
Use it for large Git-based projects with a PRD containing several stories that need implementation, quality checks, commits, and progress updates.
Why use it?
It carries multi-story development across repeated iterations, interruptions, and context limits while tracking progress and running checks.

Skill for Claude CodeCodex

Part of the continuous-improvement plugin — 28 skills, 6 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/naimkatiman/continuous-improvement/ralph
Any agent
npx skills add naimkatiman/continuous-improvement --skill ralph
Clone the repo
git clone --depth 1 https://github.com/naimkatiman/continuous-improvement

Made for: Claude Code, Codex.

Or install continuous-improvement, the plugin that ships this one along with the rest of its 28 skills, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ralph

README.md
[![agentmods](https://agentmods.dev/badge/skills/naimkatiman/continuous-improvement/ralph.svg)](https://agentmods.dev/skills/naimkatiman/continuous-improvement/ralph)
Your own site
<a href="https://agentmods.dev/skills/naimkatiman/continuous-improvement/ralph"><img src="https://agentmods.dev/badge/skills/naimkatiman/continuous-improvement/ralph.svg" alt="Measured on agentmods" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,022 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00066 $0.02022
Opus 5 $0.00033 $0.01011
Sonnet 5 $0.00013 $0.00404
Haiku 4.5 $0.00007 $0.00202

Measured 5d ago against content hash ab334428065c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ralph scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/continuous-improvement/skills/ralph/SKILL.md · 223 lines

How it starts

The opening of the file, as written. The whole thing — 223 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ralph — Autonomous Agent Loop

Ralph runs iteratively until all PRD stories are complete. Each iteration: picks highest priority story, implements, runs quality checks, commits if passing, updates progress, repeats.

When to Use

  • Large features that exceed a single context window
  • Multi-story PRDs that need consistent implementation
  • Tasks requiring repeated verification and commit cycles
  • Long-running development that benefits from persistence across interruptions

Do NOT Use When

  • Task is a one-shot fix completable in a single edit — just edit the file
  • You haven't written a PRD yet — write the PRD first, then run Ralph against it
  • The work spans fewer than 3 stories — single-iteration verification is enough
  • You need to explore or plan before committing to scope — use a planning skill first; Ralph is for execution, not discovery
  • You want manual control over each iteration — run quality checks yourself, no need for Ralph's loop

Prerequisites

  • Git repository
  • PRD document (markdown format)
  • jq installed (brew install jq on macOS)

Workflow

1. Create a PRD

Generate a detailed requirements document using the PRD skill:

Load the prd skill and create a PRD for [your feature description]

Output saved to tasks/prd-[feature-name].md

CRITICAL — refine generic criteria before iteration begins. Auto-generated PRD scaffolds often produce generic acceptance criteria like ["Implementation is complete", "Code compiles without errors"]. These are theater — Ralph cannot prove a story passes against criteria that don't actually constrain it. Replace every generic criterion with a concrete, testable statement before moving to step 2.

  • Bad: "Function is implemented correctly"
  • Good: "Function parseUserInput(s) returns {ok: true, value} for valid s and {ok: false, error} for invalid s, asserted by tests/parse-user-input.test.ts"
  • Bad: "Code compiles"
  • Good: "TypeScript compiles with no errors (npm run build) AND lsp diagnostics show 0 errors on src/parse-user-input.ts"

Read the full file on GitHub · 223 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 223 lines · 66 tokens per session scan A ab334428065c

Subscribe to this mod's changes

ralph is a skill published in the GitHub repository naimkatiman/continuous-improvement (7 stars, last pushed 10d ago), licensed MIT. It adds 66 tokens to every session and 2,022 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

dummy-dataset

Generate realistic dummy datasets for testing with customizable columns, constraints, and output formats (CSV, JSON, SQL, Python script). Use when creating test data, building mock datasets, or generating sample data for development and demos.

phuryn/pm-skills · 48 tokens

top-design

Create award-winning, immersive web experiences at the level of Awwwards-featured agencies. Use when the user mentions "Awwwards quality", "make my site stunning", "scroll animations", "parallax storytelling", "cinematic web design", "portfolio site", or "brand experience". Also trigger when elevating a standard…

wondelai/skills · 113 tokens

traction-eos

Implement the Entrepreneurial Operating System (EOS) to align vision and execution across a company. Use when the user mentions "EOS", "Entrepreneurial Operating System", "V/TO", "quarterly rocks", "Level 10 meetings", "accountability chart", "IDS process", "my company feels chaotic", "we keep having the same…

wondelai/skills · 147 tokens

stakeholder-map

Build a stakeholder map using a power/interest grid, identify communication strategies per quadrant, and generate a communication plan. Use when managing stakeholders, preparing for a launch, aligning cross-functional teams, or planning stakeholder engagement.

phuryn/pm-skills · 47 tokens

competitive-battlecard

Create sales-ready competitive battlecards comparing your product against a specific competitor — positioning, feature comparison, objection handling, and win/loss patterns. Use when preparing sales teams, creating competitive materials, or responding to 'why not competitor X?'.

phuryn/pm-skills · 52 tokens

create-app

Guided journey from a raw app idea to a validated, cleanly architected first version that ships on a sustainable cadence. Orchestrates ten skills phase by phase - lean-startup, design-sprint, clean-architecture, domain-driven-design, clean-code, pragmatic-programmer, system-design, ios-hig-design, 37signals-way…

wondelai/skills · 217 tokens