adversarial-reviewer
Fungsinya
Skill ini membedah perubahan kode untuk menemukan cacat konkret yang mungkin terlewat dalam tinjauan biasa. Untuk developer yang menginginkan pemburuan bug yang mendalam sebelum perubahan digabung atau dirilis.
Kapan dipakai
- ✓Saat Anda secara eksplisit meminta pemburuan bug yang mendalam atau tinjauan adversarial atas sebuah perubahan.
- ✓Saat Anda ingin memeriksa perubahan Anda sendiri dari mode kegagalan tersembunyi sebelum mengirimkannya.
- ✓Saat Anda curiga sebuah perubahan memiliki asumsi tidak aman tentang data, error, atau konkurensi.
Link skill
https://github.com/emdash-cms/emdash/blob/main/skills/adversarial-reviewer/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
“Bisakah Anda melakukan tinjauan adversarial atas perubahan terbaru saya dan menemukan bug nyata atau asumsi tidak aman?”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mengidentifikasi tujuan perubahan, membaca kode di sekitarnya, dan memperlakukan setiap asumsi sebagai sesuatu yang harus diverifikasi. Agent mencari kasus tepi, celah penanganan error, dan masalah state, lalu hanya melaporkan masalah yang didukung bukti.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Adversarial code review
Look for defects that survive an ordinary review. Treat the implementation's assumptions as claims to verify, while keeping every finding tied to evidence.
Establish the review boundary
- Identify the exact diff, branch, pull request head, or files under review.
- Read the surrounding code needed to understand data flow and invariants.
- Check repository instructions and the tests that define expected behavior.
- Compare the change with its stated purpose. Trace the scenario and configuration from the issue, discussion, or accepted design it addresses through the real code, and treat each claim in the description and changeset as something to verify.
- Separate defects introduced by the reviewed change from unrelated observations. Report an out-of-scope issue only when it materially affects the change's safety.
Do not modify code, post a review, or expand the review target unless the user asks.
Hunt for failures
Choose the checks that fit the change instead of mechanically applying every category.
- Logic and boundaries: empty and single-item inputs, pagination edges, invalid state transitions, locale handling, Unicode, maximum values, and repeat invocation.
- Errors and cleanup: swallowed failures, partial cleanup, misleading status codes, exposed internals, missing timeouts, and unbounded retries.
- State and concurrency: stale reads, lost updates, time-of-check/time-of-use races, duplicate delivery, non-idempotent retries, leaked listeners, and shared mutable state.
- Authorization and trust: missing permission checks, confused caller identity, CSRF, unsafe redirects, injection, path traversal, secret exposure, and trust transferred across a boundary without validation.
- Data integrity: partial writes, migration restart behavior, dialect differences, uniqueness assumptions, destructive cascades, and old/new version compatibility.
- Resources and performance: unbounded collections, repeated round trips, retained resources, logged-out hot-path regressions, and work that scales with attacker-controlled input.
- Scope: the same defect left in place elsewhere, such as sibling call sites, other storage backends or render paths, and data already stored in the old shape.
- Interfaces: exported types, generated schemas, generated types, and documentation that no longer match the new behavior.
Trace concrete inputs and event sequences through the real implementation. Run focused tests or a minimal reproduction when that is the fastest way to establish a claim. Do not infer a bug solely from an unfamiliar pattern.
Findings standard
A finding needs all of the following:
- the violated behavior or invariant;
- the exact code location;
- a concrete trigger or execution path;
- the observable consequence;
- a proportionate fix direction.
Use calibrated language. State confirmed defects directly. Label an unresolved concern as uncertain and explain what evidence is missing. Do not turn naming, formatting, optional hardening, or personal design preference into a correctness finding.
Prioritize by impact and likelihood:
- Critical: exploitable security issue, unrecoverable data loss, or broad production outage.
- High: likely user-visible wrong behavior, authorization bypass, or recoverable data corruption.
- Medium: real failure under a plausible edge case, race, or sustained load.
- Low: limited correctness issue with small impact. Omit purely cosmetic observations.
Report
Lead with findings, ordered by severity. For each finding, include a short title, file and line, the failing scenario, impact, and fix direction. Keep line ranges tight.
If no actionable defects are supported by the evidence, say so. Mention meaningful residual risks or untested boundaries, but do not manufacture findings to make the review appear thorough.
Pertanyaan umum
Masalah apa yang dicari?
Kasus tepi seperti input kosong, celah penanganan error dan pembersihan, serta masalah state atau waktu.
Apakah akan mengubah kode saya?
Tidak. Skill meninjau dan melaporkan, dan tidak mengubah kode atau mengirim tinjauan kecuali diminta.
Apa bedanya dengan tinjauan kode biasa?
Skill ini ditujukan untuk pemburuan yang lebih dalam atas cacat yang lolos dari tinjauan biasa, bukan untuk umpan balik gaya.
Detail
Deskripsi asli dari pembuat
Stress-test a code change for concrete correctness defects, unsafe assumptions, and failure modes. Use when the user explicitly asks for an adversarial review, a deep bug hunt, or to tear a change apart, or to check your own change before submitting it. Do not use for ordinary review, style feedback, or general improvement suggestions.
repo: emdash-cms/emdash
Popularitas
- Bintang GitHub
- 14k
- Peringkat
- #11244
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
agent-browser
14kMemungkinkan agent Anda menguji halaman web di browser sungguhan, memeriksa apa yang dilihat pengguna, memverifikasi aksi, dan mengambil tangkapan layar sebagai bukti.
building-emdash-site
14kMembantu agent Anda membangun sisi situs dari proyek EmDash CMS di atas Astro, mencakup konten, skema, menu, taksonomi, dan deployment.
creating-plugins
14kMembantu agent Anda membuat plugin untuk CMS EmDash, dengan hook, rute, penyimpanan dan antarmuka admin yang aman.
emdash-cli
14kMemungkinkan agent Anda mengelola situs EmDash dari baris perintah, termasuk konten, media, menu, migrasi, serta ekspor atau impor situs secara penuh.
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.