diff-review
Skill2 starsChanged 8 days agoMITView on GitHub
Pre-commit and pre-merge review procedure for code diffs (Stage 7 Review). Scans added lines for hardcoded secrets, API keys, private keys, PII (NIK, phone numbers, real emails), staged .env files, oversized files, debug leftovers, and pre-filled demo credentials, then guides a manual review of authorization, error handling, and scope creep. Use before every commit, before opening or merging a PR, and whenever the user asks to review changes.
- Reads credentials
19 other projects use a version of this.
Adopted by
Most recently taken up by
- moisesrj97/skillstheir own version, first seen Nov 8, 2026
- MidnightDarling/collatetheir own version, first seen Nov 1, 2026
- Hakkadaikon/hymmetheir own version, first seen Oct 26, 2026
- scottlivingston/claude-skillstheir own version, first seen Oct 25, 2026
- rosslevinsky/portable-agent-skillstheir own version, first seen Oct 15, 2026
- ClickHouse/ClickHousetheir own version, first seen Oct 8, 2026
Used with
Projects with it also use test-design.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
shabarabaSkilltest-design
Automatically design comprehensive E2E test cases for newly implemented vibing.nvim features. Use immediately after completing feature implementation (Phase 5.4) and before running E2E tests. Generates test scenarios covering Happy paths, Error cases, Edge cases, and Integration points with priority ranking (Critical/High/Medium/Low) and ready-to-use test code templates using e2e_helper.lua.
Also in 3 projects that use this
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- ClickHouse/ClickHouse★ 51ksame name
- ComplyEaze/bridge★ 35same name
- lamemustafa/bridge★ 35same name
- rosslevinsky/portable-agent-skills★ 12same name
- yasunori0418/skills★ 9same name
- MidnightDarling/collate★ 8same name
- dprakash2101/dotnet-production-agent-skills★ 4same name
- Lixiuxiu559/AgentForge★ 4same name
- declancowen/skills★ 2same name
- hmu332233/skills★ 1same name
9 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- templates/copilot-instructions.mdCopilot instructions
- clean-code-concise-docsSkill
- data-analysis-explorerSkill
- data-science-workbenchSkill
- distinctive-ui-designSkill
- domain-scaffoldingSkill
- git-commit-craftSkill
- github-repo-publishSkill
- laravel-web-studioSkill
- ml-model-engineeringSkill
- professional-report-writerSkill
- readme-github-syncSkill
- release-deploy-checkSkill
- security-auditSkill
- shadcn-admin-design-systemSkill
- verify-and-testSkill
The file
Files
Diff Review
Prosedur tinjauan perubahan sebelum commit dan sebelum merge. Tahap 7 (Review) pada 9-stage workflow mewajibkan pemeriksaan diff, otorisasi, dan pencegahan kebocoran rahasia. Skill ini membaginya menjadi pemindaian otomatis dan tinjauan manual.
Rule terkait: 05 (Security), 06 (Code Quality), 12 (Git Hygiene), 18 (Clean Production Handoff).
1. Pemindaian Otomatis
# Perubahan yang sudah di-stage (default, dipakai sebelum commit)
powershell -ExecutionPolicy Bypass -File skills/diff-review/scripts/scan-diff.ps1
# Seluruh perubahan terhadap branch dasar (dipakai sebelum PR/merge)
powershell -ExecutionPolicy Bypass -File skills/diff-review/scripts/scan-diff.ps1 -Base main
# Seluruh file yang dilacak git (dipakai sebelum publish repo pertama kali)
powershell -ExecutionPolicy Bypass -File skills/diff-review/scripts/scan-diff.ps1 -AllTingkat temuan:
| Tingkat | Contoh | Tindakan |
[BLOCK] | Private key, token GitHub/OpenAI/Google/AWS, .env ter-stage, file di atas 50 MB | Commit dilarang sampai diperbaiki. Bila secret sudah pernah ter-push, anggap bocor: rotasi kunci. |
[WARN] | console.log, dd(), var_dump, debugger, password123 di atribut value=, nomor HP, NIK 16 digit | Tinjau. Hapus kecuali memang disengaja dan terdokumentasi. |
Skrip keluar dengan kode 1 bila ada [BLOCK], sehingga dapat dipasang sebagai pre-commit hook.
2. Tinjauan Manual
Setelah pemindaian lolos, baca git diff --staged dan periksa:
2.1 Cakupan
- Setiap file yang berubah berhubungan dengan tugas. Tidak ada refactor liar atau perubahan format massal.
- Tidak ada file sementara: skrip debug,
test_*.png, dump database,*.bak. - Perubahan dapat dipecah menjadi commit atomik bila menyentuh lebih dari satu concern.
2.2 Keamanan dan Otorisasi
- Endpoint baru memiliki middleware auth dan pengecekan kepemilikan resource (cegah IDOR).
- Input divalidasi di server, bukan hanya di frontend.
- Query memakai parameter binding atau ORM, tanpa interpolasi string.
- Output ke HTML di-escape; tidak ada
dangerouslySetInnerHTMLatau{!! !!}untuk data pengguna. - Mutasi state (POST/PUT/DELETE) dilindungi token CSRF.
- Elemen UI khusus member tersembunyi bagi tamu dan aksi member terkunci di server (Rule 18).
2.3 Kualitas
- Error ditangani secara eksplisit; tidak ada
catchkosong. - Penamaan jelas; tidak ada kode mati atau kode yang di-comment.
- Komentar menjelaskan alasan (why), bukan mengulang sintaks (Rule 20).
- Log memakai tag formal
[INFO],[WARN],[ERROR]tanpa emoji.
2.4 Data dan Kontrak
- Migrasi database dapat di-rollback dan tidak menghapus data tanpa persetujuan.
- Perubahan kontrak API (field, status code) tercermin di dokumentasi.
- Tidak ada perubahan lockfile yang tidak disengaja.
3. Format Laporan
[REVIEW] <branch atau commit>
Scan : PASS (0 block, 2 warn)
Scope : 5 file, semua relevan dengan <tugas>
Security : auth dan validasi diperiksa pada <endpoint>
Findings :
- [WARN] src/app.ts:42 console.log tersisa, dihapus
Verdict : SIAP COMMIT | PERLU PERBAIKAN4. Memasang sebagai Pre-commit Hook (Opsional)
Set-Content .git/hooks/pre-commit "#!/bin/sh`npowershell -NoProfile -ExecutionPolicy Bypass -File skills/diff-review/scripts/scan-diff.ps1"Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

