Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add alexmond/alexmskills/plugin install evolving-claude-mdWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/alexmond/alexmskills/evolving-claude-md)<a href="https://agentmods.dev/skills/alexmond/alexmskills/evolving-claude-md"><img src="https://agentmods.dev/badge/skills/alexmond/alexmskills/evolving-claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/alexmond/alexmskills/evolving-claude-md"><img src="https://agentmods.dev/badge/skills/alexmond/alexmskills/evolving-claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00175 | $0.05001 |
| Opus 5.5 | $0.00070 | $0.02000 |
| Sonnet 5.5 | $0.00035 | $0.01000 |
| Haiku 4.5 | $0.00017 | $0.00500 |
Grade A, and why
evolving-claude-md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 336 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Codex: Read the client path before applying this workflow.
Evolving CLAUDE.md
Try it:
/evolving-claude-md:evolving-claude-md— or say "make CLAUDE.md evolve".
CLAUDE.md is read into Claude's context on every turn. Every byte costs tokens. So the goal isn't "log everything we learned" — it's a small, well-pruned set of durable decisions that future-Claude needs, with everything else linked to or archived.
This skill wires that. Three mechanisms keep it healthy automatically:
| Hook | When | What it does |
|---|---|---|
| SessionStart | start of every session | audit-claude-md.py — if the D&L section is bloated, injects a recommendation to compact |
PreToolUse on Write|Edit of CLAUDE.md |
before each edit | lint-claude-md.py — rejects new entries that violate the format (no topic tag, no date, body over 500 chars) |
| PostCompact | after context compaction | re-runs the audit so the assistant sees the current D&L state without paying for the full file twice |
When installed as a plugin, the three hooks ship inside the plugin (hooks/hooks.json, pathed via ${CLAUDE_PLUGIN_ROOT}) and register automatically once enabled — nothing to add to your settings. For a manual install, copy the three scripts to .claude/skills/evolving-claude-md/ and add the hooks to .claude/settings.json (see Setup checklist). Disable individually by removing the entry; disable all via disableAllHooks: true in settings.
Not for documenting a codebase from scratch — that's
init. This adds the mechanism that keeps the file current and bounded once it exists.
Format — the contract every entry must follow
- YYYY-MM-DD — **topic-tag** — short statement. Why: brief reason. [Optional: see → docs/decisions/...].
- YYYY-MM-DD — calendar date, no relative dates.
**topic-tag**— kebab-case, one or two words, MANDATORY. Reuse existing tags where they fit; the lint hook surfaces the inventory. Pick a stable vocabulary per project (e.g.auth,build,schema,ci,perf).- One sentence of what. The why is the load-bearing half — lead with constraint, incident, or preference.
- Aim for 200 chars in the body, max 3 lines; the lint hook rejects anything over 500. The gap between the two is deliberate: 200 is the target that keeps the log scannable, 500 is where an entry is provably a design doc. Past either, move the detail to
docs/decisions/{YYYY-MM-DD}-{topic}.mdand keep a one-line teaser linking there.
What ships with it
12 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- archive-decisions.py 7.0 KB runs code
- audit-claude-md.py 41 KB runs code
- capture-triggers.py 17 KB runs code
- compact-claude-md.py 9.9 KB runs code
- freshness.py 23 KB runs code
- lint-claude-md.py 4.6 KB runs code
- record-loads.py 3.6 KB runs code
- references/audit-checks.md 5.7 KB
- references/claude-md-best-practices.md 9.6 KB
- references/clients.md 2.2 KB
- references/setup-and-tuning.md 2.5 KB
- test-harness.py 56 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +175 tokens per session 2b014255517e
- 2mo ago Changed · +7 lines 5dc5330fd500
- 2mo ago Changed · +23 lines 44aad63c5aaf
- 2mo ago Changed · +3 lines b0eb275b7832
- 2mo ago Changed · -28 lines 63f684500d3c
- 3mo ago First seen · 331 lines · 0 tokens per session scan A 3639d07cfe6f
evolving-claude-md is a skill published in the GitHub repository alexmond/alexmskills (11 stars, last pushed 1mo ago), licensed MIT. It adds 175 tokens to every session and 5,001 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
evolving-claude-md compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| evolving-claude-mdalexmond/alexmskills | Skill | 11 | 1mo ago | MIT | A | 175 | Claude Code |
| weekly-digeststhedotmack/claude-mem | Skill | 122k | today | Apache-2.0 | A | 93 | Claude Code |
| cloud-syncthedotmack/claude-mem | Skill | 122k | today | Apache-2.0 | A | 64 | Claude Code |
| screenpipethedotmack/claude-mem | Skill | 122k | today | Apache-2.0 | A | 46 | Claude Code |
| emerging-techniques-long-contextdavila7/claude-code-templates | Skill | 35k | today | MIT | A | 78 | Claude Code, Codex |
| forgetasgeirtj/system_prompts_leaks | Skill | 74k | today | CC0-1.0 | A | 0 | Claude Code, Codex |
| hive.note-takingaden-hive/hive | Skill | 11k | 4d ago | Apache-2.0 | A | 30 | Claude Code, Codex |