跳到正文
cccskills
免费在 GitHub 公开

honey-memory

Create and maintain one committed per-project memory file (PROJECT.md) so agents stop re-discovering the same facts every cold session. Stores only the stable, expensive-to-rediscover, not-in-the-code context — architecture + why, build/test/run commands, decisions and dead-ends — as human-readable markdown, versioned with the code so it can't silently rot. Use when asked to set up project memory/context, stop agents re-grepping the codebase, scaffold or refresh a PROJECT.md / CLAUDE.md memory section, or cut cold-start rediscovery cost. Prose context only — never code, config, or data.

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

查看安装方法

包含的文件(1)

  • SKILL.md4.2 KB

SKILL.md(原文)

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

Honey Memory

Lever 2 applied to discovery cost. Every cold session re-greps the same things — where auth lives, the build command, why X is shaped Y. One committed file replaces N rediscovery round-trips with a single cached read, on every future session. The cheapest token is the one not re-derived.

The win is per-session and recurring. The risk is staleness — a wrong cached fact costs more than no file. So the file lives in git, next to the code that can invalidate it, and is fixed in the same change that breaks it.

Scaffold (create)

  1. One file per repo: PROJECT.md at the root, committed (not ~/.claude). If the repo already has CLAUDE.md/AGENTS.md, add/refresh a ## Memory section there instead — don't add a second file.
  2. Back up before overwriting an existing file: copy → FILE.original.md. If that backup already exists, stop and ask. Never clobber a restore point.
  3. Write only three kinds of fact (derive by reading the repo):
    • Architecture + conventions an agent can't cheaply grep — where things live, and why (the intent, not the file list).
    • Build / test / run commands, env, and gotchas.
    • Decisions and dead-ends — choices made, paths tried and rejected. This is intent; it is never in the code.
  4. Report what was written and the file path.

Never store

  • Anything derivable from source — code structure, symbol locations, past fixes, git history. Re-deriving is cheaper than maintaining, and never stale.
  • Secrets, tokens, credentials. The file is committed.
  • Transient state — open TODOs, this-week status. That rots fastest.

If a fact is stable + expensive-to-rediscover + not-in-the-code, write it. Everything else, let agents derive on demand — caching it is where these systems quietly lose money.

Update

A markdown file does not update itself. Reliability = discipline, not infra:

  • Same-change rule (primary). When code changes invalidate a fact, fix the fact in the same commit. Review catches drift because the file is in git.
  • On-demand refresh. Re-read the repo and rewrite stale entries; show the diff. Don't blind-append — appending is how these files bloat and rot.
  • Lint before and after a refresh. node "${CLAUDE_PLUGIN_ROOT}/bin/check.js" memory (no model) finds paths the file names that no longer exist, @imports that load nothing, the same rule loaded from two files, and a Claude Code MEMORY.md past the 200 lines / 25KB that load at session start. Fix each finding with the user's yes; never delete memory content unasked. (If CLAUDE_PLUGIN_ROOT is unexpanded, bin/check.js lives at the plugin root, two directories above this file.)
  • Treat a fact as superseded, not accumulated: replace the old line, don't stack a new one beside it.

One file vs many

Start with one file. Split only when it crosses ~150–200 lines or covers clearly separable domains — then go to a thin index + topic files loaded on demand. Below that, an index costs more (the always-loaded tax) than it saves.

Keep terse

Apply Honey Lever 2 to the content — fragments over paragraphs, no narration of what the code already says. A bloated memory file is a per-session input tax. Keep it human-readable markdown: you (and reviewers) hand-edit it, so don't use a wire format — staleness costs more than the tokens a dense format would save.

Boundaries

Reversible — FILE.original.md is the restore path when overwriting. Verify every written fact against the current code before reporting done; an unverified fact is worse than an absent one.

评价

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

评论

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

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

提交后会立即公开。请勿填写邮箱、电话等个人信息。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-devs3412026年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-devs3412026年10月18日 更新

honey

免费

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

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

Green-PT/honey-for-devs3412026年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-devs3412026年10月18日 更新

honey-ccr

免费

Compress-cache-retrieve huge array tool output.

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

Green-PT/honey-for-devs3412026年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-devs3412026年10月18日 更新

查看 Green-PT 的全部技能

报告此技能的问题