From ai-eng-core
Simplifies code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-eng-core:code-simplificationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Adapted from `addyosmani/agent-skills` (MIT), commit `82ceff41ed4d3c644e3dcca8a0514390b2911223`.
Adapted from addyosmani/agent-skills (MIT), commit 82ceff41ed4d3c644e3dcca8a0514390b2911223.
Simplify code by reducing complexity while preserving exact behavior. The goal is not fewer lines; it is faster comprehension, safer maintenance, and easier review.
Do not change outputs, side effects, ordering, or error behavior. If you are not sure a simplification is behavior-preserving, stop and gather more context first.
Simplification should make code more consistent with the repository, not more consistent with personal taste.
Avoid dense ternaries, over-generalized abstractions, and compressed logic that requires a second reading.
Default to simplifying the code you are already touching. Avoid unrelated cleanup unless explicitly asked.
Apply Chesterton's Fence.
Look for:
Make one simplification at a time and verify after each one.
After the refactor, ask whether a new teammate would understand the new version faster than the old one.
| Rationalization | Reality |
|---|---|
| "Fewer lines is always simpler" | A dense one-liner can be harder to understand than a clear five-line block. |
| "I will simplify this unrelated code while I am here" | Drive-by refactors create noisy diffs and hidden regression risk. |
| "This abstraction might be useful later" | Speculative abstractions are complexity without current value. |
| Excuse | Counter |
|---|---|
| "Fewer lines is always simpler" | A dense one-liner can be harder to understand than a clear five-line block. |
| "I'll simplify this unrelated code while I'm here" | Drive-by refactors create noisy diffs and hidden regression risk. |
| "This abstraction might be useful later" | Speculative abstractions are complexity without current value. |
| "The code works, why touch it" | Working code that is hard to understand is a maintenance liability. |
| "I'll add tests after simplifying" | Simplification without tests risks silently changing behavior. Tests first. |
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
2plugins reuse this skill
First indexed Jul 8, 2026
npx claudepluginhub p/v1truv1us-ai-eng-core-plugins-ai-eng-core