- Home
- Skills
- Prompt & Skill Engineering
- Prunegraft: keep your Claude Code skills lean
More screenshots
Works with the AI Agents you already use
Prunegraft: keep your Claude Code skills lean
Finds the skills you never use, sets them aside (never deletes), and turns work you keep doing by hand into new skills.
$5
Prunegraft: keep your Claude Code skills lean
Example session with this skill installed
Use Prunegraft on this practice .claude folder (point it there with --home). Which of my five skills do I actually use, which should be set aside, and is there anything I keep doing by hand that should become a skill?
- Read your context and instructions
- Compiled the prunegraft
Prunegraft report
5 skills in .claude\skills. Their names and descriptions load into every session: about 103 tokens each time.
Used
- deploy-site: 3 sessions, last 2026-10-21
- weekly-report: 2 sessions, last 2026-10-14
- release-notes: 1 session, last 2026-10-02
- tidy-imports: 1 session, last 2026-08-20
Idle 45+ days and named nowhere (retire these)
- pdf-merge: last used never, about 18 tokens a session
- tidy-imports: last used 2026-08-20, about 21 tokens a session
Retiring them saves about 39 tokens in every session.
Run by hand in 3+ sessions in the last 21 days, and in no skill or scheduled task (candidates for a new skill)
python resize_images.py: 3 sessions
6 session records read in 0.6 seconds.
Set aside, not deleted
node prunegraft.mjs --retire pdf-merge --why "never used since it arrived on 20 July"
retired pdf-merge: moved to .claude\skills-retired\pdf-merge
node prunegraft.mjs --retire tidy-imports --why "idle since 2026-08-20"
retired tidy-imports: moved to .claude\skills-retired\tidy-imports
One command brings a skill back
node prunegraft.mjs --restore tidy-imports
restored tidy-imports
The restored skill came back intact. A real run on a practice skills folder (five skills, six sessions over two months), 23 Oct 2026.
Connects securely to your tools. The creator never sees your data.
About this skill
Every skill's name and description loads into every Claude Code session, so a skill nobody uses costs tokens every time. Prunegraft reads Claude Code's own session records on your machine to see which skills you actually used, moves idle ones to a skills-retired folder (one command brings any back), and points out scripts you keep running by hand as candidates for new skills, built on the skills you already have.
The scan is one plain Node.js file with no packages, no network calls and no shell commands, so running it costs no tokens. Built and tested on Windows; plain Node.js, so it should run the same on macOS and Linux. SECURITY.md lists exactly what it reads and writes.
Created by Greygray, with AI collaboration openly included in the process.
Made for Claude Code only: it reads Claude Code's own session records and skills folder. It needs Node.js 18 or newer. It only knows about uses still in those records or in its own notes from earlier runs, so the first run can miss use from before Claude Code cleared old records. Token counts are estimates, from the length of each skill's name and description. It suggests new skills; your agent makes at most one per run, and only when the work repeated in 3 or more sessions and no skill already covers it.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 29 days ago
Requires
Permissions
Terminal / Shell: to run the report script with Node.js. Read Files: to read Claude Code's session records, your skills and the CLAUDE.md files that may name a skill. Write Files: to move an idle skill to skills-retired (and back), and to keep its notes in ~/.claude/prunegraft/. Environment Variables: it reads one, CLAUDE_CONFIG_DIR, Claude Code's own setting for where the .claude folder lives. No keys or tokens.