Awesome Go

skillreaper

CategoryArtificial Intelligence
SubcategoryArtificial Intelligence
Stars69

CLI that scans AI agent session transcripts to identify and safely quarantine unused skills, MCP servers, and agents across Claude Code, Codex CLI, Hermes, OpenCode, Cursor, and OpenClaw

About skillreaper

This large README is shown as a plain-text preview. Read the full README at the source

<!-- readme-numbers:start -->
```
S           K           I          L          L
######  #######   ###   ######  ####### ###### 
##   ## ##       ## ##  ##   ## ##      ##   ##
######  #####   ####### ######  #####   ###### 
##  ##  ##      ##   ## ##      ##      ##  ## 
##   ## ####### ##   ## ##      ####### ##   ##

a generated sample stack, not a real install - run reap for your own numbers

skillreaper · last 30d · 34 sessions
7/378 items fired · 1% utilization
371 never fired · 371 marked REAP · ~22720 dead tokens/session

TOKENS  CATEGORY  NAME                 VERDICT  REASON
185     skill     import-timesheet     REAP     unused
185     skill     render-playlist      REAP     unused
177     skill     review-sitemap       REAP     unused
163     skill     deploy-dataset       REAP     unused
159     skill     validate-manifest    REAP     unused
157     skill     parse-contract       REAP     unused
149     skill     extract-receipt      REAP     unused
145     skill     sync-changelog       REAP     unused
111     skill     summarise-timesheet  REAP     unused
110     skill     export-timesheet     REAP     unused
(361 more marked REAP not shown — use --json for all)

To prune: reap prune   (interactive, reversible via reap restore --all)

1 warning — run reap for details.

measured by skillreaper · github.com/thousandflowers/skillreaper

The dead-token figure is a floor: 11 unused items (MCP servers) carry weight that was never measured.
```
<!-- readme-numbers:end -->

<p align="center">
  <sub>Real <code>reap --agent</code> output, run against a generated sample stack
  (<a href="docs/gif-helpers/hero-fixture.sh">hero-fixture.sh</a>) - not anyone's
  install. The numbers further down are measured on mine.</sub>
</p>

<h1 align="center">
  Most of what your AI agent loads, it never uses.
</h1>
<p align="center">
  skillreaper finds the <b>unused skills, MCP servers and subagents</b>
  quietly filling your <b>context window</b> - proven from your own session
  transcripts - and prunes them reversibly. Hooks and always-loaded prose
  are listed in the report, not judged or pruned.<br>
  Runs locally against transcripts you already have. Nothing is ever uploaded.
</p>



<p align="center">
  <a href="https://github.com/thousandflowers/skillreaper/actions/workflows/ci.yml"><img src="https://github.com/thousandflowers/skillreaper/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
  <a href="https://github.com/thousandflowers/skillreaper/issues"><img src="https://badgen.net/github/open-issues/thousandflowers/skillreaper" alt="Issues"></a>
  <a href="https://github.com/thousandflowers/skillreaper/releases"><img src="https://img.shields.io/github/downloads/thousandflowers/skillreaper/total?cacheSeconds=6400&color=success" alt="Downloads"></a>
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT"></a>
  <a href="https://github.com/avelino/awesome-go#artificial-intelligence"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Go"></a>
  <a href="https://github.com/VoltAgent/awesome-agent-skills#community-skills"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Agent Skills"></a>
</p>

<br>

```bash
npx skillreaper
```

<!-- readme-mine-headline:start -->
On my own installation, measured 2026-08-23: **382 items loaded, 13 ever fired - 3% utilization.**
That's ~19,755 dead tokens re-sent in every single session, ~1087k a month of
pure token waste, paid for on every request before you type anything.
<!-- readme-mine-headline:end -->

<sub>Measured 2026-08-23 on my own installation; raw output in
<a href="docs/measurements/">docs/measurements/</a>. Every "on my own installation"
figure on this page comes from that one run.</sub>

**One command. Zero config.** It reads your real session transcripts, finds
every skill / MCP / agent your AI loads but never fires, and shows you exactly
what it costs you.

In a terminal, `skillreaper` opens [the menu](#the-menu): the same findings on
one screen, where you choose what goes and see the number fall before anything
is touched. `reap` prints the report, for reading, piping and agents.

<br>

## What it does

skillreaper is a **measuring instrument** for your agent's context window.
Pruning is one of the things you do with the measurement, not the point of it.
The whole surface, in the order you use it:

| Stage | Command | What it answers |
|---|---|---|
| **Measure** | `reap` | What do I load, what actually fires, what does the dead part cost per session? |
| | `reap gap` | What share of each category is ever used, and which MCP tools fire but return noise? |
| | `reap by-project` | Which project is actually firing each skill? |
| **Decide** | `reap why <name>` | Why did *this* item get *this* verdict, on what evidence? |
| **Act** | `reap prune` | Quarantine the dead items, reversibly |
| | `reap mute <name>` | Strip a heavy rarely-used description, keep the skill callable |
| **Engineer** | `reap route` | Propose a lazy-load routing plan for a library too big to prune flat |
| | `reap apm` | Emit a proposed APM `apm.yml`, so a team reproduces one lean set |
| **Compare** | `reap snapshot` | Keep this run, so a later one has something to be measured against |
| | `reap diff` | What appeared, left, changed verdict, and did anything come back after a prune |

Everything above the **Act** row is read-only. You can run the entire
measurement side without changing a single file.

<br>

## What it reads, what it writes

| Read-only, changes nothing | Writes, always reversible |
|---|---|
| `reap` <sup>1</sup> | `reap prune` &nbsp;↔&nbsp; `reap restore --all` |
| `reap gap` <sup>1</sup> | `reap mute <name>` &nbsp;↔&nbsp; `reap unmute <name>` |
| `reap by-project` <sup>1</sup> | `reap keep <name>` &nbsp;↔&nbsp; `reap keep --remove <name>` |
| `reap why <name>` <sup>1</sup> | `reap install-hook` &nbsp;↔&nbsp; `reap uninstall-hook` |
| `reap route` <sup>1</sup> | `skillreaper` / `reap menu`: the same writes, chosen on one screen, undone from it with `u` |
| `reap apm` <sup>1</sup> | |
| `reap manifest <name>` <sup>1</sup> | |
| `reap share` <sup>1</sup> | |
| `reap snapshot` <sup>1</sup> | |
| `reap diff` | |

**Nothing is deleted unless you ask for exactly that.** `reap prune` moves files
into a `reaped/` directory with a versioned manifest, `reap mute` keeps a backup
of the description it strips, and `reap uninstall-hook` removes only
skillreaper's own entry, leaving your other hooks alone. The one exception is
the one you have to name: `reap delete <name>`, or `d` in the menu, removes an
item for good, says so in red, and asks first. Every edit of an existing file is
**atomic** (temp file + rename), so an interrupted prune, mute, or hook edit
leaves the original file intact, never a half-written mix, and every write stays
**inside your home folder**, in the files of the tools it reads (`~/.claude`,
`~/.claude.json`, `~/.codex` and the like). Removing an MCP server edits
`~/.claude.json` and keeps a copy of the whole file in `~/.claude/reaped/backups/`
until you restore that server; if Claude Code changes the file while reap is
editing it, reap writes nothing and asks you to run the command again.

One command is not local, and it is not in the table: `reap reinvest`, which is
experimental. It asks Claude, through `claude -p`, to read your sessions and
write a skill for work none of yours covers, and with `--online` it searches
skills.sh. Nothing else here calls a model or the network. (The menu's plugin
switch runs `claude plugin disable`, Claude Code's own command for that.)

<sub><sup>1</sup> The only files a read-only command writes are skillreaper's
own: <code>~/.claude/reaped/nudge-state.json</code>, which the default report
touches so a hint it already showed you does not repeat; a parsed-transcript
cache in your user cache folder, which keeps the next run fast; an evidence
record in your user config folder, which remembers uses older than your
transcripts; and the snapshot <code>reap snapshot</code> exists to write. None of
them touches your stack. <code>--no-nudge</code> (or
<code>SKILLREAPER_NO_NUDGE=1</code>) turns off the first and
<code>--no-cache</code> the second. No command in either column sends anything
over the network.</sub>

<br>

## First 60 seconds

Three commands, in this order: measure, decide, act. Only the third one
writes anything, and it prints its own undo line.

```bash
reap
reap why import-timesheet
reap prune
```

`import-timesheet` stands for any name in your own report.

Or all three on one screen: `skillreaper`, [the menu](#the-menu).

With `npx` and nothing installed there is no `reap` on your PATH: write
`npx skillreaper` where these lines say `reap` (`npx skillreaper why <name>`).

**1. `reap`** prints the report: the same rows as the block at the top of this
page (that one is `reap --agent`), grouped by verdict, with the reason in each
group's title and in a NOTE column. Every row carries a verdict:

| Label | Meaning |
|---|---|
| **`REAP(broken)`** | Invoked but errored - broken, not just cold |
| **`REAP`** | Zero uses - safe to quarantine |
| **`MUTE`** | Used rarely + heavy - description stripped, skill stays available |
| **`KEEP`** | Used, tiny, manually protected, or at work with no use of its own |
| **`REVIEW`** | Too new, not enough sessions, or used in a way reap cannot weigh |
| **`-`** | Not judged: something you muted, a hook, a prose file, an MCP server seen only in your transcripts |

Every verdict includes a reason suffix explaining *why*, and an item whose
evidence was incomplete stays `REVIEW` rather than being flagged. The reasons:

| Reason | With | It means |
|---|---|---|
| `unused` | REAP | never fired, with enough sessions to judge |
| `broken` | REAP | invoked, and it only ever errored |
| `heavy-rare` | MUTE | used, but heavy and in too few sessions |
| `used` | KEEP | used in this window |
| `tiny` | KEEP | weighs almost nothing |
| `keep` | KEEP | you protected it with `reap keep` |
| `claude-md-ref` | KEEP | named in your CLAUDE.md or rules |
| `hook-loaded` | KEEP | a SessionStart hook reads it into the session |
| `agent-loaded` | KEEP | an agent names it under `skills:` and loads it when it starts |
| `main-agent` | KEEP | your settings run the session as this agent |
| `skill-agent` | KEEP | a skill names it under `agent:` and runs in it |
| `grace` | REVIEW | new here: installed, added, restored or unmuted too recently to judge |
| `needs-data` | REVIEW | not enough sessions yet |
| `rare` | REVIEW | fired before this window, on a longer cadence |
| `no-transcript` | REVIEW | evidence about it is missing: this tool's sessions, or a file that could protect it, cannot be read |
| `used-elsewhere` | REVIEW | another tool that loads the same folder used it |
| `muted` | `-` | you muted it, so its uses prove nothing |

**2. `reap why <name>`** is how you argue with a verdict before acting on it.
It shows the whole case for one item, so you are not trusting a label:

<!-- readme-why:start -->
```
skill:import-timesheet

verdict      REAP(unused)
reason       zero uses in the evidence window
token weight ~185 tok  (description: 684 chars)
sessions     34 total in window
uses         0
last seen    never
installed    2026-07-01 (60 days ago)
             grace period expired (grace: 14 days)
keep-list    no
claude-md    not referenced
→ safe to prune. run: reap prune
```
<!-- readme-why:end -->

**3. `reap prune`** asks before it moves anything, quarantines what you confirm
into `reaped/`, and ends by printing `reap restore --all`. If a verdict looks
wrong, `reap keep <name>` protects the item permanently instead.

<p align="center"><sub>The <code>why</code> output above is real, produced
against the same generated sample stack as the report at the top of this page
(<a href="docs/gif-helpers/hero-fixture.sh">hero-fixture.sh</a>) - so the item
names are the fixture's, not anyone's install.</sub></p>

<br>

## Why this exists

### Why I built this

I was running out of context budget on every session. I had accumulated skills,
MCP servers, and agents over months most of them experiments I'd forgotten
about or be too busy to change it. Every new session loaded all of them, burning tokens before I'd typed a
single message.

I needed to know which ones were actually firing and which were just dead
weight. Nothing existing told me that from transcript evidence. So I built it.

It now supports every platform in the table below, and ships on Homebrew, npm,
and as a static binary for every major OS.

<br>

### Two costs of context bloat

**Wrong-tool picks.** Buried in a wall of irrelevant options, your agent
wastes turns reaching for the wrong tool. More turns = slower, costlier,
sloppier runs. This isn't about pennies - it's about work quality.

**Wasted tokens.** Dead instructions eat context every session and hurt
prompt-cache hit rate. A typical setup:

<!-- readme-mine-costs:start -->
- 382 items loaded
- 369 never fired (96 %), of which 367 marked REAP
- 19 755 tok/session dead
- ~1 087 000 tok/month burned on irrelevant instructions
- ~$3.26/month, ~$39/year - the same waste priced instead of counted

<p align="center"><sub>The money line is one measurement of one stack, n=1, and the
weakest number here: <code>19 755 × 55 × $3.00 ÷ 1e6</code> - input tokens only, at
<code>claude-sonnet-4-6</code>'s $3.00/MTok default, with tokens estimated as
<code>ceil(chars / 3.7)</code> and the monthly session count extrapolated from a
30-day window. Change the model, the price, or how much you work and it moves;
the item and token counts do not. See <a href="#limitations-transparency">Limitations</a>.</sub></p>

<p align="center"><em>Measured on my own setup - 55 sessions over 30 days, 2026-08-23. Run <code>reap</code> to see yours.</em></p>
<!-- readme-mine-costs:end -->

skillreaper measures both, from evidence - no guessing.

> `reap` points at the waste. You decide what goes.

<br>

### Privacy

**100 % local**, with one exception you start by hand. Zero telemetry, zero
uploads. Reads config files and session transcripts on disk, and your data never
leaves your machine, except through `reap reinvest`: it is experimental, says so
on its first line, and sends Claude, through `claude -p` on your own Claude Code
account, excerpts of your sessions (with the keys it recognises removed first)
and the names and descriptions of your installed skills. With `--online` it also
sends search words drawn from them to skills.sh (and, with `--mcp`, the MCP
registry, then asks npm, PyPI and GitHub about the servers it finds), and says
that too on its first line. It keeps what it read of your sessions, with the
keys removed, in `sessions_memory.json` under reap's state folder
(`~/Library/Application Support/skillreaper/reinvest` on macOS), readable by
you alone, so that a kind of work is still known after Claude Code deletes
the transcripts.

<br>

### Before → After: what removing token waste buys

<!-- readme-mine-table:start -->
| Before skillreaper | After skillreaper |
|---|---|
| 382 items loaded every session | 15 kept · 13 actually fire |
| 19 755 tok/session dead | Full context budget for real work |
| ≈ 73 000 dead chars ≈ 29 pages every session (at 500 words/pg) | Zero |
| Lower cache hit rate = higher latency | Smaller prompt fits in cache |

<sub>My own installation, measured 2026-08-23.</sub>
<!-- readme-mine-table:end -->

<br>

<p align="center">If this looks useful → <a href="https://github.com/thousandflowers/skillreaper">⭐ star the repo</a></p>

## Getting started

### Install

**Inside Claude Code** - adds `/skillreaper:reap` and `/skillreaper:gap`, so the
report renders in the conversation instead of a scrollback you have to re-read:

```
/plugin marketplace add thousandflowers/skillreaper
/plugin install skillreaper@skillreaper
```

The plugin is a thin wrapper: it drives the same binary, so install that too
with any line below. If the skills can't find it, they print how to run it with
`npx skillreaper` and how to install it permanently.

**Install permanently** - Homebrew and npm install both names, `reap` and
`skillreaper`, so either one works. `go install` gives you `reap`:

Pick one. macOS, with Homebrew:

```bash
brew install thousandflowers/tap/skillreaper
```

Any platform, with npm (downloads the matching prebuilt, checksum-verified):

```bash
npm install -g skillreaper
```

Any platform, with Go 1.24 or newer:

```bash
go install github.com/thousandflowers/skillreaper/cmd/reap@latest
```

> Already installed it with Homebrew? You don't need the npm package -
> both put `reap` and `skillreaper` in the same prefix, so `npm install -g`
> stops at an EEXIST link error rather than overwriting brew's copy.
> Pick one route: to switch to npm, run `brew uninstall skillreaper` first.
> Neither affects `npx skillreaper`, which runs from a cache and never
> links a global command.

**Binary downloads** - macOS (Intel + Apple Silicon), Linux (amd64 + arm64),
Windows (amd64 + arm64) - all on the
[releases page](https://github.com/thousandflowers/skillreaper/releases).
Single static binary, no dependencies.

Upgrading, uninstalling, and platform-specific tips →
[INSTALL.md](INSTALL.md).

<br>

### Usage
💬 **Curious what `reap` finds in other setups?** [Share your output →](https://github.com/thousandflowers/skillreaper/discussions)

| Command | What it does |
|---|---|
| `skillreaper` | The menu: choose on one screen, apply after a receipt |
| `reap menu` | The same menu, by its command name |
| `reap` | Scan + report (read-only) |
| `reap gap` | Loaded-vs-fired utilization + MCP payload quality |
| `reap prune` | Quarantine REAP items (reversible) |
| `reap prune <name>` | Quarantine that one item, whatever its verdict |
| `reap mute <name>` | Strip description, keep skill available |
| `reap delete <name>` | Remove one item for good (cannot be restored) |
| `reap unmute` | List what is muted |
| `reap unmute <name>` | Restore description from backup |
| `reap unmute <path>` | Restore that one copy, not its namesakes elsewhere |
| `reap unmute --all` | Restore all muted skills |
| `reap keep <name>` | Protect an item from pruning |
| `reap restore` | List what is pruned, with ids |
| `reap restore <id>` | Undo one prune |
| `reap restore --all` | Undo every prune |
| `reap why <name>` | Explain in detail why an item got its verdict |
| `reap by-project` | Skills bucketed by the project that fired them |
| `reap route` | Propose a usage-informed lazy-load routing plan (opt-in) |
| `reap apm` | Emit a proposed APM apm.yml from this repo's firing |
| `reap apm --diff apm.yml` | Reconcile: what to add (fired, undeclared) / drop (declared, cold) |
| `reap share` | Print a ready-to-paste line about what you reclaimed |
| `reap reinvest --dry-run` | Experimental: propose a skill for work none of yours covers |
| `reap snapshot` | Save this run's --json payload for later comparison |
| `reap diff` | Compare the newest two snapshots |
| `reap diff <a> <b>` | Compare two named snapshots |
| `reap manifest <name>` | Emit a release manifest for one skill |
| `reap install-hook` | Install weekly nudge (SessionStart hook) |
| `reap install-hook --dry-run` | Preview without writing |
| `reap uninstall-hook` | Remove hook, other hooks untouched |
| `reap --json` | Structured JSON output |
| `reap --md` | Markdown report |
| `reap --days 7` | Shorter evidence window |
| `reap --mute-threshold 0.20` | Uses ÷ sessions below which MUTE triggers (default 20%) |
| `reap version` | Print version |

<br>

### The menu

```bash
skillreaper
```

`reap menu` opens the same screen.

<p align="center">
  <img src="docs/menu-demo.gif" alt="The skillreaper menu: choosing what to prune and mute, the number falling to zero, then the receipt" width="900"><br>
  <sub>Recorded against an invented stack
  (<a href="docs/gif-helpers/menu-fixture.sh">menu-fixture.sh</a>), so the

Frequently Asked Questions

What is skillreaper?

skillreaper is a Artificial Intelligence library for the Go programming language. CLI that scans AI agent session transcripts to identify and safely quarantine unused skills, MCP servers, and agents across Claude Code, Codex CLI, Hermes, OpenCode, Cursor, and OpenClaw

How do I install skillreaper?

Install skillreaper with the Go module system using `go get thousandflowers/skillreaper`. Check the repository for the current installation instructions.

What category does skillreaper belong to?

skillreaper is listed under Artificial Intelligence, specifically Artificial Intelligence.

← Back to Artificial Intelligence