/superskills:prune-skillsfrom Superskills
Analyzes skill directories to find redundant, overlapping, or overly large skills. Counts usage frequency from recent transcripts, scores description similarity, and estimates context cost. Proposes merges or removals but never deletes.
Ships in Superskills. 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.
Fewer, sharper skills route better and cost less context. This skill gathers evidence and proposes. You decide.
Announce at start: "I'm using the prune-skills skill to look for redundant skills."
The tools live in the superskills repo, not the working directory. Find the
repo the way /superskills-doctor does and run all three signals in a
single Bash call, since separate calls do not share shell variables.
NAME=prune-skills
WANT=scripts/skill-census/skill_overlap.py
SKILL_DIR="${SKILL_DIR:-}" # set to this skill's base directory when the host provides it
case "$SKILL_DIR" in /*) : ;; *) SKILL_DIR="" ;; esac # only an absolute path is trusted, never resolved against the cwd
ROOT=""
for cand in "${SKILL_DIR:+$SKILL_DIR/../..}" "${CLAUDE_PLUGIN_ROOT}"; do
[ -n "$cand" ] && [ -f "$cand/$WANT" ] && { ROOT="$(cd "$cand" && pwd -P)"; break; }
done
if [ -z "$ROOT" ]; then
# What ./setup creates: Claude Code and ZCode link SKILL.md, OpenCode links it under a
# superskills- prefix, Codex links the whole skill folder (so SKILL.md itself is no symlink).
for probe in "$HOME/.claude/skills/$NAME/SKILL.md" \
"$HOME/.codex/skills/$NAME/SKILL.md" \
"$HOME/.config/opencode/skills/superskills-$NAME/SKILL.md" \
"$HOME/.config/opencode/skills/$NAME/SKILL.md" \
"$HOME/.zcode/skills/$NAME/SKILL.md"; do
# Only a file that resolves to a real path counts; never fall back to the cwd.
[ -f "$probe" ] || continue
real="$(readlink -f "$probe" 2>/dev/null || perl -MCwd=realpath -e 'print realpath($ARGV[0])' "$probe")"
if [ -n "$real" ] && [ -f "$real" ]; then
ROOT="$(cd "$(dirname "$real")/../.." 2>/dev/null && pwd -P)"
[ -f "$ROOT/$WANT" ] && break
ROOT=""
fi
done
fi
if [ -z "$ROOT" ]; then echo "CENSUS=missing"; else
CENSUS="$ROOT/scripts/skill-census"
echo "ROOT=$ROOT"
python3 -I "$CENSUS/skill_overlap.py" pairs "$ROOT"
python3 -I "$CENSUS/skill_usage.py" "$HOME/.claude/projects" --days 90
bash "$ROOT/scripts/skill-context-budget.sh" "$ROOT"
fi
The locate block above is intentionally duplicated in /superskills-doctor, /debrief and /prune-skills (a skill needs the repo path before it can source anything); tests/locate-block.bats keeps the three identical.
If it prints CENSUS=missing, say the superskills install could not be found
and stop. Do not improvise the numbers.
Read the output with these limits in mind:
qa-full and basic-review score only about 0.09 and do not appear. An empty
or short candidate list does NOT mean there are no overlaps. Also read the
skill descriptions yourself (name and description lines under skills/
and design-skills/) and use your own judgment to spot pairs the score missed.
Conversely, a listed pair can be noise.skill_usage.py prints # sessions=N subagent_files=M
(sessions are top-level transcripts only; subagent transcripts are counted
separately, and skill calls inside them still count) and then
skill<TAB>count: counts only, never message content. Use of a skill from
Codex or Cursor is invisible, so say so in the report.skills/ and design-skills/.
The context-cost script only walks skills/, so design skills get no
context-cost figures: say so plainly instead of guessing them. vendor/,
marketing-skills/ and generated shims are upstream-owned or generated and
are never candidates.compact, clear,
model, login, effort, resume): they are not skills. The counter
already strips a plugin: prefix, so plug:review counts as review.For each pair from the script, and each pair you spotted yourself, read both SKILL.md files and decide which of three things is true:
Never delete a skill on one signal. A removal proposal needs both: overlap
with a named survivor, and a usage window of at least 30 sessions (the
# sessions=N line) showing the candidate is not carrying its own weight. A
skill with zero uses is not redundant if its job is unique: rare and unique
stays. With fewer than 30 sessions in the window, report "insufficient data"
instead of a verdict.
This skill proposes only. It never deletes or edits a skill on its own. Reply
with a short list, in plain words, per candidate: what overlaps with what, the
usage numbers, your recommendation and the cost of being wrong. Wait for a yes
per item. On a yes: do the change on a branch with git rm or an edit, run
./scripts/lint-skills.sh and ./tests/run.sh, and run ./setup so dangling
links are cleaned. A merge changes a skill's description or body, which is a
behaviour change: tell the user to run /eval before pushing.
vendor/, explain it is upstream-owned and
stop.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ariadoss/superskills --plugin superskills48 skills in this plugin
/a11yAccessibility audit for frontend changes — WCAG 2.2 AA, screen-reader
compatibility, keyboard navigation, focus management, ARIA correctness, color
contrast, and reduced-motion. Static diff-scoped analysis (safe to auto-run) plus
an optional dynamic axe pass against a running app. Use when asked to "check
accessibility", "a11y audit", "screen reader check", "WCAG", "is this
accessible", "keyboard navigation", "ARIA review", or after heavy frontend work.
/articleExtract clean article content from URLs (blog posts, articles, tutorials) and save as readable text. Use when user wants to download, extract, or save an article/blog post from a URL without ads, navigation, or clutter./basic-reviewRead-only correctness review of pending changes, needing no external
install: correctness, security, reliability/performance and contract risk,
each finding cited as file:line with why it is wrong and a fix. The fallback
when gstack's /review is unavailable (not installed, or its install is
broken); /qa-full and /daily-qa call it automatically then. Applies a
vendored copy of gstack's pre-landing checklist. Use when asked for
a "basic review", a "quick review without gstack", or a review in a tool where
/review is missing. Not for quality cleanups (use /clean-code), and not the
first choice when /review is installed: /review goes deeper and applies fixes.
/cache-strategyImplement a permanent cache-first strategy: check cache before hitting the DB,
write to cache on first read, invalidate only when data changes. No TTL timeouts.
Modeled on Play Framework's cache model. Use when asked to "add caching",
"implement cache strategy", "cache DB results", or "reduce DB load".
/clean-codeAudit → fix → verify the branch diff against KISS, DRY, SOLID, and YAGNI.
Finds duplicated logic, units with more than one reason to change, needless
abstraction or speculative extensibility, wrong-altitude code, and dead code
in the changed files — then applies the smallest safe refactor for each,
one atomic commit per fix, under a green test suite. Quality only: it does
not hunt for bugs (use /review or /code-review for that). Use when asked to
"clean up the diff", "simplify this", "DRY this up", "refactor for SOLID",
"remove duplication", "KISS", "YAGNI check", or "tidy before ship".
/cli-for-agentDesign or review CLIs so coding agents can run them reliably: non-interactive
flags first, layered --help with real copy-pasteable examples, stdin/pipeline
support, fail-fast errors that include a correct invocation, idempotency,
--dry-run/--yes for destructive actions, and machine-useful success output.
Use when building a CLI, adding commands or subcommands, writing --help
text, or when asked for an "agent-friendly CLI". Not for GUIs, TUIs, or
library APIs (no CLI surface to design).
Other plugins' skills for the same job