
Dead code cleanup edho ferdian
Guides an agent through staged removal of unused deps, exports, files and duplicates
Dead code cleanup edho ferdian is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 22
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Dead code cleanup edho ferdian
This skill helps an agent delete dead code in a codebase rather than just reporting it. It starts by detecting the project stack from its manifest file and picks matching tooling, such as knip or depcheck for JavaScript and TypeScript, vulture for Python, or cargo-udeps for Rust. Each detected item is then ranked by risk as safe, careful or risky before anything is changed.
The workflow removes code in a fixed order: unused dependencies, unused exports, unused files, then duplicate code. It runs the test suite after each category and keeps every category in its own commit so it can be reverted independently. Items that could be used from outside the repository, such as a published package's public exports, are treated as careful at minimum. If the optional Salak tool is installed, the skill cross-checks candidates against its reverse-dependency data before deleting them.
The skill expects a repository with a runnable test suite and works best on a codebase the user can run tests against. The narrative report is written in Bahasa Indonesia, while commit messages and identifiers are in English. It refers to companion skills for writing tests, fixing build failures and reviewing the resulting changes.
When your agent uses it
Remove dead code safely: detect with stack tooling (knip, vulture, cargo-udeps...), rank by risk, then delete deps, exports, files and duplicates in stages with tests between. Use for "bersihkan kode mati", "hapus yang tidak dipakai", "cleanup unused code/deps", "remove dead code", "consolidate duplicates".
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 5 files (27 KB) on GitHub on 2 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the ekosistem-edho-ferdian plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add edhoferdian/EEF
/plugin install ekosistem-edho-ferdian@eef-marketplaceOr copy only this skill to ~/.claude/skills/dead-code-cleanup-edho-ferdian:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/edhoferdian/EEF.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/dead-code-cleanup-edho-ferdian &&
cp -R "$tmp/.agents/skills/dead-code-cleanup-edho-ferdian" ~/.claude/skills/dead-code-cleanup-edho-ferdian &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/dead-code-cleanup-edho-ferdian inside it instead.
Copy the skill folder to ~/.agents/skills/dead-code-cleanup-edho-ferdian to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/edhoferdian/EEF.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/dead-code-cleanup-edho-ferdian &&
cp -R "$tmp/.agents/skills/dead-code-cleanup-edho-ferdian" ~/.agents/skills/dead-code-cleanup-edho-ferdian &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/dead-code-cleanup-edho-ferdian inside it instead.
Copy the skill folder to ~/.cursor/skills/dead-code-cleanup-edho-ferdian to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/edhoferdian/EEF.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/dead-code-cleanup-edho-ferdian &&
cp -R "$tmp/.agents/skills/dead-code-cleanup-edho-ferdian" ~/.cursor/skills/dead-code-cleanup-edho-ferdian &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/dead-code-cleanup-edho-ferdian inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/edhoferdian/EEF.git --path .agents/skills/dead-code-cleanup-edho-ferdianOr copy the folder to ~/.gemini/skills/dead-code-cleanup-edho-ferdian yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/dead-code-cleanup-edho-ferdian:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/edhoferdian/EEF.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/dead-code-cleanup-edho-ferdian &&
cp -R "$tmp/.agents/skills/dead-code-cleanup-edho-ferdian" ~/.copilot/skills/dead-code-cleanup-edho-ferdian &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/dead-code-cleanup-edho-ferdian inside it instead.
Get the folder:
git clone --depth 1 https://github.com/edhoferdian/EEF.gitThen copy EEF/.agents/skills/dead-code-cleanup-edho-ferdian into your agent's skills folder as dead-code-cleanup-edho-ferdian. Agents that support SKILL.md read one folder per skill.
What it does
- Stack-based detection
- Chooses dead code tools automatically from the repository's manifest file across several languages.
- Risk classification
- Labels each detected item as safe, careful or risky before any file is modified.
- Staged removal
- Deletes dependencies, exports, files and duplicates one category at a time with tests between.
- Salak cross-check
- Optionally checks candidates against reverse-dependency data to avoid false positives.
- Public API protection
- Treats exports of published libraries as careful at minimum rather than safe to delete.
- Isolated commits
- Keeps each cleanup pass in its own revertable commit, separate from unrelated changes.
Good for
- Remove unused npm dependencies from a JavaScript project
- Delete unused exports flagged by knip in a TypeScript codebase
- Find and consolidate duplicated functions across modules
- Clean up unused Python imports and dead functions with vulture
- Remove unused Rust crates detected by cargo-udeps
Dead code cleanup edho ferdian FAQ
What does Dead code cleanup edho ferdian need before it removes anything?
It needs a runnable test suite. If none exists, the skill says so and asks for explicit confirmation before removing anything beyond unused dependencies.
Is Salak required?
No. Salak is optional. If it is installed, candidates are cross-checked against its data; if not, the classification proceeds unchanged.
Will Dead code cleanup edho ferdian delete exports from a published library?
Not as safe deletions. Exports of a published package are treated as careful at minimum because external callers cannot be seen in the repository.
How are the changes organized?
Each category is removed in its own commit after tests run, so a single pass can be reverted on its own.
How do I install Dead code cleanup edho ferdian in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/dead-code-cleanup-edho-ferdian to use it in all your projects, or to .claude/skills/dead-code-cleanup-edho-ferdian in one project. Or install the ekosistem-edho-ferdian plugin, which includes it: /plugin marketplace add edhoferdian/EEF, then /plugin install ekosistem-edho-ferdian@eef-marketplace.
Does Dead code cleanup edho ferdian run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Dead code cleanup edho ferdian?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Dead code cleanup edho ferdian?
The closest alternatives to Dead code cleanup edho ferdian are Code review edho ferdian, Code simplification edho ferdian, Skill audit edho ferdian, Code reachability audit and Code simplifier.
Where this comes from
- Description: from the skill's own SKILL.md.
More from edhoferdian/EEF

Guides an agent through mapping, writing and quarantining end-to-end browser tests
- Open source
- 22 GitHub stars
- Developer tools

Guides writing unit and component tests in React, pytest, Go and Vue
- Open source
- 22 GitHub stars
- Developer tools

Guides an agent in designing REST API contracts, versioning and OpenAPI schemas
- Open source
- 22 GitHub stars
- Developer tools

Routes a vague request to the right EEF skill, or a short sequence of them
- Open source
- 22 GitHub stars
- Developer tools

Guides an agent on server-side layering, error handling, retries, queues and integrations
- Open source
- 22 GitHub stars
- Developer tools

Diagnoses billing incidents and checks pricing claims against code before any refund
- Open source
- 22 GitHub stars
- Finance and payments


