Agent skill

Dead Code Cleanup

by calimero-network in calimero-network/core

Detects and removes dead code introduced by AI agents. An agent skill from calimero-network/core.

Custom licenceAuto-check passedDevelopment

Install Dead Code Cleanup

skills CLI
$ npx skills add calimero-network/core --skill dead-code-cleanup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install calimero-network/core dead-code-cleanup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/calimero-network/core.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/dead-code-cleanup .claude/skills/dead-code-cleanup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dead-code-cleanup
GitHub stars
171
Token cost
~1.5k tokens
SKILL.md length
598 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
Custom licence

At a glance

Detects and removes dead code introduced by AI agents. An agent skill from calimero-network/core.

  • Works in 5 steps: Identifying dead code candidates → Verification (required before removal) → Exclusions (do not remove unless user… → …
  • Cleaning up after AI-generated code
  • SKILL.md covers Workflow overview, 1. Identifying dead code…, 2. Verification (required… and 3. Exclusions (do not remove…, plus 3 more sections
  • Calls cargo and rg

What it does

Dead Code Cleanup is an agent skill from calimero-network/core. Detects and removes dead code introduced by AI agents. Analyzes codebase for unused functions, variables, imports, and types; verifies no references (including indirect, dynamic, or runtime); reports with file paths and line numbers; optionally generates safe patches. Use when cleaning up after AI-generated code, removing unused code, or when the user asks for dead code detection, unused code removal, or code quality cleanup.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Code quality. The repository describes itself as: Calimero - Peer-to-peer application platform with local-first governance, CRDT state sync, and WASM execution.

When your agent uses it

  • Cleaning up after AI-generated code
  • Removing unused code
  • The user asks for dead code detection
  • Unused code removal

Example prompts

  • “Use the dead-code-cleanup skill to detect and removes dead code introduced by AI agents. An agent skill from calimero-network/core”
  • “/dead-code-cleanup”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Identifying dead code candidates
  2. Verification (required before removal)
  3. Exclusions (do not remove unless user confirms)
  4. Report format
  5. Safe removal and patches

What it can do on your machine

Read from SKILL.md and the folder at commit 379600b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • cargo
    • rg

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dead Code Cleanup loads about 1.5k tokens when it runs. Until then it costs about 112 tokens; SKILL.md has 598 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~112
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 598 words (~1,509 tokens).

“Remove unused code introduced during development while avoiding functional regressions. Always verify that code is truly unused before suggesting removal.”

— opening of SKILL.md by calimero-network, Custom licence
name
dead-code-cleanup

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .cursor/skills/dead-code-cleanup of calimero-network/core.

Open the folder on GitHubat commit 379600b

Compare with similar skills

Dead Code Cleanup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dead Code Cleanup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dead Code Cleanup this skillcalimero-network/core171—~1.5kAutomated safety check: PassCustom licence
WooCommerce Code Reviewwoocommerce/woocommerce11k3 repos~1.1kAutomated safety check: PassCustom licence
Systematic Code Refactoringluongnv89/claude-howto42k—~3kAutomated safety check: PassMIT
Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop5.2k—~2.2kAutomated safety check: PassMIT
Constraint-Driven Developmentaddyosmani/agent-skills102k2 repos~5.2kAutomated safety check: PassMIT
Skill Doli Code ReviewDolibarr/dolibarr7.7k1 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Systematic Code Refactoring

    luongnv89/claude-howto

    Guides refactoring in phases based on Martin Fowler's method: research, test coverage check, planning and small tested steps, with your approval at each phase.

    42k GitHub stars~3k tokensUpdated 7 days ago
    DevelopmentAuto-check passed
  • Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.

    5.2k GitHub stars~2.2k tokensUpdated 27 days ago
    DevelopmentAuto-check passed
  • Constraint-Driven Development

    addyosmani/agent-skills

    Records a project's quality bar in CONSTRAINTS.md and watches diffs for signs an agent quietly weakened it, such as suppressions, skipped tests or lowered thresholds.

    102k GitHub starsUsed in 2 repos~5.2k tokens
    DevelopmentAuto-check passed
  • Skill Doli Code Review

    Dolibarr/dolibarr

    Reviews Dolibarr PHP code for compliance with coding standards and security best practices, and fixes identified issues.

    7.7k GitHub starsUsed in 1 repo~1.1k tokens
    DevelopmentAuto-check passed
  • Dignified Python Standards

    docling-project/docling

    Applies opinionated production Python conventions chosen by the project's Python version: modern type syntax, pathlib, explicit checks and interface guidance.

    68k GitHub stars~1.5k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from calimero-network/core

  • Core PR Helper

    calimero-network/core

    Suggests one appropriate branch name and a PR description in the project template (title, Description, Test plan, Documentation update) for Calimero core.

    171 GitHub stars~614 tokensUpdated today
    Auto-check passed
  • Unreachable Subsystems

    calimero-network/core

    Finds code that compiles, lints clean and is referenced, but that nothing can actually reach — dead islands whose items reference each other while the outermost edge points at a route, command, or…

    171 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Calimero Security Fix

    calimero-network/core

    Fixes a security finding in calimero-network/core - reproduce it through the real entry point, commit a failing test first, add the limit or gate in the shared function every caller goes through…

    171 GitHub stars~614 tokensUpdated today
    Auto-check passed

Categories

Questions about Dead Code Cleanup

What does Dead Code Cleanup do?

Detects and removes dead code introduced by AI agents. An agent skill from calimero-network/core. Dead Code Cleanup is an agent skill from calimero-network/core. Detects and removes dead code introduced by AI agents.

When should I use Dead Code Cleanup?

Dead Code Cleanup fits situations like: cleaning up after AI-generated code; removing unused code; the user asks for dead code detection; unused code removal.

How do I install Dead Code Cleanup in Claude Code?

Run `npx skills add calimero-network/core --skill dead-code-cleanup -a claude-code`. Or copy the skill folder (.cursor/skills/dead-code-cleanup in calimero-network/core) into .claude/skills/dead-code-cleanup in your project. Claude Code loads it when a task matches its description.

How do I install Dead Code Cleanup in Codex?

Run `npx skills add calimero-network/core --skill dead-code-cleanup -a codex`. Or copy the skill folder (.cursor/skills/dead-code-cleanup in calimero-network/core) into .agents/skills/dead-code-cleanup in your project. Codex loads it when a task matches its description.

Can I use Dead Code Cleanup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add calimero-network/core --skill dead-code-cleanup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dead-code-cleanup, .gemini/skills/dead-code-cleanup, .github/skills/dead-code-cleanup and .opencode/skills/dead-code-cleanup in your project.

What does Dead Code Cleanup need to run?

Going by SKILL.md and its folder, Dead Code Cleanup needs the command-line tools its instructions call (cargo and rg).

Does Dead Code Cleanup access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Dead Code Cleanup safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Dead Code Cleanup use?

Dead Code Cleanup has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Dead Code Cleanup use?

About 1.5k tokens (SKILL.md is roughly 6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dead Code Cleanup?

Skills that share tags, products or a category with Dead Code Cleanup: WooCommerce Code Review (woocommerce/woocommerce, 11k stars), Systematic Code Refactoring (luongnv89/claude-howto, 42k stars), Install Anti-Slop Oxlint Rules (dmmulroy/anti-slop, 5.2k stars) and Constraint-Driven Development (addyosmani/agent-skills, 102k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dead Code Cleanup?

calimero-network (a GitHub organization) maintains it in calimero-network/core, which has 171 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 7, 2026.

Source: calimero-network/core on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.