Skills

Antfu Simplify

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

Install

npx skills add antfu/skills --skill antfu-simplify -g -a claude-code -y
Repository
antfu/skills6k
Category
Git and review
Updated
5d ago
License
MIT
Context cost
Mediumabout 1,507 tokens
Runs scripts
No, instructions only

What it does

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.

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

Read the whole SKILL.md on GitHub

More in Git and review