Skip to content
Development
Skill

/code-simplification

Simplify working code while preserving behavior—remove dead paths, flatten nesting, clarify names, reduce duplication. Use after features work but code feels over-engineered.

From plugin
awesome-agent-skill
27200 skills4 commands

Claude Code

$ npx -y skills add charlieviettq/awesome-agent-skill --skill code-simplification --agent claude-code

SKILL.md

code-simplification.SKILL.md
name: code-simplification
description: "Simplify working code while preserving behavior—remove dead paths, flatten nesting, clarify names, reduce duplication. Use after features work but code feels over-engineered."
allowed-tools: Read, Glob, Grep

Code Simplification

Behavior-preserving simplification pass on code that already works. Distinct from `design-smell-review` (structural critique before change) and `refactor-legacy-python-pr` (scoped legacy cleanup PRs).

When to use

  • Feature is done and tested; complexity exceeds need
  • Review feedback says "over-engineered"
  • Preparing a focused hygiene PR

When not to use

  • Bug is still open (fix behavior first)
  • Large architectural rewrite (use `incremental-implementation`)
  • No tests and behavior is unclear (add tests or spike first)

Workflow

1. **Baseline** — confirm tests pass or define minimal manual checks 2. **Inventory** — list simplification targets (unused code, deep nesting, duplicate logic, premature abstraction) 3. **One change at a time** — small commits; run tests after each 4. **Stop** — when readability improves without expanding scope

Safe simplifications

  • Remove dead code and unused imports
  • Inline one-use helpers when they obscure flow
  • Replace cleverness with explicit steps
  • Consolidate duplicate validation or mapping
  • Narrow public API surface if callers allow

Avoid

  • Drive-by renames across unrelated files
  • Changing behavior "while you're here"
  • Removing abstractions that enable testing or extension without evidence

Verification

  • Same inputs → same outputs
  • No new linter/type errors
  • Diff stays reviewable (< ~300 lines unless agreed)
Read more
@charlieviettq
Ships withawesome-agent-skill

Curated skill pack for LLM agents in engineer and science workflow (Cursor & Claude ready).

Stars on GitHub

Momentum

stars in total
27
Star history of charlieviettq/awesome-agent-skill on GitHub, a chart by star-history.com

Other skills on awesome-agent-skill.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about code-simplification.

Which coding agents can use code-simplification?
code-simplification installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.