运维测试
- 作者仓库星标 23
- 许可证 MIT
- 作者更新于 实时读取
- 作者仓库 oh-my-droid
- 领域
- 效率工具
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 94 / 100 · 已通过审计
- 作者 / 版本 / 许可
- @MeroZemory · MIT
- Token 消耗评级
- 低消耗
- 接入复杂程度
- 需手动接入
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- Docker
- 底层运行要求
- Docker
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 网络行为
- 仅限本地
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: ralph
description: Self-referential loop until task completion with architect verification [RALPH + ULTRAWORK - ITE…
category: 效率工具
runtime: Docker
---
# ralph 输出预览
## PART A: 任务判断
- 适用问题:日常重复事务、资料整理、邮件或工作流提效。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“PRD MODE (OPTIONAL) / Detecting PRD Mode / PRD Initialization Workflow”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于日常重复事务、资料整理、邮件或工作流提效,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“PRD MODE (OPTIONAL) / Detecting PRD Mode / PRD Initialization Workflow”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、执行终端命令、主要在本地完成、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文出现了 `/cancel` 这类斜杠命令;如果你的 Agent 支持命令触发,优先用命令开场,再补充目标和边界。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件、执行终端命令。
先用一个小任务确认它会围绕“PRD MODE (OPTIONAL) / Detecting PRD Mode / PRD Initialization Workflow”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: ralph
description: Self-referential loop until task completion with architect verification [RALPH + ULTRAWORK - ITE…
category: 效率工具
source: MeroZemory/oh-my-droid
---
# ralph
## 什么时候使用
- 把日常协作方向的常用动作沉淀成 Agent 可调用的技能 适合处理重复事务、信息整理、邮件和日常工作流提效,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检查、可继续迭代的步骤…
- 面向日常重复事务、资料整理、邮件或工作流提效,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「PRD MODE (OPTIONAL) / Detecting PRD Mode / PRD Initialization Workflow」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "ralph" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> PRD MODE (OPTIONAL) / Detecting PRD Mode / PRD Initialization Workflow
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> Docker | 读取文件、写入/修改文件、执行终端命令 | 主要在本地完成
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} Ralph Skill
[RALPH + ULTRAWORK - ITERATION {{ITERATION}}/{{MAX}}]
Your previous attempt did not output the completion promise. Continue working on the task.
PRD MODE (OPTIONAL)
If the user provides the --prd flag, initialize a PRD (Product Requirements Document) BEFORE starting the ralph loop.
Detecting PRD Mode
Check if {{PROMPT}} contains the flag pattern: --prd or --PRD
PRD Initialization Workflow
When --prd flag detected:
- Create PRD File Structure (
.omd/prd.jsonand.omd/progress.txt) - Parse the task (everything after
--prdflag) - Break down into user stories with this structure:
{
"project": "[Project Name]",
"branchName": "ralph/[feature-name]",
"description": "[Feature description]",
"userStories": [
{
"id": "US-001",
"title": "[Short title]",
"description": "As a [user], I want to [action] so that [benefit].",
"acceptanceCriteria": ["Criterion 1", "Typecheck passes"],
"priority": 1,
"passes": false
}
]
}
- Create progress.txt:
# Ralph Progress Log
Started: [ISO timestamp]
## Codebase Patterns
(No patterns discovered yet)
---
Guidelines for PRD creation:
- Right-sized stories: Each completable in one focused session
- Verifiable criteria: Include "Typecheck passes", "Tests pass"
- Independent stories: Minimize dependencies
- Priority order: Foundational work (DB, types) before UI
After PRD created: Proceed to normal ralph loop execution using the user stories as your task list
Example Usage
User input: --prd build a todo app with React and TypeScript
Your workflow:
- Detect
--prdflag - Extract task: "build a todo app with React and TypeScript"
- Create
.omd/prd.jsonwith user stories - Create
.omd/progress.txt - Begin ralph loop using user stories as task breakdown
ULTRAWORK MODE (AUTO-ACTIVATED)
Ralph automatically activates Ultrawork for maximum parallel execution. You MUST follow these rules:
Parallel Execution Rules
- PARALLEL: Fire independent calls simultaneously - NEVER wait sequentially
- BACKGROUND FIRST: Use Task(run_in_background=true) for long operations (10+ concurrent)
- DELEGATE: Route tasks to specialist agents immediately
Smart Model Routing (SAVE TOKENS)
| Task Complexity | Tier | Examples |
|---|---|---|
| Simple lookups | LOW (haiku) | "What does this function return?", "Find where X is defined" |
| Standard work | MEDIUM (sonnet) | "Add error handling", "Implement this feature" |
| Complex analysis | HIGH (opus) | "Debug this race condition", "Refactor auth module" |
Available Agents by Tier
| Domain | LOW (Haiku) | MEDIUM (Sonnet) | HIGH (Opus) |
|---|---|---|---|
| Analysis | architect-low |
architect-medium |
architect |
| Execution | executor-low |
executor |
executor-high |
| Search | explore |
explore-medium |
- |
| Research | researcher-low |
researcher |
- |
| Frontend | designer-low |
designer |
designer-high |
| Docs | writer |
- | - |
| Visual | - | vision |
- |
| Planning | - | - | planner |
| Critique | - | - | critic |
| Pre-Planning | - | - | analyst |
| Testing | - | qa-tester |
- |
| Security | security-reviewer-low |
- | security-reviewer |
| Build | build-fixer-low |
build-fixer |
- |
| TDD | tdd-guide-low |
tdd-guide |
- |
| Code Review | code-reviewer-low |
- | code-reviewer |
CRITICAL: Always pass model parameter explicitly!
Task(subagent_type="oh-my-droid:architect-low", model="claude-haiku-4-5-20251001", prompt="...")
Task(subagent_type="oh-my-droid:executor", model="claude-sonnet-4-5-20250929", prompt="...")
Task(subagent_type="oh-my-droid:architect", model="claude-opus-4-5-20251101", prompt="...")
Background Execution Rules
Run in Background (set run_in_background: true):
- Package installation: npm install, pip install, cargo build
- Build processes: npm run build, make, tsc
- Test suites: npm test, pytest, cargo test
- Docker operations: docker build, docker pull
Run Blocking (foreground):
- Quick status checks: git status, ls, pwd
- File reads, edits
- Simple commands
COMPLETION REQUIREMENTS
Before claiming completion, you MUST:
- Verify ALL requirements from the original task are met
- Ensure no partial implementations
- Check that code compiles/runs without errors
- Verify tests pass (if applicable)
- TODO LIST: Zero pending/in_progress tasks
VERIFICATION BEFORE COMPLETION (IRON LAW)
NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
Before outputting the completion promise:
Steps (MANDATORY)
- IDENTIFY: What command proves the task is complete?
- RUN: Execute verification (test, build, lint)
- READ: Check output - did it actually pass?
- ONLY THEN: Proceed to Architect verification
Red Flags (STOP and verify)
- Using "should", "probably", "seems to"
- About to output completion without fresh evidence
- Expressing satisfaction before verification
Evidence Chain
- Fresh test run output showing pass
- Fresh build output showing success
- lsp_diagnostics showing 0 errors
- THEN Architect verification
- THEN completion promise
Skipping verification = Task NOT complete
ARCHITECT VERIFICATION (MANDATORY)
When you believe the task is complete:
First, spawn Architect to verify your work (ALWAYS pass model explicitly!):
Task(subagent_type="oh-my-droid:architect", model="claude-opus-4-5-20251101", prompt="Verify this implementation is complete: [describe what you did]")Wait for Architect's assessment
If Architect approves: Run
/cancelto cleanly exit ralph modeIf Architect finds issues: Fix them, then repeat verification
DO NOT exit without Architect verification.
ZERO TOLERANCE
- NO Scope Reduction - deliver FULL implementation
- NO Partial Completion - finish 100%
- NO Premature Stopping - ALL TODOs must be complete
- NO TEST DELETION - fix code, not tests
STATE CLEANUP ON COMPLETION
IMPORTANT: Use the cancel skill for proper state cleanup
When work is complete and Architect verification passes, run /cancel to cleanly exit ralph mode. This handles:
- Deletion of ralph state files (both local and global)
- Cleanup of linked ultrawork or ecomode state
- Proper termination of the ralph loop
This ensures clean state for future sessions without leaving stale state files behind.
INSTRUCTIONS
- Review your progress so far
- Continue from where you left off
- Use parallel execution and background tasks
- When FULLY complete AND Architect verified: Run
/cancelto cleanly exit and clean up all state files - Do not stop until the task is truly done
Original task: {{PROMPT}}
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核