adversarial-reviewer
यह क्या करती है
यह स्किल एजेंट से कोड बदलाव की ऐसी समीक्षा करवाती है जैसे एक सख़्त समीक्षक करता है, तीन आलोचनात्मक कोणों से। यह उन डेवलपर्स के लिए है जिन्हें मर्ज से पहले तेज़ जाँच चाहिए, न कि सिर्फ़ विनम्र नज़र।
कब इस्तेमाल करें
- ✓जब आप पुल रिक्वेस्ट मर्ज करने वाले हों और सख़्त समीक्षा चाहते हों।
- ✓जब आपकी अपनी समीक्षा आपको बहुत नरम लगे।
- ✓जब कोई बदलाव सुरक्षा या प्रोडक्शन व्यवहार को छूता हो और उसे ध्यान से पढ़ना हो।
Skill का लिंक
https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/skills/adversarial-reviewer/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मर्ज करने से पहले मेरी पुल रिक्वेस्ट की एक विरोधी समीक्षक की तरह समीक्षा कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट diff की तीन पर्सोना के ज़रिए समीक्षा करता है: एक प्रोडक्शन टूटने की चीज़ें ढूँढता है, एक जाँचता है कि कोई नया टीम सदस्य कोड समझ सकता है या नहीं, और एक सुरक्षा समस्याएँ खोजता है। फिर वह निर्णय देता है: block, concerns या clean।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Adversarial Code Reviewer
Description
Adversarial code review skill that forces genuine perspective shifts through three hostile reviewer personas (Saboteur, New Hire, Security Auditor). Each persona MUST find at least one issue — no "LGTM" escapes. Findings are severity-classified and cross-promoted when caught by multiple personas.
Features
- Three adversarial personas — Saboteur (production breaks), New Hire (maintainability), Security Auditor (OWASP-informed)
- Mandatory findings — Each persona must surface at least one issue, eliminating rubber-stamp reviews
- Severity promotion — Issues caught by 2+ personas are promoted one severity level
- Self-review trap breaker — Concrete techniques to overcome shared mental model blind spots
- Structured verdicts — BLOCK / CONCERNS / CLEAN with clear merge guidance
Usage
/adversarial-review # Review staged/unstaged changes
/adversarial-review --diff HEAD~3 # Review last 3 commits
/adversarial-review --file src/auth.ts # Review a specific file
Examples
Example: Reviewing a PR Before Merge
/adversarial-review --diff main...HEAD
Produces a structured report with findings from all three personas, deduplicated and severity-ranked, ending with a BLOCK/CONCERNS/CLEAN verdict.
Problem This Solves
When Claude reviews code it wrote (or code it just read), it shares the same mental model, assumptions, and blind spots as the author. This produces "Looks good to me" reviews on code that a fresh human reviewer would flag immediately. Users report this as one of the top frustrations with AI-assisted development.
This skill forces a genuine perspective shift by requiring you to adopt adversarial personas — each with different priorities, different fears, and different definitions of "bad code."
Table of Contents
- Quick Start
- Review Workflow
- The Three Personas
- Severity Classification
- Output Format
- Anti-Patterns
- When to Use This
Quick Start
/adversarial-review # Review staged/unstaged changes
/adversarial-review --diff HEAD~3 # Review last 3 commits
/adversarial-review --file src/auth.ts # Review a specific file
Review Workflow
Step 1: Gather the Changes
Determine what to review based on invocation:
- No arguments: Run
git diff(unstaged) +git diff --cached(staged). If both empty, rungit diff HEAD~1(last commit). --diff <ref>: Rungit diff <ref>.--file <path>: Read the entire file. Focus review on the full file rather than just changes.
If no changes are found, stop and report: "Nothing to review."
Step 2: Read the Full Context
For every file in the diff:
- Read the full file (not just the changed lines) — bugs hide in how new code interacts with existing code.
- Identify the purpose of the change: bug fix, new feature, refactor, config change, test.
- Note any project conventions from CLAUDE.md, .editorconfig, linting configs, or existing patterns.
Step 3: Run All Three Personas
Execute each persona sequentially. Each persona MUST produce at least one finding. If a persona finds nothing wrong, it has not looked hard enough — go back and look again.
IMPORTANT: Do not soften findings. Do not hedge. Do not say "this might be fine but..." — either it's a problem or it isn't. Be direct.
Step 4: Deduplicate and Synthesize
After all three personas have reported:
- Merge duplicate findings (same issue caught by multiple personas).
- Promote findings caught by 2+ personas to the next severity level.
- Produce the final structured output.
The Three Personas
Persona 1: The Saboteur
Mindset: "I am trying to break this code in production."
Priorities:
- Input that was never validated
- State that can become inconsistent
- Concurrent access without synchronization
- Error paths that swallow exceptions or return misleading results
- Assumptions about data format, size, or availability that could be violated
- Off-by-one errors, integer overflow, null/undefined dereferences
- Resource leaks (file handles, connections, subscriptions, listeners)
Review Process:
- For each function/method changed, ask: "What is the worst input I could send this?"
- For each external call, ask: "What if this fails, times out, or returns g
अक्सर पूछे जाने वाले सवाल
तीन समीक्षक दृष्टियाँ कौन सी हैं?
एक तोड़फोड़ करने वाला जो प्रोडक्शन टूटने ढूँढता है, एक नया कर्मचारी जो रखरखाव जाँचता है, और एक सुरक्षा ऑडिटर जो जोखिम ढूँढता है।
क्या समीक्षा में हमेशा कुछ मिलेगा?
स्किल हर दृष्टि से कम से कम एक समस्या ढूँढने को कहती है, इसलिए समीक्षा सब कुछ आसानी से मंज़ूर करने की संभावना कम होती है।
निर्णयों का क्या मतलब है?
Block का मतलब है अभी मर्ज न करें, concerns का मतलब है पहले समस्याएँ देखें, और clean का मतलब है कोई बड़ी समस्या नहीं मिली।
जानकारी
लेखक का मूल विवरण
Use before merging a PR or when a self-review feels too agreeable and the change needs a genuinely critical read. Reviews the diff through hostile reviewer personas that catch blind spots the author and a friendly reviewer share.
लोकप्रियता
- GitHub स्टार
- 29k
- रैंकिंग में स्थान
- #9488
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
agent-launcher-orchestrator
29kआपके एजेंट को एक साफ़ लक्ष्य से शुरू करके, अपने खाते में Claude मैनेज्ड एजेंट की योजना बनाने, बनाने, जांचने और शेड्यूल करने में चरण-दर-चरण मदद करती है।
grade-iterate
29kआपके एजेंट को किसी मैनेज्ड AI एजेंट के काम को रूब्रिक से आंकने और तय संख्या के दौरों में सुधारने देती है, ताकि वह कभी अनंत चक्र में न फंसे।
interview
29kआपके एजेंट को AI एजेंट के विचार पर आपसे इंटरव्यू लेने और कुछ भी लॉन्च होने से पहले आपके जवाबों को सरल निर्माण योजना में बदलने देती है।
run-without-you
29kआपके एजेंट को मैनेज्ड AI एजेंट शेड्यूल पर या किसी घटना पर चलाने में मदद करती है, लॉन्च से पहले cron समय की जांच के साथ।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।