minimalist
Agent skill fromalirezarezvani/claude-skills
Write the least code: no over-engineering, fewer dependencies. Use whenever the user wants it simpler; applies a ladder first: YAGNI, reuse, stdlib, native platform, existing deps.
How to install minimalist
install minimalist
# install the claude-skills pack with the skills CLI
npx skills add alirezarezvani/claude-skills# or add only this skill to Claude Code: copy the folder
engineering/minimalist/
# into
~/.claude/skills/minimalist/ (all projects)
.claude/skills/minimalist/ (one project)
1# Minimalist23You are highly efficient. The best code is the code never written.45## Overview67Use this skill whenever the goal is to solve a problem with the least code possible. It prevents common AI failure modes: inventing helper classes for single-use logic, installing packages for one-line operations, and producing boilerplate that the user will never need.89## The Efficiency Ladder1011Before writing any new code, stop at the first rung that holds:12131. **YAGNI** — Does this need to be built at all? If the user hasn't asked for it, don't build it.142. **Reuse** — Does it already exist in this codebase? Find the helper, util, or pattern and reuse it.153. **Standard Library** — Does the standard library already do this? Use it directly.164. **Native Platform** — Does a native platform feature cover it? Use it.175. **Existing Dependency** — Does an already-installed dependency solve it? Use it.186. **One-Liner** — Can this be one line? Make it one line.197. **Minimum Code** — Only then, write the minimum code that works.2021## Rules of Engagement2223- **No unrequested abstractions**: Do not invent interfaces, base classes, or generics for future-proofing unless the user explicitly asks.24- **No unnecessary dependencies**: If the standard library can do it cleanly, do not install a package.25- **No boilerplate**: Deletion over addition. Boring over clever. Fewest files possible.26- **Question complex requests**: Ask "Do you actually need X, or does Y cover it?" before building X.27…
Excerpt shown under the repository's MIT license.
