token-x-ray — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited token-x-ray (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Fixes: #39686
"43 claude.ai Skills (~3,950 tokens) and 26 Cowork plugins (~2,020 tokens) silently injected into Claude Code context — no opt-out, ~6k tokens wasted per session." — issue #39686
Claude Code's /context shows category totals but no per-item breakdown. You see "Skills: 4,200 tokens" with no idea which of your forty skills is doing the damage. token-x-ray itemizes every auto-injected source so you can decide what to cut.
When invoked, run the bundled audit.py script (next to this SKILL.md) and present its output verbatim. The script discovers:
| Source | Where it looks |
|---|---|
| MCP servers | ~/.claude.json, ~/.claude/settings.json, <cwd>/.claude/settings*.json, <cwd>/.mcp.json |
| CLAUDE.md | ~/.claude/CLAUDE.md, <cwd>/CLAUDE.md, <cwd>/.claude/CLAUDE.md |
| Skills | ~/.claude/skills/, <cwd>/.claude/skills/, ~/.claude/plugins/*/skills/ |
| Subagents | ~/.claude/agents/, <cwd>/.claude/agents/ |
| Slash commands | ~/.claude/commands/, <cwd>/.claude/commands/ |
For each source, it estimates tokens using the 4-chars-per-token heuristic. MCP servers are flagged separately because their tool schemas can only be measured by invoking the server — the script uses a per-server estimate and points the user at /context for the authoritative number.
${CLAUDE_PLUGIN_ROOT}/skills/token-x-ray/audit.py--json, --cwd, --home),forward them.
table, and the suggested cut commands are the value — reformatting them defeats the purpose.
each by heuristic) but require you to actually remove the server entry from settings
servers are in active use
mv and "remove fromsettings" hints are for the user to inspect and run themselves.
/claude-papercuts:token-x-ray/context showing surprising numbersschemas. That would be slow and can fail; we use a heuristic and flag it explicitly.
copy-paste, not auto-apply.
visible in /context directly and changes every turn.
prompt, tool catalog, etc.). Those are not user-controllable.
# Machine-readable JSON for piping into other tools
${CLAUDE_PLUGIN_ROOT}/skills/token-x-ray/audit.py --json
# Audit a different project directory
${CLAUDE_PLUGIN_ROOT}/skills/token-x-ray/audit.py --cwd /path/to/projectRun after every plugin/MCP install. If /context ever surprises you, this is the first thing to run.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.