minimalist
What it does
It applies a short checklist before any new code is written, such as asking whether the feature is needed and whether the standard library already does it. It is for people who want lean code with few dependencies.
When to use it
- βWhen you want an agent to avoid over-engineering a small task.
- βWhen you want to cut dependencies from a project.
- βWhen you ask for the least code that solves a problem.
Skill link
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/minimalist/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI want this solved with the least code possible, and no new package if the standard library can do the job.β
5 new skills a week. 1 minute to read.
How it works
Before writing anything, the agent works down a ladder of options, from asking whether the feature is needed to reusing existing code, and only then writes the smallest working version.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Minimalist
You are highly efficient. The best code is the code never written.
Overview
Use 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.
The Efficiency Ladder
Before writing any new code, stop at the first rung that holds:
- YAGNI β Does this need to be built at all? If the user hasn't asked for it, don't build it.
- Reuse β Does it already exist in this codebase? Find the helper, util, or pattern and reuse it.
- Standard Library β Does the standard library already do this? Use it directly.
- Native Platform β Does a native platform feature cover it? Use it.
- Existing Dependency β Does an already-installed dependency solve it? Use it.
- One-Liner β Can this be one line? Make it one line.
- Minimum Code β Only then, write the minimum code that works.
Rules of Engagement
- No unrequested abstractions: Do not invent interfaces, base classes, or generics for future-proofing unless the user explicitly asks.
- No unnecessary dependencies: If the standard library can do it cleanly, do not install a package.
- No boilerplate: Deletion over addition. Boring over clever. Fewest files possible.
- Question complex requests: Ask "Do you actually need X, or does Y cover it?" before building X.
- Shortest working diff wins: But only once you understand the problem. The smallest change in the wrong place isn't lazy β it's a second bug.
Workflow
When asked to implement something:
- Pause before writing code.
- Walk the ladder β can rungs 1β6 resolve this without new code?
- State your decision β "Using stdlib
pathlibinstead of a custom file helper." - Write minimum code only if the ladder doesn't resolve it.
- Do not add comments, logging, or error handling that wasn't asked for.
Anti-Patterns
| Anti-Pattern | What to do instead |
|---|---|
| Installing a package for a one-liner | Use the standard library |
| Writing a class for a single function | Write the function |
| Adding a config file for a single hardcoded value | Hardcode it until there are 2+ uses |
| Creating a utility module before it's reused anywhere | Write inline, extract later |
| Adding docstrings/comments the user didn't ask for | Skip them |
| Building error handling for errors that can't happen | Skip it |
| Adding logging before the code works | Ship the code first |
Cross-References
- Related:
engineering/strict-apiβ prevents hallucinated APIs when writing minimal code; use together. - Related:
engineering/zero-hallucination-coderβ enforces verified-only API usage. - Related:
engineering/karpathy-coderβ Karpathy-inspired behavioral guidelines for LLM-assisted coding.
FAQ
Does it skip features I asked for?
No. It avoids features you did not ask for, but still delivers what the task needs.
Will it install packages?
It avoids new packages when the standard library or an existing dependency can do the job.
What is the first question it asks?
Whether the work needs to be built at all, since the best code is the code never written.
Details
Original description by the author
Use when asked to avoid over-engineering, cut dependencies or write the least code. Applies a strict ladder before any new code: YAGNI, reuse, stdlib, native platform, existing deps.
Popularity
- GitHub stars
- 29k
- Ranking position
- #9568
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-launcher-orchestrator
29kHelps your agent plan, build, test and schedule a Claude managed agent in your own account, step by step, starting from one clear goal.
grade-iterate
29kLets your agent grade a managed AI agent's work against a rubric and improve it in a fixed number of rounds, so it never loops forever.
interview
29kLets your agent interview you about an AI agent idea and turn your answers into a simple build plan before anything is launched.
run-without-you
29kHelps your agent set up a managed AI agent to run on a schedule or when an event happens, with the cron timing checked before launch.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.