From claude-code-config
Enforces YAGNI and minimalism on demand, reducing code to the leanest correct solution. Invoke when you want to avoid over-engineering, bloat, or unnecessary dependencies.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code-config:lean-codeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Aggressive YAGNI mode, on demand. The always-on baseline is `rules/quality-code.md`; this skill is the **intensifier** you invoke when minimalism matters most. The win is measured ("smallest solution that FULLY satisfies the task"), not a slogan.
Aggressive YAGNI mode, on demand. The always-on baseline is rules/quality-code.md; this skill is the intensifier you invoke when minimalism matters most. The win is measured ("smallest solution that FULLY satisfies the task"), not a slogan.
<input type="date"> over a picker lib, CSS over JS, a DB constraint over app code.)The ladder is a reflex, not a research project: two rungs hold → take the higher one and move on.
Input validation at trust boundaries · error handling that prevents data loss · security · accessibility · the calibration real hardware needs · anything the user explicitly asked to keep. Lean ≠ incomplete: non-trivial logic leaves ONE runnable check behind (assert-demo or one small test). User insists on the full version → build it, no re-arguing.
This is orthogonal to thoroughness. "Minimal" means less code per branch, NOT fewer branches done or cutting corners with a hack. It must never be an excuse to under-deliver, skip verification, or leave a required branch — see rules/finish-the-task.md (its completeness + quality pillars win) and rules/quality-code.md (the no-monkey-patch pole). Mark a deliberate shortcut with a simplification: comment naming the ceiling + upgrade path.
Code first. Then at most three short lines: what was skipped, when to add it. If the explanation is longer than the code, delete the explanation. Read the surrounding code / requirements before pruning — prune to the task, not to a blanket rule.
AI agents measurably over-produce code (GitClear's 211M-line study: duplication up, refactoring down; Faros: +98% PRs, +91% review time, no velocity gain) — a "do I even need this?" constraint addresses a real, measured problem. But always-on minimalism is non-monotonic (arXiv 2601.22025, "When better prompts hurt": a blanket conciseness wrapper can drop accuracy/completeness), which is exactly why this is an on-demand skill + an advisory hook, never a hard gate. Success metric = rewrite/churn rate, not raw lines removed.
npx claudepluginhub anastasiyaw/claude-code-configForces the laziest solution that works, with intensity levels. Use when you want to avoid over-engineering, boilerplate, and unnecessary dependencies.
Detects over-engineering patterns like unrequested changes, added abstractions, or excessive diffs and enforces minimal, precise edits only to specified code/files.
Guides decisions to add features or abstractions only when required by current concrete requirements, avoiding unnecessary complexity.