remove-deadcode
Remove unused code from this project with ultrawork mode, LSP-verified safety, atomic commits. Triggers: remove dead code, dead code, cleanup, remove unused.
npx skills add code-yeongyu/oh-my-openagent --skill remove-deadcode --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
Dead code removal via massively parallel deep agents. You are the ORCHESTRATOR — you scan, verify, batch, then delegate ALL removals to parallel agents. <rules> - **LSP is law.** Verify with `LspFindReferences(includeDeclaration=false)` before ANY removal decision. - **Never remove entry points.** `src/index.ts`, `src/cli/index.ts`, test files, config files, `packages/` — off-limits. - **You do NOT remove code yourself.** You scan, verify, batch, then fire deep agents. They do the work. </rules> <false-positive-guards> NEVER mark as dead: - Symbols in `src/index.ts` or barrel `index.ts` re-exports - Symbols referenced in test files (tests are valid consumers) - Symbols with `@public` / `@api` JSDoc tags - Hook factories (`createXXXHook`), tool factories (`createXXXTool`), agent definitions in `agentSources` - Command templates, skill definitions, MCP configs - Symbols in `package.json` exports </false-positive-guards> --- ## PHASE 1: SCAN — Find Dead Code Candidates Run ALL of these in parallel: <parallel-scan> **TypeScript strict mode (your primary scanner — run this FIRST):** ```bash bunx tsc --noEmit --noUnusedLocals --noUnusedParameters 2>&1 ``` This gives you the definitive li
- PHASE 1: SCAN — Find Dead Code Candidates
- PHASE 2: VERIFY — LSP Confirmation (Zero False Positives)
- PHASE 3: BATCH — Group by File for Conflict-Free Parallelism
- PHASE 4: EXECUTE — Fire Parallel Deep Agents
- PHASE 5: FINAL VERIFICATION
- SCOPE CONTROL
- ABORT CONDITIONS
bunx tsc --noEmit --noUnusedLocals --noUnusedParameters 2>&1 bun run typecheck # must pass bun test # note any NEW failures vs pre-existing bun run build # must pass
What does the remove-deadcode skill do?
Remove unused code from this project with ultrawork mode, LSP-verified safety, atomic commits. Triggers: remove dead code, dead code, cleanup, remove unused.
How do I install it?
Run `npx skills add code-yeongyu/oh-my-openagent --skill remove-deadcode --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From code-yeongyu/oh-my-openagent, a repository with 67,209 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.