ProSkillsLibraryFreePassScan
Agent Ops

Agent Ops · agent skill

Context Diet

Cut token waste, with before and after numbers.

What it does

Loads when it is needed

Your agent loads it when the agent is slow, expensive or running out of context. It carries 4 rules and reads a profile.md with your details before it starts, so the output matches your brand and project.

Same prompt, with and without

Audit tokens burned per session

Prompt · Claude Code is slow and burning tokens in this repo. Audit my setup and tell me what to cut.

Always loaded:
  CLAUDE.md                    380 lines, about 15,200 chars
  MCP github                   38 tools (gh CLI is installed and logged in)
  MCP playwright               22 tools (no browser code in this repo)
  MCP slack                    12 tools (used once, in March)
  MCP postgres                 6 tools (used weekly)
  Skills                       11 descriptions, about 3,900 chars; 4 used in the last month
Session habits I noticed:
  pytest prints about 3,000 lines when a test fails
  app/models.py (2,400 lines) is read whole most sessions
  uv.lock was pasted into a session once

Profile used: Agents: Claude Code; Project: FastAPI orders API; Stack: Python, uv, pytest, Postgres; Team size: 1 (solo)

Without the skill
Biggest wins first: 1. **Remove the Playwright MCP (22 tools).** No browser code in the repo, so it's pure overhead. Add it back per-project when needed. 2. **Remove the Slack MCP (12 tools).** Used once, in March. Enable it on demand. 3. **Remove the GitHub MCP (38 tools).** The gh CLI is installed and logged in, and Claude can use it via Bash. Probably the largest single saving. 4. **Keep postgres (6 tools)**, since you use it weekly. 5. **Trim CLAUDE.md (about 15k chars, roughly 3.8k tokens every session).** Aim for under 100 lines: commands, gotchas, hard rules. Cut anything the agent can discover from the code. 6. **Skills:** disable the 7 unused ones, saving roughly 2.4k chars. Habits: - pytest output: run `pytest -x -q --tb=short` or pipe through `tail -40`, and put `-q` in addopts. 3,000 lines per failure is very expensive. - app/models.py at 2,400 lines: split it into modules by domain, or have the agent grep and read line ranges instead of the whole file. - uv.lock: never paste it; add it to ignore rules so it isn't read. - Use /clear between unrelated tasks and /compact in long sessions. Check /context before and after to confirm the savings.
With the skill
BEFORE (always loaded; estimated: chars / 4, MCP tools x 150) CLAUDE.md, 380 lines 3,800 MCP github, 38 tools 5,700 MCP playwright, 22 tools 3,300 MCP slack, 12 tools 1,800 MCP postgres, 6 tools 900 Skills, 11 descriptions 975 Total 16,475 CUTS, ranked by saving 1. Replace the github MCP with `gh`: -5,700. Low risk. Ask first. 2. Disable playwright and slack: -5,100. Low risk, re-enable per task. Ask first. 3. Trim CLAUDE.md to commands and gotchas using the line test: -2,900. Diff below for approval. 4. Remove the 7 unused skills: about -600. Ask first. AFTER about 2,200 (-87%) on every session. Keep postgres. Hogs: pytest output (use `pytest -q 2>&1 | tail -40`, rerun one failing test by name, keep the full log in a file); models.py whole (grep for the class, read 50 lines); never paste uv.lock. Compact with: "Keep: goal, decisions and why, files changed, failing tests with exact errors, next step. Drop: dead ends, passing output." Handoff before ending a long session: write handoff.md with Goal / Done / Decisions / Open / Next / Do not redo. Biggest habit: one task per session, started clean.

Both answers from the same model (Claude sonnet), 2026-10-16. The one without the skill was written in a separate session that never saw it. Shortened where marked with …

Install

One command, in your project

It detects your agent; add --agent all for every agent.

npx proskills-cli add context-diet --order <order id from your receipt>

Or copy the skill folder (the one holding SKILL.md) into the directory your agent reads, then restart it or start a new session.

AgentThis projectEvery project
Claude Code.claude/skills/~/.claude/skills/
Cursor.agents/skills/ (or .cursor/skills/)~/.cursor/skills/
Codex.agents/skills/~/.agents/skills/
Gemini CLI.agents/skills/ (or .gemini/skills/)~/.gemini/skills/

Changelog

What changed

  • v1.0.0 · 2026-10-16
    • First versioned release: Cut token waste, with before and after numbers.
    • Scanned 100/100 before release.

Keep it current with npx proskills-cli update; your profile.md is never touched. Everyone who bought it gets the update free and an email when it lands.

Same collection

More from Agent Ops

The scan checks spec compliance, token cost, clarity and security patterns. A clean scan is not a guarantee: static scanners can be evaded. Scan any skill yourself.