Langsung ke konten
Skillpedia
Pemrograman umum29k ยท #9568

minimalist

Fungsinya

Agent menerapkan daftar periksa singkat sebelum menulis kode baru, misalnya menanyakan apakah fitur itu memang dibutuhkan dan apakah pustaka standar sudah bisa melakukannya. Ditujukan untuk orang yang ingin kode ringkas dengan sedikit dependensi.

Kapan dipakai

  • โœ“Saat Anda ingin agent tidak membuat solusi berlebihan untuk tugas kecil.
  • โœ“Ketika Anda ingin mengurangi dependensi dari sebuah proyek.
  • โœ“Saat Anda meminta kode paling sedikit yang menyelesaikan suatu masalah.

Link skill

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/minimalist/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/minimalist/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œSaya ingin ini diselesaikan dengan kode sesedikit mungkin, dan tanpa paket baru jika pustaka standar sudah bisa melakukannya.โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Sebelum menulis apa pun, agent menelusuri daftar pilihan, mulai dari menanyakan apakah fitur itu diperlukan hingga memakai ulang kode yang ada, lalu baru menulis versi terkecil yang berfungsi.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
Pertanyaan umum

Apakah ia melewatkan fitur yang saya minta?

Tidak. Ia menghindari fitur yang tidak Anda minta, tetapi tetap menyediakan apa yang dibutuhkan tugas tersebut.

Apakah ia akan memasang paket?

Ia menghindari paket baru jika pustaka standar atau dependensi yang ada sudah bisa melakukan pekerjaannya.

Apa pertanyaan pertama yang diajukannya?

Apakah pekerjaan itu perlu dibuat sama sekali, karena kode terbaik adalah kode yang tidak pernah ditulis.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
29k
Peringkat
#9568
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa