/claude-prospector:claude-auditfrom claude-prospector
Audit 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.
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.
Produce a deterministic overlap/conflict report for the project's effective Claude Code
configuration. The audit considers user-scope (~/.claude/), project-scope
(<project>/.claude/), and plugin-provided sources together — because that is what the agent
actually loads at runtime.
The output is a single markdown report. The skill itself does not modify any files. All recommendations are presented to the user; they decide what to change.
Before evaluating overlaps, read the project's CLAUDE.md (and any README.md) at the repo
root to understand what the project does. Specific things to extract:
Recommendations later are scoped to these. A python skill is not "redundant" just because
the project also uses TypeScript — it might still be load-bearing for tooling scripts.
If no project-level CLAUDE.md exists, fall back to the user-level ~/.claude/CLAUDE.md and
note that the audit is using the user-scope objective only.
Run the built-in CLI subcommand and capture its markdown output:
python -m claude_prospector audit --project-dir <project-root>
This single command covers all four deterministic steps:
~/.claude/agents/,
~/.claude/skills/*/SKILL.md), project-scope (.claude/agents/,
.claude/skills/*/SKILL.md), the plugin cache (latest version per
(marketplace, plugin) only), and Windows Claude Desktop
~/AppData/Roaming/Claude/…/skills-plugin/ if present.(_type, name);
any group with more than one entry is a collision.mcp__*
mentions and PowerShell/Bash references; cross-references against
each agent's tools: frontmatter and warns on mismatches.The command also reports cache-hygiene findings: stray temp_git_*
clone leftovers and plugin names duplicated across multiple marketplace
directories.
Use --format json for machine-readable output with keys inventory,
collisions, overlaps, tool_coupling, and cache_hygiene.
Produce a single markdown document with these sections, in order:
# Claude Config Audit — <project name or "user-scope only">
## Project objective
<one paragraph paraphrased from the project CLAUDE.md, or "User-scope audit — no project CLAUDE.md found.">
## Inventory
- **Custom agents**: N (`name1`, `name2`, ...)
- **Custom skills**: N (`name1`, ...)
- **Plugin agents**: N from M plugins
- **Plugin skills**: N from M plugins
- **Effective total exposed to runtime**: N agents, M skills
## Direct name collisions
| Name | Sources | Descriptions diverge? | Tools diverge? | Recommendation |
| --------------- | -------------------------------- | --------------------- | -------------- | ------------------------------------ |
| `code-reviewer` | custom, superpowers, feature-dev | No (near-identical) | Yes | Keep custom; disable plugin variants |
## Semantic overlaps
| Pair | Jaccard | Verdict | Recommendation |
| ---------------------------------------- | ------- | --------------------------------------------- | ------------------------------------------------ |
| `git` (custom) ↔ `anthropic-skills:git` | 0.92 | True duplicate with project-specific addendum | Extract addendum to dedicated skill, drop custom |
## Tool-coupling concerns
| Agent | Skill passed in | Missing tool | Recommendation |
| ------------- | --------------- | ------------------------------ | ------------------------------------------------------------------------------- |
| `code-writer` | `powershell` | `PowerShell` (only has `Bash`) | Translate guidance to POSIX in delegation, or pass to agent that has PowerShell |
## Recommendations summary
| Item | Action | Priority | Rationale |
| ------------------------- | --------------------- | -------- | --------------------------- |
| Drop `feature-dev` plugin | uninstall via /plugin | high | 3 overlap items in one move |
...
Order recommendations by leverage — a single action that resolves multiple overlaps should rank above a single-item fix. Where the user has stated objectives in their CLAUDE.md, mark recommendations that conflict with those objectives as "verify with user before acting" rather than asserting them.
After delivering the report, ask the user:
Do not start making changes without explicit user confirmation. This skill is read-only audit + recommendation; modifications are tracked separately.
A user might think "my config is fine, I only have 8 custom agents." But what loads at runtime includes ~50 plugin skills and ~5 plugin agents. Overlaps appear at the boundary between custom and plugin, and that boundary is invisible if you only audit one side.
The same set of skills can be over-broad for one project and under-broad for another. A
python skill is essential in a Python repo and dead weight in a pure-Rust repo. The audit
should prefer keeping skills the project plausibly needs and dropping ones it does not —
which requires knowing what the project does.
superpowers:writing-skills — for authoring new skills if the audit recommends extracting
oneclaude-md-management:claude-md-improver — for the CLAUDE.md side of the same hygiene workclaude-prospector:usage-analysis — for the cost-side view (which skills/agents are actually consumed)Audit reports are routinely 50–200 lines once every agent and skill is enumerated with a keep / modify / drop recommendation. Save the full report to <repo>/.tmp/<YYYY-MM-DD>-claude-audit.md and return a short chat reply listing:
Do NOT paste the full report body inline — the file is the artifact, the chat reply is the pointer. The user opens the file for the full keep/modify/drop tables; the reply surfaces only what shapes their next decision.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/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".
/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