Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

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 & CodingAdvanced69,2025,700AI score 7/10Last updated: Sep 19, 2026

What it does

  • Runs tsc --noUnusedLocals --noUnusedParameters alongside explore agents to collect unused imports, constants, functions, types, and orphaned files.
  • Re-verifies every candidate with LspFindReferences and filters known false positives (barrel re-exports, test consumers, @public JSDoc, 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

  1. "Remove dead code from this project" → full scan, confirmation table, then batched parallel removal
  2. "Clean up only src/tools" → argument narrows the scan to that directory
  3. Unused function parameters are renamed to _param instead 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Open a terminal and clone the repo: git clone https://github.com/code-yeongyu/oh-my-openagent.git
  2. Create the skills folder: mkdir -p ~/.claude/skills
  3. Copy the skill: cp -r oh-my-openagent/.agents/skills/remove-deadcode ~/.claude/skills/
  4. Restart Claude Code and confirm remove-deadcode appears in your skills list.
  5. Make sure your project has bun run typecheck / bun run build scripts, or edit SKILL.md to use your package manager (npm, pnpm, yarn).
  6. Commit or stash pending changes for a clean git tree, then ask: "Remove dead code from this project."
View source on GitHubLicense: NOASSERTION