一键导入
ralph
Persistence loop until task completion with verification
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Persistence loop until task completion with verification
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Token-efficient execution modifier with budget-aware routing
Kimi-native team worker protocol (ACK, mailbox, task lifecycle)
Architecture planning and plan approval workflow
Parallel agent execution via Kimi-native multi-worker runtime
Full autonomous execution from idea to working code
Stateful validator-gated research loop with native-hook persistence
| name | ralph |
| description | Persistence loop until task completion with verification |
| trigger | $ralph |
| flags | [{"name":"--prd","description":"Reference an approved PRD file for guidance"},{"name":"--verbose","description":"Print detailed progress at each iteration"}] |
| phases | ["starting","executing","verifying","fixing","completing","cancelled"] |
| gates | [{"type":"prompt_specificity","description":"Task description must be at least 10 characters","blocking":true}] |
Guaranteed task completion through persistent iteration and mandatory verification.
Trigger: $ralph <task> or $ralph "continue"
The task is not complete until verification proves it.
.omk/plans/.omk/context/while not complete:
1. Assess progress
2. Delegate parallel tasks using Agent tool
3. Run long operations in background
4. Verify results
5. Update TODO list
Before claiming completion, you MUST submit evidence via MCP tools:
Submit Test Evidence:
After running npm test, call:
omk_submit_evidence({skill:"ralph", step:"tests_passed", phase:"verifying", evidenceType:"command_output", command:"npm test", output:"<test output>", exitCode:0})
Submit Build Evidence:
After running npm run build, call:
omk_submit_evidence({skill:"ralph", step:"build_passed", phase:"verifying", evidenceType:"command_output", command:"npm run build", output:"<build output>", exitCode:0})
Submit Lint Evidence:
After running npm run lint, call:
omk_submit_evidence({skill:"ralph", step:"lint_clean", phase:"verifying", evidenceType:"command_output", command:"npm run lint", output:"<lint output>", exitCode:0})
Submit Type Evidence:
After running tsc --noEmit, call:
omk_submit_evidence({skill:"ralph", step:"types_clean", phase:"verifying", evidenceType:"command_output", command:"tsc --noEmit", output:"<tsc output>", exitCode:0})
Check Required Evidence: Before advancing phase, verify all evidence is present:
omk_list_required_evidence({skill:"ralph", phase:"verifying"})
TODO Check:
Architect Review:
architect subagentomk_submit_evidence({skill:"ralph", step:"architect_approved", phase:"completing", evidenceType:"review_signature", reviewerAgent:"architect", reviewResult:"approved"})
omk_submit_evidence({skill:"ralph", step:"diff_recorded", phase:"completing", evidenceType:"diff_record", filesModified:["src/foo.ts"], linesAdded:10, linesRemoved:2})
omk_assert_phase({skill:"ralph", phase:"completed"}) to confirm transition is allowed$cancel to clean uprun_in_background: true for builds/testsralph-state.json with phase "executing", iteration: 1Use TODO list to track:
[ ] Task 1
[ ] Task 2
[x] Task 3 (completed)
Use Kimi's Agent tool:
Agent(description="Implement auth module", prompt="...")
Agent(description="Write tests", prompt="...", run_in_background=true)
Agent(description="Review code", prompt="...")
Basic Execution:
$ralph "implement user login"
→ Load approved plan
→ Delegate implementation to coder subagent
→ Delegate tests to test-engineer subagent
→ Collect results
→ Run verification
→ Report completion
Resume After Interruption:
$ralph "continue"
→ Read current state
→ Identify incomplete tasks
→ Continue from where we left off
→ Complete and verify
With PRD:
$ralph --prd "build the authentication system"
→ Check for prd-authentication.md
→ Follow the approved plan
→ Verify each milestone
→ Complete when all user stories pass