split-claude-md

split-claude-md is a skill for Claude Code from eranw2000/claude-maintenance-skills. It costs 187 tokens per session (3,738 once invoked), scanned A, original, MIT.

A six-stage cleanup process for an oversized CLAUDE.md instruction file. It removes information the repository already contains, archives old records, consolidates repeated patterns, and separates rarely needed guidance.

In plain words
What is it for?
Use it to prune old notes, archive dated records, combine recurring failure patterns, extract stable reference material, compress rules, and move file-specific guidance to narrower locations.
Why use it?
It reduces the amount of instruction text loaded on every coding request and makes the remaining rules easier to follow and less likely to become stale.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md.

Good fit Use it to prune old notes, archive dated records, combine recurring failure patterns, extract stable reference material, compress rules, and move file-specific guidance to narrower locations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eranw2000/claude-maintenance-skills/split-claude-md
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add eranw2000/claude-maintenance-skills --skill split-claude-md
Clone the repo
git clone --depth 1 https://github.com/eranw2000/claude-maintenance-skills

Made for: Claude Code.

Wrote 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.

agentmods badge for split-claude-md

README.md
[![agentmods](https://agentmods.dev/badge/skills/eranw2000/claude-maintenance-skills/split-claude-md/github.svg)](https://agentmods.dev/skills/eranw2000/claude-maintenance-skills/split-claude-md)
Your own site
<a href="https://agentmods.dev/skills/eranw2000/claude-maintenance-skills/split-claude-md"><img src="https://agentmods.dev/badge/skills/eranw2000/claude-maintenance-skills/split-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.

agentmods 80×15 button for split-claude-md

Your own site · 80×15
<a href="https://agentmods.dev/skills/eranw2000/claude-maintenance-skills/split-claude-md"><img src="https://agentmods.dev/badge/skills/eranw2000/claude-maintenance-skills/split-claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 187 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,738 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00187 $0.03738
Opus 5.5 $0.00075 $0.01495
Sonnet 5.5 $0.00037 $0.00748
Haiku 4.5 $0.00019 $0.00374

Measured 24d ago against content hash 4ae0e1bc1845, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

split-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 24d ago.

The scan reads SKILL.md. This mod also ships 26 executable files (fake_claude.py, goal_check.py, loss_check.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

split-claude-md/SKILL.md · 246 lines

How it starts

The opening of the file, as written. The whole thing — 246 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Split CLAUDE.md - prune, archive, consolidate, extract, compress, scope

An always-loaded file is re-read on every request of every session. Text in it is not stored once; it is paid for continuously. Six things grow over time:

  1. Old dated records load every turn even when no future session needs them.
  2. Recurring bugs accumulate as scattered prose with stale instance counts, so a future session cannot tell that a "new" bug is the Nth instance of a known one.
  3. Stable reference docs sit inline although they are consulted rarely, and every session that does not need them still pays for them.
  4. Rules accumulate their own evidence, and the war story outgrows the rule.
  5. Content the repository already answers gets written down and then goes stale, so the file starts contradicting the code.
  6. Rules that only matter for one file type load in every session regardless.

There are TWO reasons to cut, and the second one is usually missed. Cost is the obvious one. Adherence is the other: a longer file is followed less reliably, which Anthropic states twice. So a file sitting exactly at its cost threshold is not finished, and a rule being ignored is a reason to cut rather than a reason to restate the rule more loudly.

Read this first

reference/loading-model.md holds the mechanics every phase depends on: what each destination costs, what loads lazily, what is free, what is lost after a compaction, and the hard limits. Read it before choosing a destination for anything. Two facts from it decide most of a run:

  • @path imports do not reduce context. Imported files load at launch with the file that imports them. This is the usual wrong answer to a large CLAUDE.md and it saves nothing.
  • A rule moved to a lazy destination is LOST after a compaction until a matching file is read again. A rule that fires on a FILE survives that. A rule that fires on a CONVERSATION does not, and must not be moved.

The six destinations, cheapest last

Read the full file on GitHub · 246 lines

Changes

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.

  1. 24d ago Changed · +8 lines 4ae0e1bc1845
  2. 28d ago Changed · -2 lines c34313237e5c
  3. 1mo ago Changed · +18 lines d8326f4e3978
  4. 2mo ago First seen · 222 lines · 187 tokens per session scan A e207d607b123

Subscribe to this mod's changes

split-claude-md is a skill published in the GitHub repository eranw2000/claude-maintenance-skills (8 stars, last pushed 4d ago), licensed MIT. It adds 187 tokens to every session and 3,738 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.

Related

split-claude-md compared with skills from other repositories

split-claude-md next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
split-claude-mderanw2000/claude-maintenance-skillsSkill84d agoMITA187Claude Code
agents-v2-pylingxling/awesome-skills-cnSkill3291mo agoMITA39Claude Code
analytics-productlingxling/awesome-skills-cnSkill3291mo agoMITA35Claude Code
api-security-best-practiceslingxling/awesome-skills-cnSkill3291mo agoMITA29Claude Code
antigravity-workflowslingxling/awesome-skills-cnSkill3291mo agoMITA41Claude Code
oci-services-expertfrankxai/claude-skills-librarySkill47yesterdayMITA43Claude Code
v-swarmfrankxai/claude-skills-librarySkill47yesterdayMITA141Claude Code