# Antfu Simplify

Simplify the changes of the current PR or working tree with an ablation study - remove...

- Repository: https://github.com/antfu/skills (6032 stars)
- Category: Git and review
- License: MIT
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add antfu/skills --skill antfu-simplify -g -a claude-code -y`
Codex: `npx skills add antfu/skills --skill antfu-simplify -g -a codex -y`
Cursor: `npx skills add antfu/skills --skill antfu-simplify -g -a cursor -y`
Gemini CLI: `npx skills add antfu/skills --skill antfu-simplify -g -a gemini-cli -y`

## Description

Simplify the changes of the current PR or working tree with an ablation study - remove each piece of the diff and keep only what is proven needed - so the result has just-right abstraction, minimal clean code, and stays robust and universal. Use when asked to simplify, slim down, clean up, or reduce the current changes or PR.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Simplify Changes

Review the **current changes** (PR branch or working tree) and cut them down to the smallest correct diff, the way a skilled developer would. The method is an **ablation study**: remove each piece, check whether anything that matters breaks, and keep only what earns its place.

Goal: clean, minimal code with the **just-right abstraction**, that is also **robust** (handles real edge cases) and **universal** (solves the general case, not only the one that triggered the change).

## Hard Rules

- **Behavior stays the same.** Simplify only. Do not add features, change public APIs, or fix unrelated issues. Report unrelated findings instead.
- **Scope is the diff.** Only touch code the change introduced or modified, plus code that must change to remove it. Do not refactor the surrounding codebase.
- **Every removal is verified.** Run the repo's tests, typecheck, and lint after each batch. If a check has no coverage for the removed piece, reason about it explicitly or keep it.
- Match the surrounding code's style, naming, and comment density.

## Workflow

The rest: https://github.com/antfu/skills/blob/HEAD/skills/antfu-simplify/SKILL.md
