md-composer

md-composer is a skill for Claude Code from MSApps-Mobile/claude-plugins. It costs 166 tokens per session (1,399 once invoked), scanned A, original, MIT.

A tool for auditing, writing, and reorganizing CLAUDE.md files, which give a coding agent instructions and project context. It keeps frequently needed guidance in the main file and moves less common details to more specific locations.

In plain words
What is it for?
Use it to trim an oversized CLAUDE.md, create one, split instructions by folder or scope, and rewrite negative rules as positive guidance.
Why use it?
Large instruction files consume the agent's context and can make guidance harder to follow. This helps reduce repeated or misplaced instructions across project, user, and local files.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Part of the md-composer plugin — 1 skill shipped together

Good fit Use it to trim an oversized CLAUDE.md, create one, split instructions by folder or scope, and rewrite negative rules as positive guidance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/msapps-mobile/claude-plugins/md-composer
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 MSApps-Mobile/claude-plugins --skill md-composer
Clone the repo
git clone --depth 1 https://github.com/MSApps-Mobile/claude-plugins

Made for: Claude Code.

Or install md-composer, the plugin that ships this one along with the rest of its 1 skill.

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 md-composer

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/msapps-mobile/claude-plugins/md-composer"><img src="https://agentmods.dev/badge/skills/msapps-mobile/claude-plugins/md-composer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 166 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,399 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.00166 $0.01399
Opus 5.5 $0.00066 $0.00560
Sonnet 5.5 $0.00033 $0.00280
Haiku 4.5 $0.00017 $0.00140

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

Security

Grade A, and why

md-composer 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 4d 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.

plugins/md-composer/skills/md-composer/SKILL.md · 141 lines

How it starts

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

CLAUDE.md Composer

Treat CLAUDE.md as a recipe book on the counter, not a filing cabinet. Every token in CLAUDE.md is loaded into every session — so keep only what's needed for every interaction, and push everything else to Skills, docs/, or Commands.

The 200-line rule

The root CLAUDE.md should fit on one screen (~200 lines max). If it doesn't, something belongs elsewhere.

When to use this skill

  1. Audit — user has an existing CLAUDE.md and wants it trimmed
  2. Compose — user wants a fresh CLAUDE.md for a project
  3. Refactor — split monolith into the 4-level hierarchy
  4. Flip — convert negative rule lists to positive equivalents

The 4-level hierarchy

Enterprise policy         ← org-wide, IT-managed, highest precedence
       ↓
./CLAUDE.md               ← project memory (committed)
       ↓
~/.claude/CLAUDE.md       ← user memory (personal, all projects)
       ↓
./CLAUDE.local.md         ← project local (gitignored, private)

Feature-level CLAUDE.md files in subdirs load only when Claude touches that subtree — use them to scope per-folder conventions (/api, /frontend) without paying the token cost globally.

Workflow

Step 1 — Audit existing file

Read the target CLAUDE.md and report:

  • Line count (flag if >200)
  • Token estimate (~4 chars/token)
  • Bloat categories found (see reference/anti-patterns.md)
  • Candidates for extraction (docs dumps, file preloads, step-by-step tutorials, negative rule spirals)

Step 2 — Classify every section

For each section, decide:

Keep in CLAUDE.md Extract
Project identity (2-3 sentences) API documentation → docs/api.md
House rules (positive form) Step-by-step workflows → Skill
Output preferences Reusable prompts → slash command
Hard boundaries File preloads (@file:…) — delete
Quick reference (paths, entry points) Detailed reference tables → docs/

Step 3 — Apply the recipe-book template

Read the full file on GitHub · 141 lines

Files

What ships with it

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

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. 4d ago First seen · 141 lines · 166 tokens per session scan A e23e1bef3ad9

Subscribe to this mod's changes

md-composer is a skill published in the GitHub repository MSApps-Mobile/claude-plugins (9 stars, last pushed today), licensed MIT. It adds 166 tokens to every session and 1,399 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-10-12.

Related

Other skills, from other repositories

decision

Full decision lifecycle in Semantica — record, query, find precedents (hybrid/advanced), analyze influence, explain, insights dashboard, list, and record exceptions. Uses AgentContext, ContextGraph, DecisionQuery, CausalChainAnalyzer, DecisionRecorder.

semantica-agi/semantica · 55 tokens

session-handoff

Synthesizes the current session into a structured HANDOFF block for context transfer between sessions. Captures what was built, decisions made, and unresolved items.

SethGammon/Citadel · 35 tokens

optimizer

Framework-driven audit and optimizer for a Baalda vault. Applies 10 frameworks covering CLAUDE.md quality, wiki structure, compression, context rot, memory, progressive disclosure, hygiene, cross-file synthesis, architecture and discoverability, plus F10 Claude 5 rule rewriting. Every finding ships a concrete fix; the…

naveedharri/benai-skills · 215 tokens

agentic-os-obsidian

Set up an agentic OS inside an Obsidian vault — a configurable command-center dashboard with 5 auto-installed, bundled plugins (Dataview, CustomJS, Shell-commands, Terminal, Homepage), Home + per-profile + Vault Overview pages, KPI cards, sparklines, heatmap, task rollup, and a button bar wired to user-defined Claude…

naveedharri/benai-skills · 154 tokens

operator

Build and schedule a personalized Operator prompt that runs a Baalda vault as a second brain on a recurring cadence. Run it from inside the vault: it reads Context/ and CLAUDE.md first to infer org, team, brand voice and paths, then asks only the gaps (cadence, connectors, DM recipient, budgets, signature), writes the…

naveedharri/benai-skills · 156 tokens

skill-os-builder

Stand up a self-contained second-brain "OS" that lives entirely inside a Claude skill — a short SKILL.md router plus context files, no vault, cloud, or MCP server. Use when the user says "set up a skill OS", "build my second brain as a skill", "skill OS", or wants the simplest portable AI OS.

naveedharri/benai-skills · 75 tokens