用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Changhochien/oh-my-pi --skill ralph命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | ralph |
| description | Persistence loop until task completion. Use when work must be verified complete. |
| argument-hint | <task description> |
| level | 4 |
Keep working until ALL acceptance criteria are verified. PRD-driven persistence loop.
/skill:ralph "fix all TypeScript errors"
/skill:ralph "implement user authentication"
/skill:ralph "complete the API endpoints"
RALPH ITERATION 1/10
↓
Create/Read PRD (prd.json)
↓
Pick next incomplete story
↓
Implement + Verify
↓
Story passes? → Mark complete → Next story?
↓
No → Fix → Re-verify → Loop
↓
All stories pass → Architect verification → Done
Create .omp/prd.json:
{
"title": "Implement user authentication",
"stories": [
{
"id": "AUTH-001",
"description": "User can register",
"acceptance_criteria": [
"POST /auth/register accepts email/password",
"Password is hashed with bcrypt",
"Returns JWT token",
"Validates email format",
"Returns 400 for invalid input"
],
"passes": false
},
{
"id": "AUTH-002",
"description": "User can login",
"acceptance_criteria": [
"POST /auth/login accepts valid credentials",
"Returns JWT token",
"Returns 401 for invalid credentials"
],
"passes": false
}
]
}
{
"active": true,
"iteration": 1,
"max_iterations": 10,
"started_at": "2024-01-15T10:00:00Z",
"current_phase": "implementing",
"current_story": "AUTH-001"
}
Read prd.json, find first story with "passes": false.
Delegate to executor:
Task(subagent_type="oh-my-pi:executor", model="sonnet", prompt="Implement AUTH-001: User registration per acceptance criteria")
For each acceptance criterion:
When ALL criteria pass:
{
"id": "AUTH-001",
"passes": true,
"verified_at": "2024-01-15T10:30:00Z",
"evidence": ["tests pass", "verified manually"]
}
Read prd.json:
passes: true? → Go to Step 7Task(subagent_type="oh-my-pi:architect", model="opus", prompt="Review implementation against acceptance criteria")
If approved → Complete If rejected → Fix and re-verify
// Wrong - no verification
"Implementation complete, should work correctly"
// Right - actual verification
"Test results: 12/12 pass"
"Verified: POST /auth/register with valid input returns 200 + JWT"
Update .omp/state/ralph-progress.json:
{
"active": true,
"iteration": 2,
"current_story": "AUTH-002",
"completed_stories": ["AUTH-001"],
"pending_stories": ["AUTH-002", "AUTH-003"],
"errors_encountered": [],
"iterations_with_no_progress": 0
}
passes: true/skill:cancel
Stops ralph and cleans up state.
基于 SOC 职业分类