/claude-prospector:setup-prospectorfrom claude-prospector
Set 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.
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.
This skill materialises the plugin-owned Python venv that the plugin's hooks
need to run claude-prospector as a subprocess. Run it once after first install
and after any plugin version update.
${CLAUDE_PLUGIN_DATA}Read the CLAUDE_PLUGIN_DATA environment variable, but do not trust it
blindly. When this skill is driven from a main session, CLAUDE_PLUGIN_DATA
may be set to a different plugin's data dir (observed in the wild as
.../data/codex-openai-codex). Before using it, confirm its basename begins
with claude-prospector- — i.e. it is this plugin's data dir. The marketplace
suffix may legitimately differ (-glitchwerks for the public install, or
another suffix for a local/forked marketplace), so match the claude-prospector-
prefix, not a hardcoded marketplace. If CLAUDE_PLUGIN_DATA is unset, empty,
or its basename belongs to a different plugin, ignore it and compute the
default instead (using the canonical glitchwerks marketplace slug):
~/.claude/plugins/data/claude-prospector-glitchwerks/
The slug is <plugin>-<marketplace> — claude-prospector published from the
glitchwerks marketplace — with every character outside [a-zA-Z0-9_-]
replaced by a hyphen.
Create the directory if it does not exist.
Find a Python ≥ 3.10 interpreter using this probe chain (stop at first success):
flag.interpreter from the prior setup-state.json (if a flag exists from a
previous run, try that interpreter first).$CLAUDE_PROSPECTOR_BOOTSTRAP_PYTHON environment variable (absolute path).py -3 (Windows only).python3pythonProbe each candidate with:
<candidate> -c "import sys; sys.exit(0 if sys.version_info >= (3, 10) else 1)"
If all candidates fail, ask the user:
"No Python ≥ 3.10 interpreter found. Please provide an absolute path to a Python 3.10+ executable, or set CLAUDE_PROSPECTOR_BOOTSTRAP_PYTHON."
If ${CLAUDE_PLUGIN_DATA}/venv/ exists, remove it entirely:
shutil.rmtree(<plugin_data>/venv)
This is always-wipe-first (spec D4). A partial venv from a failed previous run is handled correctly by this unconditional removal.
<python_cmd> -m venv <plugin_data>/venv
Where <python_cmd> is the interpreter found in Step 2. If this fails, surface
the stderr to the user and do NOT proceed to Step 5.
First, ensure pip is available in the new venv:
<venv_python> -m ensurepip --upgrade
Then install the exact plugin version from the configured package index:
<venv_python> -m pip install claude-prospector==<version>
Where <version> is the current plugin version (read from pyproject.toml
[project].version, falling back to .claude-plugin/plugin.json version).
If $CLAUDE_PROSPECTOR_PIP_SPEC is set, use its value as the entire package
spec instead of claude-prospector==<version> (test/dev override only). The
override is authoritative: if that install fails, surface stderr verbatim,
wipe the partial venv, and do NOT offer another install source or proceed to
Step 6.
If the default exact-version install succeeds, proceed to Step 6. If it fails, preserve and surface stderr verbatim, but do not wipe the venv yet. Ask the user:
"The preferred package-index install for claude-prospector v
<version>failed. May I download the matchingv<version>tag from the publicglitchwerks/claude-prospectorGitHub repository, resolve it to an immutable commit SHA, and build it into the plugin venv?"
This prompt is mandatory. Prior permission to run setup, a request not to interrupt, or general network access is not approval for the GitHub fallback.
If the user declines, wipe the partial venv and do NOT proceed to Step 6. Only after explicit approval, resolve the version-matching tag:
git ls-remote https://github.com/glitchwerks/claude-prospector.git \
"refs/tags/v<version>" "refs/tags/v<version>^{}"
If a peeled refs/tags/v<version>^{} line is present, require exactly one such
line and use its 40-character hexadecimal commit SHA; ignore the direct tag-
object SHA. Otherwise, require exactly one direct refs/tags/v<version> line
and use its 40-character hexadecimal SHA as the lightweight tag's commit. A
missing, duplicate, or malformed applicable result is a failure. Never install
from the tag name, main, or another moving ref.
Install from the immutable commit SHA so pip clones the public repository and builds the package into the new venv:
<venv_python> -m pip install \
"git+https://github.com/glitchwerks/claude-prospector.git@<commit_sha>"
If Git is unavailable, tag resolution fails, or the source install fails, surface the actionable error (including stderr), wipe the partial venv, and do NOT proceed to Step 6. This fallback still requires the configured package index or local cache to supply any missing build and runtime dependencies.
<venv_python> -c "import claude_prospector"
If this fails, wipe the venv and report the import error. Suggest
pip cache purge and retry if the error looks like a wheel issue.
Write ${CLAUDE_PLUGIN_DATA}/setup-state.json with this shape:
{
"version": "<current_version>",
"venv_path": "<absolute_path_to_venv_dir>",
"interpreter": "<probe_string_from_step_2>",
"installed_at": "<UTC_ISO_8601_timestamp>"
}
The venv_path is the absolute path to the venv root (e.g.
C:/Users/alice/.claude/plugins/data/claude-prospector-glitchwerks/venv).
The interpreter is the raw command string from Step 2 (e.g. py -3 or
python3), not an absolute path, so re-setup can reuse it.
Report success:
"Setup complete. Open a new Claude Code session to activate claude-prospector. The dashboard, skill-tracking, and usage-analysis features will work normally after the next session starts."
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.
/session-analysisUse 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".
/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