/harness-ops:audit-skill-visibility [--unattended] [--installed [dir]] [--plugins-root <dir>] [--render markdown|json]from harness-ops
Audits which skills Claude can see, which are starved or dropped, and whether the skill listing exceeds budget. Use when Claude never suggests a skill or you need visibility into skill selection.
Ships in harness-ops. 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.
Read when SKILL.md points to them; scripts run unread.
Native suggestions are on unless native_suggestions resolves off: a personal <home>/harness-ops.local.yaml value wins over the team <home>/harness-ops.yaml value (<home> is what bash "${CLAUDE_PLUGIN_ROOT}/lib/resolve-convention-home.sh" prints, docs/conventions on exit 1; on any other exit skip both files, as ${CLAUDE_PLUGIN_ROOT}/scripts/registry-dir.mjs does), which wins over the per-user value ${user_config.native_suggestions} (a literal unexpanded token means unset); with none set they are on. A value other than on or off is named and that layer dropped: a valid higher layer still wins, otherwise on, never a lower layer's value. When off, skip the sentence below and write nothing in its place, not even a note that it was skipped or why.
Relay the sentence below to the user and do not run /skill-doctor yourself: it is the user's command to type (what it reports: find unused skills).
If /skill-doctor is available in your session (gate basis: Boundary, the bundled doctor skill and /skill-doctor below) and native suggestions are on (native_suggestions, Configuration), run it for the one-shot unused-versus-context-cost report when that is the whole ask.
Arguments. [--unattended] [--installed [dir]] [--plugins-root <dir>] [--render markdown|json]. --unattended, anywhere in the arguments, is the caller declaring that nobody is present: the skill takes it out before reading the rest, never passes it to the engine script (whose parser does not accept it) and never reads it as a root path; under it both suggestions are omitted. The bare word unattended is neither this flag nor a path: stop and name --unattended. Full form: [--unattended] [--installed [dir]] [--plugins-root <dir>] [--context-window <tokens>] [--bytes-per-token 3|4] [--budget-fraction <f>] [--max-desc-chars <n>] [--listing-capture <transcript.jsonl>] [--render markdown|json] [--now <RFC3339>] [--fixture <path>]. Collects live; --installed reads the plugin manifest, else fleet defaults to ./plugins; unpinned, the budget is a band over both windows and both byte estimates
Answers one question: can the model actually see each of my skills, and if not, why?
That is the question behind the one operators usually ask, which is why does most of my skill fleet never get used? A skill the model cannot see cannot be chosen, so "unused" is very often a visibility failure wearing a preference costume.
Visibility is Claude Code's own term for this; the settings page documents skillOverrides under "Override skill visibility". This skill audits every way a plugin skill loses it, and
skillOverrides is not one of those ways: we treat plugin skills as governed by enabledPlugins
alone, and apply skillOverrides only to the non-plugin skills --installed enumerates; it is
never cited as a cause for a plugin skill. Our binary reading on Claude Code 2.1.283
agrees: its listing resolver returns on for every plugin-sourced skill before it reads the
override map. As of 2026-09-27. Recheck trigger: a release note saying plugin skills honor
skillOverrides. A skillOverrides entry already in an operator's settings that names a plugin skill
therefore never takes effect; harness-config:audit, when installed, reports those entries.
skillOverrides can affect a plugin skill, fetch skills: override skill visibility from settings live.Claude Code budgets the model-visible skill listing in characters, at
window x bytes-per-token x skillListingBudgetFraction (our binary reading; the docs' account, which differs on the drop order: skill descriptions are cut short), and, when it
overflows, sheds descriptions from the lowest-scoring skills first. Names always survive,
descriptions do not. A skill at zero usage scores zero, so it loses its description, loses the
keywords a request would match against, and stays at zero. Unused is partly self-causing.
The window and the bytes-per-token are both per model, so the budget is not one number for a machine: the same fraction yields a budget five times larger at a 1M window than at 200k. This skill never resolves the session's model from disk. It reads the fraction and the per-entry cap from the settings scopes the product merges and, unless you pin the model-side inputs, reports the budget as a band over both windows and both byte estimates, naming no row as this session's.
The drop order is a source conflict. The skills page's skill descriptions are cut short and the binary disagree on which descriptions overflow drops first. Take the ordering from the binary: reference/listing-scorer.md carries the counterexamples, the greps, the budget arithmetic, and the stamp.
So the useful question is not which skills are unused: that one belongs to Claude Code's own surfaces, which the run-start and run-end suggestions offer; what they report is read live from skills: find unused skills. It is which skills are starved by that loop and still wanted, versus genuinely unwanted, versus not observable at all.
A usage history younger than the window being asked about cannot distinguish "never invoked" from "never observed". Reporting the second as the first libels most of a fleet on any fresh install. A days-old install measured against 30-day and 90-day tiers puts nearly the whole fleet in a "never used" bucket.
This skill therefore computes an observed_horizon, clamps every window to it,
and routes any claim the span cannot support into a first-class withheld
section with its reason. A declined verdict is reported, never omitted.
It collects live by default. No fixture required. Two inputs resolve differently, and the difference decides which command you want:
~/.claude.json, overridable with --claude-json)../plugins relative to your
current directory, not to an installed root.So from a plugins-layout repo (this marketplace, or any checkout with a
plugins/ directory), bare audits the tree you are standing in:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/audit-skill-visibility/scripts/audit_skill_visibility.py"
Anywhere else that exits non-zero with no skills found. Nothing is silently
audited. Name the fleet you mean:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/audit-skill-visibility/scripts/audit_skill_visibility.py" \
--plugins-root <dir>
<dir> is any directory holding one subdirectory per plugin, each with a
skills/ directory, the layout both a marketplace checkout and an installed
plugin root use.
To measure what is installed rather than a --plugins-root directory, read ${CLAUDE_SKILL_DIR}/reference/installed-fleet.md. Its <plugin-root> is ${CLAUDE_PLUGIN_ROOT}, its <plugin-data> is ${CLAUDE_PLUGIN_DATA}, and its <sources-file> is ${user_config.transcript_sources_file}.
The budget has five inputs, and the report states where each one came from:
skillListingBudgetFraction and skillListingMaxDescChars are read from the
user (~/.claude/settings.json, relocated by CLAUDE_CONFIG_DIR), project
(<project>/.claude/settings.json), local
(<project>/.claude/settings.local.json), --settings flag and managed-policy
scopes, per key, with the precedence the product uses, read live from
settings: settings precedence.
The project is CLAUDE_PROJECT_DIR, falling back to the
working directory. The flag scope lives inside the session and cannot be read
from outside it, so it is reported as unread, never as absent. Managed
locations (the base file plus the managed-settings.d drop-ins, per OS) come
from this plugin's vendored lib/managed-scope.sh, never from a path written
in the script; when that enumeration cannot run, the policy scope is reported
as unreadable rather than empty. --budget-fraction and --max-desc-chars
pin either value over every scope.SLASH_COMMAND_TOOL_CHAR_BUDGET is set, the engine uses it in place of
the computation, and the row carries budget_basis: env-override and the
label SLASH_COMMAND_TOOL_CHAR_BUDGET. What the variable does in the product
is read live from its row in
environment variables.CLAUDE_CODE_DISABLE_1M_CONTEXT as
collapsing it to 200k, and CLAUDE_CODE_MAX_CONTEXT_TOKENS as naming it when
DISABLE_COMPACT is also set; both are read from the process environment and
recorded. That rule assumes a recognized model ID (which IDs it applies to), so pin a gateway alias's window with --context-window.
What each does in the product is read live from its row in environment variables. Otherwise --context-window <tokens> pins it, and unpinned the
report carries both 200k and 1M.--bytes-per-token pins it; unpinned the
report carries both.With nothing pinned the listing section is a band of four labeled rows
(200k/4, 200k/3, 1M/4, 1M/3), each with its own demand, floor, budget,
overflow, verdict, and starved count, and the top-level numbers are null under
budget_basis: band.
Pinning both model-side inputs yields the single-row shape with the pinned
numbers at the top level. A row's budget_basis names the settings file that
supplied the fraction (settings:<path>), fraction for the documented
default, or the pin. inputs in the JSON, and the "Inputs consulted" list in
the Markdown, carry every scope and variable consulted with its status.
The verdict compares the whole rendered listing with the budget, as the
product does: every listed entry is - <name>: <description> (or - <name>
when name-only), joined by newlines. demand_chars is the competing
descriptions alone; floor_chars is what the listing costs before any
description is granted (every name, the exempt entries in full, the
separators); listing_chars is the full rendering, and overflow_chars is
that over the budget. reference/listing-scorer.md
carries the arithmetic and its stamp.
The entries come from every source on disk: plugin skills, commands and
workflows, and with --installed the user's ~/.claude/skills, the
.claude/skills of the project and each parent up to the repository root, and
the signed-in account's claude.ai-synced skills, each with skillOverrides
applied. A user or project skill is listed under its frontmatter name when it
sets one, a synced skill under its folder name, and the engine lets a personal skill shadow a project skill of the same name, the order read live from skills: resolve skills that share a name. The engine reads no built-in or bundled
skill from disk (what those are: bundled skills), so without a capture
coverage is enumerated-only, the Markdown says what was not counted, and a
row whose counted entries fit reports fit-unconfirmed, never listing-fits:
only a read capture that covers the counted fleet can confirm a fit. A capture
that omits a counted entry, or renders one longer than it is counted, came from
a session that loaded a different fleet; it is listed under
listing.capture.not_in_capture or longer_in_capture and the fit stays
fit-unconfirmed. overflowing needs no capture, since an uncounted entry
only adds to the listing.
--listing-capture <transcript.jsonl> reads the listing a session actually
received from its transcript (<config dir>/projects/<project>/<session>.jsonl),
counts every entry no disk walk could find (built-in, bundled, synced skills
when no signed-in account was read, and, in a checkout, any plugin outside the
checkout and the project's own skills) at its captured length, and reports in
listing.capture.not_in_fleet the qualified plugin:skill entries it names
that the fleet lacks, as when a plugin was uninstalled after the captured
session. Those are not counted, the capture is from a different fleet, and an
overflow that only the capture's charges produce is overflow-unconfirmed,
never overflowing. An unqualified captured name is always counted, since a
removed personal skill cannot be told from a built-in by name. It also reports in
listing.capture the descriptions the session shed; a budget row that says
listing-fits while the session shed descriptions is listed under
disagrees. The engine only reads the file; it never launches Claude Code.
The transcript's listing record is not a published format: its shape, as-of
date and recheck trigger are in listing-scorer.md,
and a shape it does not recognize reports the capture as not-read rather than
guessing.
A verdict covers the main session at the stated window. A subagent gets a listing sized to its own window and can shed where the main session does not.
--fixture <bundle.json> reads a recorded collection instead of the live one, the reproduction path, used by the tests and for handing someone else's state to
the same engine. It is not needed to get a report.
Python 3.11+ is the only requirement. No third-party packages, matching
inventory.py and install_state.py.
scripts/skill-events.sh prints one JSON line per skill invocation, and both scripts here read
that one output. It reads Claude Code's skill_activated OTEL event from the OTEL store, hot and cold tiers, which
carries invocation_trigger; where the store is missing or holds no such event, as on a lane that
exports no OTEL, it reads Skill tool calls and typed slash commands from the session transcripts
under the config directory instead. The OTEL path needs duckdb; the transcript path needs no
setup, since every session writes a transcript.
bash "${CLAUDE_PLUGIN_ROOT}/skills/audit-skill-visibility/scripts/skill-events.sh" \
| python3 "${CLAUDE_PLUGIN_ROOT}/skills/audit-skill-visibility/scripts/audit_skill_visibility.py" \
--skill-events -
bash "${CLAUDE_PLUGIN_ROOT}/skills/audit-skill-visibility/scripts/skill-events.sh" \
| bash "${CLAUDE_PLUGIN_ROOT}/skills/audit-skill-visibility/scripts/skill-pair-cooccurrence.sh" \
--events - --pair <caller>,<callee>
The script names the source it read on stderr: report it, since OTEL rows reach the T-full tier
and transcript rows the T-local tier. --source, --config-dir and --days (default 90) are in
its --help. We read OTEL skill names as real names only where OTEL_LOG_TOOL_DETAILS=1 is set;
without it a plugin skill arrives as a placeholder the engine withholds rather than attributes.
Flags and the missing-events behavior of the pair reading: reference/pair-cooccurrence.md.
Three independent fields per skill; a single flat verdict would collapse questions that demand different actions.
| Field | Answers | Phase |
|---|---|---|
observation | What has actually been seen, within a stated horizon | live |
reachability | Can the model ever select this skill | live |
starvation | Is it competing for description budget, and likely losing | live |
observation values: active · cooling · dormant · no-observation-in-horizon
· not-observable. The last is the default whenever the data cannot support
better, and it is never a synonym for unused.
reachability values: model-reachable · user-only · hidden ·
not-enabled · misconfigured · unknown · not-assessed. Only
model-reachable with no observation is a starvation candidate. user-only
means you type it by design, hidden means an enabledPlugins entry sets the
owning plugin to false, not-enabled means the plugin is installed but no
scope names it, so it never loads, and misconfigured is a fix. A skill whose
plugin settles to not loading is hidden or not-enabled whatever its
frontmatter says, since it has no listing entry to misconfigure. unknown is
reserved for a settings file the reader could not parse, and not-assessed is
the checkout-mode answer, where there is no install to read enablement from.
Each carries its causes, evidence, and a remedy.
The reachability causes are not an official list. No such list is published;
this catalogue is assembled from scattered documentation plus strings in the
shipped binary, and every row says so in its provenance. Do not present it to
a user as documented.
starvation.verdict values: likely-starved · likely-retained · listing-fits ·
fit-unconfirmed · withheld · not-assessable · band-dependent. Under budget_basis: band,
a verdict the band's rows disagree on is band-dependent, for a skill and for the listing; a
competing skill carries each row's verdict under by_band. Pinning --context-window and
--bytes-per-token collapses the band to one row and one verdict. A listing that overflows with
no usage recorded for any competing skill reports withheld with reason: "unscored" on every
competing row and no band, because at all-zero scores the product's ordering is the catalog-order
tie its stable sort leaves, and naming rows would sell catalog position as preference. How many
descriptions cannot fit is arithmetic and is still reported, as starved_count and as a count in
the Markdown; the run carries one run-level withheld entry for the per-skill claim, never one
per skill. An overflow-unconfirmed listing withholds the same way with
reason: "capture-mismatch".
not-assessable marks the rows that never enter the contest, with
starvation.eligibility naming why: exempt-bundled (a bundled skill keeps
its description unconditionally and is charged for it in the floor),
exempt-user-only (disable-model-invocation, or a user-invocable-only
override, keeps it out of context), exempt-name-only (a name-only override
lists the name alone), and exempt-hidden (the owning plugin is hidden or
not-enabled, or an off override drops the skill, so it is never listed).
Only exempt-bundled and exempt-name-only rows are listed, so a fleet whose
only excess sits in plugins that do not load reports a fit (listing-fits
with a capture that covers the fleet, fit-unconfirmed otherwise).
exempt-hidden covers both not-loading answers, and
only a settled not-loading answer (hidden or not-enabled) exempts: a
not-assessed checkout row or an unknown one keeps competing, because
unknown is not hidden.
The Markdown names what these fields hold rather than only counting it. Under
Reachability, hidden plugins are tabled with the scope file that disabled them,
never-enabled plugins get one count line (leaving an installed plugin off is
intentional, so it gets no fix; the line names any scope other than the flag
scope that could not be read and might enable them), and misconfigured skills
are tabled with their cause and one remedy per cause. Under
Listing budget, when any row overflows, the ten longest competing descriptions
are tabled by source length beside the capped charge the listing counts
(description_chars and demand_chars in the JSON): trimming lowers the
overflow only once a description is under skillListingMaxDescChars, and the
table is labeled as length, never as a starvation ranking, so it renders the
same in an unscored run. Each table caps at ten rows and counts the rest. A
closing Next actions section names only the fixes this run's findings support,
points at the budget control the run's provenance says is effective (the env
override when set, the managed policy when it supplied the fraction, otherwise
the settings file that did), and says so when there is nothing to fix.
pluginUsage is not a skill signal. Neither its counts nor its
timestamps are read as skill use. What it counts and how its rows are seeded
are this plugin's binary reading in
reference/usage-counters.md,
which carries the version, date and recheck trigger; read it before
explaining the field to a user.ambiguous-attribution rather than attributed to one of them.<plugin>:<leaf> key and the bare leaf as separate rows. Both are collected; a
bare key is attributed only when exactly one skill owns that leaf, ambiguous
ones are withheld with their candidates.score_basis: "unscored" when nothing survives to weigh. Read
reference/listing-scorer.md before changing that
ordering or quoting it to a user.| Question | Owner |
|---|---|
| Why is my fleet unused, starved, unwanted, or unobserved? Does skill B get invoked where skill A ran? | this skill, the second via scripts/skill-pair-cooccurrence.sh, co-occurrence and never attribution (reference/pair-cooccurrence.md) |
| Which skills are unused vs their context cost, right now? | Claude Code's own built-in /skill-doctor command, when it resolves in this session; the bundled /doctor skill's checkup, when that one resolves |
| Is a repo's authored listing over budget? | skill-quality's check-listing-budget.sh |
| What is installed and invocable? | /harness-ops:inventory |
| Is the telemetry pipeline healthy? | /harness-ops:observability |
Read-only. It never disables, deletes, or edits a skill, and it never recommends deleting one it classified as misconfigured. That class is a fix-me, not a removal candidate.
doctor skill and /skill-doctorTwo native Claude Code surfaces answer the question this skill starts from, and the three get conflated whenever a fleet looks unused:
doctor (bundled skill): an in-session checkup that can offer to disable components, which
this skill never does. What it checks is read live from
skills: check your setup with /doctor./skill-doctor (built-in command). Claude Code's own unused-skills report; what it shows
and where is read live from
skills: find unused skills.Routing. The run-start suggestion offers /skill-doctor for "which skills are unused versus
their cost, right now", and the run-end suggestion offers /doctor. Prefer this skill when the
answer has to survive a young usage history, when starved and unwanted must be told apart, or when
the question is whether skill B fires where skill A ran.
Mutation gate. doctor disables. This skill never disables, deletes, or edits a skill, so never chain
into a doctor disable on this skill's behalf; report the classification and let the user act.
Availability is never assumed. Settings and the environment can hide either surface; this section states what to do when one resolves, never that it is present. What hides each, and the records, live in reference/bundled-doctor.md.
Native suggestions are on unless native_suggestions resolves off: a personal <home>/harness-ops.local.yaml value wins over the team <home>/harness-ops.yaml value (<home> is what bash "${CLAUDE_PLUGIN_ROOT}/lib/resolve-convention-home.sh" prints, docs/conventions on exit 1; on any other exit skip both files, as ${CLAUDE_PLUGIN_ROOT}/scripts/registry-dir.mjs does), which wins over the per-user value ${user_config.native_suggestions} (a literal unexpanded token means unset); with none set they are on. A value other than on or off is named and that layer dropped: a valid higher layer still wins, otherwise on, never a lower layer's value. When off, skip the sentence below and write nothing in its place, not even a note that it was skipped or why.
Relay the sentence below to the user and do not run /doctor yourself: it is reserved for the person to run.
If /doctor is available in your session (gate basis: Boundary, the bundled doctor skill and /skill-doctor above) and native suggestions are on (native_suggestions, Configuration), run it for the bundled checkup's unused-components pass when you want fixes offered in place.
--unattended: omit both suggestions, write Withheld suggestion (unattended): /skill-doctor and Withheld suggestion (unattended): /doctor in the output, and run neither.
not-observable. That is the honesty floor being
tested, and it is the defect this skill exists to prevent.misconfigured never renders as a removal candidate. Several of its causes are silent
misconfigurations, a skill that looks fine and can never be selected. The remedy is a fix.evals/evals.json (opens in a new tab)reference/bundled-doctor.md (opens in a new tab)reference/installed-fleet.md (opens in a new tab)reference/listing-scorer.md (opens in a new tab)reference/pair-cooccurrence.md (opens in a new tab)reference/usage-counters.md (opens in a new tab)scripts/audit_skill_visibility.py (opens in a new tab)scripts/audit_skill_visibility.test.sh (opens in a new tab)scripts/skill-events.sh (opens in a new tab)scripts/skill-events.test.sh (opens in a new tab)scripts/skill-pair-cooccurrence.sh (opens in a new tab)scripts/skill-pair-cooccurrence.test.sh (opens in a new tab)scripts/test_audit_skill_visibility.py (opens in a new tab)tests/fixtures/fleet-basic.json (opens in a new tab)tests/fixtures/fleet-floor-overbudget.json (opens in a new tab)tests/fixtures/fleet-overbudget.json (opens in a new tab)tests/fixtures/fleet-reachability.json (opens in a new tab)tests/fixtures/listing-capture-aliased.jsonl (opens in a new tab)tests/fixtures/listing-capture.jsonl (opens in a new tab)tests/fixtures/transcript.capture.jsonl (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
bashThree short reads, in order
18 skills in this plugin
/audit-install-stateAudit install stateRead-only audit of `~/.claude` and `~/.claude.json`: the deep inventory of unmanaged files. Use when: 'what is in my ~/.claude', 'why is my Claude Code install so big', 'does Claude Code clean up after itself', 'check cleanupPeriodDays', 'is this lock file dead', 'tidy my Claude Code install'. Deleting: /disk-hygiene:clean./audit-mod-postureAudit mod postureRead-only audit of mods this Claude Code can run (installed and built-in mods, hooks, calls, sec-default guard state); never loads a mod or prints settings. Use when 'mod posture', 'audit my mods', 'can a mod bypass my deny rules', or which mods run here. Not for writing a mod or settings correctness: /harness-config:audit./audit-native-overlapAudit native overlapMap where repo skills and agents duplicate native Claude Code surfaces; read-only unless apply bakes an approved reference. Use when 'does this skill duplicate a built-in', 'refresh the native-surfaces registry', 'which of our skills overlap bundled skills', or what Claude Code already ships. Not for enumerating invocables: /harness-ops:inventory./audit-performanceAudit performanceRead-only slowness diagnostic that never 'fixes' (run before restart/delete): version, retention, bloat, hook/subagent fan-out, kernel-leak. Use when 'Claude Code is slow', 'typing lags', sluggish session, machine freezes, slow hooks, or too many subagents. Not for bugs (/harness-ops:known-issues) or stale files (/harness-ops:audit-install-state)./audit-plugin-landscapeAudit plugin landscapeRead-only report on stale or overlapping installed plugins and marketplaces, recommending what to adopt, adapt, or drop./behavior-probesBehavior probesLive probes of Claude Code permission, auto-mode, hook, worktree, subagent, and sandbox behavior with paired controls (pass, fail, inconclusive per version; dry run default, live runs opt-in and capped). Use when 'rerun the behavior probes', 'does auto mode still deny this', 'add a probe case', or which probes a release touches.npx claudepluginhub melodic-software/claude-code-plugins --plugin harness-opsOther plugins' skills for the same job