Skip to content
Back to skills

Slim

ASecurity

Slim the instructions an agent harness loads in every session (CLAUDE.md or AGENTS.md, rules, their imports) without losing a rule - weigh them, sort every block, show the changes, write only on the user's go, prove nothing was lost, weigh again.

  • 23 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
ai-agentsgoshellbashnodegit

Works with

  • claude code

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add mirkobozzetto/arsenal --skill slim --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Slim?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Slim
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mirkobozzetto-slim/badge)](https://www.skillsdirectory.com/skills/mirkobozzetto-slim)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: slim
description: Slim the instructions an agent harness loads in every session (CLAUDE.md or AGENTS.md, rules, their imports) without losing a rule - weigh them, sort every block, show the changes, write only on the user's go, prove nothing was lost, weigh again.
argument-hint: "[file or folder to slim]"
---

# Slim

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 environment
(`CLAUDE_CONFIG_DIR`, `CODEX_HOME`) or working directory. `<work>` is a
new scratch folder for this run.
Talk in the conversation language.

1. **Weigh.** `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. Outside Claude
   Code, add `--harness <codex|pi|omp|profile file>` to every weigh.cjs
   call: it weighs that harness's instruction files and its size cap.
2. **Sort.** Read each file and give every block one destination:
   - stays loaded: a rule every session needs, kept short;
   - skill: a procedure, or a block for one kind of task. It becomes
     `<name>/SKILL.md` in the skills folder of the same scope (Claude
     Code: `<config>/skills/` or `<project>/.claude/skills/`; another
     harness: the skills folder its docs name), its description saying
     when it applies;
   - `paths:` rule, Claude Code only: 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. Another harness has no
     such rule: the block stays loaded or becomes a skill;
   - evidence: a dated citation, a date, the story of why. It moves word
     for word to `evidence/<file>.md` in a folder the harness never loads:
     under Claude Code, beside `rules/` (`<config>/evidence/` or
     `<project>/.claude/evidence/`), never inside `rules/`, where every
     `.md` loads; elsewhere, beside the instruction file.
   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.
3. **Show.** File by file: what moves where, and each rewritten or removed
   sentence beside its original. Write nothing yet. Ask one question for
   the go; the user may validate some files and not others.
4. **Save.** `node scripts/check.cjs save <work> <files to change>`. Exit
   2 names a file with changes not committed: stop there.
5. **Write** only what was validated. Move text word for word. Each
   validated rewrite or removal goes in `<work>/rewrites.json` as
   `{"from": "<original>", "to": "<new, or empty>"}`. Add once, to the
   main instruction file of that scope (`CLAUDE.md`, `AGENTS.md`), one
   line saying where its evidence lives.
6. **Verify.** `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.
7. **Commit** each changed file in the repository that holds it:
   one commit per file, with the evidence, skill or rule it fed,
   `chore(rules): slim <file>`. `git revert` undoes it. A file outside Git
   keeps its `.slim.bak` copy.
8. **Weigh again.** `node scripts/weigh.cjs --compare <work>/before.json`.
   Show before, after and the gain. Counts are estimates; under Claude Code,
   `/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.

Files in this skill

  • SKILL.md3.3 KB
  • scripts/check.cjs6.9 KB
  • scripts/weigh.cjs6.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.