erase

erase is a skill for Claude Code from skymanbp/CodeEraser. It costs 56 tokens per session (1,505 once invoked), scanned A, original, Apache-2.0.

A guided process for acting on CodeEraser reports, where CodeEraser is a tool that identifies duplication, dead code, and other codebase clutter.

In plain words
What is it for?
Use it to review CodeEraser findings, apply safe cleanup, assess advisory candidates, and confirm that the codebase still passes its checks.
Why use it?
It helps remove reported candidates safely by checking the real code and rerunning quality checks after changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the codeeraser plugin — 1 skill, 1 command, 4 hooks, 1 MCP server shipped together

Good fit Use it to review CodeEraser findings, apply safe cleanup, assess advisory candidates, and confirm that the codebase still passes its checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/skymanbp/codeeraser/erase
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.

Any agent
npx skills add skymanbp/CodeEraser --skill erase
Clone the repo
git clone --depth 1 https://github.com/skymanbp/CodeEraser

Made for: Claude Code.

Or install codeeraser, the plugin that ships this one along with the rest of its 1 skill, 1 command, 4 hooks, 1 MCP server.

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 erase

README.md
[![agentmods](https://agentmods.dev/badge/skills/skymanbp/codeeraser/erase/github.svg)](https://agentmods.dev/skills/skymanbp/codeeraser/erase)
Your own site
<a href="https://agentmods.dev/skills/skymanbp/codeeraser/erase"><img src="https://agentmods.dev/badge/skills/skymanbp/codeeraser/erase/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.

agentmods 80×15 button for erase

Your own site · 80×15
<a href="https://agentmods.dev/skills/skymanbp/codeeraser/erase"><img src="https://agentmods.dev/badge/skills/skymanbp/codeeraser/erase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,505 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 29
    Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.
    Fix: Remove instructions that suppress warnings, disclaimers, or ethical commentary. Let the agent surface safety-relevant caveats to the user.
How audits are shown
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.1 $0.00056 $0.01505
Opus 5.5 $0.00022 $0.00602
Sonnet 5.5 $0.00011 $0.00301
Haiku 4.5 $0.00006 $0.00151

Measured 16d ago against content hash 681fe4917f74, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

erase 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 16d 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.

plugin/skills/erase/SKILL.md · 128 lines

How it starts

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

erase — from findings to deletions, safely

CodeEraser finds entropy; this skill is the OTHER half — acting on it without breaking anything. The contract: never delete what you have not read, and never claim convergence without re-running the gates.

0. Snapshot first

ce check .          # the before-score and the current ratchet state

Record the score line. Every deletion below must leave ce check passing. The score is the share of lines no finding names, so removing a clean unreferenced file can lower it while the unreferenced axis is off (the default); compare the findings on E of L lines part of the line: E must not grow.

1. The deterministic pass FIRST — ce erase

ce erase .            # dry-run plan: what is PROVABLY safe to remove
ce erase . --apply    # act on it (git repo + clean worktree required)
ce erase . --log      # the audit trail every apply appended (.ce/erase-log.ndjson)

One class erases without judgment: verbatim doc duplicates (of two byte-identical segments, the copy fewer links' fragments land on; a copy whose section a link lands on is advisory, linked_section) — an erased copy leaves its heading in place, so remove the heading or put a link to the surviving copy. The tool plans them deterministically, applies behind preconditions, and proves its own convergence (contract: docs/reference/erase.md); the trail it leaves is the same document the MCP tool erase_log and the GUI erase screen's audit-log section show, and a record the reader cannot parse is named by line. Do NOT hand-delete anything the plan already covers. Everything it prints as advisory is YOUR half — that is where the judgment below begins. Unreferenced files and whole-unit twins in them are always advisory (reachable_by_name, language_unresolved or public_surface): nothing in the tree references them, which is not proof that nothing uses them.

2. Collect the advisory candidates (three signals, JSON faces)

ce dedup . --format json      # T1/T2 clone blocks
ce deadcode . --format json   # unreferenced files under their roots, each file's state
ce join . --days 14 --format json   # similarity × position × churn

Read the full file on GitHub · 128 lines

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. 16d ago Changed · +11 lines 681fe4917f74
  2. 17d ago Changed · +5 lines 0b38223f2755
  3. 18d ago Changed · +9 lines ebfecbfa4221
  4. 1mo ago Changed · +17 lines 8007c78f1f59
  5. 2mo ago Changed · +4 lines 6561fab03e3c
  6. 3mo ago First seen · 82 lines · 56 tokens per session scan A 2d0ee9a6d463

Subscribe to this mod's changes

erase is a skill published in the GitHub repository skymanbp/CodeEraser (16 stars, last pushed 6d ago), licensed Apache-2.0. It adds 56 tokens to every session and 1,505 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-08-30.

Related

erase compared with skills from other repositories

erase next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
eraseskymanbp/CodeEraserSkill166d agoApache-2.0A56Claude Code
health-checkludo-technologies/pyscnSkill1.1ktodayMITA49Claude Code
codeql-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A68Claude Code
audit-quality-gatesyegor256/puristSkill2todayMITA29Claude Code
scansentrux/sentruxSkill3.3k8mo agoMITA57Claude Code
systematic-debugskymanbp/cc-enforcerSkill626d agoMITA119Claude Code
ubsDicklesworthstone/ultimate_bug_scannerSkill320todaynoneC51Claude Code, Codex