Skip to content
Skillpedia
General coding29k Β· #9568

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.md

Copy 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

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/minimalist/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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:

  1. YAGNI β€” Does this need to be built at all? If the user hasn't asked for it, don't build it.
  2. Reuse β€” Does it already exist in this codebase? Find the helper, util, or pattern and reuse it.
  3. Standard Library β€” Does the standard library already do this? Use it directly.
  4. Native Platform β€” Does a native platform feature cover it? Use it.
  5. Existing Dependency β€” Does an already-installed dependency solve it? Use it.
  6. One-Liner β€” Can this be one line? Make it one line.
  7. 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:

  1. Pause before writing code.
  2. Walk the ladder β€” can rungs 1–6 resolve this without new code?
  3. State your decision β€” "Using stdlib pathlib instead of a custom file helper."
  4. Write minimum code only if the ladder doesn't resolve it.
  5. 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.

repo: alirezarezvani/claude-skills

Popularity

GitHub stars
29k
Ranking position
#9568
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills