
Skill prune
Finds and removes stale, orphaned or duplicate skill content after a plan is approved
Skill prune is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 641
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Skill prune
Skill Prune is a maintenance skill for agent skill libraries. It works in reverse of a companion update skill: rather than adding material, it looks for content that no longer earns its place, such as orphan reference files, entries that are never read, duplicated guidance, and lore tied to retired challenges. Candidates are judged against four signals, including whether a file is linked from anywhere and whether newer content has superseded it.
The workflow runs a linter to surface orphaned files, evaluates each candidate, and builds a deletion plan with a one-line reason per item. Nothing is deleted until the plan is approved. After changes, the linter is run again to confirm no links broke and no duplicates were introduced. The skill also protects certain canonical files and any content cited by an engagement still in progress.
It expects a skill folder with a SKILL.md and a scripts/skill_linter.py helper that the instructions call for; the repository is Python and licensed under MIT. Usage is intended for quarterly maintenance or after the linter reports problems.
When your agent uses it
Identify and remove negative-ROI skill content — orphan files, never-read entries, duplicates, content reintroducing challenge-specific lore. Inverse of /skill-update. Use during quarterly maintenance or after the linter flags issues.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (3 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/skill-prune to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/skill-prune &&
cp -R "$tmp/skills/skill-prune" ~/.claude/skills/skill-prune &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/skill-prune inside it instead.
Copy the skill folder to ~/.agents/skills/skill-prune to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/skill-prune &&
cp -R "$tmp/skills/skill-prune" ~/.agents/skills/skill-prune &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/skill-prune inside it instead.
Copy the skill folder to ~/.cursor/skills/skill-prune to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/skill-prune &&
cp -R "$tmp/skills/skill-prune" ~/.cursor/skills/skill-prune &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/skill-prune inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/transilienceai/communitytools.git --path skills/skill-pruneOr copy the folder to ~/.gemini/skills/skill-prune yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/skill-prune:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/skill-prune &&
cp -R "$tmp/skills/skill-prune" ~/.copilot/skills/skill-prune &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/skill-prune inside it instead.
Get the folder:
git clone --depth 1 https://github.com/transilienceai/communitytools.gitThen copy communitytools/skills/skill-prune into your agent's skills folder as skill-prune. Agents that support SKILL.md read one folder per skill.
What it does
- Orphan file detection
- Uses the linter's orphan check to find reference files that nothing links to.
- Four-signal evaluation
- Judges each candidate on orphan status, failed-run references, supersession and redundancy.
- Approval-gated deletion
- Presents a removal plan with rationale and waits for approval before changing any file.
- Post-change verification
- Re-runs the linter to check that removals broke no links and added no duplicates.
- Protected content rules
- Keeps canonical single-owner files and content cited by open engagements.
Good for
- Clean up orphaned reference files in a skill folder
- Find duplicate guidance across a skill's documents
- Remove outdated content tied to retired challenges
- Run a quarterly review of skill library bloat
Skill prune FAQ
When does Skill prune trigger?
It is meant for quarterly maintenance, after engagements, or when the skill linter reports orphans or duplicates.
Does Skill prune delete files automatically?
No. It builds a deletion plan and only applies deletions after the plan is approved.
What makes content a prune candidate?
Content is a candidate if it is an orphan, referenced only by failed engagements, contradicted by newer content, or redundant with newer content.
Does Skill prune need any scripts?
It relies on scripts/skill_linter.py for orphan checks and verification, which is referenced in its instructions but not included in this folder.
How do I install Skill prune in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/skill-prune to use it in all your projects, or to .claude/skills/skill-prune in one project.
Does Skill prune run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Skill prune?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Skill prune?
The closest alternatives to Skill prune are Validate skills, Skill update, Review skills, Make PR easy to review and Principle subtract before you add.
Where this comes from
- Description: from the skill's own SKILL.md.
More from transilienceai/communitytools

Guides an agent through authorized OWASP LLM Top 10 security tests of AI applications
- Open source
- 641 GitHub stars
- Security

Guides an agent through security testing of REST, GraphQL, WebSocket and LLM APIs
- Open source
- 641 GitHub stars
- Security

Chains confirmed single-asset findings into multi-hop attack paths across an organization
- Open source
- 641 GitHub stars
- Security

Obtains a logged-in session through MFA/OTP for later authenticated security testing
- Open source
- 641 GitHub stars
- Security

Guides an agent through authentication security testing: JWT, OAuth, 2FA, SAML and CAPTCHA
- Open source
- 641 GitHub stars
- Security

Guides an agent through Solidity smart contract security testing and blockchain CTF
- Open source
- 641 GitHub stars
- Security




