five-axis-code-review
Fungsinya
Tool ini meninjau kode program untuk memastikan kodenya benar, aman, mudah dibaca, cepat, dan teruji dengan baik. Tool ini menunjukkan masalah tertentu beserta saran cara memperbaikinya.
Kapan dipakai
- βSaat Anda ingin seseorang meninjau sebuah kode.
- βSaat mengirimkan perubahan kecil (diff) ke sebuah proyek.
- βSaat meminta pengecekan sebuah pull request.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/five-axis-code-review/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
βTolong tinjau kode ini. Apakah kodenya sudah benar, aman, dan mudah dibaca?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Tool ini menganalisis kode dari lima sisi: kebenaran (correctness), keamanan, keterbacaan, performa, dan pengujian (tests). Untuk setiap masalah yang ditemukan, tool ini memberikan solusi yang konkret dengan fokus pada perbaikan yang berguna, bukan sekadar perubahan gaya penulisan yang kecil.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Code Review Checklist
One review answers a single question: "Will this code become someone else's problem within three months?" Walk the five axes in order; each axis gets pass / fail / N-A, and every failure must come with a concrete fix.
When to Use
- Use when the user asks to review code, a diff, or a pull request.
- Use when a review should stay actionable and skip style nitpicks.
Workflow
- Check the scope first: look at the diff size. Over ~400 changed lines, ask for a split before reviewing β review quality on huge diffs always collapses.
- Check axis by axis (order = priority):
- Correctness: edge cases (null, empty, zero, negative, oversized), concurrency/timing assumptions, error handling (are exceptions swallowed?). The only axis that can block a merge.
- Security: is user input concatenated into SQL / shell commands / HTML; are secrets or tokens hard-coded; does logging leak sensitive data.
- Readability: do names say what things are; does each function do one thing; are magic numbers named. Flag only what you can't understand β not "I'd write it differently."
- Performance: repeated queries or recomputation inside loops; N+1 problems; avoidable large-object copies. No data-free performance speculation ("this might get slow" is not a comment).
- Test coverage: does new logic have tests; do edge cases have cases. All-green tests with the critical path uncovered still get sent back.
- Write the comments: fixed format β
[axis] file:line problem β suggested fix. Only actionable suggestions; "could be optimized" is not one. - Triage:
Must fix(correctness / security) vsShould fix(readability / performance / tests). "Should fix" doesn't block the merge, but say so explicitly.
Rules
- At most 10 comments per review. More than that means the code is too broken β send it back for a rewrite instead of grading 50 items.
- No style policing: indentation, quotes, semicolons β that's the linter's job, not a human's.
- Speak with the diff: every comment must cite a concrete line of code. A comment without a code reference is invalid.
Checklist (minimal executable version)
## Code review checklist
- [ ] Correctness: edge cases (null/0/negative/oversized) handled, exceptions not swallowed
- [ ] Correctness: concurrency/timing assumptions hold, no races
- [ ] Security: no SQL/shell/HTML injection points, no hard-coded secrets, no sensitive data in logs
- [ ] Readability: names are descriptive, functions have a single responsibility, no magic numbers
- [ ] Performance: no repeated queries/computation in loops, no N+1, no evidence-free performance worries
- [ ] Tests: new logic is covered, edge cases have cases
- [ ] Scope: diff β€ ~400 lines, otherwise split first
Example review comments:
[Must fix][Correctness] order.py:87 empty order list triggers IndexError β guard for empty before taking [0]
[Should fix][Readability] order.py:92 magic number 86400 β name it SECONDS_PER_DAY
Limitations
- Covers five review axes, not every quality dimension. Domain-specific correctness (financial rounding, protocol conformance, accessibility conformance) still needs its own specialist review.
- The five axes are heuristics for a human reviewer. A clean pass on the checklist does not prove the change is correct, secure, or performant.
- Security review here is a reading checklist, not a scanner. Static analysis, dependency audit and secret scanning run as separate tools.
- The skill reviews diffs; it cannot establish that requirements were met, and an empty findings list only means no finding was evidenced in the reviewed scope.
Anti-patterns
- β Drive-by LGTM: approving before reading the whole diff β the review is theater.
- β Style police: 18 of 20 comments about quotes and line breaks while a null-pointer dereference slips through.
- β Comments without code: "this logic looks off" β which logic? Which line? Unsaid means invalid.
- β Performance speculation: "this loop might be slow at scale" β a performance comment without data is noise.
- β Grading 50 items: when there are too many problems to list, the right move is "rewrite and resubmit", not playing teacher.
Pertanyaan umum
Apa yang dimaksud dengan 'nitpick' gaya penulisan?
Ini adalah saran kecil tentang tampilan kode, seperti spasi atau titik koma, yang tidak memengaruhi cara kerja kode, tetapi bisa cukup mengganggu.
Apa arti 'block a merge'?
Artinya, perubahan tidak bisa ditambahkan ke proyek utama sebelum masalah yang ditunjukkan sudah diperbaiki.
Apakah tool ini bisa menemukan semua jenis kesalahan?
Tidak. Tool ini berfokus pada lima area utama. Kesalahan yang sangat spesifik pada bidang tertentu (misalnya perhitungan keuangan yang presisi) atau masalah keamanan yang kompleks mungkin tetap memerlukan tinjauan tambahan dari ahli.
Detail
Deskripsi asli dari pembuat
Five-axis code review checklist (correctness, security, readability, performance, test coverage) producing actionable comments instead of style nitpicks. Use when the user asks to review code, a diff, or a pull request.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #4627
- 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
test-driven-development
311kMengajari agent Anda menulis tes yang gagal dulu, melihatnya gagal, lalu menulis kode terkecil yang lulus, sebelum membangun fitur atau perbaikan apa pun.
verification-before-completion
311kMengajari agent Anda menjalankan pemeriksaan nyata dan membaca keluarannya sebelum menyatakan tugas, perbaikan, atau build sudah selesai atau lulus.
migrate-to-shoehorn
310kMengganti type cast berisiko di file tes Anda dengan pustaka shoehorn, sehingga tes bisa memakai data parsial dan tetap lulus pemeriksaan tipe.