Langsung ke konten
Skillpedia
Pemrograman umum33k · #8896

reducing-entropy

Fungsinya

Skill ini mendorong agent Anda untuk membuat basis kode sekecil mungkin, dengan menilai perubahan berdasarkan total kode yang tersisa. Skill ini ditujukan bagi pengembang yang ingin memangkas kode berlebihan, dan hanya berjalan ketika Anda memintanya.

Kapan dipakai

  • ✓Saat Anda secara eksplisit meminta untuk mengurangi jumlah kode dalam sebuah proyek.
  • ✓Ketika basis kode sudah membengkak dan Anda ingin mencari apa yang bisa dihapus.
  • ✓Ketika sebuah perubahan yang diusulkan menambah kode dan Anda ingin memeriksa apakah ada opsi yang lebih kecil.

Link skill

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/reducing-entropy/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/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/reducing-entropy/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 mencari apa yang bisa saya hapus di modul ini. Pakai reducing-entropy dan jaga agar basis kode akhirnya tetap sekecil mungkin.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent memuat salah satu pola pikir skill, menanyakan apakah hasil terkecil bisa berupa lebih sedikit fungsi atau tidak sama sekali, menghitung baris sebelum dan sesudah setiap perubahan, dan mengutamakan penghapusan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Reducing Entropy

More code begets more code. Entropy accumulates. This skill biases toward the smallest possible codebase.

Core question: "What does the codebase look like after?"

Before You Begin

Load at least one mindset from references/

  1. List the files in the reference directory
  2. Read frontmatter descriptions to pick which applies
  3. Load at least one
  4. State which you loaded and its core principle

Do not proceed until you've done this.

The Goal

The goal is less total code in the final codebase - not less code to write right now.

  • Writing 50 lines that delete 200 lines = net win
  • Keeping 14 functions to avoid writing 2 = net loss
  • "No churn" is not a goal. Less code is the goal.

Measure the end state, not the effort.

Three Questions

1. What's the smallest codebase that solves this?

Not "what's the smallest change" - what's the smallest result.

  • Could this be 2 functions instead of 14?
  • Could this be 0 functions (delete the feature)?
  • What would we delete if we did this?

2. Does the proposed change result in less total code?

Count lines before and after. If after > before, reject it.

  • "Better organized" but more code = more entropy
  • "More flexible" but more code = more entropy
  • "Cleaner separation" but more code = more entropy

3. What can we delete?

Every change is an opportunity to delete. Ask:

  • What does this make obsolete?
  • What was only needed because of what we're replacing?
  • What's the maximum we could remove?

Red Flags

  • "Keep what exists" - Status quo bias. The question is total code, not churn.
  • "This adds flexibility" - Flexibility for what? YAGNI.
  • "Better separation of concerns" - More files/functions = more code. Separation isn't free.
  • "Type safety" - Worth how many lines? Sometimes runtime checks in less code wins.
  • "Easier to understand" - 14 things are not easier than 2 things.

When This Doesn't Apply

  • The codebase is already minimal for what it does
  • You're in a framework with strong conventions (don't fight it)
  • Regulatory/compliance requirements mandate certain structures

Reference Mindsets

See references/ for philosophical grounding.

To add new mindsets, see adding-reference-mindsets.md.


Bias toward deletion. Measure the end state.

Pertanyaan umum

Apakah akan berjalan sendiri?

Tidak. Skill ini hanya manual dan aktif ketika Anda memintanya secara eksplisit.

Apakah kode yang lebih sedikit selalu lebih baik?

Skill ini mengukur keberhasilan dari jumlah akhir kode, sehingga perubahan yang menambah baris bisa ditolak meskipun terlihat lebih rapi.

Apa pertanyaan inti yang diajukan?

Seperti apa basis kode setelah perubahan ini?

Detail

Deskripsi asli dari pembuat

Manual-only skill for minimizing total codebase size. Only activate when explicitly requested by user. Measures success by final code amount, not effort. Bias toward deletion.

repo: davila7/claude-code-templates

Popularitas

Bintang GitHub
33k
Peringkat
#8896
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa