/gander:context-auditfrom Gander
Audits a Claude Code project's always-on context (CLAUDE.md, MCP servers, skills, memory, agents) to identify per-turn token cost and suggests concrete trims including a leaner CLAUDE.md rewrite. Pairs with the Gander dashboard for live cache-hit data.
Ships in Gander. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Find what a project pays for on every single turn and cut it. The expensive thing in a long Claude Code session is rarely the user's prompt — it's the always-on context (system prompt + CLAUDE.md + loaded tools/skills + conversation) that gets re-sent each turn and billed as cache-read. Shave 5k tokens off something that loads every turn and you save it across the whole session.
/compact), CLAUDE.md files, enabled MCP servers (their tool schemas), available skills (name + description listed each turn), memory, agents, hooks.Ground the audit in real spend before guessing. The bridge runs on http://localhost:3131:
curl -s http://localhost:3131/api/usage
In bySession, find this project's sessions and read: cacheHit, outShare, ctxPct, costUSD.
cacheHit (>90%) + low outShare (<15%) → the lever is context size, not verbosity. Focus on CLAUDE.md / MCP / /compact.outShare (>25%) → answers are verbose; a terse-output style helps more than trimming context.ctxPct (>70%) → recommend /compact now (also surfaced as a button in the Gander agent modal).If the bridge isn't up, skip to Step 2 — the file audit stands on its own.
Measure each item's size. Rough token estimate: tokens ≈ characters ÷ 4 (use ÷3.5 for dense code/markdown). Count chars:
# bash / macOS / Linux
wc -c CLAUDE.md ~/.claude/CLAUDE.md 2>/dev/null
find . -name CLAUDE.md -not -path '*/node_modules/*' -exec wc -c {} +
# Windows PowerShell
(Get-Content .\CLAUDE.md -Raw -ErrorAction SilentlyContinue).Length
(Get-Content $env:USERPROFILE\.claude\CLAUDE.md -Raw -ErrorAction SilentlyContinue).Length
Inventory, each as ~tokens/turn:
~/.claude/CLAUDE.md) + project + any nested ones in the working tree. All in-scope ones load every turn..mcp.json in the project, enabledMcpjsonServers / enableAllProjectMcpServers in .claude/settings.json, and ~/.claude.json). Each enabled server injects all its tool schemas into every turn — often the biggest hidden cost. Note which ones the session actually used (check the transcript / Gander activity); unused = pure waste.name + description is listed each turn (progressive disclosure). Count them and total the description lengths (~/.claude/skills/*/SKILL.md + project .claude/skills). Long descriptions on rarely-used skills add up.~/.claude/CLAUDE.md memory blocks / MEMORY.md + any auto-loaded memory files.Sort the inventory by tokens/turn, largest first. For each, ask one question: is this needed on every turn?
disabledMcpjsonServers, or the Gander Config panel).Quantify: tokens_saved/turn × typical_turns × cache-read_price (Opus cache-read ≈ $1.50/M, Sonnet ≈ $0.30/M). Show the per-session dollar estimate so the trim is justified.
Produce, concretely:
cacheHit / ctxPct / costUSD in /api/usage (or the Gander modal) to confirm the drop.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub weellio/gander --plugin gander4 skills in this plugin
/agent-opsControl the Gander dashboard — open/show it, restart the bridge, reset the agent tiles, or check status. Use when the user asks to open/show the agent dashboard, start or stop the visualizer, or clear the agents./autopilotAutonomously execute a multi-step task — plan it, spawn sub-agents per task, and run to completion without asking for confirmation between steps. Use when the user says "build/do X autonomously", "keep going until done", or "don't ask me, just finish it"./component-builderUse when the user wants to create a new Claude Code agent, skill, or slash command — "build me an agent that…", "make a skill that…", "create a command for…". Generates correct YAML front matter + body following best practices and writes the file to the right .claude location (one project, several, or global). Pairs with the Gander dashboard's New-component builder.Other plugins' skills for the same job