/slim:slim [file or folder to slim]from slim
Slims CLAUDE.md, rules, and their imports to cut per-session context load, sorting blocks into skills, path rules, or evidence files without losing rules.
Ships in slim. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Lighten what every session pays before its first word, and lose no rule.
Resolve scripts/ from this skill's directory. Run each script with Bash
run_in_background: true and read its output when it ends: a foreground
Bash may run in another shell, without the session's CLAUDE_CONFIG_DIR
or working directory. <work> is a new scratch folder for this run.
Talk in the conversation language.
node scripts/weigh.cjs --save <work>/before.json. Show its
table: every file loaded at launch, its size and its share. An argument
narrows the files to slim; the weighing stays whole.skills/<name>/SKILL.md in the same scope (<config>/skills/ or
<project>/.claude/skills/), its description saying when it applies;paths: rule: a block that matters only for matching files. It loads
after a matching Read, Write or Edit, and user-level patterns start
from the session's working directory: a rule needed before any read
stays loaded;evidence/<file>.md beside rules/ (<config>/evidence/
or <project>/.claude/evidence/), never inside rules/, where every
.md loads.
List the duplicates and contradictions between files too, each with
both passages. Never edit MEMORY.md, nor a block a tool generates
(the GitNexus block between its markers): weigh and report them only.node scripts/check.cjs save <work> <files to change>. Exit
2 names a file with changes not committed: stop there.<work>/rewrites.json as
{"from": "<original>", "to": "<new, or empty>"}. Add once, to the
CLAUDE.md of that scope, one line saying where its evidence lives.node scripts/check.cjs verify <work> --in <evidence dir> --in <rules dir> --in <each new skill or rule> --rewrites <work>/rewrites.json. It puts back, as it was, any file with a piece
found nowhere: report each lost piece in one line, and never write that
file again another way.chore(rules): slim <file>. git revert undoes it. A file outside Git
keeps its .slim.bak copy.node scripts/weigh.cjs --compare <work>/before.json.
Show before, after and the gain. Counts are estimates; /context in a
fresh session gives the exact one. For stale references, suggest
/doctor prompt-audit (Claude Code 2.1.283 or later) in one line.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mirkobozzetto/arsenal --plugin slimOther plugins' skills for the same job