adversarial-reviewer
Skill5 starsChanged 4 months agoMITView on GitHub
Review code through three hostile personas - the Saboteur, the New Hire, and the Security Auditor - each required to find at least one issue. Use when a standard review feels too comfortable, when code is going into a critical path, when a previous review missed bugs that later surfaced, or when you want coverage across correctness, clarity, and security in a single pass.
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Read the code in full without judging it.
- Distinctive: line 12
If a diff or specific files are in scope, focus there.
- Distinctive: line 47
Supply chain: if a new dependency was added, is it maintained, widely used, and necessary?
- Distinctive: line 53
After all three personas have reported, give a consolidated summary:
- Distinctive: line 70
If a persona found nothing after thorough checking, list the specific things they checked and confirmed safe - a clean result from a …
“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
A normal review looks for obvious problems. This review looks with the eyes of someone who wants the code to fail, someone who has never seen it, and someone who is paid to find holes in it. Each persona must report at least one finding. If a persona genuinely cannot find a problem after a thorough examination, that is itself a result - state exactly what was checked and why each candidate turned out safe.
Before starting
Read the code in full without judging it. Understand what it is trying to do and what invariants it relies on. Only then switch to the adversarial personas, one at a time.
If a diff or specific files are in scope, focus there. If the scope is the current change, also read the surrounding code that the change interacts with.
Persona 1: The Saboteur
The Saboteur wants the code to fail at runtime. They probe for:
- Edge cases: what happens with empty input, zero, negative numbers, very large values, unicode, null, undefined, or a missing key in an object?
- Sequence and ordering: what if events arrive out of order? What if two calls happen concurrently? Is there a race between reads and writes?
- Type coercion and implicit conversion: does
==hide a type mismatch? Does a numeric string arrive where a number is expected and gets treated as one? - Failure paths: what happens when a network call fails, a file is missing, a lock times out, or a dependency throws? Are errors swallowed? Does the system end up in a partially-updated state?
- Off-by-one and boundary arithmetic: are loop bounds correct? Are slices and ranges inclusive or exclusive where they need to be?
The Saboteur reports findings as: "Saboteur finds: [precise scenario] at [file:line] causes [concrete failure]."
Persona 2: The New Hire
The New Hire is reading this code for the first time, on their second week. They flag:
- Naming confusion: identifiers that mean something different from what they look like, or two things that sound the same but differ in a subtle way.
- Undocumented assumptions: preconditions that callers must satisfy but are never stated, state that must be initialized before a function is called, or ordering guarantees that the code depends on but does not enforce.
- Missing tests for non-obvious behavior: any path that a reader would not predict from the function's name or signature but that is load-bearing.
- Why is this here? Code that does something surprising without explanation. Side effects that are not obvious from the call site.
- Complexity that could be simpler: nested conditionals that could be flattened, a loop doing the work of a standard library function, state that is tracked manually when a different data structure would make it automatic.
The New Hire reports findings as: "New Hire finds: [what was confusing or missing] at [file:line] because [what they would have assumed instead]."
Persona 3: The Security Auditor
The Security Auditor is looking for exploitable weaknesses in this specific code, not a generic checklist. They focus on:
- Trust boundary violations: is any user-controlled value used in a query, shell command, file path, or template without explicit validation and sanitization at the boundary?
- Authorization gaps: is the caller's identity and permission verified before the operation runs? Can a valid authenticated user access another user's resource by changing an ID?
- Information leakage: does an error message, a log line, or a response body expose stack traces, internal paths, user data, or system information to untrusted parties?
- Insecure defaults: is a sensitive operation opt-in to security (must be enabled) rather than opt-out (secure by default)? Does a new endpoint inherit the authentication and rate-limiting of the rest of the service, or is it bare?
- Cryptographic shortcuts: is a password hashed with anything other than bcrypt, argon2, or scrypt? Is a secret compared with
==instead of a constant-time function? Is a random token generated withMath.random()? - Supply chain: if a new dependency was added, is it maintained, widely used, and necessary? Does it run install scripts that could execute arbitrary code?
The Security Auditor reports findings as: "Security Auditor finds: [vulnerability class] at [file:line]: [attack path and what an adversary gains]."
Report format
After all three personas have reported, give a consolidated summary:
Saboteur: [N findings]
New Hire: [N findings]
Security Auditor: [N findings]
Critical items (address before merge):
- [file:line] - [the finding] - [the fix]
Should-fix items:
- ...
Low / consider items:
- ...If a persona found nothing after thorough checking, list the specific things they checked and confirmed safe - a clean result from a specific check is as useful as a finding.
Other versions16 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 16
- emdash-cms/emdash★ 14ksame name
- 302ai/302-AI-Studio★ 133same name
- mhylle/claude-skills-collection★ 20same name
- Hassaan146/claude-skills★ 18same name
- EngDawood/emdash-claude-plugin★ 4same name
- EngDawood/emdash-claude-skills★ 4same name
- csiddhant796-blip/claude-skills-collection★ 2same name
- EngDawood/modern-emdash-cms★ 2same name
- Hussain-Elfalah/Agentic-Skills★ 2same name
- aewing/skills★ 1same name
6 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.
Used alongsideProjects with it also use building-emdash-site, emdash-cli and 5 more.
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.
EngDawoodSkillbuilding-emdash-site
Build and customize EmDash CMS sites on Astro. Use when creating pages, defining collections, writing seed files, querying content, rendering Portable Text, setting up menus/taxonomies/widgets, configuring deployment, or any task involving an EmDash-powered Astro site. Assumes basic Astro knowledge but provides all EmDash-specific patterns.
Also in 4 projects that use this
EngDawoodSkillemdash-cli
Use the EmDash CLI to manage content, schema, media, and more. Use this skill when you need to interact with a running EmDash instance from the command line — creating content, managing collections, uploading media, generating types, or scripting CMS operations.
Also in 4 projects that use this
jeongskSkillcreating-plugins
Guide for creating Claude Code plugins with commands, agents, skills, hooks, and MCP servers. Use when the user wants to create a new plugin, add plugin components (commands, agents, hooks), set up a plugin marketplace, or needs help with plugin.json configuration.
Also in 4 projects that use this
VercelSkillagent-browser
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
Also in 4 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
- +2 more from EngDawood
In this repository89 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- site/llms-full.txtllms.txt
- site/llms.txtllms.txt
- improveSkill
- academic-writingSkill
- benchmark-reportingSkill
- bibtex-managerSkill
- citation-graphSkill
- citation-verifierSkill
- design-science-methodologySkill
- docx-thesisSkill
- experiment-reproducibilitySkill
- latex-toolkitSkill
- literature-searchSkill
- lit-review-synthesisSkill
- paper-readerSkill
- proofread-academicSkill
- research-figuresSkill
- research-methodologySkill
- research-questionSkill
- statistics-advisorSkill
- supervisor-updateSkill
- systematic-reviewSkill
- thesis-proposalSkill
- coolify-image-appSkill
- coolify-vps-baselineSkill
- deploy-verificationSkill
- express-prisma-coolify-imageSkill
- ghcr-coolify-pipelineSkill
- live-domain-cutoverSkill
- nextjs-coolify-imageSkill
- proxy-client-addressSkill
- vps-ops-toolkitSkill
- adr-writingSkill
- openapi-specSkill
- readme-writingSkill
- technical-writingSkill
- api-design-reviewSkill
- code-review-responseSkill
- create-agentSkill
- create-commandSkill
- create-hookSkill
- create-skillSkill
- db-migration-safetySkill
- dependency-upgradeSkill
- dockerfile-best-practicesSkill
- error-handling-patternsSkill
- executing-plansSkill
- explain-codebaseSkill
- fix-ciSkill
- github-actions-pipelineSkill
- grill-with-docsSkill
- incident-postmortemSkill
- logging-and-observabilitySkill
- parallel-agentsSkill
- performance-optimizationSkill
- refactoring-recipesSkill
- solid-principlesSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- The first 60 shown.
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.

