一键导入
do-it-handbook
Use when a project needs a lean `.do-it/handbook/` for stable project truth plus `.do-it/worklog/` for daily or goal notes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when a project needs a lean `.do-it/handbook/` for stable project truth plus `.do-it/worklog/` for daily or goal notes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when writing or designing code: name premise and blast radius, deepen modules at seams, TDD at agreed seams, diagnose before patching, and keep producer→consumer contracts honest.
Use when premises or options must be pressure-tested, a short plan/handoff is needed, or a large plan must be sliced — grill facts locally, ask decisions one at a time.
Use before any done, fixed, passing, ready, install, or merge claim, and when closing a branch — fresh evidence on this worktree; hooks vary by host, this skill is the checklist.
Use only when the user explicitly asks to enable, disable, inspect, report, or persist opt-in local do-it behavioral feedback.
Use when starting any non-trivial repo task: pick Light / Standard / Heavy tier, then self-select meaning skills — not a fixed pipeline.
Use when repo terms or invariants are drifting, or when user/docs/code naming disagrees and a canonical glossary is needed — `.do-it/CONTEXT.md` is the downstream source of truth for names, relationships, and facts.
| name | do-it-handbook |
| description | Use when a project needs a lean `.do-it/handbook/` for stable project truth plus `.do-it/worklog/` for daily or goal notes. |
Use this to scaffold a small project handbook for truth that should survive many
sessions: invariants, stable architecture shape, and glossary terms. Everything
that changes daily or per-goal goes to .do-it/worklog/ instead of the
handbook.
The point is low context load. Code locations are rediscovered with rg or a
temporary code-mapper dispatch; they are not maintained in a persistent
code-map.md.
/do-it-handbook init, "建 handbook", "set up the handbook").Blocking finding, or where the architecture invariants live.Skip when:
docs/handbook/ (or equivalent) already exists. Do not duplicate..do-it/handbook/
README.md # navigation hub
invariants.md # rules that always win
architecture.md # stable system shape
glossary.md # vocabulary (long-stable terms)
worklog-template.md # template copied into .do-it/worklog/
.do-it/worklog/
.gitkeep
The handbook holds only project-specific truth — the facts a generic skill
cannot carry. Process docs (task-card layout, review protocol, subagent
dispatch, execution pipeline, maintenance rules), code maps, runtime status, and
backlog queues are NOT scaffolded here. Per-task or per-day detail belongs in
.do-it/worklog/YYYY-MM-DD.md, .do-it/worklog/<goal>.md, plans, or review
artifacts.
When explicitly invoked (/do-it-handbook or a user request):
.do-it/handbook/ exists.
handbook is current and stop.templates/ under this skill. Each template is a skeleton with placeholder text the project owner replaces; do not hand-edit the project's handbook from inside the bootstrap step..gitkeep to .do-it/brainstorm/, .do-it/grill/, .do-it/plans/,
and .do-it/worklog/ if any of those directories are missing, so the project
tracks them in version control.invariants.md and glossary.md.The bootstrap must actually write files, not merely suggest that the user create them. The placeholders are intentional — they prompt the human owner to make the call in a later turn.
Do not:
git add or git commit automatically;| Owns | Reads from handbook | |
|---|---|---|
do-it-context | .do-it/CONTEXT.md (active sediment) | glossary.md (long-stable terms) |
do-it-code-quality | inline review output | architecture.md, invariants.md |
do-it-decide | .do-it/grill/<task>.md | invariants.md, glossary.md |
do-it-review | review protocol / findings (inline or parent agent consumption) | invariants.md |
do-it-decide owns the task-card layout itself, do-it-review owns the
review protocol, and do-it-router owns the dispatch contract —
none of them read a handbook copy. The handbook only feeds them project-specific
truth (invariants.md, glossary.md, architecture.md).
The handbook is read-mostly. Routine progress, experiments, lessons, and day-level status go to worklogs; promote only stable facts back into the handbook.
.do-it/CONTEXT.md ↔ glossary.md)Keep one home per term:
.do-it/CONTEXT.md holds terse, active terms and invariants that agents need during current work.glossary.md holds terminology the project intends to preserve across long-lived docs and architecture.When and how to update each handbook or worklog file. The per-session sediment
(.do-it/CONTEXT.md) and per-task artifacts (.do-it/grill/, .do-it/plans/)
live outside the handbook.
Update triggers:
rg or a
temporary code-mapper dispatch in the next task, then record only durable
lessons in the worklog or handbook.architecture.md, enum values in
glossary.md, and the affected plan cards; then search the codebase for
callers..do-it/CONTEXT.md → glossary.md when it is durable project vocabulary; leave one canonical home.decisions.md. One file, one paragraph per decision; promotion-triggered, never per-task ceremony.Keep any single handbook file under ~15 KB. Worklogs may be archived by day or goal; do not require routine agents to read old worklogs unless the active task points at one.
The bootstrap command should produce a short, deterministic report:
[do-it-handbook] writing 4 file(s) to .do-it/handbook/ and 1 template to .do-it/worklog/
+ .do-it/handbook/README.md
+ .do-it/handbook/invariants.md
+ .do-it/handbook/architecture.md
+ .do-it/handbook/glossary.md
+ .do-it/handbook/worklog-template.md
+ .do-it/worklog/.gitkeep
next: fill in invariants.md and glossary.md, then use .do-it/worklog/YYYY-MM-DD.md for daily progress.
Idempotent re-runs print only the files actually written; an empty list means the handbook is current.
do-it ships a new template (e.g. a new truth file), the bootstrap should be re-runnable to add it..do-it/CONTEXT.md to glossary.md as soon as it appears. Promote only vocabulary that should remain stable across project documentation.do-it-context — owns active sediment; promotes terms to glossary.md.do-it-code-quality — reads architecture.md and invariants.md.do-it-decide — reads invariants.md and glossary.md for term anchoring.do-it-decide / do-it-review / do-it-router — own their task-card layout / review protocol / dispatch contract directly; the handbook no longer carries a copy.