# Dead code cleanup edho ferdian

> Dead code cleanup edho ferdian is an open-source agent skill for developer tools. Guides an agent through staged removal of unused deps, exports, files and duplicates. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/edhoferdian/EEF/tree/main/.agents/skills/dead-code-cleanup-edho-ferdian
- **Repository:** https://github.com/edhoferdian/eef
- **GitHub stars:** 22
- **License:** MIT
- **Skill name:** dead-code-cleanup-edho-ferdian
- **Collection:** https://github.com/edhoferdian/EEF
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

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".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/edhoferdian/EEF/tree/HEAD/.agents/skills/dead-code-cleanup-edho-ferdian)
- [License: MIT](https://github.com/edhoferdian/EEF/tree/HEAD/.agents/skills/dead-code-cleanup-edho-ferdian)

## Features

- **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

## Install

### Claude Code

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):

```sh
/plugin marketplace add edhoferdian/EEF
/plugin install ekosistem-edho-ferdian@eef-marketplace
```

Or copy only this skill to `~/.claude/skills/dead-code-cleanup-edho-ferdian`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/dead-code-cleanup-edho-ferdian` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/dead-code-cleanup-edho-ferdian` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/edhoferdian/EEF.git --path .agents/skills/dead-code-cleanup-edho-ferdian
```

Or copy the folder to `~/.gemini/skills/dead-code-cleanup-edho-ferdian` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/dead-code-cleanup-edho-ferdian`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/edhoferdian/EEF.git
```

Then 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.

## 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.

## Alternatives

- [Code review edho ferdian](https://ai-powered.com/skills/code-review-edho-ferdian): Code review edho ferdian is an open-source agent skill for developer tools.
- [Code simplification edho ferdian](https://ai-powered.com/skills/code-simplification-edho-ferdian): Code simplification edho ferdian is an open-source agent skill for developer tools.
- [Skill audit edho ferdian](https://ai-powered.com/skills/skill-audit-edho-ferdian): Skill audit edho ferdian is an open-source agent skill for developer tools.
- [Code reachability audit](https://ai-powered.com/skills/code-reachability-audit): Code reachability audit is an open-source agent skill for developer tools.
- [Code simplifier](https://ai-powered.com/skills/code-simplifier): Code simplifier is an open-source agent skill for developer tools.
- [Deslop](https://ai-powered.com/skills/deslop): Deslop is an open-source agent skill for developer tools.
- [Principle subtract before you add](https://ai-powered.com/skills/principle-subtract-before-you-add): Principle subtract before you add is an open-source agent skill for developer tools.
- [Docs sync edho ferdian](https://ai-powered.com/skills/docs-sync-edho-ferdian): Docs sync edho ferdian is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/dead-code-cleanup-edho-ferdian
