slim-instructions

slim-instructions is a skill for Claude Code from msiShariful/claude-token-inspector. It costs 47 tokens per session (665 once invoked), scanned A, original, MIT.

A writing and editing skill for instruction files such as CLAUDE.md, which tell an AI coding agent how to work. It finds repeated or unnecessary wording and creates a shorter version with the same meaning.

In plain words
What is it for?
Use it to review and condense project instructions, configuration guidance, skill definitions, or other loaded rules.
Why use it?
Long instruction files use context space and can repeat rules. Shortening them reduces that overhead while keeping the intended behavior.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md.

Part of the token-inspector plugin — 8 skills shipped together

Good fit Use it to review and condense project instructions, configuration guidance, skill definitions, or other loaded rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/msishariful/claude-token-inspector/slim-instructions
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 msiShariful/claude-token-inspector --skill slim-instructions
Clone the repo
git clone --depth 1 https://github.com/msiShariful/claude-token-inspector

Made for: Claude Code.

Or install token-inspector, the plugin that ships this one along with the rest of its 8 skills.

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 slim-instructions

README.md
[![agentmods](https://agentmods.dev/badge/skills/msishariful/claude-token-inspector/slim-instructions/github.svg)](https://agentmods.dev/skills/msishariful/claude-token-inspector/slim-instructions)
Your own site
<a href="https://agentmods.dev/skills/msishariful/claude-token-inspector/slim-instructions"><img src="https://agentmods.dev/badge/skills/msishariful/claude-token-inspector/slim-instructions/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 slim-instructions

Your own site · 80×15
<a href="https://agentmods.dev/skills/msishariful/claude-token-inspector/slim-instructions"><img src="https://agentmods.dev/badge/skills/msishariful/claude-token-inspector/slim-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 665 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.00047 $0.00665
Opus 5 $0.00023 $0.00332
Sonnet 5 $0.00009 $0.00133
Haiku 4.5 $0.00005 $0.00067

Measured 9d ago against content hash 1014801ff8ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

slim-instructions 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 9d 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.

skills/slim-instructions/SKILL.md · 75 lines

How it starts

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

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")

Read the full file on GitHub · 75 lines

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. 9d ago First seen · 75 lines · 47 tokens per session scan A 1014801ff8ce

Subscribe to this mod's changes

slim-instructions is a skill published in the GitHub repository msiShariful/claude-token-inspector (4 stars, last pushed 3mo ago), licensed MIT. It adds 47 tokens to every session and 665 once invoked, about $0.0002 per session on Opus 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-08-31.

Related

Other skills, from other repositories

docs-drift

Documentation-drift audit for this plugin monorepo. Audit either each scoped plugin's unreleased changelog claims or its latest shipped release from the previous reachable plugin-name--v tag, then verify that plugin READMEs, docs, CLAUDE.md or AGENTS.md files, and root documentation tell the truth for the matching…

gtapps/claude-code-hermit · 170 tokens

cco-tools

Show what tools actually cost in tokens — learned per-tool averages from observed results, replacing the hardcoded MCP/Agent guesses.

egorfedorov/claude-context-optimizer · 27 tokens

github-pr-creation

Creates GitHub Pull Requests with automated validation and task tracking. Use when user wants to create PR, open pull request, submit for review, or check if ready for PR. Analyzes commits, validates task completion, generates Conventional Commits title and description, suggests labels. NOTE - for merging existing…

fvadicamo/dev-agent-skills · 75 tokens

test-run

Run plugin test suites in this monorepo and report a concise pass/fail summary. Optional plugin slug arg; without arg, runs all plugins under plugins/.

gtapps/claude-code-hermit · 35 tokens

design-system-reference

Style guides and implementation rules for frontend design. Works with design-discovery agent which handles context gathering and VS-based style recommendations. Contains detailed style guides, anti-patterns, and implementation checklists.

wigtn/wigtn-plugins · 43 tokens

magic-compact

Compact this Claude Code session.

aerovato/magic-compact · 10 tokens