super-code
Fungsinya
'Skill' ini membantu AI menulis kode pemrograman yang sesingkat mungkin, benar, dan mudah dipahami. Fokusnya adalah menghindari kode yang tidak perlu dan membuat AI bekerja secara efisien.
Kapan dipakai
- βSetiap kali Anda meminta AI menulis atau mengubah kode.
- βSaat meminta AI meninjau atau memperbaiki kode yang sudah ada.
- βSaat Anda ingin memastikan kode yang dihasilkan serapi dan sesederhana mungkin.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/super-code/SKILL.mdSalin 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
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTulis fungsi Python yang menjumlahkan dua angka, tapi buat sesingkat dan sebenar mungkin.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI pertama-tama memikirkan cara paling sederhana untuk menyelesaikan masalah. Kemudian, ia menggunakan praktik terbaik dari bahasa pemrograman tersebut dan menghapus kode atau komentar yang tidak penting, sehingga kode yang tersisa mudah dibaca dan berfungsi dengan baik.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Super Code Skill
Overview
Produce code that is short, correct, idiomatic, and maintainable β in that priority order. This skill addresses two distinct inefficiency types that must be fixed independently:
- Code-token inefficiency β the artifact itself is bloated (unnecessary lines, boilerplate, over-abstraction)
- Generation-token inefficiency β how the agent operates during a session (full-file rewrites, unrequested files, prose padding before/after changes)
Both matter. Fixing only one is not enough.
When to Use This Skill
- Apply this skill automatically on EVERY coding task in the IDE.
- Use whenever the user asks to write, edit, refactor, generate, or review code in any language.
- This is a standing house style, not an on-demand pass β always apply it.
Priority Order (never violate this ranking)
Correctness β Clarity β Necessary robustness β Conciseness β Micro-performance
Conciseness never wins over correctness or readability. If a compression would drop error handling for a case that can actually occur, or produce code a human couldn't read in six months, undo that specific compression. Short bad code is worse than long correct code.
Workflow β apply to every coding task
Step 1: Commit to minimal correct shape BEFORE writing
Before touching a file, decide:
- What is the smallest surface area that correctly solves this problem?
- What does the caller actually need from this function/class/module?
- Is there a stdlib/framework primitive that already does this?
Write that down mentally (not in a prose block to the user). This is the target shape.
Step 2: Write using language-idiomatic patterns
Read the relevant reference file for the language in use:
- Bash/Shell β
bash/SKILL.md - C β
c/SKILL.md - C++ β
cpp/SKILL.md - C# β
csharp/SKILL.md - Dart/Flutter β
dart/SKILL.md - Elixir/Erlang β
elixir/SKILL.md - Go β
go/SKILL.md - Java β
java/SKILL.md - Kotlin/Compose β
kotlin/SKILL.md - PHP β
php/SKILL.md - Python β
python/SKILL.md - Ruby β
ruby/SKILL.md - Rust β
rust/SKILL.md - Scala β
scala/SKILL.md - Swift β
swift/SKILL.md - TypeScript/JavaScript β
typescript/SKILL.md
Apply idiomatic patterns from that file. They replace verbose imperative code with correct, concise equivalents that are still readable.
Step 3: Compression pass on your own draft
Before presenting any code, scan it for:
| Anti-pattern | Fix |
|---|---|
| Comment restates what code does | Delete comment, or rewrite to say why |
| Single-use helper function/class | Inline it |
| Stdlib/framework already does this | Replace with the primitive |
| Defensive handling for impossible case | Remove |
| Verbose loop replaceable by idiomatic expression | Replace |
| Logging/print nobody asked for | Remove |
| Extra config/files/parameters not requested | Remove |
| Unused import or variable | Remove |
Step 4: Guardrail check β run this before presenting
Ask yourself (silently):
- Did I remove handling for a case that can actually happen?
- Did I make this harder to read for a human six months from now?
- Did I drop correctness or security to save lines?
If yes to any: undo that specific compression and keep the rest.
Step 5: Present output β generation-token rules
Always:
- Edit files via targeted patches/diffs, not full rewrites, unless the file is new or the change touches >70% of lines
- Present only what was asked for
Never:
- Generate unrequested files (tests, READMEs, configs, types) unless the user asked
- Add prose blocks before/after code explaining what you're about to do or just did β just do it
- Re-explain the user's own requirement back to them before writing
- Restate what changed in a paragraph after showing the diff β the diff is self-evident
Universal Anti-Pattern Checklist
These apply in every language. The language-specific files extend this list.
Comments
- β
// Loop through the list and add each itemβ β delete - β
// Order matters: process refunds before chargesβ β keep (explains why) - Rule: if the comment could be generated mechanically from reading the code, it adds no value
Defensive coding
- Only handle error cases that can actually occur given the call site
- If the caller guarantees non-null, don't null-check inside the function
- If a catch block can only log and rethrow, consider removing the try/catch
Abstractions
β¦
Pertanyaan umum
Mengapa kode perlu dibuat ringkas?
Kode yang ringkas lebih cepat dibaca, dipahami, dan dirawat, serta menggunakan lebih sedikit sumber daya komputasi.
Apa arti 'idiomatic'?
Artinya menggunakan konstruksi dan pola yang umum dan diharapkan dalam bahasa pemrograman tertentu, sehingga kode lebih mudah dipahami programmer lain.
Apakah AI akan menghapus komentar yang penting?
Tidak. AI hanya menghapus komentar yang sekadar mengulang apa yang sudah jelas dari kode. Komentar yang menjelaskan 'alasan' di balik suatu implementasi tetap dipertahankan.
Detail
Deskripsi asli dari pembuat
Standing house style to enforce dense, correct, and idiomatic code on all coding tasks. Minimizes code bloat and agent operation overhead.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #5885
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.