/george-coding-agent:code-simplificationfrom george-coding-agent
Guides code simplification that preserves behavior: scope changes, understand before removing, follow conventions, subtract before adding. For use after tests pass or when complexity is flagged.
Ships in george-coding-agent. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Simpler means a reader understands it faster, not fewer lines. The test: can a new reader answer "where does X come from?" and "what can change X?" in under 30 seconds? Every change here keeps behavior identical. If you cannot show that, do not make it.
code-review-and-quality section 7.Not for: code that is already clear, code you do not understand yet, a module about to be rewritten, or a hot path where the simpler form is measurably slower (performance-optimization).
/simplify and review what it changed.Chesterton's fence: know why it is there before you take it down.
git log -p and git blame for the lines. A guard added after an incident, a timeout tuned in a past PR, or a second code path kept for a rollout is load-bearing until shown otherwise.test-driven-development).Simpler means more like the rest of the repo, not more like your taste. Match neighbor code for imports, error handling, logging and metrics, naming, test style. A simplification that brings a new idiom into a file is churn.
Two axes. Guard both.
| Signal | Usually becomes |
|---|---|
| An if/else chain on the same shape | a table, an enum with behavior, or a dispatcher |
| Nesting three deep | guard clauses or a named predicate |
Boolean parameters (run(true, false)) | two methods, or an enum |
| A mode flag read in shared code | the difference moved into the injected impl |
| The same decision made in three places | one source of truth, passed as a value |
A generic name (data, result, helper) | a name in team vocabulary |
Balance traps: inlining a helper that gave a concept its name, merging two simple functions into one complex one, removing a seam that exists for testability, optimizing for line count.
code-review-and-quality (design fit), the built-in Claude Code /simplify for the mechanical pass.test-driven-development for a characterization test, incremental-implementation for slice order.code-simplification at aeac41d, MIT (see THIRD_PARTY_LICENSE-agent-skills): preserve behavior, follow conventions, clarity over cleverness, balance, scope to the change, Chesterton's fence, one change at a time.principle-minimize-reader-load, principle-subtract-before-you-add, principle-laziness-protocol and no-comments at 10d7b8a, MIT (see THIRD_PARTY_LICENSE-pstack): reader load on two axes, delete before building, the smallest diff, comments judged by a fresh agent./simplify for the mechanical pass. compound ce-simplify-code and gstack deslop-shared-libs compared, not adopted.[bl: ...] tags are analysed in BITTER_LESSON.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub georgewangyu/georgecodingagent --plugin george-coding-agent26 skills in this plugin
/api-and-interface-designDesign seams, APIs, config keys and schemas that are deep, hard to misuse, and safe to roll out and back. Use when adding or changing a contract./browser-testingVerify UI work in a real browser with the repo's own tool or the best fit (Playwright, DevTools, computer use) and look at the screen, not just the logs./ci-cd-and-automationAutomate the quality bar: one check command that hooks and required CI both run, fast gates first, protected main, and safe release and deploy steps./code-review-and-qualityReview a code change, or receive a review: pin the intent, read tests first, then spec and quality passes with a fresh read-only reviewer and the cr-review checklist./context-engineeringPut the right context in front of an agent at the right time and carry it across a handoff without loss. Use when writing briefs, steering, or when context runs long./debugging-and-error-recoveryFind and fix the real cause of a failure: a feedback loop that goes red, reproduce and minimise, ranked falsifiable hypotheses, fix at the root, add a regression test.Other plugins' skills for the same job