Loading...
Loading...
Compare original and translation side by side
Quick Ref: Brainstorm → search history → research → plan → pre-mortem. Produces an epic-id and execution-packet ready for./crank
快速参考: 头脑风暴 → 历史搜索 → 调研 → 规划 → 事前分析。生成可用于的epic-id和执行数据包。/crank
/discovery "add user authentication" # full discovery
/discovery --interactive "refactor payment module" # human gates in research + plan
/discovery --skip-brainstorm "fix login bug" # skip brainstorm for specific goals
/discovery --complexity=full "migrate to v2 API" # force full council ceremony/discovery "add user authentication" # 完整发现流程
/discovery --interactive "refactor payment module" # 在调研和规划阶段加入人工关卡
/discovery --skip-brainstorm "fix login bug" # 针对特定目标跳过头脑风暴
/discovery --complexity=full "migrate to v2 API" # 强制启用完整评审流程/discovery <goal> [--interactive] [--complexity=<fast|standard|full>] [--skip-brainstorm]
│
├── Step 1: Brainstorm (optional)
│ └── /brainstorm <goal> — clarify WHAT before HOW
│
├── Step 2: Search History
│ └── ao search "<goal keywords>" — surface prior learnings
│
├── Step 3: Research
│ └── /research <goal> — deep codebase exploration
│
├── Step 4: Plan
│ └── /plan <goal> — decompose into epic + issues
│
└── Step 5: Pre-mortem (gate)
└── /pre-mortem — council validates the plan
PASS/WARN → output epic-id + execution-packet
FAIL → re-plan with findings, max 3 attempts/discovery <goal> [--interactive] [--complexity=<fast|standard|full>] [--skip-brainstorm]
│
├── 步骤1:头脑风暴(可选)
│ └── /brainstorm <goal> — 先明确目标再考虑实现方式
│
├── 步骤2:历史搜索
│ └── ao search "<goal keywords>" — 挖掘过往经验
│
├── 步骤3:调研
│ └── /research <goal> — 深度探索代码库
│
├── 步骤4:规划
│ └── /plan <goal> — 分解为epic和任务
│
└── 步骤5:事前分析(关卡)
└── /pre-mortem — 评审团验证规划
通过/警告 → 输出epic-id + 执行数据包
失败 → 结合发现重新规划,最多3次尝试mkdir -p .agents/rpidiscovery_state = {
goal: "<goal string>",
interactive: <true if --interactive>,
complexity: <fast|standard|full or null for auto-detect>,
skip_brainstorm: <true if --skip-brainstorm or goal is >50 chars and specific>,
epic_id: null,
attempt: 1,
verdict: null
}undefinedmkdir -p .agents/rpidiscovery_state = {
goal: "<goal string>",
interactive: <true if --interactive>,
complexity: <fast|standard|full or null for auto-detect>,
skip_brainstorm: <true if --skip-brainstorm or goal is >50 chars and specific>,
epic_id: null,
attempt: 1,
verdict: null
}undefinedundefinedundefined--skip-brainstorm.agents/brainstorm//brainstormSkill(skill="brainstorm", args="<goal>")--skip-brainstorm.agents/brainstorm//brainstormSkill(skill="brainstorm", args="<goal>")aoao search "<goal keywords>" 2>/dev/null || true
ao lookup --query "<goal keywords>" --limit 5 2>/dev/null || true.agents/findings/*.md.agents/rpi/next-work.jsonlaoao search "<goal keywords>" 2>/dev/null || true
ao lookup --query "<goal keywords>" --limit 5 2>/dev/null || true.agents/findings/*.md.agents/rpi/next-work.jsonl/researchSkill(skill="research", args="<goal> [--auto]")--auto--interactive.agents/research//researchSkill(skill="research", args="<goal> [--auto]")--interactive--auto.agents/research/test-pyramid.mddiscovery_state.test_levels/plantest-pyramid.mddiscovery_state.test_levels/plan/planSkill(skill="plan", args="<goal> [--auto]")--auto--interactive.agents/plans/bdbd list --type epic --status opendiscovery_state.epic_idbd children <epic-id> | wc -lfaststandardfull/planSkill(skill="plan", args="<goal> [--auto]")--interactive--auto.agents/plans/bdbd list --type epic --status opendiscovery_state.epic_idbd children <epic-id> | wc -lfaststandardfull/pre-mortemSkill(skill="pre-mortem", args="[--quick]")--quick--quick--deepdiscovery_state.verdictls -t .agents/council/*pre-mortem*.md | head -1"Pre-mortem: FAIL (attempt N/3) -- retrying plan with feedback"/planSkill(skill="plan", args="<goal> --auto --context 'Pre-mortem FAIL: <findings>'")/pre-mortem"Pre-mortem failed 3 times. Last report: <path>. Manual intervention needed."<promise>BLOCKED</promise>/pre-mortemSkill(skill="pre-mortem", args="[--quick]")--quick--deep--quickdiscovery_state.verdictls -t .agents/council/*pre-mortem*.md | head -1"Pre-mortem: FAIL (attempt N/3) -- retrying plan with feedback"/planSkill(skill="plan", args="<goal> --auto --context 'Pre-mortem FAIL: <findings>'")/pre-mortem"Pre-mortem failed 3 times. Last report: <path>. Manual intervention needed."<promise>BLOCKED</promise>references/output-templates.md<promise>DONE</promise>/crank <epic-id>test_levels/crankreferences/output-templates.md<promise>DONE</promise>/crank <epic-id>test_levels/crank| Flag | Default | Description |
|---|---|---|
| off | Human gates in research and plan |
| auto | Skip brainstorm step |
| auto | Force complexity level (fast/standard/full) |
| off | Disable phase time budgets |
| 参数 | 默认值 | 描述 |
|---|---|---|
| 关闭 | 在调研和规划阶段加入人工关卡 |
| 自动 | 跳过头脑风暴步骤 |
| 自动 | 强制指定复杂度级别(fast/standard/full) |
| 关闭 | 禁用阶段时间预算 |
<promise>DONE</promise> # Discovery complete, epic-id + execution-packet ready
<promise>BLOCKED</promise> # Pre-mortem failed 3x, manual intervention needed<promise>DONE</promise> # 发现阶段完成,epic-id + 执行数据包已就绪
<promise>BLOCKED</promise> # 事前分析3次失败,需人工干预/discovery "add user authentication" # full discovery
/discovery --interactive "refactor payment module" # human gates
/discovery --skip-brainstorm "fix login bug" # skip brainstorm/discovery "add user authentication" # 完整发现流程
/discovery --interactive "refactor payment module" # 启用人工关卡
/discovery --skip-brainstorm "fix login bug" # 跳过头脑风暴references/troubleshooting.mdreferences/troubleshooting.md