Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add PaulRBerg/agent-skills --skill ai-prunegit clone --depth 1 https://github.com/PaulRBerg/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/paulrberg/agent-skills/ai-prune)<a href="https://agentmods.dev/skills/paulrberg/agent-skills/ai-prune"><img src="https://agentmods.dev/badge/skills/paulrberg/agent-skills/ai-prune/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/paulrberg/agent-skills/ai-prune"><img src="https://agentmods.dev/badge/skills/paulrberg/agent-skills/ai-prune.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00048 | $0.01322 |
| Opus 5.5 | $0.00019 | $0.00529 |
| Sonnet 5.5 | $0.00010 | $0.00264 |
| Haiku 4.5 | $0.00005 | $0.00132 |
Grade A, and why
ai-prune scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AI Prune
If a slash or dollar invocation already added these instructions to the conversation, follow them directly. In that case, do not invoke this skill again through a skill tool.
Review everything under .ai/ and .cache/. Decide which entries are clearly outdated relative to the repository's
current state. Archive the matching .ai/ entries. Move the matching .cache/ entries to the macOS Trash. Prefer to
keep entries. Change only entries with concrete evidence that they are outdated.
This skill runs only on macOS. If uname -s is not Darwin or /usr/bin/trash is missing, stop and report.
Arguments
path(optional): Repository root or any path inside the repository. Default to the current directory.--dry-run(optional): Report the planned moves and deletions without changing the filesystem.
Never Touch
.ai/todos/and.ai/archive/(including everything beneath them).TODO.mdandPROMPT.mdfiles anywhere: they are user-owned notes. Do not read or move them.- Live agent state: coordination ledgers, leases, locks, inboxes, and notification queues (for example
.ai/coord/,.cache/job-leases/). If another agent may currently write to a directory, treat it as live, not outdated. - Tool-managed caches that the repository's configuration still uses (prettier, ruff, pytest, uv, vitest, coverage, bundler and package-manager caches). Tools regenerate them on demand. They are never "outdated".
- Anything modified within the last 24 hours, unless it is unambiguously a leftover of finished work.
Workflow
-
Resolve the root. For a supplied file, use its containing directory. For a supplied directory, use that directory. Inside Git, resolve the Git root with
git -C "$start_dir" rev-parse --show-toplevel. Outside Git, use the directory itself.Store the root as
repo_root. Computetoday=$(date +%Y-%m-%d). If neither.ai/nor.cache/exists, stop. -
Inventory both trees with modification times, excluding the protected paths:
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +5 lines · -1 tokens per session 9ae799aecf1d
- 1mo ago Changed · +3 lines a34194d2218e
- 1mo ago First seen · 85 lines · 49 tokens per session scan A a532f8b04389
ai-prune is a skill published in the GitHub repository PaulRBerg/agent-skills (104 stars, last pushed 2d ago), licensed MIT. It adds 48 tokens to every session and 1,322 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-22.
ai-prune compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ai-prunePaulRBerg/agent-skills | Skill | 104 | 2d ago | MIT | A | 48 | Claude Code, Codex |
| orbit-notionnexu-io/open-design | Skill | 107k | yesterday | Apache-2.0 | A | 117 | Claude Code, Codex |
| agentmailpaperclipai/paperclip | Skill | 112k | today | MIT | A | 30 | Claude Code, Codex |
| Cortexdanielmiessler/LifeOS | Skill | 20k | 3d ago | MIT | A | 184 | Claude Code |
| rowboat-spacesrowboatlabs/rowboat | Skill | 18k | yesterday | Apache-2.0 | A | 60 | Claude Code, Codex |
| feishuHmbown/CodeWhale | Skill | 41k | yesterday | MIT | A | 33 | Claude Code, Codex |
| pinchtab-mcppinchtab/pinchtab | Skill | 11k | 12d ago | MIT | A | 52 | Claude Code, Codex |