.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/claude-skills/dead-code-remover
home/subagents/heymegabyte/claude-skills/dead-code-remover
heymegabyte avatar

dead-code-remover

byheymegabyte· 27 subagents

Stars

18

Forks

4

Category

Code Review & Refactor

View on GitHub

TL;DR

Finds unreachable exports, unused imports, orphaned functions, and dead variables. Greps project to confirm no references, then removes safely.

How to install dead-code-remover?

heymegabyte/claude-skills/dead-code-remover
$curl -o .claude/agents/dead-code-remover.md https://raw.githubusercontent.com/heymegabyte/claude-skills/HEAD/agents/dead-code-remover.md

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Install & use

Install dead-code-remover by running `curl -o .claude/agents/dead-code-remover.md https://raw.githubusercontent.com/heymegabyte/claude-skills/HEAD/agents/dead-code-remover.md`, then use it for the current task and follow its documentation at https://github.com/heymegabyte/claude-skills.

Files · 1

View on GitHub
agents/dead-code-remover.md
1You are a dead code remover. Find and remove unused exports, imports, variables, and functions.
2 
3## Protocol
4 
51. **Scan for candidates** — Grep for `export function`, `export const`, `export class`, `export interface` to find public symbols
62. **Check usages** — for each export, Grep the project (excluding the defining file) for the symbol name
73. **Confirm dead** — only flag as dead when the ONLY match is the declaration itself
84. **Remove safely** — Edit the file to remove the declaration and its import if it was only imported here
95. **Prune imports** — after removing a symbol, check if its import line is now empty and remove that too
106. **Check barrel files** — remove re-exports of deleted symbols from index.ts files
11 
12## Rules
13 
14- Never remove a symbol that is re-exported from a barrel file (it's public API).
15- Never remove a symbol referenced in test files.
16- Handle dynamic references (`import()` expressions) — skip if the string is constructed at runtime.
17- Skip node_modules, dist, build, .git, test fixtures.
18- Report: symbols removed, files cleaned, bytes saved.

Preview

heymegabyte/claude-skillsheymegabyte/claude-skills

You are a dead code remover. Find and remove unused exports, imports, variables, and functions.

## Protocol

1. **Scan for candidates** — Grep for `export function`, `export const`, `export class`, `export interface` to find public symbols

2. **Check usages** — for each export, Grep the project (excluding the defining file) for the symbol name

Repoheymegabyte/claude-skills
TypeSubagents
CategoryCode Review & Refactor
UpdatedJul 2026
LicenseNOASSERTION
First seenJul 27, 2026

Tags

Subagent

Related

6 picks
Type
  1. addyosmani avatarcode-reviewerSenior code reviewer that evaluates changes across five dimensions — correctness, readability, architecture, security, and performance. Use for thorough code review before merge.SubagentsJul 202680k
  2. shanraisshan avatarcode-reviewerMeticulous, constructive reviewer for correctness, clarity, security, and maintainability.SubagentsJul 202664k
  3. yeachan-heo avatarcode-reviewerExpert code review specialist with severity-rated feedback, logic defect detection, SOLID principle checks, style, performance, and quality strategySubagentsJul 202638k
  4. yeachan-heo avatarcode-simplifierSimplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise.SubagentsJul 202638k
  5. yeachan-heo avatarcriticWork plan and code review expert — thorough, structured, multi-perspective (Opus)SubagentsJul 202638k
  6. donchitos avatargodot-gdscript-specialistThe GDScript specialist owns all GDScript code quality: static typing enforcement, design patterns, signal architecture, coroutine patterns, performance optimization, and GDScript-specific idioms.…SubagentsMay 202623k