absolute-prune

absolute-prune is a skill for Claude Code, Codex from maddhruv/absolute. It costs 86 tokens per session (1,187 once invoked), scanned A, original, MIT.

A repository-wide cleanup workflow for finding and removing code, dependencies, exports, or files that are no longer used. It relies on tools to provide evidence before making reversible changes.

In plain words
What is it for?
Use it to find unused dependencies, unreferenced exports, unreachable code, and orphaned files across a project.
Why use it?
It helps reduce clutter and installation or maintenance cost without deleting code merely because it looks unnecessary.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/maddhruv/absolute/absolute-prune
Any agent
npx skills add maddhruv/absolute --skill absolute-prune
Clone the repo
git clone --depth 1 https://github.com/maddhruv/absolute

Made for: Claude Code, Codex.

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

agentmods badge for absolute-prune

README.md
[![agentmods](https://agentmods.dev/badge/skills/maddhruv/absolute/absolute-prune.svg)](https://agentmods.dev/skills/maddhruv/absolute/absolute-prune)
Your own site
<a href="https://agentmods.dev/skills/maddhruv/absolute/absolute-prune"><img src="https://agentmods.dev/badge/skills/maddhruv/absolute/absolute-prune.svg" alt="Measured on agentmods" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,187 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00086 $0.01187
Opus 5 $0.00043 $0.00593
Sonnet 5 $0.00017 $0.00237
Haiku 4.5 $0.00009 $0.00119

Measured 5d ago against content hash fa5b8d487f89, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

absolute-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 5d 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.

skills/absolute-prune/SKILL.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Start your first response with the ✂️ emoji.

Absolute Prune

Cut dead growth from the repo: unused dependencies, unreferenced exports, unreachable code, orphaned files. Evidence-based — every removal is backed by a tool that proves nothing references it — applied in safe waves with tests green after each.

Runs the shared engine in references/health-engine.md — read it for the DETECT → SCAN → TRIAGE → FIX → VERIFY → REPORT loop and the safety contract. This file covers only what's specific to pruning.


When to use

  • "Remove dead code", "clean up unused deps", "what can we delete?".
  • Bundle/install bloat from packages nothing imports anymore.
  • Post-refactor orphans: files and exports left behind after a feature was rerouted.

prune vs simplify: simplify polishes your working git diff. prune sweeps the whole committed repo for things that are dead repo-wide. Use simplify mid-change; prune as standing cleanup on green main.


What it scans

Dead dependencies — declared but never imported (and missing deps that are imported but undeclared):

Ecosystem Tool
JS/TS depcheck or knip (knip also covers exports/files)
Python deptry
Go go mod tidy (diff), unused module detection

Dead code — unreferenced exports, unreachable branches, orphaned files:

Ecosystem Tool
JS/TS knip (exports/files), ts-prune, eslint no-unused-vars
Python vulture, ruff unused rules
Go deadcode ./..., staticcheck (U1000)

Prefer tools already in the project. Treat results as candidates — verify each isn't reached via dynamic import, reflection, DI, public API, or a config string before removing.


Risk ranking (TRIAGE)

Wave Removal Default
1 unused devDeps, unreferenced local exports/functions fix now — lowest risk
2 unused runtime deps, orphaned internal files fix this pass after confirming no dynamic ref
3 anything reachable via public API, plugin system, dynamic require, reflection, or config gated / usually defer — high false-positive risk

Read the full file on GitHub · 123 lines

Files

What ships with it

2 files 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.

Changes

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.

  1. 5d ago First seen · 123 lines · 86 tokens per session scan A fa5b8d487f89

Subscribe to this mod's changes

absolute-prune is a skill published in the GitHub repository maddhruv/absolute (210 stars, last pushed 2mo ago), licensed MIT. It adds 86 tokens to every session and 1,187 once invoked, about $0.0004 per session on Opus 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-08-30.