/clarity:clarity-doctor [days]from clarity
Run Clarity's Doctor — scan the past 30 days of Claude Code token usage, find problems, recommend fixes. Writes .clarity/doctor-report.md in the current directory.
Ships in clarity. 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.
Read-only diagnostic. Scans ~/.claude/projects/**/*.jsonl for all recent sessions across all projects, attributes cost using Opus 4.7 list prices (cache_read weighted at 0.1x, not 1x — the common mistake in DIY analyzers), surfaces the top expensive sessions and top projects, and flags 2-3 concrete fix recommendations.
$1 — number of days to analyze (default: 30)
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/analyze.py" --since-days "${1:-30}" --out .clarity/doctor-report.md
Then Read .clarity/doctor-report.md and summarize for the user in 3-5 bullet points:
ENABLE_PROMPT_CACHING_1H=1).claude/ structure for the hot project — see case study)What SKILL.md sets; muted values are Claude Code's defaults
First install of Clarity, or any time token spend feels off. Also when switching to a new project and wanting a baseline. Read-only — safe to run anytime.
lowOther plugins' skills for the same job
npx claudepluginhub agent-next/clarity --plugin clarity