Agent skill

Dead Code Removal

by aiskillstore in aiskillstore/marketplace

Detects and safely removes unused code (imports, functions, classes) across multiple languages.

No licenceAuto-check passedDevelopment

Install Dead Code Removal

skills CLI
$ npx skills add aiskillstore/marketplace --skill dead-code-removal -a claude-code

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

GitHub CLI
$ gh skill install aiskillstore/marketplace dead-code-removal --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/aiskillstore/marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/89jobrien/dead-code-removal .claude/skills/dead-code-removal && 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-removal
GitHub stars
430
Used in
1 other repo
Token cost
~1.9k tokens
SKILL.md length
556 words
Files
3 (incl. scripts)
Skills in repo
1,085
Repo updated
First seen
Licence
None found

At a glance

Detects and safely removes unused code (imports, functions, classes) across multiple languages.

  • Works in 5 steps: Language Detection → Build Dependency Graph → Detect Unused Elements → …
  • Tasks that involve Refactoring
  • SKILL.md covers When to Use This Skill, What This Skill Does, Helper Scripts and How to Use, plus 4 more sections
  • Runs Python scripts from its folder; calls python, rsync and npx

What it does

Dead Code Removal is an agent skill from aiskillstore/marketplace. Detects and safely removes unused code (imports, functions, classes) across multiple languages. Use after refactoring, when removing features, or before production deployment. Includes safety checks and validation.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `scripts/find-unused-imports.py` and `skill-report.json`).

It sits in Development, covering Refactoring. It works with Java and Python. The repository describes itself as: Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified.

When your agent uses it

  • Tasks that involve Refactoring

Example prompts

  • “Use the dead-code-removal skill to detect and safely removes unused code (imports, functions, classes) across multiple languages”
  • “/dead-code-removal”

Requirements

  • Python 3
  • Node.js

Workflow steps

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

  1. Language Detection
  2. Build Dependency Graph
  3. Detect Unused Elements
  4. Safety Checks
  5. Safe Removal Process

What it can do on your machine

Read from SKILL.md and the folder at commit 4ac52da. 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

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • rsync
    • npx
    • npm
    • javac
    • mvn

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

  • Network

    No URLs in SKILL.md. Its commands use rsync, npx and npm, which can reach the network depending on how they are called.

    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 Removal loads about 1.9k tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 556 words of instructions outside code blocks.

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

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); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 556 words (~1,902 tokens).

“This skill safely identifies and removes unused code across multiple programming languages. It includes comprehensive safety checks to prevent removing code that's actually needed.”

— opening of SKILL.md by aiskillstore
name
dead-code-removal
author
Joseph OBrien
status
unpublished
updated
2025-12-23
version
1.0.1
tag
skill
type
skill

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files (scripts) in skills/89jobrien/dead-code-removal of aiskillstore/marketplace.

  • SKILL.md
  • scripts/find-unused-imports.py
  • skill-report.json

Open the folder on GitHubat commit 4ac52da

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in aiskillstore/marketplace, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Dead Code Removal 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 Removal compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dead Code Removal this skillaiskillstore/marketplace4301 repos~1.9kAutomated safety check: PassNone
Code Refactor Masteryennanliu/CS_basics142—~3.3kAutomated safety check: PassNone
Code Revieweralirezarezvani/claude-skills28k1 repos~1.6kAutomated safety check: PassMIT
Algorithmic Complexity Reviewpproenca/dot-skills214—~3kAutomated safety check: PassMIT
Crap Analyzerswingerman/engineer154—~1.2kAutomated safety check: PassMIT
Dignified Python Standardsdocling-project/docling68k—~1.5kAutomated safety check: PassApache-2.0

Similar skills

  • Code Refactor Master

    yennanliu/CS_basics

    Code refactoring expert for improving code quality, readability, maintainability, and performance.

    142 GitHub stars~3.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Code Reviewer

    alirezarezvani/claude-skills

    Code review automation for TypeScript, JavaScript, Python, Go, Swift, Kotlin, C, .NET, Java, C, C++, Rust, Ruby, PHP, and Dart/Flutter.

    28k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Algorithmic complexity (Big-O) review — finding nested loops, N+1 queries, exponential recursion, quadratic string builds, and other accidental complexity blowups.

    214 GitHub stars~3k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Crap Analyzer

    swingerman/engineer

    A skill your agent uses to produce a risk-based refactor + test plan for recently-changed code on a diff/branch/PR by computing CRAP (complexity × untested) on changed methods.

    154 GitHub stars~1.2k tokensUpdated 14 days ago
    Testing & QAAuto-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 today
    DevelopmentAuto-check passed
  • Code Review Skill

    awesome-skills/code-review-skill

    Provides comprehensive code review guidance for React 19, Vue 3, Angular 17+, Svelte 5, Rust, TypeScript, Java, Java 8, PHP, Ruby, Rails, Python, Django, FastAPI, Go, C/.NET, Kotlin, Swift, Dart…

    2.1k GitHub stars~2.8k tokensUpdated 28 days ago
    DevelopmentAuto-check: notes

More from aiskillstore/marketplace

All 1,085 skills in this repo
  • Code Stats

    aiskillstore/marketplace

    Analyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs).

    430 GitHub starsUsed in 2 repos~697 tokens
    Auto-check: notes
  • Data Processing

    aiskillstore/marketplace

    Process JSON with jq and YAML/TOML with yq. An agent skill from aiskillstore/marketplace.

    430 GitHub starsUsed in 1 repo~720 tokens
    Auto-check: notes
  • Doc Scanner

    aiskillstore/marketplace

    Scans for project documentation files (AGENTS.md, CLAUDE.md, GEMINI.md, COPILOT.md, CURSOR.md, WARP.md, and 15+ other formats) and synthesizes guidance.

    430 GitHub starsUsed in 1 repo~644 tokens
    Auto-check: notes
  • File Search

    aiskillstore/marketplace

    Modern file and content search using fd, ripgrep (rg), and fzf.

    430 GitHub starsUsed in 1 repo~598 tokens
    Auto-check: notes
  • Find Replace

    aiskillstore/marketplace

    Modern find-and-replace using sd (simpler than sed) and batch replacement patterns.

    430 GitHub starsUsed in 1 repo~527 tokens
    Auto-check: notes
  • Investigating Codebases

    aiskillstore/marketplace

    Automatically activated when user asks how something works, wants to understand unfamiliar code, needs to explore a new codebase, or asks questions like "where is X implemented?", "how does Y…

    430 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check: notes

Works with

Categories

Questions about Dead Code Removal

What does Dead Code Removal do?

Detects and safely removes unused code (imports, functions, classes) across multiple languages. Dead Code Removal is an agent skill from aiskillstore/marketplace. Detects and safely removes unused code (imports, functions, classes) across multiple languages.

When should I use Dead Code Removal?

Dead Code Removal fits situations like: tasks that involve Refactoring.

How do I install Dead Code Removal in Claude Code?

Run `npx skills add aiskillstore/marketplace --skill dead-code-removal -a claude-code`. Or copy the skill folder (skills/89jobrien/dead-code-removal in aiskillstore/marketplace) into .claude/skills/dead-code-removal in your project. Claude Code loads it when a task matches its description.

How do I install Dead Code Removal in Codex?

Run `npx skills add aiskillstore/marketplace --skill dead-code-removal -a codex`. Or copy the skill folder (skills/89jobrien/dead-code-removal in aiskillstore/marketplace) into .agents/skills/dead-code-removal in your project. Codex loads it when a task matches its description.

Can I use Dead Code Removal 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 aiskillstore/marketplace --skill dead-code-removal -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-removal, .gemini/skills/dead-code-removal, .github/skills/dead-code-removal and .opencode/skills/dead-code-removal in your project.

What does Dead Code Removal need to run?

Going by SKILL.md and its folder, Dead Code Removal needs Python for the scripts in its folder and the command-line tools its instructions call (python, rsync, npx, npm, javac and mvn). Our summary lists: Python 3; Node.js.

Does Dead Code Removal access the network?

SKILL.md contains no URLs. Its commands use npx and npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Dead Code Removal 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Dead Code Removal use?

No licence was found for Dead Code Removal or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Dead Code Removal use?

About 1.9k tokens (SKILL.md is roughly 7.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 Removal?

Skills that share tags, products or a category with Dead Code Removal: Code Refactor Master (yennanliu/CS_basics, 142 stars), Code Reviewer (alirezarezvani/claude-skills, 28k stars), Algorithmic Complexity Review (pproenca/dot-skills, 214 stars) and Crap Analyzer (swingerman/engineer, 154 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dead Code Removal?

aiskillstore (a GitHub organization) maintains it in aiskillstore/marketplace, which has 430 GitHub stars. The repository holds 1,085 skills in this directory. The repository was last updated on October 7, 2026.

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