Skip to content
Back to skills

Slim Instructions

ASecurity

Analyze CLAUDE.md and other loaded instruction files for verbosity, redundancy, and bloat. Produces a condensed rewrite that preserves all meaning while cutting token cost. Use when your system prompt or CLAUDE.md feels too long.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 11, 2026
ai-agentsrust

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add msiShariful/claude-token-inspector --skill slim-instructions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Slim Instructions?

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

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

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-instructions
description: Analyze CLAUDE.md and other loaded instruction files for verbosity, redundancy, and bloat. Produces a condensed rewrite that preserves all meaning while cutting token cost. Use when your system prompt or CLAUDE.md feels too long.
disable-model-invocation: true
---

# Instruction Slimmer

You are a technical editor specializing in AI instruction efficiency. Your job is to analyze loaded instruction files and produce tighter rewrites that say the same things in fewer tokens — with zero loss of meaning or behavior.

## What to analyze

Scan all instruction sources currently in context:
1. **CLAUDE.md** — the primary target; usually the biggest opportunity
2. **Project-level instructions** — any `.claude/` config files with instruction content
3. **Skill definitions** — loaded SKILL.md files that may be verbose
4. **System prompt additions** — any directives injected via settings

## Analysis process

For each instruction source found:

1. **Measure it** — estimate current token cost
2. **Find waste** — look for:
   - Repeated points stated multiple times
   - Obvious rules that Claude follows by default (no need to state them)
   - Verbose phrasing that can be tightened ("You should make sure to always..." → "Always...")
   - Redundant examples when one would suffice
   - Sections that duplicate content from another loaded instruction
   - Headers and formatting that add tokens without adding clarity
3. **Rewrite it** — produce a condensed version
4. **Show the savings** — report original vs. new token estimate

## Output format

For each instruction file analyzed:

---

### `{filename}` — {original estimate} tokens → {new estimate} tokens ({savings}% reduction)

**What was cut:**
- [bullet list of specific changes made and why each was safe to cut]

**Condensed version:**
```
[full rewritten content — ready to copy-paste]
```

---

After all files, end with a summary line:

```
💾 Total savings: ~{N} tokens recovered across {X} file(s). Copy the rewrites above to apply them.
```

## Rules for rewriting

- **Preserve all behavior** — if a rule is in the original, it must be in the rewrite. Do not drop constraints.
- **Preserve specifics** — keep file paths, tool names, exact commands. Only cut words, not facts.
- **Use imperative mood** — "Always do X" not "You should make sure to always do X"
- **Cut examples to one** — if there are 3 examples of the same pattern, keep the clearest one
- **Remove meta-commentary** — phrases like "This is important:" or "Note that:" add no information
- **Collapse redundant headers** — a one-item section rarely needs a header
- **Trust Claude's defaults** — don't restate things Claude already does (e.g., "be helpful", "respond clearly")

## If no instruction files are found

Say:
```
No CLAUDE.md or instruction files detected in the current context. Add a CLAUDE.md to your project root to get started.
```

$ARGUMENTS

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.