# Skill prune

> Skill prune is an open-source agent skill for developer tools. Finds and removes stale, orphaned or duplicate skill content after a plan is approved. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/transilienceai/communitytools/tree/main/skills/skill-prune
- **Repository:** https://github.com/transilienceai/communitytools
- **GitHub stars:** 641
- **License:** MIT
- **Skill name:** skill-prune
- **Collection:** https://github.com/transilienceai/communitytools
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/transilienceai/communitytools/tree/HEAD/skills/skill-prune)
- [License: MIT](https://github.com/transilienceai/communitytools/tree/HEAD/skills/skill-prune)

## Features

- **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

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/skill-prune` to use it in all your projects:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/skill-prune` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/skill-prune` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/transilienceai/communitytools.git --path skills/skill-prune
```

Or copy the folder to `~/.gemini/skills/skill-prune` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/skill-prune`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/transilienceai/communitytools.git
```

Then copy `communitytools/skills/skill-prune` into your agent's skills folder as `skill-prune`. Agents that support SKILL.md read one folder per skill.

## 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.

## Alternatives

- [Validate skills](https://ai-powered.com/skills/validate-skills): Validate skills is an open-source agent skill for developer tools.
- [Skill update](https://ai-powered.com/skills/skill-update): Skill update is an open-source agent skill for developer tools.
- [Review skills](https://ai-powered.com/skills/review-skills): Review skills is an open-source agent skill for developer tools.
- [Make PR easy to review](https://ai-powered.com/skills/make-pr-easy-to-review): Make PR easy to review is an open-source agent skill for developer tools.
- [Principle subtract before you add](https://ai-powered.com/skills/principle-subtract-before-you-add): Principle subtract before you add is an open-source agent skill for developer tools.
- [Skill author](https://ai-powered.com/skills/skill-author): Skill author is an open-source agent skill for developer tools.
- [Dead code cleanup edho ferdian](https://ai-powered.com/skills/dead-code-cleanup-edho-ferdian): Dead code cleanup edho ferdian is an open-source agent skill for developer tools.
- [Skill scout](https://ai-powered.com/skills/skill-scout): Skill scout is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/skill-prune
