npx skills add https://github.com/boshu2/agentops --skill rpi快速参考: 一条命令,完整生命周期。
/discovery→/crank→/validation。一个委托给各阶段编排器的轻量包装器。
你必须执行此工作流。不要仅仅描述它。
三阶段规则 + 完全自主。 阅读 references/autonomous-execution.md — 它定义了强制性的三阶段生命周期、自主执行规则、反模式以及阶段完成日志记录。除非设置了 --interactive,否则 RPI 将自动运行。不要在阶段 2 后停止。 不要在阶段之间询问用户任何事情。
/rpi "add user authentication" # 完整生命周期
/rpi --interactive "add user authentication" # 仅在发现阶段设置人工关卡
/rpi --from=discovery "add auth" # 从发现阶段恢复
/rpi --from=implementation ag-23k # 使用现有史诗直接跳到执行阶段
/rpi --from=validation # 仅运行验证阶段
/rpi --loop --max-cycles=3 "add auth" # 失败后迭代循环
/rpi --deep "refactor payment module" # 强制完整评审会仪式
/rpi --fast-path "fix typo in readme" # 强制轻量级仪式
/rpi --no-test-first "add auth" # 选择退出严格质量要求
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
/rpi <goal | epic-id> [--from=<phase>] [--interactive] [--deep|--fast-path]
│
├── 步骤 0: 设置 + 复杂度分类
│
├── 阶段 1: /discovery <goal>
│ └── 头脑风暴 → ao 搜索 → 研究 → 计划 → 事前剖析 (关卡)
│ └── 输出: epic-id, execution-packet.json
│
├── 阶段 2: /crank <epic-id>
│ └── 基于波次的实现 + 验证 + 返工
│ └── 关卡: DONE → 继续, BLOCKED/PARTIAL → 重试 (最多 3 次)
│
└── 阶段 3: /validation <epic-id>
└── 氛围检查 → 事后剖析 → 回顾 → 锻造
└── 关卡: PASS/WARN → 完成, FAIL → 重新执行 (最多 3 次)
阶段编排器负责所有子技能的顺序、重试关卡和阶段预算。 /rpi 仅负责:设置、复杂度分类、阶段路由、实现关卡、验证失败回退到执行阶段的循环以及最终报告。
mkdir -p .agents/rpi
确定起始阶段:
discovery--from=implementation (别名: crank) → 跳到阶段 2--from=validation (别名: vibe, post-mortem) → 跳到阶段 3research, plan, pre-mortem, brainstorm 映射到 discoveryag-*) 且未设置 --from,则从实现阶段开始。分类复杂度:
| 级别 | 标准 | 行为 |
|---|---|---|
fast | 目标 <=30 字符,无复杂/范围关键词 | 发现 → 仅执行。跳过验证。 |
standard | 目标 31-120 字符,或包含 1 个范围关键词 | 完整 3 阶段。关卡使用 --quick。 |
full | 包含复杂操作关键词、2+ 个范围关键词,或 >120 字符 | 完整 3 阶段。关卡使用完整评审会。 |
复杂操作关键词: refactor, migrate, migration, rewrite, redesign, rearchitect, overhaul, restructure, reorganize, decouple, deprecate, split, extract module, port
范围关键词: all, entire, across, everywhere, every file, every module, system-wide, global, throughout, codebase
覆盖: --deep 强制为 full。--fast-path 强制为 fast。
日志:
RPI mode: rpi-phased (complexity: <level>)
初始化状态:
rpi_state = {
goal: "<goal string>",
epic_id: null,
phase: "<discovery|implementation|validation>",
complexity: "<fast|standard|full>",
test_first: <true by default; false only when --no-test-first>,
cycle: 1,
max_cycles: <3 when --loop; overridden by --max-cycles>,
verdicts: {}
}
委托给 /discovery:
Skill(skill="discovery", args="<goal> [--interactive] --complexity=<level>")
在 /discovery 完成后:
<promise>DONE</promise> 或 <promise>BLOCKED</promise>.agents/rpi/execution-packet.json 中提取 epic-idrpi_state.epic_id 和 rpi_state.verdicts.pre_mortemPHASE 1 COMPLETE ✓ (discovery) — proceeding to Phase 2需要 rpi_state.epic_id。
Skill(skill="crank", args="<epic-id> [--test-first] [--no-test-first]")
实现关卡(最多 3 次尝试):
<promise>DONE</promise>: 进入验证阶段<promise>BLOCKED</promise>: 携带阻塞上下文重试(最多 2 次重试)
/crank<promise>PARTIAL</promise>: 重试剩余部分(最多 2 次重试)
/crank(会处理未关闭的问题)记录:
ao ratchet record implement 2>/dev/null || true
日志:PHASE 2 COMPLETE ✓ (implementation) — proceeding to Phase 3
不要在此停止。 不要要求用户提交。不要总结并等待。立即进入阶段 3。没有验证的实现是不完整的工作 — 飞轮不会转动,经验教训不会被捕获,质量也未经验证。
跳过条件: 复杂度 == fast(快速路径仅运行发现 + 执行)。
对于 standard 和 full 复杂度是强制的。 这不是可选的。/validation 是阶段 3 的编排器 — 它包装了 /vibe + /post-mortem + /retro + /forge。不要从 /rpi 直接调用 /vibe — 调用 /validation,它处理完整的序列。
Skill(skill="validation", args="<epic-id> --complexity=<level>")
验证到执行的循环(最多 3 次总尝试):
<promise>DONE</promise>: 完成 RPI<promise>FAIL</promise>: 氛围检查发现缺陷
/crank(保留原始调用中的 --test-first / --no-test-first)/validation记录:
ao ratchet record vibe 2>/dev/null || true
日志:PHASE 3 COMPLETE ✓ (validation) — RPI DONE
报告: 总结所有阶段的裁决和史诗状态。
可选循环 (--loop): 如果验证裁决为 FAIL 且 cycle < max_cycles:
rpi_state.cycle/rpi可选生成后续任务 (--spawn-next): 在 PASS/WARN 完成后:
.agents/rpi/next-work.jsonl 获取收集的后续工作项/rpi 命令完整输出格式请阅读 references/report-template.md。失败语义请阅读 references/error-handling.md。
| 标志 | 默认值 | 描述 |
|---|---|---|
--from=<phase> | discovery | 从 discovery、implementation 或 validation 开始 |
--interactive | 关闭 | 在发现阶段设置人工关卡 |
--auto | 开启 | 完全自主(无人工关卡)。与 --interactive 相反。传递给 /discovery 和 /plan。 |
--loop | 关闭 | 事后剖析 FAIL 触发新循环 |
--max-cycles=<n> | 3 | 启用 --loop 时的最大循环次数(默认 3) |
--spawn-next | 关闭 | 完成后展示后续工作 |
--test-first | 开启 | 严格质量要求(传递给 /crank) |
--no-test-first | 关闭 | 选择退出严格质量要求 |
--fast-path | 自动 | 强制快速复杂度 |
--deep | 自动 | 强制完整复杂度 |
--dry-run | 关闭 | 报告但不修改队列 |
--no-budget | 关闭 | 禁用阶段时间预算(传递给阶段技能) |
所有转换都使用文件系统工件(无内存耦合)。执行包 (.agents/rpi/execution-packet.json) 在各阶段之间传递 contract_surfaces(仓库执行配置文件)、done_criteria 以及队列声明/完成元数据。子技能包括 /plan、/vibe、/post-mortem 和 /pre-mortem。详细的契约模式请阅读 references/phase-data-contracts.md。
complexity == "low" 或 complexity == "fast": 内联审查,不生成子任务 (--quick)complexity == "medium" 或 complexity == "standard": 内联快速默认 (--quick)complexity == "high" 或 complexity == "full": 完整评审会,至少 2 名评审员;重试关卡:最多 3 次总尝试complexity == "low" 或 complexity == "fast": 内联审查,不生成子任务 (--quick)complexity == "medium" 或 complexity == "standard": 内联快速默认 (--quick)complexity == "high" 或 complexity == "full": 完整评审会,至少 2 名评审员;重试关卡:最多 3 次总尝试complexity == "low" 或 complexity == "fast": 内联审查,不生成子任务 (--quick)complexity == "medium" 或 complexity == "standard": 内联快速默认 (--quick)complexity == "high" 或 complexity == "full": 完整评审会,至少 2 名评审员;重试关卡:最多 3 次总尝试完整生命周期、恢复和交互式示例请阅读 references/examples.md。
常见问题及解决方案请阅读 references/troubleshooting.md。
另请参阅: discovery, crank, validation
每周安装数
269
代码仓库
GitHub 星标数
220
首次出现
2026年2月9日
安全审计
安装于
opencode267
gemini-cli262
github-copilot262
codex262
cursor258
amp257
Quick Ref: One command, full lifecycle.
/discovery→/crank→/validation. Thin wrapper that delegates to phase orchestrators.
YOU MUST EXECUTE THIS WORKFLOW. Do not just describe it.
THREE-PHASE RULE + FULLY AUTONOMOUS. Read references/autonomous-execution.md — it defines the mandatory 3-phase lifecycle, autonomous execution rules, anti-patterns, and phase completion logging. Unless --interactive is set, RPI runs hands-free. Do NOT stop after Phase 2. Do NOT ask the user anything between phases.
/rpi "add user authentication" # full lifecycle
/rpi --interactive "add user authentication" # human gates in discovery only
/rpi --from=discovery "add auth" # resume discovery
/rpi --from=implementation ag-23k # skip to crank with existing epic
/rpi --from=validation # run validation only
/rpi --loop --max-cycles=3 "add auth" # iterate-on-fail loop
/rpi --deep "refactor payment module" # force full council ceremony
/rpi --fast-path "fix typo in readme" # force lightweight ceremony
/rpi --no-test-first "add auth" # opt out of strict-quality
/rpi <goal | epic-id> [--from=<phase>] [--interactive] [--deep|--fast-path]
│
├── Step 0: Setup + complexity classification
│
├── Phase 1: /discovery <goal>
│ └── brainstorm → ao search → research → plan → pre-mortem (gate)
│ └── Outputs: epic-id, execution-packet.json
│
├── Phase 2: /crank <epic-id>
│ └── wave-based implementation + validation + rework
│ └── Gate: DONE → proceed, BLOCKED/PARTIAL → retry (max 3)
│
└── Phase 3: /validation <epic-id>
└── vibe → post-mortem → retro → forge
└── Gate: PASS/WARN → finish, FAIL → re-crank (max 3)
Phase orchestrators own all sub-skill sequencing, retry gates, and phase budgets. /rpi owns only: setup, complexity classification, phase routing, implementation gate, validation-fail-to-crank loop, and final report.
mkdir -p .agents/rpi
Determine starting phase:
discovery--from=implementation (aliases: crank) → skip to Phase 2--from=validation (aliases: vibe, post-mortem) → skip to Phase 3research, plan, pre-mortem, brainstorm map to discoveryClassify complexity:
| Level | Criteria | Behavior |
|---|---|---|
fast | Goal <=30 chars, no complex/scope keywords | Discovery → crank only. Skip validation. |
standard | Goal 31-120 chars, or 1 scope keyword | Full 3-phase. Gates use --quick. |
full | Complex-operation keyword, 2+ scope keywords, or >120 chars | Full 3-phase. Gates use full council. |
Complex-operation keywords: refactor, migrate, migration, rewrite, redesign, rearchitect, overhaul, restructure, reorganize, decouple, deprecate, split, ,
Scope keywords: all, entire, across, everywhere, every file, every module, system-wide, global, throughout, codebase
Overrides: --deep forces full. --fast-path forces fast.
Log:
RPI mode: rpi-phased (complexity: <level>)
Initialize state:
rpi_state = {
goal: "<goal string>",
epic_id: null,
phase: "<discovery|implementation|validation>",
complexity: "<fast|standard|full>",
test_first: <true by default; false only when --no-test-first>,
cycle: 1,
max_cycles: <3 when --loop; overridden by --max-cycles>,
verdicts: {}
}
Delegate to /discovery:
Skill(skill="discovery", args="<goal> [--interactive] --complexity=<level>")
After /discovery completes:
<promise>DONE</promise> or <promise>BLOCKED</promise>.agents/rpi/execution-packet.jsonrpi_state.epic_id and rpi_state.verdicts.pre_mortemPHASE 1 COMPLETE ✓ (discovery) — proceeding to Phase 2Requires rpi_state.epic_id.
Skill(skill="crank", args="<epic-id> [--test-first] [--no-test-first]")
Implementation gate (max 3 attempts):
<promise>DONE</promise>: proceed to validation<promise>BLOCKED</promise>: retry with block context (max 2 retries)
/crank with epic-id + block reason<promise>PARTIAL</promise>: retry remaining (max 2 retries)
/crank with epic-id (picks up unclosed issues)Record:
ao ratchet record implement 2>/dev/null || true
Log: PHASE 2 COMPLETE ✓ (implementation) — proceeding to Phase 3
DO NOT STOP HERE. Do not ask the user to commit. Do not summarize and wait. Proceed IMMEDIATELY to Phase 3. Implementation without validation is incomplete work — the flywheel does not turn, learnings are not captured, and quality is unverified.
Skip if: complexity == fast (fast-path runs discovery + crank only).
MANDATORY forstandard and full complexity. This is not optional. /validation is the Phase 3 orchestrator — it wraps /vibe + /post-mortem + /retro + /forge. Do NOT call /vibe directly from /rpi — call /validation which handles the full sequence.
Skill(skill="validation", args="<epic-id> --complexity=<level>")
Validation-to-crank loop (max 3 total attempts):
<promise>DONE</promise>: finish RPI<promise>FAIL</promise>: vibe found defects
/crank with epic-id + findings context (preserve --test-first / --no-test-first from original invocation)/validationRecord:
ao ratchet record vibe 2>/dev/null || true
Log: PHASE 3 COMPLETE ✓ (validation) — RPI DONE
Report: Summarize all phase verdicts and epic status.
Optional loop (--loop): If validation verdict is FAIL and cycle < max_cycles:
rpi_state.cycle/rpi from discovery with a tightened goalOptional spawn-next (--spawn-next): After PASS/WARN finish:
.agents/rpi/next-work.jsonl for harvested follow-up items/rpi commandRead references/report-template.md for full output format. Read references/error-handling.md for failure semantics.
| Flag | Default | Description |
|---|---|---|
--from=<phase> | discovery | Start from discovery, implementation, or validation |
--interactive | off | Human gates in discovery |
--auto | on | Fully autonomous (no human gates). Inverse of . Passed through to and . |
All transitions use filesystem artifacts (no in-memory coupling). The execution packet (.agents/rpi/execution-packet.json) carries contract_surfaces (repo execution profile), done_criteria, and queue claim/finalize metadata between phases. Sub-skills include /plan, /vibe, /post-mortem, and /pre-mortem. For detailed contract schemas, read references/phase-data-contracts.md.
complexity == "low" or complexity == "fast": inline review, no spawning (--quick)complexity == "medium" or complexity == "standard": inline fast default (--quick)complexity == "high" or complexity == "full": full council, 2-judge minimum; retry gate: max 3 total attemptscomplexity == "low" or complexity == "fast": inline review, no spawning (--quick)complexity == "medium" or complexity == "standard": inline fast default (--quick)complexity == "high" or complexity == "full": full council, 2-judge minimum; retry gate: max 3 total attemptscomplexity == "low" or complexity == "fast": inline review, no spawning (--quick)complexity == "medium" or complexity == "standard": inline fast default (--quick)complexity == "high" or complexity == "full": full council, 2-judge minimum; retry gate: max 3 total attemptsRead references/examples.md for full lifecycle, resume, and interactive examples.
Read references/troubleshooting.md for common problems and solutions.
See also: discovery, crank, validation
Weekly Installs
269
Repository
GitHub Stars
220
First Seen
Feb 9, 2026
Security Audits
Gen Agent Trust HubPassSocketWarnSnykPass
Installed on
opencode267
gemini-cli262
github-copilot262
codex262
cursor258
amp257
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
102,600 周安装
ag-*) and --from is not set, start at implementation.extract moduleport--interactive/discovery/plan--loop | off | Post-mortem FAIL triggers new cycle |
--max-cycles=<n> | 3 | Max cycles when --loop enabled (default 3) |
--spawn-next | off | Surface follow-up work after completion |
--test-first | on | Strict-quality (passed to /crank) |
--no-test-first | off | Opt out of strict-quality |
--fast-path | auto | Force fast complexity |
--deep | auto | Force full complexity |
--dry-run | off | Report without mutating queue |
--no-budget | off | Disable phase time budgets (passed to phase skills) |