/install taku-compact
\r \r
Taku Compact - Context-Control Habit\r
\r
Use /taku-compact to compress active work into a recoverable brief. It is a\r
bonus utility skill, not a seventh Taku phase.\r
\r
Rule labels: [IRON LAW] means a non-negotiable correctness constraint. [GUIDANCE] means a strong default that may adapt when context justifies it.\r
\r
Compact preserves current task state. Reflect preserves long-term learnings.\r
Never write .taku/learnings from this skill. You may list\r
reflect_candidates, but /taku-reflect is the only path that can promote them\r
after user approval. A reflect_candidates entry is not a recorded learning and\r
must never be worded as one.\r
\r
Host Boundary\r
\r This skill does not control the host transcript, context window, message\r slicing, archive behavior, or clear behavior. It creates a handoff brief from\r available evidence. Do not claim that tool calls, tool results, or transcript\r events were compacted.\r \r If a future host exposes transcript ranges, record them as retrieval hints only\r after verifying they are available. Otherwise use file, diff, command, log,\r prior-brief, and current-session anchors.\r \r
Mode Selection\r
\r
Accept an explicit mode when the user provides one:\r
\r
| Mode | Use When | Preserve First |\r
|------|----------|----------------|\r
| resume | The same agent or user will continue later | next step, open todos, blockers, recent decisions |\r
| handoff | Another agent or session needs to continue | background, scope, decisions, files, verification, next step |\r
| debug | Investigation or failed checks are in progress | symptoms, reproduction, evidence, failed hypotheses, next probe |\r
| review | A dirty diff or delivery review is next | diff intent, risk areas, test coverage, scope drift, blockers |\r
| design | Think/Plan/product discussion needs preserving | constraints, tradeoffs, confirmed decisions, open questions |\r
| research | Source reading or technical exploration needs preserving | sources, findings, confidence, unresolved questions, followups |\r
\r
If no mode is provided, infer it from the request and current state. Record\r
mode_selection_reason in the brief. Prefer handoff when multiple modes fit\r
and the user asked for general compacting.\r
\r
State Scan Contract\r
\r [IRON LAW] Run an evidence-first state scan before writing the brief. Do not summarize from\r memory first.\r \r
1. Durable Sources\r
\r Read or inspect these when present:\r \r
DESIGN.md\rPLAN.md\rREADME.md\rAGENTS.md\rCLAUDE.md\r.taku/context/current.md\r.taku/context/compact-*.md\r.taku/learnings/*.jsonlas approved context only\r \r Only include stable-layer details that affect the active task. If a durable\r source is missing or irrelevant, record that insource_coverage; do not treat\r it as a blocker.\r \r
2. Repo Evidence\r
\r Inspect git and file-system evidence when a repo is available:\r \r
git status --short\rgit diff --stat\rgit diff --name-only\r- relevant
git diffhunks for changed files\r git log -n 3 --oneline\r \r Changed files must come from git or the file system, not guesswork. A clean diff\r means no durable code changes were observed; it does not mean no progress\r occurred.\r \r
3. Session-Visible State\r
\r Treat visible conversation and tool outputs as first-class state:\r \r
- recent user decisions and corrections\r
- explicit constraints and preferences\r
- command results visible in this session\r
- tool output, agent findings, review findings, and debug observations\r
- design/research progress that has not been written to project files\r
\r
Mark conversation-derived claims as
userand command/tool-output claims as\rtool. Do not present them as file-backed project truth unless they were\r written to a durable artifact.\r \r
4. Source Tags and Confidence\r
\r Every important claim must carry one of these source categories:\r \r
file: project file, Taku context file, approved learning, or file-system inspection\rgit: status, diff, or commit history\rtool: command output or tool result visible in the session\ruser: explicit user statement, correction, or approval\rinferred: agent synthesis from other evidence\runknown: unavailable or unverified evidence\r \r Do not say tests passed unless actual command output or explicit user-provided\r evidence shows that.\r \r Includestate_confidencefor goal, changed files, verification, and next step\r usinghigh,medium,low, orunknown.\r \r
Brief Output\r
\r
Use references/compact-brief.md as the local brief scaffold. Fill every applicable\r
field. Remove irrelevant mode-specific sections, but keep unknowns,\r
retrieval_hints, and completeness_check.\r
\r
Default persistence:\r
\r
- Create
.taku/context/if needed.\r - Write the latest brief to
.taku/context/current.md.\r - Write the same brief to
.taku/context/compact-YYYYMMDD-HHMMSS.md.\r \r If files cannot or should not be written in the current host, output the brief in\r chat and markpersistence: chat_only.\r \r
Mode-Specific Requirements\r
\r
Resume\r
\r Include:\r \r
- the first concrete next action\r
- unresolved blockers\r
- open todos\r
- recent session context needed to avoid rework\r \r
Handoff\r
\r Include:\r \r
- background and current scope\r
- decisions and user constraints\r
- changed files or confirmation that none were observed\r
- verification state\r
- exact restart instructions for the next agent\r \r
Debug\r
\r Include:\r \r
- observed symptoms\r
- reproduction steps\r
- evidence collected\r
- failed hypotheses and why they failed\r
- next probe\r \r Never describe a fix as verified without evidence.\r \r
Review\r
\r Include:\r \r
- diff intent\r
- changed files\r
- risk areas\r
- test coverage observed\r
- scope drift check against
PLAN.mdor user intent when available\r - pre-ship blockers\r \r
Design\r
\r Include:\r \r
- user constraints\r
- options considered\r
- tradeoffs\r
- confirmed decisions\r
- open questions\r
- recommended next planning step\r \r
Research\r
\r Include:\r \r
- sources inspected\r
- key findings\r
- confidence by finding\r
- unresolved questions\r
- follow-up searches or files to inspect\r \r
Completeness Check\r
\r Before finishing, verify the brief includes:\r \r
- user constraints or
unknown\r - open todos or
none_observed\r - failed attempts or
none_observed\r - verification state with evidence or
not_established\r - changed files with sources or
none_observed\r - retrieval hints\r
- unknowns\r
- mode-specific required fields\r
- source tags for important claims\r \r If a required item is missing, fix the brief before presenting it.\r \r
Non-Goals\r
\r
- Do not edit implementation files.\r
- Do not update
PLAN.mdstatus.\r - Do not run formatters or codegen.\r
- Do not commit, push, or open a PR.\r
- Do not fix bugs.\r
- Do not write
.taku/learnings.\r - Do not add archive or clear semantics.\r
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install taku-compact - 安装完成后,直接呼叫该 Skill 的名称或使用
/taku-compact触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Taku Compact 是什么?
Create a recoverable active-work brief for context-heavy coding, design, debugging, review, research, or handoff sessions. Multi-mode context-control habit w... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 53 次。
如何安装 Taku Compact?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install taku-compact」即可一键安装,无需额外配置。
Taku Compact 是免费的吗?
是的,Taku Compact 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Taku Compact 支持哪些平台?
Taku Compact 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Taku Compact?
由 KennyWu(@kkenny0)开发并维护,当前版本 v1.0.0。