DRY Refactoring With jscpd
kucherenko/jscpd
Removes copy-paste duplication found by jscpd, starting with exact clones and hotspots, then renamed and near-miss copies, using proven refactoring strategies.
Finds unused code in a TypeScript project, confirms each candidate has no references through the language server, then hands removals to parallel agents.
$ npx skills add code-yeongyu/oh-my-openagent --skill remove-deadcode -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install code-yeongyu/oh-my-openagent remove-deadcode --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/code-yeongyu/oh-my-openagent.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/remove-deadcode .claude/skills/remove-deadcode && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "remove-deadcode" agent skill from https://github.com/code-yeongyu/oh-my-openagent/tree/dev/.agents/skills/remove-deadcode into .claude/skills/remove-deadcode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "remove-deadcode", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/code-yeongyu/oh-my-openagent/tree/dev/.agents/skills/remove-deadcodeType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add code-yeongyu/oh-my-openagent --skill remove-deadcode -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install code-yeongyu/oh-my-openagent remove-deadcode --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/code-yeongyu/oh-my-openagent.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/remove-deadcode .agents/skills/remove-deadcode && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "remove-deadcode" agent skill from https://github.com/code-yeongyu/oh-my-openagent/tree/dev/.agents/skills/remove-deadcode into .agents/skills/remove-deadcode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "remove-deadcode", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add code-yeongyu/oh-my-openagent --skill remove-deadcode -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install code-yeongyu/oh-my-openagent remove-deadcode --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/code-yeongyu/oh-my-openagent.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/remove-deadcode .cursor/skills/remove-deadcode && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "remove-deadcode" agent skill from https://github.com/code-yeongyu/oh-my-openagent/tree/dev/.agents/skills/remove-deadcode into .cursor/skills/remove-deadcode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "remove-deadcode", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/code-yeongyu/oh-my-openagent.git --path .agents/skills/remove-deadcode--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add code-yeongyu/oh-my-openagent --skill remove-deadcode -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install code-yeongyu/oh-my-openagent remove-deadcode --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/code-yeongyu/oh-my-openagent.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/remove-deadcode .gemini/skills/remove-deadcode && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "remove-deadcode" agent skill from https://github.com/code-yeongyu/oh-my-openagent/tree/dev/.agents/skills/remove-deadcode into .gemini/skills/remove-deadcode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "remove-deadcode", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install code-yeongyu/oh-my-openagent remove-deadcodeInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add code-yeongyu/oh-my-openagent --skill remove-deadcode -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/code-yeongyu/oh-my-openagent.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/remove-deadcode .github/skills/remove-deadcode && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "remove-deadcode" agent skill from https://github.com/code-yeongyu/oh-my-openagent/tree/dev/.agents/skills/remove-deadcode into .github/skills/remove-deadcode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "remove-deadcode", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add code-yeongyu/oh-my-openagent --skill remove-deadcode -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install code-yeongyu/oh-my-openagent remove-deadcode --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/code-yeongyu/oh-my-openagent.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/remove-deadcode .opencode/skills/remove-deadcode && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "remove-deadcode" agent skill from https://github.com/code-yeongyu/oh-my-openagent/tree/dev/.agents/skills/remove-deadcode into .opencode/skills/remove-deadcode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "remove-deadcode", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
remove-deadcodeFinds unused code in a TypeScript project, confirms each candidate has no references through the language server, then hands removals to parallel agents.
The agent acts as an orchestrator that scans, verifies and batches, and never deletes code itself. Scanning runs the TypeScript compiler with unused-locals and unused-parameters checks through bunx, alongside several explore agents that look for things like orphaned files. Every candidate is then checked with an LSP find-references lookup, and only symbols with zero references stay on the confirmed list.
The skill carries explicit false-positive guards: entry points, barrel re-exports, symbols used by tests, anything tagged @public or @api, hook and tool factories, command templates, MCP configs and package.json exports are never marked dead. The confirmed list is a table of file, symbol, type and action, where the action is either remove, or rename an unused required parameter with an underscore prefix. Removals are then delegated to parallel agents and committed atomically, and if nothing is confirmed it reports that no dead code was found and stops.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit cbd7dd2. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
bunbunxgitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use bunx and git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Dead Code Remover loads about 1.8k tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 428 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 428 words (~1,804 tokens).
“Dead code removal via massively parallel deep agents. You are the ORCHESTRATOR — you scan, verify, batch, then delegate ALL removals to parallel agents.”
Just SKILL.md in .agents/skills/remove-deadcode of code-yeongyu/oh-my-openagent.
Open the folder on GitHubat commit cbd7dd2
Dead Code Remover next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Dead Code Remover this skillcode-yeongyu/oh-my-openagent | 70k | — | ~1.8k | Automated safety check: Pass | Custom licence | |
| DRY Refactoring With jscpdkucherenko/jscpd | 6.3k | — | ~2.1k | Automated safety check: Pass | MIT | |
| Dead Code Removal with Knipshift-editor/shift | 343 | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| Code RefinerMathews-Tom/armory | 327 | — | ~3.1k | Automated safety check: Pass | MIT | |
| OpenTUI Terminal Interfacescline/cline | 70k | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| Code Simplification for ego-litecitrolabs/ego-lite | 17k | — | ~1.2k | Automated safety check: Pass | MIT |
kucherenko/jscpd
Removes copy-paste duplication found by jscpd, starting with exact clones and hotspots, then renamed and near-miss copies, using proven refactoring strategies.
shift-editor/shift
Finds unused files, exports and class members with Knip, then verifies each candidate through reference tracing before removing anything, never using knip --fix.
Mathews-Tom/armory
Deep code simplification and refactoring preserving behavior across Python, Go, TypeScript, Rust.
cline/cline
Helps build terminal user interfaces with OpenTUI using its core imperative API or its React and Solid reconcilers, with references for layout, keyboard, animation and testing.
citrolabs/ego-lite
Finds and implements evidence-backed simplifications in the ego-lite repository, such as dead code, duplicated state and speculative abstractions, without hiding behavior changes.
dzhng/jevgrep
A skill your agent uses for questions about how, why, or where behavior works in a repository, including questions that name a function or setting.
code-yeongyu/oh-my-openagent
Searches and rewrites code by syntax-tree shape across 25 languages with ast-grep, for codemods, structural queries and YAML lint rules, using a Python wrapper script.
code-yeongyu/oh-my-openagent
Drives a real browser through the omowright library, either the user's own signed-in browser or a separate browser the code launches, for forms, QA, screenshots and scraping.
code-yeongyu/oh-my-openagent
Tests the omo Codex plugin in an isolated CODEX_HOME with a local mock model, proving hooks fired through app-server notifications without touching ~/.codex.
code-yeongyu/oh-my-openagent
Finds, reads and reconstructs past coding-agent sessions across Codex, Claude, OpenCode, Senpi and many other local agent logs.
code-yeongyu/oh-my-openagent
Detects which languages a project uses, installs the matching language server, writes its config and checks it with a real call so diagnostics and go-to-definition work.
code-yeongyu/oh-my-openagent
Tests the opencode coding agent itself: its CLI, server, plugin hooks and events, the terminal UI under tmux, and its SQLite session database, using tested helper scripts.
Works with
Categories
Finds unused code in a TypeScript project, confirms each candidate has no references through the language server, then hands removals to parallel agents. The agent acts as an orchestrator that scans, verifies and batches, and never deletes code itself. Scanning runs the TypeScript compiler with unused-locals and unused-parameters checks through bunx, alongside several explore agents that look for things like orphaned files.
Dead Code Remover fits situations like: cleaning unused exports, imports and files out of a TypeScript codebase; verifying that a symbol is truly unreferenced before deleting it; running a cleanup pass that must not touch entry points or tests.
Run `npx skills add code-yeongyu/oh-my-openagent --skill remove-deadcode -a claude-code`. Or copy the skill folder (.agents/skills/remove-deadcode in code-yeongyu/oh-my-openagent) into .claude/skills/remove-deadcode in your project. Claude Code loads it when a task matches its description.
Run `npx skills add code-yeongyu/oh-my-openagent --skill remove-deadcode -a codex`. Or copy the skill folder (.agents/skills/remove-deadcode in code-yeongyu/oh-my-openagent) into .agents/skills/remove-deadcode in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add code-yeongyu/oh-my-openagent --skill remove-deadcode -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/remove-deadcode, .gemini/skills/remove-deadcode, .github/skills/remove-deadcode and .opencode/skills/remove-deadcode in your project.
Going by SKILL.md and its folder, Dead Code Remover needs the command-line tools its instructions call (bun, bunx and git). Our summary lists: Bun, for running bunx tsc; A TypeScript project; An LSP find-references tool available to the agent.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Dead Code Remover has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.
About 1.8k tokens (SKILL.md is roughly 7.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Dead Code Remover: DRY Refactoring With jscpd (kucherenko/jscpd, 6.3k stars), Dead Code Removal with Knip (shift-editor/shift, 343 stars), Code Refiner (Mathews-Tom/armory, 327 stars) and OpenTUI Terminal Interfaces (cline/cline, 70k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
code-yeongyu (a GitHub user) maintains it in code-yeongyu/oh-my-openagent, which has 69,850 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on October 7, 2026.
Source: code-yeongyu/oh-my-openagent on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.