ralph-init
Initialize Ralph in the current project. Use after /prd and /ralph to set up the autonomous loop scripts. Triggers on: initialize ralph, setup ralph, ralph init, add ralph to project.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Ralph Project Initializer
Set up Ralph scripts in the current project directory so you can run the autonomous agent loop.
The Job
- Create the
scripts/ralph/directory in the current project - Copy
ralph.shandprompt.mdfrom~/Documents/Projects/ralph-claude/ - Make
ralph.shexecutable - Confirm setup is complete
Prerequisites
Before running /ralph-init, you should have:
- Generated a PRD with
/prd(saved totasks/prd-*.md) - Converted it to prd.json with
/ralph(createsscripts/ralph/prd.json)
What Gets Created
your-project/
scripts/
ralph/
ralph.sh # The iteration loop script
prompt.md # Instructions for each Claude Code iteration
prd.json # Your user stories (created by /ralph)
progress.txt # Created automatically on first run
Steps to Execute
When this skill is invoked:
# 1. Create the scripts/ralph directory
mkdir -p scripts/ralph
# 2. Copy the core files
cp ~/Documents/Projects/ralph-claude/ralph.sh scripts/ralph/
cp ~/Documents/Projects/ralph-claude/prompt.md scripts/ralph/
# 3. Make ralph.sh executable
chmod +x scripts/ralph/ralph.sh
After Initialization
Tell the user:
- Move their
prd.jsontoscripts/ralph/if it isn't there already - Run the autonomous loop:
./scripts/ralph/ralph.sh 10 - Monitor progress in
scripts/ralph/progress.txt
Example Output
After successful initialization, respond:
Ralph initialized in scripts/ralph/
Next steps:
1. Ensure prd.json is in scripts/ralph/
2. Run: ./scripts/ralph/ralph.sh 10
The script will iterate until all user stories pass or max iterations reached.
Notes
- The ralph.sh script uses Claude Code CLI (
claude --dangerously-skip-permissions) - Each iteration spawns a fresh Claude Code instance
- Progress and learnings are persisted in
progress.txt - Completed stories are tracked in
prd.jsonwithpasses: true
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!