Skip to content
Back to skills

Ralph

ASecurity

Convert PRD to prd.json for Ralph autonomous agent loop. Triggers: convert prd, ralph json, create prd.json, start ralph.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
data-aigobashdatabasebackend

Works with

  • claude code

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add SkyWalker2506/claude-config --skill ralph --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ralph?

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

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

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
description: "Convert PRD to prd.json for Ralph autonomous agent loop. Triggers: convert prd, ralph json, create prd.json, start ralph."
user-invocable: true
---

# Ralph PRD Converter

Converts PRD markdown to `prd.json` for autonomous execution.

## Output Format

```json
{
  "project": "[Project Name]",
  "branchName": "ralph/[feature-kebab-case]",
  "description": "[Feature description]",
  "userStories": [
    {
      "id": "US-001",
      "title": "[Title]",
      "description": "As a [user], I want [feature] so that [benefit]",
      "acceptanceCriteria": ["Criterion 1", "Typecheck passes"],
      "priority": 1,
      "passes": false,
      "notes": ""
    }
  ]
}
```

## Story Size Rule

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

Right-sized: add a DB column, add a UI component, update server action.
Too big: "build entire dashboard" — split into schema, queries, UI, filters.

## Story Order: Dependencies First

1. Schema/database (migrations)
2. Backend logic
3. UI components
4. Dashboard/summary views

## Acceptance Criteria

Must be verifiable. Always include `"Typecheck passes"`. UI stories add `"Verify in browser"`.

Bad: "Works correctly". Good: "Filter dropdown has options: All, Active, Completed".

## Conversion Rules

1. Each user story → one JSON entry
2. IDs: sequential US-001, US-002...
3. Priority: dependency order
4. All stories: `passes: false`, empty `notes`
5. branchName: `ralph/[feature-kebab-case]`

## Running Ralph

After creating prd.json, run from project directory:
```bash
~/Projects/claude-config/projects/scripts/ralph.sh [max_iterations]
```

Default: 10 iterations. Each iteration spawns fresh Claude Code instance.

## Archive

If prd.json exists with different branchName, archive first:
- Copy current prd.json + progress.txt to `archive/YYYY-MM-DD-feature/`
- ralph.sh handles this automatically

## When NOT to Use
- Tek satirlik basit soru/cevap ise
- Skill'in scope'u disindaysa
- Riskli/destructive is ise (ayri onay gerekir)

## Red Flags
- Belirsiz hedef/kabul kriteri
- Gerekli dosya/izin/secret eksik
- Ayni adim 2+ kez tekrarlandi

## Error Handling
- Gerekli kaynak yoksa → dur, blocker'i raporla
- Komut/akıs hatasi → en yakin guvenli noktadan devam et
- 3 basarisiz deneme → daha uygun skill/agent'a yonlendir

## Verification
- [ ] Beklenen cikti uretildi
- [ ] Yan etki yok (dosya/ayar)
- [ ] Gerekli log/rapor paylasildi

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.

Comments

Loading comments…

Newsletter

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