Skip to content
Back to skills

Context Slimmer

ASecurity

Audit and slim down always-loaded context files (AGENTS.md, TOOLS.md, USER.md, MEMORY.md, HEARTBEAT.md, SOUL.md, IDENTITY.md). Use when asked to reduce token usage, audit context files, optimize context window, or slim down workspace files. Measures current token cost and identifies what to move, remove, or compress.

  • 21 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 7, 2026
toolsbash

Security analysis

A100/100

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

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill context-slimmer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Context Slimmer?

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

Security grade badge for Context Slimmer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-context-slimmer/badge)](https://www.skillsdirectory.com/skills/modbender-context-slimmer)

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: context-slimmer
description: Audit and slim down always-loaded context files (AGENTS.md, TOOLS.md, USER.md, MEMORY.md, HEARTBEAT.md, SOUL.md, IDENTITY.md). Use when asked to reduce token usage, audit context files, optimize context window, or slim down workspace files. Measures current token cost and identifies what to move, remove, or compress.
---

# Context Slimmer

Audit workspace files that load into every message and reduce their token footprint.

## Quick Start

```bash
# Measure current context cost
bash scripts/measure.sh

# Full audit (outputs recommendations)
bash scripts/measure.sh --audit
```

## Audit Process

For each always-loaded file, evaluate:

1. **Move to skill** — Content only needed for specific tasks (betting config, group chat rules, detailed protocols). Move to a skill or reference file that loads on demand.
2. **Remove** — Outdated info, dead features, completed one-time setup, duplicated content across files.
3. **Compress** — Verbose explanations that could be 1 sentence. If the agent already knows it, cut it.

## Rules of Thumb

- If a cron job handles it, remove it from HEARTBEAT.md
- If it's in SOUL.md, don't repeat it in MEMORY.md or AGENTS.md
- If it's in USER.md, don't repeat it in MEMORY.md
- If the agent does it daily, it doesn't need instructions — just a trigger word
- Prefer 1 sentence over 5 bullets saying the same thing
- Target: each file should justify every line's token cost

## Expected File Sizes (lean targets)

| File | Target |
|------|--------|
| AGENTS.md | < 500 tokens |
| TOOLS.md | < 500 tokens |
| USER.md | < 700 tokens |
| MEMORY.md | < 400 tokens |
| HEARTBEAT.md | < 400 tokens |
| SOUL.md | < 250 tokens |
| IDENTITY.md | < 50 tokens |
| **Total** | **< 2,800 tokens** |

## Output Format

Report: current size, projected size, savings per file. Include specific recommendations grouped by move/remove/compress.

Files in this skill

  • SKILL.md1.9 KB
  • scripts/measure.sh3.3 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 tools →

Comments

Loading comments…

Newsletter

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