# Code simplification edho ferdian

> Code simplification edho ferdian is an open-source agent skill for developer tools. Rewrites working code for clarity without changing its behavior, gated on tests. 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/code-simplification-edho-ferdian
- **Repository:** https://github.com/edhoferdian/eef
- **GitHub stars:** 22
- **License:** MIT
- **Skill name:** code-simplification-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 guides an agent through behavior-preserving refactoring of code that already works. It covers both under-factored code, such as long functions, deep nesting and duplicated logic, and over-factored code, such as single-caller abstractions and pass-through wrappers. Changes are applied one pattern at a time, with tests run after each step.

The workflow starts with a safety-net check: the agent confirms a runnable test suite covers the code, or writes characterization tests first. It then identifies hotspots, optionally using complexity tooling such as ESLint, radon, gocyclo or clippy when the stack has it, and reports what changed, the test status after each step, and anything deliberately left alone. A companion reference file gives before-and-after examples in TypeScript, Python and Go.

The skill expects an existing codebase with a buildable project and tests. It hands off to other skills in the same collection for writing tests, removing dead code, fixing build errors and reviewing the result.

## When your agent uses it

> Rewrite code for clarity without changing behaviour: extract long functions, flatten nesting, merge duplication, remove over-engineering, gated on passing tests. Load it even for one small function. Use for "sederhanakan kode ini", "nesting-nya kebanyakan", "refactor biar lebih rapi", "reduce complexity", "ini over-engineered".

## 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/code-simplification-edho-ferdian)
- [License: MIT](https://github.com/edhoferdian/EEF/tree/HEAD/.agents/skills/code-simplification-edho-ferdian)

## Features

- **Behavior-preserving rewrites:** Restructures code for readability while keeping its observable behavior unchanged.
- **Test-gated safety net:** Checks for a runnable test suite or writes characterization tests before any change.
- **One pattern at a time:** Applies each simplification alone and verifies it before moving to the next.
- **Both-direction simplification:** Extracts long functions and also removes unnecessary abstraction layers.
- **Hotspot detection:** Uses complexity linters or a manual read to find the parts worth simplifying.
- **Multi-language examples:** Provides before-and-after patterns for TypeScript, Python and Go.

## Good for

- Flatten a deeply nested function into guard clauses
- Break a 200-line function into well-named helpers
- Merge duplicated branches in a switch statement
- Remove a wrapper class that adds no behavior
- Simplify an over-engineered module before a code review

## 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/code-simplification-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/code-simplification-edho-ferdian &&
cp -R "$tmp/.agents/skills/code-simplification-edho-ferdian" ~/.claude/skills/code-simplification-edho-ferdian &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/code-simplification-edho-ferdian` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/code-simplification-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/code-simplification-edho-ferdian &&
cp -R "$tmp/.agents/skills/code-simplification-edho-ferdian" ~/.agents/skills/code-simplification-edho-ferdian &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/code-simplification-edho-ferdian` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/code-simplification-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/code-simplification-edho-ferdian &&
cp -R "$tmp/.agents/skills/code-simplification-edho-ferdian" ~/.cursor/skills/code-simplification-edho-ferdian &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/code-simplification-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/code-simplification-edho-ferdian
```

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

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/code-simplification-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/code-simplification-edho-ferdian &&
cp -R "$tmp/.agents/skills/code-simplification-edho-ferdian" ~/.copilot/skills/code-simplification-edho-ferdian &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/code-simplification-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/code-simplification-edho-ferdian` into your agent's skills folder as `code-simplification-edho-ferdian`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before Code simplification edho ferdian starts?

It requires code that builds and runs. If a test suite covers the code, it runs that suite for a baseline; if not, it writes characterization tests first or limits changes to trivial ones.

### Does Code simplification edho ferdian change how the code behaves?

No. The skill is built around behavior-preserving changes only. Bugs or feature changes found along the way are reported separately rather than fixed in the same pass.

### Which languages does Code simplification edho ferdian cover?

The reference examples cover TypeScript, Python and Go. It also mentions complexity tools for JavaScript, Python, Go and Rust.

### Which AI clients can load Code simplification edho ferdian?

It follows the shared agent skills format and is also packaged in a Claude Code plugin marketplace.

### How do I install Code simplification edho ferdian in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/code-simplification-edho-ferdian to use it in all your projects, or to .claude/skills/code-simplification-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 Code simplification 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 Code simplification 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 Code simplification edho ferdian?

The closest alternatives to Code simplification edho ferdian are Code simplifier, Refactor, Simplify python, Readable code and Refactor method complexity reduce.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Code simplifier](https://ai-powered.com/skills/code-simplifier): Code simplifier is an open-source agent skill for developer tools.
- [Refactor](https://ai-powered.com/skills/refactor): Refactor is an open-source agent skill for developer tools.
- [Simplify python](https://ai-powered.com/skills/simplify-python): Simplify python is an open-source agent skill for developer tools.
- [Readable code](https://ai-powered.com/skills/readable-code): Readable code is an open-source agent skill for developer tools.
- [Refactor method complexity reduce](https://ai-powered.com/skills/refactor-method-complexity-reduce): Refactor method complexity reduce is an open-source agent skill for developer tools.
- [Go refactoring](https://ai-powered.com/skills/go-refactoring): Go refactoring is an open-source agent skill for developer tools.
- [Dead code cleanup edho ferdian](https://ai-powered.com/skills/dead-code-cleanup-edho-ferdian): Dead code cleanup edho ferdian is an open-source agent skill for developer tools.
- [Axiom swift simplifier](https://ai-powered.com/skills/axiom-swift-simplifier): Axiom swift simplifier is an open-source agent skill for developer tools.

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