Remove unused code with safety verification
remove-deadcodeskillsetup L2★61,462
code-yeongyu/oh-my-openagent ↗What it does
Remove unused code via LSP-verified parallel deep agents
Best for
When you need to clean dead code at scale without manually hunting — LSP verification prevents false positives.
Inputs
- · TypeScript source tree, tsc --noUnusedLocals output, git diff staging area
Outputs
- · atomic commits per batch, removed functions/imports/files, cleaned codebase
Requires
- · TypeScript
- · LSP
- · git
- · Bun
Preconditions
LSP running; tsc noUnusedLocals passes; no uncommitted changes blocking commits
Failure modes
- · LSP reference check fails or times out (orphaned symbol detection incomplete)
- · False positive: exported symbol with @public JSDoc removed
- · Two agents edit same file → merge conflict
Trust signals
- · LSP find-references confirmation (0 references = confirmed dead)
- · False-positive guards (re-exports, test files, entry points, @public tags)
- · Batching by file prevents parallel merge conflicts