← Back to list

flow-next-ralph-init
by raydocs
⭐ 0🍴 0📅 Jan 24, 2026
SKILL.md
name: flow-next-ralph-init description: Scaffold repo-local Ralph autonomous harness under scripts/ralph/. Use when user runs /flow-next:ralph-init.
Ralph init
Scaffold repo-local Ralph harness. Opt-in only.
Rules
- Only create
scripts/ralph/in the current repo. - If
scripts/ralph/already exists, stop and ask the user to remove it first. - Copy templates from
templates/intoscripts/ralph/. - Copy
flowctlandflowctl.pyfrom$PLUGIN_ROOT/scripts/intoscripts/ralph/. - Set executable bit on
scripts/ralph/ralph.sh,scripts/ralph/ralph_once.sh, andscripts/ralph/flowctl.
Workflow
- Resolve repo root and plugin root:
ROOT="$(git rev-parse --show-toplevel)" PLUGIN_ROOT="$ROOT/plugins/flow-next" - Check
scripts/ralph/does not exist. - Detect available review backends:
HAVE_RP=0 if command -v rp-cli >/dev/null 2>&1; then HAVE_RP=1 elif [[ -x /opt/homebrew/bin/rp-cli || -x /usr/local/bin/rp-cli ]]; then HAVE_RP=1 fi
4. Determine review backend:
- If rp-cli available, ask user:
```
Which review backend?
a) OpenCode (GPT‑5.2 High)
b) RepoPrompt (macOS, visual builder)
(Reply: "a", "opencode", "b", "rp", or just tell me)
```
Wait for response. Default if empty/ambiguous: `opencode`
- If only rp-cli available and user chooses rp: use `rp`
- Otherwise: use `opencode`
- If neither available and user requests none: use `none`
5. Write `scripts/ralph/config.env` with:
- `PLAN_REVIEW=<chosen>` and `WORK_REVIEW=<chosen>`
- replace `{{PLAN_REVIEW}}` and `{{WORK_REVIEW}}` placeholders in the template
6. Copy templates and flowctl files.
7. Print next steps (run from terminal, NOT inside OpenCode):
- Edit `scripts/ralph/config.env` to customize settings
- `./scripts/ralph/ralph_once.sh` (one iteration, observe)
- `./scripts/ralph/ralph.sh` (full loop, AFK)
- Uninstall: `rm -rf scripts/ralph/`
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