split-claude-md

split-claude-md is a skill for Claude Code from eranw2000/claude-maintenance-skills. It costs 187 tokens per session (3,222 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,222 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.03222
Opus 5 $0.00093 $0.01611
Sonnet 5 $0.00037 $0.00644
Haiku 4.5 $0.00019 $0.00322

Measured 10d ago against content hash e207d607b123, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (rotate.py, survey.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 · 222 lines

How it starts

The opening of the file, as written. The whole thing — 222 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 · 222 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. 10d 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 (5 stars, last pushed 13d ago), licensed MIT. It adds 187 tokens to every session and 3,222 once invoked, about $0.0009 per session on Opus 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

Other skills, from other repositories

resolve-plugins

Curate Claude Code skill / MCP / hook picks against live upstream sources and pin them in .claude/settings.json. Adding a process harness (a paired skill set) is an ordinary pick this door handles. Reads stack from docs/techstack.md, workflow signal from docs/overview.md + existing pins, then live-queries six source…

RockyHong/super-bootstrap · 133 tokens

huggingface-llm-trainer

Train or fine-tune language models with TRL or Unsloth on Hugging Face Jobs, including SFT, DPO, GRPO, reward models, and GGUF conversion. Use for cloud LLM training; use huggingface-vision-trainer for vision tasks.

waybarrios/opencode-power-pack · 65 tokens

feature-dev

Guide a feature implementation through a structured seven-phase workflow with deep codebase understanding, clarifying questions, parallel architecture design, and quality review. Use this skill when the user asks to build a new feature, add functionality, or wants a methodical approach to implementation rather than…

waybarrios/opencode-power-pack · 62 tokens

memstack-business-gdpr

Use this skill when the user says 'GDPR', 'data protection', 'privacy compliance', 'DPA', 'DSAR', 'data subject request', 'cookie consent', 'privacy audit', 'CCPA', or asks 'do I need GDPR for this repo'. Scans the repository to detect what personal data is collected, classifies sensitivity, determines whether GDPR…

cwinvestments/memstack · 121 tokens

memstack-development-refactor-planner

Use this skill when the user says 'refactor', 'refactoring plan', 'code cleanup', 'reduce duplication', 'simplify code', 'tech debt', 'god class', 'tight coupling', or needs to systematically improve existing code. Identifies targets, assesses risk, and builds incremental execution plans. Do NOT use for writing new…

cwinvestments/memstack · 81 tokens

memstack-product-feedback-analyzer

Use this skill when the user says 'analyze feedback', 'feedback analysis', 'what are customers asking for', or has support tickets, reviews, or survey data to categorize, score, and prioritize into actionable reports. Do NOT use for competitor analysis or market research.

cwinvestments/memstack · 61 tokens