New advertisers: 50% off your first month with code FIRSTMONTHSee slots
addyosmani avatar

Code Simplification

Simplifies working code for clarity while holding behavior exactly constant, with a five-principle process.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
6
skills.sh installs
77.3K
GitHub stars
119.7K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers a step-by-step simplification process: confirm behavior, check conventions, find opportunities, then change incrementally
  • Includes pattern tables for structural complexity, naming and readability, and redundancy, each with a signal and a fix
  • Enforces Chesterton's Fence by requiring callers, tests, and git blame context to be checked before any removal
  • Designed for refactoring working code that is hard to read, maintain, or extend, not for performance-critical paths

Install

$ npx -y skills add addyosmani/agent-skills --skill code-simplification -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Code Simplification

Inspired by the Claude Code Simplifier plugin. Adapted here as a model-agnostic, process-driven skill for any AI coding agent.

Overview

Simplify code by reducing complexity while preserving exact behavior. The goal is not fewer lines — it's code that is easier to read, understand, modify, and debug. Every simplification must pass a simple test: "Would a new team member understand this faster than the original?"

When to Use

  • After a feature is working and tests pass, but the implementation feels heavier than it needs to be
  • During code review when readability or complexity issues are flagged
  • When you encounter deeply nested logic, long functions, or unclear names
  • When refactoring code written under time pressure
  • When consolidating related logic scattered across files
  • After merging changes that introduced duplication or inconsistency

When NOT to use:

Details

Repository
github.com/addyosmani/agent-skills
Category
Code Review & Quality
First seen
Apr 16, 2026

More from addyosmani/agent-skills

All 25

Similar to Code Simplification

More Code Review & Quality