一键导入
index
Build a reverse word-to-files index from all stored triggers. Model-aware — builds per-model lookup so agents find triggers matched to their own model.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build a reverse word-to-files index from all stored triggers. Model-aware — builds per-model lookup so agents find triggers matched to their own model.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Discover files with trigger_phrase and/or refresh frontmatter, let the user choose which to schedule for periodic re-injection via CronCreate. Prevents behavioral drift by keeping core rules and goals fresh in context.
Write trigger phrases from .claude/triggers.json into file frontmatter as model-scoped trigger_phrase fields. Bridges trigger generation (scan) with scheduled injection (zenflow:schedule).
Build a GitHub issue into a PR. User-launched with an issue number — reads the issue, confirms with user, creates branch, implements against acceptance criteria, runs verification, and opens a PR. Every decision surfaces via AskUserQuestion.
Collaborative working session — you and the user are a team exploring, researching, and planning together. When implementation work is needed, create well-structured GitHub issues. The user launches Builder agents to implement and Reviewer agents to verify.
Shed accumulated context mid-session. Writes a knowledge handoff document capturing session state, decisions, observations, and behavioral calibration, then guides the user through /clear and resumption.
Runtime verification using Playwright MCP + proof artifacts. Use when acceptance criteria mention UI behavior, when claiming runtime verification, or when independently verifying a PR's claims. Produces artifact-backed proof — screenshots, DOM snapshots — not prose claims.
| name | index |
| description | Build a reverse word-to-files index from all stored triggers. Model-aware — builds per-model lookup so agents find triggers matched to their own model. |
| allowed-tools | Read, Edit |
Reads .claude/triggers.json and builds .claude/recall-index.json — a reverse lookup that maps individual words and terms to the files they came from, organized by model. When an agent encounters a concept, it checks the index to find which files are relevant and gets the trigger phrase optimized for its own model.
Read .claude/triggers.json. If it doesn't exist or has no triggers, report "No triggers to index. Run /total-recall:scan first."
For each trigger entry:
Detect format:
models object with per-model phrasesphrase field — treat as model "haiku" for backwards compatibilityFor each model in the entry:
s suffix), collapse obvious synonyms (e.g., "auth"/"authentication"/"authenticate" → "auth")Also build a cross-model section from crossModelTerms if present
For each word per model in the index, calculate a weight based on:
Write .claude/recall-index.json:
{
"version": 2,
"builtAt": "2026-04-01T10:05:00.000Z",
"triggerCount": 15,
"models": {
"sonnet": {
"jwt": {
"files": ["src/auth/middleware.ts"],
"phrase": "jwt route authentication guard",
"weight": 0.9
},
"broken windows": {
"files": ["rules/broken-windows.md"],
"phrase": "broken windows code quality ratchet",
"weight": 0.95
}
},
"opus": {
"jwt": {
"files": ["src/auth/middleware.ts"],
"phrase": "jwt bearer token route guard",
"weight": 0.92
},
"broken windows": {
"files": ["rules/broken-windows.md"],
"phrase": "broken windows codebase quality ratchet",
"weight": 0.98
}
}
},
"crossModel": {
"jwt": {
"files": ["src/auth/middleware.ts"],
"weight": 0.9
},
"quality": {
"files": ["rules/broken-windows.md", "rules/hard-requirements.md"],
"weight": 0.8
}
}
}
The key change: each index entry under a model includes the phrase field — so an agent can look up a term and immediately get the trigger phrase optimized for its own model, without reading triggers.json.
Remove words with weight below 0.2 — these are too generic to be useful triggers (e.g., "data", "handle", "process").
Also remove common stop words: the, a, an, is, are, was, were, be, been, being, have, has, had, do, does, did, will, would, could, should, may, might, can, shall, for, and, but, or, nor, not, so, yet, both, either, neither, each, every, all, any, few, more, most, other, some, such, no, only, own, same, than, too, very, just, because, as, until, while, of, at, by, with, from, into, through, during, before, after, above, below, to, in, on, out, off, over, under, between, about, against, this, that, these, those, it, its.
Built recall index: N words → M files across K models
Models indexed: sonnet, opus
Top 10 most distinctive terms (sonnet):
jwt → src/auth/middleware.ts (0.95)
ratchet → rules/broken-windows.md (0.92)
...
Cross-model universal terms: jwt, quality, typescript, ...