← 返回 Skills 市场
kkenny0

Taku Compact

作者 KennyWu · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
53
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

\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\r
  • PLAN.md\r
  • README.md\r
  • AGENTS.md\r
  • CLAUDE.md\r
  • .taku/context/current.md\r
  • .taku/context/compact-*.md\r
  • .taku/learnings/*.jsonl as 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 in source_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\r
  • git diff --stat\r
  • git diff --name-only\r
  • relevant git diff hunks 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 user and command/tool-output claims as\r tool. 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\r
  • git: status, diff, or commit history\r
  • tool: command output or tool result visible in the session\r
  • user: explicit user statement, correction, or approval\r
  • inferred: agent synthesis from other evidence\r
  • unknown: 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 Include state_confidence for goal, changed files, verification, and next step\r using high, medium, low, or unknown.\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

  1. Create .taku/context/ if needed.\r
  2. Write the latest brief to .taku/context/current.md.\r
  3. 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 mark persistence: 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.md or 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.md status.\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
安全使用建议
This appears safe for its intended purpose, but generated briefs can include local diffs, decisions, command results, and conversation context. Review `.taku/context/current.md` and timestamped compact files before committing, syncing, or sharing them.
功能分析
Type: OpenClaw Skill Name: taku-compact Version: 1.0.0 The taku-compact skill is a utility designed to summarize the current state of a development session into a 'brief' for handoffs or resuming work. It gathers information by reading project documentation (e.g., README.md, PLAN.md) and executing standard git commands (git status, git diff) to identify changes. The instructions in SKILL.md include strict 'IRON LAW' constraints to ensure the agent bases its summary on evidence rather than memory and explicitly forbids modifying source code, committing changes, or exfiltrating data. All behaviors are well-aligned with the stated purpose of context management.
能力评估
Purpose & Capability
The stated purpose is to create recoverable active-work briefs, and the visible instructions align with that purpose by gathering project, git, tool, and conversation evidence.
Instruction Scope
The instructions emphasize source tags, confidence levels, and not overstating evidence; no goal-hijacking, hidden endpoints, or deceptive instructions were found in the visible artifacts.
Install Mechanism
There is no install spec and no code files; the static scanner reported no findings.
Credentials
The skill asks the agent to inspect local repo files, git diffs, command outputs, and visible conversation state, which is proportionate to generating a handoff brief but may include private project context.
Persistence & Privilege
The skill writes scoped local brief files under .taku/context and explicitly avoids writing .taku/learnings; no credentials, privileged paths, or background persistence are indicated.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install taku-compact
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /taku-compact 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
use `/taku-compact` to create a recoverable active-work brief. It is not a seventh phase and does not write long-term memory. `/taku-compact` scans files, git evidence, tool output, and user-visible session state before producing a structured brief. The brief uses strict source labels: file, git, tool, user, inferred, or unknown. - Initial release of taku-compact, a context-control skill for creating recoverable active-work briefs in code, design, debugging, review, and research sessions. - Supports multiple modes: resume, handoff, debug, review, design, and research, each with tailored field requirements. - Enforces strict evidence-first state scanning before generating a brief. - Summarizes state with clear source tags (file, git, tool, user, inferred, unknown) and confidence levels. - Outputs comprehensive briefs with required fields, completeness checks, and clear persistence logic. - Does not update learnings, implementation files, or project plans; strictly focused on context capture and transfer.
元数据
Slug taku-compact
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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。

💬 留言讨论