Borrowing it
Nothing to install: this file belongs to argile-ai/claude-ralph-mode. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/argile-ai/claude-ralph-mode/main/.claude/commands/prd.mdgit clone --depth 1 https://github.com/argile-ai/claude-ralph-modeWrote 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.
[](https://agentmods.dev/commands/argile-ai/claude-ralph-mode/prd)<a href="https://agentmods.dev/commands/argile-ai/claude-ralph-mode/prd"><img src="https://agentmods.dev/badge/commands/argile-ai/claude-ralph-mode/prd/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/argile-ai/claude-ralph-mode/prd"><img src="https://agentmods.dev/badge/commands/argile-ai/claude-ralph-mode/prd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00861 |
| Opus 5.5 | $0.00000 | $0.00344 |
| Sonnet 5.5 | $0.00000 | $0.00172 |
| Haiku 4.5 | $0.00000 | $0.00086 |
Grade A, and why
prd 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PRD - Convert Plan to JSON
Convert a validated plan.md into an executable prd.json for Ralph.
The Job
- Read the plan from
plan.md - Read repository configuration from
ralph.config.json - Parse user stories and convert to JSON format
- Generate
prd.jsonwith proper structure - Display summary and next steps
Step 1: Validate Prerequisites
Check that these files exist:
plan.md- The implementation plan (generated by/ralph)ralph.config.json- Project configuration
If plan.md doesn't exist, instruct the user to run /ralph <feature> first.
Step 2: Parse Plan
Extract from plan.md:
- Project name (from H1 heading)
- Feature description (from intro paragraph)
- User stories (from ## User Stories section)
For each user story, extract:
- ID (US-001, US-002, etc.)
- Title
- Repository name
- Description
- Acceptance criteria (as array)
Step 3: Generate PRD JSON
Create prd.json with this structure:
{
"project": "[Project Name]",
"description": "[Feature Description]",
"repositories": {
"[repo-key]": {
"branchName": "feature/[feature-slug]"
}
},
"userStories": [
{
"id": "US-001",
"title": "[Story Title]",
"repo": "[repo-key]",
"description": "[Full description]",
"acceptanceCriteria": [
"Criterion 1",
"Criterion 2",
"Tests pass"
],
"priority": 1,
"passes": false,
"fork": false,
"notes": ""
}
]
}
Step 4: Repository Mapping
Map story repositories to config keys:
- Read
repositoriesfromralph.config.json - Match story repository names to config keys
- Use the repository path for execution
Example mapping:
- Story says
backend-> maps to config keybackend-> path./backend - Story says
frontend-> maps to config keyfrontend-> path./frontend
Step 5: Branch Naming
Generate branch names automatically:
- Convert feature name to kebab-case
- Prefix with
feature/ - Example: "User Authentication" ->
feature/user-authentication
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.
- 2mo ago First seen · 177 lines · 0 tokens per session scan A 22a6c7eb09c3
prd is a command published in the GitHub repository argile-ai/claude-ralph-mode (11 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 861 tokens. 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.
prd compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| prdargile-ai/claude-ralph-mode | Command | 11 | 9mo ago | MIT | A | 0 | Claude Code |
| checklistgithub/spec-kit | Command | 148k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 148k | today | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 148k | today | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 148k | today | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 148k | today | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 148k | today | MIT | A | 14 | Claude Code |