跳到正文
cccskills
免费在 GitHub 公开

honey-compress

Rewrite a memory or context file (CLAUDE.md, AGENTS.md, a todo or notes file) into Honey-terse form so it costs fewer input tokens every session, without losing meaning. Backs up the original first. Use when asked to shrink or compress context files, trim CLAUDE.md, or cut per-session input cost. Prose only — never code, config, or data.

中文简介正在准备中。当前显示原文说明。

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md2.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Honey Compress

Apply Lever 2 to a file the agent re-reads every session. The cheapest token is the one not re-sent — a one-time rewrite that saves on every future load.

Do

  1. Back up first. Copy FILE → FILE.original.md. If that backup already exists, stop and ask — never clobber a restore point. If no backup can be written, refuse.
  2. Rewrite the prose tersely — drop wind-up, hedging, narration, and redundancy; fragments over paragraphs; merge guidance that repeats.
  3. Preserve every distinct instruction — terser words, identical rules. If unsure whether a line changes behavior, keep it verbatim.
  4. Verify, then keep or undo. Run node "${CLAUDE_PLUGIN_ROOT}/bin/check.js" fidelity FILE.original.md FILE. It fails if any number, code span, URL, negation or safety word was lost, or if the file didn't get smaller. On a failure, fix the named loss, or restore the backup (cp FILE.original.md FILE) when the fix would cost the savings. Never report a failing rewrite as done. (If CLAUDE_PLUGIN_ROOT is unexpanded, bin/check.js lives at the plugin root, two directories above this file; installed from npm it is honey-check.)
  5. Report original vs new byte count (the check prints it) and the backup path.

Keep exact — never compress

  • Code blocks, commands, paths, identifiers, versions.
  • Any load-bearing directive — MUST/NEVER rules, and anything touching auth, secrets, money, migrations, or deletes. Compressing an instruction that changes behavior moves cost, it doesn't remove it.

Don't

  • Don't touch code, config, or data files — prose context only.
  • Don't merge two rules into one if they differ in effect.
  • Don't compress a file you can't back up.

Boundaries

Reversible by design — FILE.original.md is the restore path. The fidelity check is the floor, not the ceiling: it catches lost facts, not a reworded rule that changed meaning, so still read the diff.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

honey

免费

Write less code and say less about it. Applies YAGNI and stdlib/native-first so the agent writes the minimum code that needs to exist, and responds tersely — stripping filler, hedging, and pleasantries while keeping code, identifiers, and technical terms exact. Use whenever writing, modifying, refactoring, reviewing, or explaining code, or any response where output volume drives token cost — even if the user never says "minimal" or "concise". Especially in agentic coding, where the volume of generated code and prose runs up the bill.

中文简介正在准备中。当前显示原文说明。

Green-PT/honey-for-devs3422026年10月18日 更新

honey

免费

Write less code and say less about it: YAGNI, stdlib-first, terse prose. Cuts agent token cost on every coding and writing task.

中文简介正在准备中。当前显示原文说明。

Green-PT/honey-for-devs3422026年10月18日 更新

honey

免费

Write less code and say less about it. Cuts token cost.

中文简介正在准备中。当前显示原文说明。

Green-PT/honey-for-devs3422026年10月18日 更新

honey-ccr

免费

Compress-cache-retrieve huge array tool output.

中文简介正在准备中。当前显示原文说明。

Green-PT/honey-for-devs3422026年10月18日 更新

honey-ccr

免费

Compress-Cache-Retrieve huge repetitive array tool output before it hits context: keep a sample, cache the rest, leave a hash.

中文简介正在准备中。当前显示原文说明。

Green-PT/honey-for-devs3422026年10月18日 更新

honey-ccr

免费

Compress-Cache-Retrieve for huge, repetitive array tool output (logs, scan results, time series, event streams) before it enters context. Keeps an informative sample — endpoints, anomalies/change-points, head/tail — drops the redundant rest to a local cache, and leaves a retrievable hash. Use when a tool returns a long uniform JSON array you must read but mostly skim, and the full set is one command away if needed. Lossy-but-recoverable.

中文简介正在准备中。当前显示原文说明。

Green-PT/honey-for-devs3422026年10月18日 更新

查看 Green-PT 的全部技能

报告此技能的问题