/cclens:doctorfrom cclens
Runs a one-screen health check of Claude Code usage via cclens, showing token spend, always-on context cost, recurring tool failures, and unused config. Use when asked how the setup is doing or where tokens/time go.
Ships in cclens. 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.
Run cclens over the user's Claude Code transcripts and config, then present the
one-screen health check. Everything runs locally and read-only over
~/.claude; nothing is sent anywhere.
cclens if command -v cclens finds it. Otherwise run every
command below through Nix instead: nix run github:lambdalisue/cclens -- <subcommand …>.
If neither cclens nor nix is available, stop and tell the user how to
install it (nix profile install github:lambdalisue/cclens, or
cargo install --git https://github.com/lambdalisue/cclens).Omit --db everywhere: the store defaults to a per-user path
(${XDG_STATE_HOME:-~/.local/state}/cclens/cclens.db), so nothing is dropped
into the current project.
cclens doctor
doctor refreshes the store automatically (incremental; fast when current)
and prints a freshness line on stderr. If the user asked about one layer, add
--scope global or --scope project:<slug>. (doctor has a --format json for machine use, but present the default text form.)
Relay the report's findings in the conversation language, keeping its structure
— it is split into a global section (fix in ~/.claude) and per-project
sections (fix in each project's own config) precisely because those are
different tasks; do not merge them back together. Preserve the caveats it
prints (estimated tokens, evaluation windows); they exist so numbers are not
over-trusted. Do not pad it with generic advice.
Close by naming the follow-ups: /cclens:optimize to investigate and fix the
findings, /cclens:query for any specific slice the report does not show.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lambdalisue/cclens --plugin cclens3 skills in this plugin
/optimizeInvestigate cclens findings about the user's Claude Code usage to root cause and propose concrete config fixes — recurring tool failures, unused or heavy config, always-on context cost. Use when the user wants to optimize their Claude Code configuration, cut token waste or friction, or act on cclens doctor findings./queryAnswer ad-hoc questions about the user's Claude Code usage with read-only SQL over the cclens store (cclens sql) — which files keep failing to edit, which tool errors most, usage per month, any slice the fixed views don't cover. Use when the user asks a specific question about their Claude Code sessions, tool errors, or skill usage.Other plugins' skills for the same job