ralph

ralph is a skill for Claude Code, Codex from mifunedev/openharness. It costs 64 tokens per session (2,197 once invoked), scanned A, original, Apache-2.0.

A converter that turns a product requirements document, or PRD, into the JSON format used by the Ralph autonomous coding system. The document describes the work to be done, while the JSON supplies Ralph with structured execution details.

In plain words
What is it for?
Use it to create a prd.json file from an existing prd.md file, including the related GitHub issue and branch details.
Why use it?
It avoids manually copying requirements into a format the coding system can read. It also enforces the issue number and branch naming information needed by the workflow.

Skill for Claude CodeCodex

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/mifunedev/openharness/ralph
Any agent
npx skills add mifunedev/openharness --skill ralph
Clone the repo
git clone --depth 1 https://github.com/mifunedev/openharness

Made for: Claude Code, Codex.

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/mifunedev/openharness/ralph.svg)](https://agentmods.dev/skills/mifunedev/openharness/ralph)
Your own site
<a href="https://agentmods.dev/skills/mifunedev/openharness/ralph"><img src="https://agentmods.dev/badge/skills/mifunedev/openharness/ralph.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,197 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.00064 $0.02197
Opus 5 $0.00032 $0.01099
Sonnet 5 $0.00013 $0.00439
Haiku 4.5 $0.00006 $0.00220

Measured 4d ago against content hash 5afa8b7f5567, 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 4d 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.

.oh/skills/ralph/SKILL.md · 302 lines

How it starts

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

Ralph PRD Converter

Converts existing PRDs to the prd.json format that Ralph uses for autonomous execution.


The Job

Convert .oh/tasks/<short-desc>/prd.md to .oh/tasks/<short-desc>/prd.json in the same folder.

Required arguments:

  • Folder path (positional, e.g. .oh/tasks/install-prereq-detection/). The folder name is <short-desc>.
  • --issue <N> — GitHub issue number this PRD addresses. Required. The branch name embeds this.
  • --prefix <type> — branch prefix per .claude/skills/git/SKILL.md. One of feat | bug | task | audit | skill | agent. Default: feat.

branchName in the produced JSON follows .claude/skills/git/SKILL.md:

<prefix>/<issue#>-<short-desc>

Example: folder .oh/tasks/install-prereq-detection/ + --issue 175 + --prefix taskbranchName: "task/175-install-prereq-detection".

If --issue is missing, hard-fail with: "issue number required — open the GitHub issue first per .claude/skills/git/SKILL.md and re-run with --issue <N>." This matches the project's "issue first, then branch" workflow.

The folder name IS the feature name — do not re-derive it from branchName or anywhere else.


Output Format

{
    "schemaVersion": 1,
    "project": "[Project Name]",
    "branchName": "<prefix>/<issue#>-<short-desc>",
    "description": "[Feature description from PRD title/intro]",
    "userStories": [
        {
            "id": "US-001",
            "title": "[Story title]",
            "description": "As a [user], I want [feature] so that [benefit]",
            "acceptanceCriteria": [
                "Criterion 1",
                "Criterion 2",
                "Typecheck passes"
            ],
            "priority": 1,
            "passes": false,
            "notes": ""
        }
    ]
}

Story Size: The Number One Rule

Each story must be completable in ONE Ralph iteration (one context window).

Ralph spawns a fresh Amp instance per iteration with no memory of previous work. If a story is too big, the LLM runs out of context before finishing and produces broken code.

Read the full file on GitHub · 302 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. 4d ago First seen · 302 lines · 64 tokens per session scan A 5afa8b7f5567

Subscribe to this mod's changes

ralph is a skill published in the GitHub repository mifunedev/openharness (36 stars, last pushed 4d ago), licensed Apache-2.0. It adds 64 tokens to every session and 2,197 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-30.

Related

Other skills, from other repositories

data-visualization

Use for creating publication-quality charts and multi-panel analysis summaries. Triggers when tasks involve visualizing data, plotting results, creating charts, or producing visual reports from analysis output.

langchain-ai/deepagents · 40 tokens

cuml-machine-learning

Use for GPU-accelerated machine learning on tabular data using NVIDIA cuML. Triggers when tasks involve classification, regression, clustering, dimensionality reduction, or model training on datasets.

langchain-ai/deepagents · 43 tokens

blog-post

Writes and structures long-form blog posts, creates tutorial outlines, and optimizes content for SEO with cover image generation. Use when the user asks to write a blog post, article, how-to guide, tutorial, technical writeup, thought leadership piece, or long-form content.

langchain-ai/deepagents · 58 tokens

social-media

Drafts engaging social media posts, writes hooks, suggests hashtags, creates thread structures, and generates companion images. Use when the user asks to write a LinkedIn post, tweet, Twitter/X thread, social media caption, social post, or repurpose content for social platforms.

langchain-ai/deepagents · 58 tokens

remember

Review the current conversation and capture valuable knowledge — best practices, coding conventions, architecture decisions, workflows, and user feedback — into persistent memory (AGENTS.md) or reusable skills. Use when the user says: (1) remember this, (2) save what we learned, (3) update memory, (4) capture…

langchain-ai/deepagents · 71 tokens

textual-screenshot

Capture a Textual terminal UI as an SVG using its headless test harness. Use when asked to make, attach, or preview a screenshot of deepagents-code/dcode or another Textual app, visually verify a TUI state, or render a modal, screen, or widget without a desktop or browser.

langchain-ai/deepagents · 67 tokens