一键导入
iterate
Unified work loop — sync, hunt, discriminate, execute, cycle. One command does everything.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Unified work loop — sync, hunt, discriminate, execute, cycle. One command does everything.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Inter-agent mesh synchronization — scan transport sessions for new messages, check peer repos, write ACKs, update MANIFEST, report changes.
Thoughtfulness architecture — the reflective, generative, domain-grounded faculty. Audits the past, reflects on meaning, routes insight to peers, prescribes action. The default mode network's institutional form.
Post-session documentation chain — propagate changes through lab-notebook, journal, architecture, MEMORY, snapshot, and commit.
Mid-work documentation — persist decisions, findings, and reasoning to the right file before context fills up. Figures out WHAT to write and WHERE to put it.
Systemic self-diagnostic — five-level depth hierarchy. Replaces manual QA.
Systematic work discovery — scan TODO, architecture, cogarch, ideas, lessons for highest-value next work.
| name | iterate |
| description | Unified work loop — sync, hunt, discriminate, execute, cycle. One command does everything. |
| 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.
/sync = check for inbound activity
/hunt = discover candidates, present to user
/iterate = sync → hunt → discriminate → execute → cycle
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 a quick sync internally — not user-facing output, just input to the hunt.
git fetch origin — new remote commits?git log HEAD..origin/main --oneline — anything landed?ls -t transport/sessions/*/from-*.json | head -5 — new inbound messages?gh pr list --repo safety-quotient-lab/psychology-agent --json number,title — open PRs?If sync finds actionable items (new commits, unread transport messages, open PRs), they become candidates in Phase 1 alongside hunt results.
If clean, proceed silently to Phase 1.
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:
python3 scripts/sync_project_board.py --mark-in-progress "{item title}"
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).
Each /iterate auto-cycles at close, so the user always has a clean committed state between iterations.
| 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 auto-cycles at Phase 4 close. Each iteration leaves a clean commit. |
/doc | /iterate may invoke /doc during Phase 3 if execution produces findings worth persisting. |
/sync | /iterate may invoke /sync if the winner involves transport. |