一键导入
iterate
Find next highest-value work and do it. Hunt → 2-order knock per candidate → discriminate → execute.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Find next highest-value work and do it. Hunt → 2-order knock per candidate → discriminate → execute.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Evaluate and act on findings from peer agents — accept/reject findings, implement fixes, build-gate, deploy, respond.
Inter-agent mesh synchronization — check all peer repos for PRs, proposals, and commits; merge inbound; write ACKs; deliver outbound via PR; update session state.
| name | iterate |
| description | Find next highest-value work and do it. Hunt → 2-order knock per candidate → discriminate → execute. |
| user-invocable | true |
| argument-hint | [quick | deep | domain-filter] |
| allowed-tools | Read, Write, Edit, Grep, Glob, Bash, Agent, AskUserQuestion, WebFetch |
Find the single most important thing to do next, then do it.
/hunt = discover candidates, present to user
/iterate = discover → evaluate → discriminate → execute
The user types /iterate and the next most important thing gets worked on.
Parse $ARGUMENTS to determine scope:
| Argument | Behavior |
|---|---|
| (empty) | Full hunt → discriminate → execute |
quick | Quick-wins hunt → discriminate → execute (XS/S items only) |
deep | Deep/extrapolate hunt → discriminate → execute |
[domain-filter] | Hunt filtered to that domain → discriminate → execute |
Run /hunt internally — not as a user-facing presentation, but as input to the
discriminator. Use the /hunt protocol (Sources 1-8) but compress output:
Output of Phase 1 is an internal candidate list, not user-facing. Format:
Candidate 1: [action] — Value: H/M/L, Effort: XS/S/M/L, Source: [where found]
Candidate 2: ...
...
Exit condition: If hunt finds zero candidates, report "Project is clean. No actionable work found." and stop.
Single-candidate shortcut: If only 1 candidate surfaces, skip Phase 2 and go directly to Phase 3 (execute). No need to discriminate between one option.
For each candidate (up to 5), run a 2-order inline knock-on:
Order 1 (certain): What is the direct, immediate effect of doing this?
Order 2 (certain-likely): What does Order 1 activate or unblock?
Then apply the 4-mode discriminator to select the winner:
Mode 1: Consensus Do multiple candidates converge on the same underlying need? If 3 of 5 candidates all point to the same gap (e.g., "citations needed," "docs stale"), the consensus item is the winner — it's the system telling you what matters.
Mode 2: Pragmatism Which candidate produces the most useful result right now? Not theoretically highest-value, but most practically impactful given current state. Favors:
Mode 3: Parsimony When multiple candidates have similar value, the simplest one wins. Fewest files touched, least coupling, most reversible, lowest cognitive overhead. "Three similar lines of code is better than a premature abstraction."
Mode 4: Bare No consensus, no clear pragmatic winner, no parsimony distinction. Pick the highest value/effort ratio. If still tied, pick the one closest to the Active Thread (continuity over context-switching).
Candidates evaluated: N
Discriminator mode: [consensus | pragmatism | parsimony | bare]
Winner: [Candidate N] — [1-line reason]
Runner-up: [Candidate M] — [why it lost]
Substance gate (T3): If the winner is a substance decision (changes what gets built, published, or committed to), surface to user with recommendation before executing. Process decisions (ordering, formatting, documentation maintenance) proceed autonomously.
Do the work. The winner from Phase 2 becomes the active task.
Execution rules:
What "execute" means by item type:
| Item type | Execute means |
|---|---|
| Documentation fix | Edit the file, verify consistency |
| Cogarch gap | Draft trigger language, add to cognitive-triggers.md |
| Stale reference | Fix or remove the reference |
| Missing spec | Draft the spec section in the appropriate doc |
| Transport message | Draft and deliver the message |
| Code fix | Make the change, test if applicable |
| Research question | Investigate, write findings to journal or lab-notebook |
| Skill creation | Write the skill, note it needs restart to load |
After execution:
/iterate can be called repeatedly. Each call is independent — it re-hunts
from current state (which now includes whatever the previous /iterate changed).
The user can type /iterate three times in a row and get three pieces of work
done, then /cycle once to propagate all changes.
| Context | How /iterate interacts |
|---|---|
/hunt | /iterate runs /hunt internally as Phase 1. If the user wants to see candidates without executing, they use /hunt directly. |
/knock | /iterate runs 2-order inline knock per candidate in Phase 2. If deeper analysis is needed, the user runs /knock directly. |
/adjudicate | If Phase 2 reveals a genuine M/L decision between candidates (not just prioritization), /iterate escalates to /adjudicate and pauses for user input. |
/cycle | /iterate does NOT auto-cycle. The user cycles when ready. |
/doc | /iterate may invoke /doc during Phase 3 if execution produces findings worth persisting. |
/sync | /iterate may invoke /sync if the winner involves transport. |