← Back to list

ralph-loop
by Nicolas0315
⭐ 0🍴 0📅 Jan 24, 2026
SKILL.md
name: ralph-loop description: Set up and run the Ralph Loop autonomous coding loop across Windows (WSL2), macOS, and Linux. Use when asked to install or configure ralph-loop, prepare prd.json/prompt/progress files, choose or explain an agent CLI command, or run looped development tasks (long-running/overnight/by-tomorrow, "run the loop", "loop through issues"). Also trigger for Japanese asks like "明日まで進めて", "ループで開発して", "長時間のタスクをこなして" or similar.
Ralph Loop
Overview
Use this skill to bootstrap and operate the ralph-loop bash automation that drives an AI coding agent over a backlog, from setup through long-running usage.
Workflow (Setup -> Run)
- Identify OS and environment:
- Windows: read
references/windows-wsl.md - macOS: read
references/macos.md - Linux: read
references/linux.md
- Confirm prerequisites:
- Project repo exists and has tests (or note missing tests).
gitis available.- The chosen agent CLI is installed and accepts stdin (see
references/agent-commands.md).
- Install or update ralph-loop:
- Prefer a
ralph-loop/folder at the project root. - If missing:
git clone https://github.com/syuya2036/ralph-loop.git ralph-loop - If present:
git -C ralph-loop pull --rebase
- Choose working branch:
- Default to the current branch; only create/switch branches if the user requests it.
- If the user says "main is fine", stay on
main.
- Prepare inputs:
- Edit
ralph-loop/prd.jsonto define user stories. - Tailor
ralph-loop/prompt.mdwith project context and any guardrails. - Reset or append
ralph-loop/progress.txtas needed.
Minimal prd.json template:
{
"branchName": "feat/your-branch",
"userStories": [
{
"id": "US-001",
"title": "Describe the first story",
"acceptanceCriteria": [
"Define clear pass conditions",
"Ensure tests or checks exist"
],
"priority": 1,
"passes": false,
"notes": ""
}
]
}
- Choose the agent command:
- Use a non-interactive mode so the loop can run unattended.
- If the agent does not accept stdin, create a wrapper script (see
references/agent-commands.md).
- Run the loop from the project root:
./ralph-loop/ralph.sh "<AGENT_CMD>" [MAX_ITERATIONS]
- Monitor and resume:
- Watch
ralph-loop/progress.txtandralph-loop/prd.jsonfor updates. - If the loop ends early, rerun with a higher max iteration count.
Guardrails
- Do not run the loop from inside
ralph-loop/; run from the project root. - Ensure
ralph.shis executable and has LF line endings. - If the agent command requires complex quoting, use a wrapper script.
- For long-running requests, prefer
tmux/screenornohupon macOS/Linux. - Do not delete or move files/directories unless explicitly required by the story.
- Avoid destructive git commands: no
git clean, nogit reset --hard, no mass-delete commands. - Avoid
git add -A; stage only the files you changed. - If the loop completes immediately and output includes the prompt, the agent is echoing stdin. Use a wrapper/quiet mode or adjust the completion check so prompt text does not trigger
<promise>COMPLETE</promise>.
Deliverables
When finishing a request, report:
- OS path used and how ralph-loop was installed/updated
- The chosen agent command and loop settings
- Any changes made to
prd.json,prompt.md, orprogress.txt - The branch used (confirm
mainif requested)
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon