Dead Code Removal Orchestrator
Scans a TypeScript project for unused code, confirms each candidate via LSP, then removes it through parallel per-file batches with atomic commits.
Dev & CodingAdvanced★ 69,202⑂ 5,700AI score 7/10Last updated: Sep 19, 2026
What it does
- Runs
tsc --noUnusedLocals --noUnusedParametersalongside explore agents to collect unused imports, constants, functions, types, and orphaned files. - Re-verifies every candidate with
LspFindReferencesand filters known false positives (barrel re-exports, test consumers,@publicJSDoc, hook/tool factories, package exports). - Groups confirmed items by file path so parallel agents never touch the same file, and each batch must pass typecheck before its own
refactor:commit. - Finishes with typecheck / test / build verification plus a summary table of symbols removed and commit hashes.
Who it's for
- Developers maintaining long-lived TypeScript or monorepo codebases
- Teams that have broken builds by deleting "unused" code by hand
- Anyone who wants cleanup split into small, reviewable commits
Examples
- "Remove dead code from this project" → full scan, confirmation table, then batched parallel removal
- "Clean up only src/tools" → argument narrows the scan to that directory
- Unused function parameters are renamed to
_paraminstead of deleted, preserving signatures
Note: if more than 50 candidates are found, it stops and asks you to narrow the scope.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/HEAD/.agents/skills/remove-deadcode/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the .agents/skills/remove-deadcode folder from the GitHub repo code-yeongyu/oh-my-openagent into my ~/.claude/skills/remove-deadcode/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/code-yeongyu/oh-my-openagent.git /tmp/oh-my-openagent && mkdir -p ~/.claude/skills && cp -r /tmp/oh-my-openagent/.agents/skills/remove-deadcode ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/code-yeongyu/oh-my-openagent.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r oh-my-openagent/.agents/skills/remove-deadcode ~/.claude/skills/ - Restart Claude Code and confirm
remove-deadcodeappears in your skills list. - Make sure your project has
bun run typecheck/bun run buildscripts, or edit SKILL.md to use your package manager (npm, pnpm, yarn). - Commit or stash pending changes for a clean git tree, then ask: "Remove dead code from this project."
View source on GitHub ↗License: NOASSERTION