writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
ralphAutonomous PRD implementation loop — turns GitHub issues into shipped code using TDD, code review gates, and Docker sandbox isolation. The execution engine for the grill-me → write-a-prd → prd-to-issues → ralph pipeline.
Independent GitHub snapshot · Automated classification · Original documentation governs
RALPH (Repeated Autonomous Loop for PRD Handling) implements a PRD stored as GitHub issues — autonomously, with TDD, and a code review gate after every iteration.
This skill is the execution engine for a 4-step coding workflow:
| Step | Command | What It Does |
|---|---|---|
| 1 | /grill-me | Stress-test your idea with relentless questions before building |
| 2 | /write-a-prd | Turn the idea into an engineering spec (PRD) as a GitHub issue |
| 3 | /prd-to-issues | Break the PRD into vertical-slice sub-issues with dependencies |
| 4 | /ralph | Implement each sub-issue autonomously with TDD + code review |
Steps 1-3 use skills from Matt Pocock. Install them:
npx skills@latest add mattpocock/skills -s grill-me
npx skills@latest add mattpocock/skills -s write-a-prd
npx skills@latest add mattpocock/skills -s prd-to-issues
After installing this skill, copy the RALPH scripts to your project root:
mkdir -p ralph
cp .agents/skills/ralph/afk-ralph.sh ralph/
cp .agents/skills/ralph/ralph-once.sh ralph/
cp .agents/skills/ralph/prompt.md ralph/
cp .agents/skills/ralph/review-prompt.md ralph/
chmod +x ralph/*.sh
gh) — authenticated/ralph <issue-number> — Human-in-the-loop (start here)./ralph/ralph-once.sh 42
Implements one sub-issue from PRD #42, then stops for your review. Run again for the next one. Recommended for your first few iterations.
/ralph <issue-number> afk [max-iterations] — Autonomous./ralph/afk-ralph.sh 42 20
Runs up to 20 iterations inside a Docker sandbox. Each iteration: implement one sub-issue, run tests, commit, code review, close issue. When all sub-issues are done, pushes the branch and opens a PR.
When the user invokes this skill:
once or afk, default once), third is max iterations for afk mode (default 20)ralph/ directory exists at the project root. If not, guide the user through setup (copy scripts from .agents/skills/ralph/)once mode (default):
./ralph/ralph-once.sh <issue-number>
afk mode:
./ralph/afk-ralph.sh <issue-number> <max-iterations>
gh CLIParent PRD #<number> in their bodySub-issues created by /prd-to-issues follow this format:
## Parent PRD
#42
## What to build
Description of the work...
## Acceptance criteria
- [ ] Criterion 1
- [ ] Criterion 2
## Blocked by
- #43
/ralph (once mode). Validate the first iteration before going AFK./grill-me first. The more you think before coding, the better RALPH performs.