/claude-prospector:session-analysisfrom claude-prospector
Use when the user wants a judgment-level read on whether a Claude Code session stayed on task — did the agent do what was originally asked, and what did it acknowledge skipping. This is the interpretive (LLM) complement to the deterministic `session-audit` CLI: 1a extracts ask-vs-done for free; this skill adds the `Variance` and `What was NOT done` judgment that a parser can't compute, then persists a combined record for drift analysis. Cost: ~1-3k tokens of the current session, paid only when invoked. Opt-in by design — run it selectively, not on every session. Best run in a Sonnet (or stronger) session; the judgment quality depends on it. Use `session-audit` (CLI) for the free deterministic ask/actions extract. Use `usage-analysis` for token-spend insights. Use `claude-audit` for agent/skill config overlap. Use THIS skill for "did this session drift from what I asked". Trigger phrases: "/session-analysis", "did this session stay on task", "analyze session drift", "did the agent do what I asked", "what did this session skip", "variance analysis for session", "audit this session for drift", "check session <id> for variance".
Trending skills
7-day visitors to each skill page
Ships in claude-prospector. 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.
You are producing the judgment half of session drift-detection: given a session's deterministic ask-vs-done extract (from 1a), assess whether the agent stayed on task and what it acknowledged leaving undone — then persist a combined record. This is interpretive work; a deterministic parser cannot do it, which is exactly why it costs LLM tokens and is opt-in.
This skill drives the claude_prospector CLI. The package must be installed
in the environment Claude Code uses — see the
README install steps.
The session-id (or transcript path) is `` if provided.
~/.claude/projects/<encoded-cwd>/*.jsonl (newest mtime) and
confirm the session-id with the user before spending tokens — variance
analysis is opt-in, don't guess silently.python -m claude_prospector session-audit --session-id <id> --format json
This returns {original_ask, prior_asks, actions}. original_ask is the
authoritative first ask; prior_asks are later distinct asks in the session;
actions are the Edit/Write/NotebookEdit file paths. Reason over this — it is
your ground truth for "what was asked" and "what was changed".
For richer context (reasoning, tool failures, what the agent said it was
doing), also read the transcript itself at the resolved
~/.claude/projects/<…>/<id>.jsonl. Use it to judge intent, not to recompute
the deterministic fields.
Assess two fields against original_ask (+ prior_asks for multi-task
sessions):
variance — did the agent stay on the original ask? Note scope creep,
approach pivots, or drift onto a later ask at the expense of the first.
Cite specifics (a file in actions unrelated to the ask; a pivot point in
the transcript). If it stayed on task, say so plainly — "no variance" is a
valid, useful finding.not_done — what did the agent acknowledge skipping or defer? Prefer
the agent's own admissions in the transcript over your speculation. If
nothing was skipped, say so.Optionally assign severity (integer 0-3): 0 = on task, 1 = minor drift,
2 = notable unrequested scope or skipped ask, 3 = the session largely did not
do what was asked. Omit (null) if you can't justify a number.
Be evidence-bound: every claim cites a file path, a prior_asks entry, or a
transcript moment. Do not invent drift to fill the field.
Write the judgment to a temp JSON file (prose is multi-line; don't fight shell
escaping), then call variance-save. It re-loads 1a internally and writes the
combined {1a fields + your judgment} to <data>/variance/<id>.json:
# judgment.json: {"variance": "...", "not_done": "...", "severity": <int|null>}
python -m claude_prospector variance-save --session-id <id> --judgment-file judgment.json
variance-save finds the transcript under ~/.claude and writes output under
the plugin data dir by default — no extra flags needed. It prints the written
path; surface that to the user.
Give the user a short variance report (NOT a JSON dump):
Session <id> — variance: <one-line verdict, severity if assigned>
Asked: <original_ask, trimmed>
Variance: <the judgment, with its citation>
Skipped: <not_done, with its citation>
Saved: <path printed by variance-save>
prior_asks.length > 0. Selective use is the whole cost
argument — 1a+1b beats the abandoned always-on hook only when 1b runs on a
minority of sessions.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/claude-auditAudit a project's effective Claude Code configuration — custom and plugin-provided agents and skills — and produce a structured overlap/conflict report with keep / modify / drop recommendations scoped to the project's stated objectives. Trigger this skill whenever the user types `/claude-audit`, asks to "audit my claude config", "find overlap in my agents", "check for skill conflicts", "are any of my agents duplicates", "what's redundant in my setup", or any similar request to review the agent/skill surface for the current project. Also trigger after a fresh plugin install when the user wants to verify nothing new collides with what's already there.
/setup-prospectorSet up claude-prospector's plugin-owned Python venv. Invoked via /setup-prospector or natural-language triggers: "set up claude-prospector", "install prospector dependencies", "prospector isn't working", "fix prospector", "repair prospector". Do not trigger on "dashboard", "usage analysis", or "skill adoption" — those are distinct skills.
/usage-analysisUse when the user asks an interpretive question about their Claude Code token spend — what's interesting, what's anomalous, what to change. This skill produces insights and questions; it does NOT enumerate top consumers (the dashboard does that).
Use `usage-dashboard` for "show me the numbers." Use `claude-audit` for "audit my config overlap." Use this skill for "tell me what's interesting / what should I change."
Trigger phrases: "am I close to my Claude limit", "how much Sonnet am I using", "where are my Claude tokens going", "what's eating my Claude budget", "why is my Claude spend so high", "what should I change about my Claude setup".
/usage-dashboardUse when the user explicitly asks to regenerate, rebuild, or refresh the `claude-prospector` token-usage dashboard with no interpretive question attached — runs `python -m claude_prospector dashboard`, writes the HTML file, and reports the output path. Do NOT use when the user is asking what the data means, where their budget stands, or what to change (use `usage-analysis` instead — it regenerates as part of answering). Trigger phrases: "regenerate the usage dashboard", "rebuild my claude-prospector dashboard", "refresh the token dashboard", "regen the prospector dashboard".
claude-prospector@glitchwerks is listed by glitchwerks/claude-plugins — review the source before installing
npx claudepluginhub glitchwerks/claude-plugins --plugin claude-prospector