review-security
Skill8 starsChanged 2 months agoMITView on GitHub
Perform an OWASP Top 10-focused static security review of a PR, commit, or
12 other projects use a version of this.
Adopted by
Most recently taken up by
- JameMy0001/antigravity-skills-hubtheir own version, first seen Oct 2, 2026
- gtrabanco/agentic-workflowtheir own version, first seen Sep 22, 2026
- nielsmadan/skillstheir own version, first seen Sep 5, 2026
- pydantic/montytheir own version, first seen Sep 4, 2026
- Phelan164/codex-howtotheir own version, first seen Aug 17, 2026
- paultyng/skill-issuetheir own version, first seen Aug 5, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- pydantic/monty★ 8.6ksame name
- suleimanodetoro/skills★ 788same name
- gtrabanco/agentic-workflow★ 21same name
- chrisallenlane/claude-swe-workflows★ 18same name
- Phelan164/codex-howto★ 12same name
- borkweb/skills★ 8same name
- paultyng/skill-issue★ 8same name
- AlizHarb/agent-skills★ 1same name
- JameMy0001/antigravity-skills-hub★ 1same name
- nielsmadan/skills★ 1same name
2 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 repository52 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- anything-to-skillSkill
- ci-generateSkill
- ci-localSkill
- clotho-researchSkill
- codex-imagegenSkill
- create-ruleSkill
- create-skillSkill
- db-migrateSkill
- docker-initSkill
- docs-adrSkill
- docs-checkSkill
- docs-diagramSkill
- docs-initSkill
- docs-rfcSkill
- docs-updateSkill
- env-setupSkill
- find-skillsSkill
- fix-bugSkill
- git-commitSkill
- git-create-prSkill
- gitflowSkill
- git-releaseSkill
- git-syncSkill
- i18n-checkSkill
- implement-featureSkill
- improve-skillSkill
- inject-docsSkill
- jira-cliSkill
- motion-studioSkill
- optimize-ai-setupSkill
- orchestrateSkill
- oss-launchSkill
- prd-to-issuesSkill
- product-design-specSkill
- product-design-tokensSkill
- product-prdSkill
- project-illustratorSkill
- project-plannerSkill
- refactorSkill
- renderSkill
- review-codeSkill
- review-depsSkill
- review-designSkill
- review-perfSkill
- review-planSkill
- shipSkill
- test-suiteSkill
- vrt-checkSkill
- wtfSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 57
If a PR or commit is specified, use Bash to get changed files:
- Very specific: line 69
Use an Explore agent (model: haiku) to identify the stack: languages/frameworks from package.json/pyproject.toml/pom.xml/go.mod, existing …
- Distinctive: line 78
Use TodoWrite to track scan progress across all OWASP categories, bytecode security, and report generation.
- Distinctive: line 114
No Task tool available? Work through each owned category inline and sequentially instead of spawning its agent, same grep patterns from the …
- Distinctive: line 149
Before presenting the report, verify that every finding has a file path + line numbers + an actual code snippet (not a placeholder) + a …
- Distinctive: line 166
If no scope is specified, scan comprehensively across all categories.
- Distinctive: line 201
Does not modify code or auto-fix vulnerabilities, and never commits changes
- Distinctive: line 202
Does not run dynamic security testing (DAST) or penetration testing
- Distinctive: line 203
Does not audit dependency CVEs, versions, or licenses (use review-deps)
- Distinctive: line 204
Does not guarantee 100% detection: static, pattern-based analysis only
“Common” is measured: kept by at least 6 in 10 of the 12 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
Security Review
Static security analysis targeting OWASP Top 10 vulnerabilities and common language-specific security patterns. This skill only analyzes: it identifies vulnerabilities, explains why each one matters, and suggests fix approaches, all without touching the code.
OWASP renumbers and re-titles its Top 10 categories periodically. Before labeling any finding with a category code (A01, A02, ...), do a quick web check against owasp.org/Top10/ to confirm the codes below are still current; if they've shifted, use the current codes and note the change in the report instead of silently reusing stale labels.
Anti-hallucination guidelines
| Rule | Detail |
| Read before claiming | Never report a vulnerability in code that hasn't been read |
| Evidence-based findings | Every finding references a specific file path and line number |
| Pattern matching | Use Grep to find actual vulnerable patterns, not hypothetical ones |
| No invented CVEs | Only reference real vulnerabilities when providing context |
| Quantifiable results | Statistics come from counting actual matches, never estimates |
| No false positives | Verify each finding matches a documented vulnerability pattern |
| Scope verification | Only scan files within the specified scope (PR/commit/all) |
Scan Workflow
Phase 0: Determine Scan Scope
Parse arguments to determine what to scan:
<pr_number>: scan only files changed in PR (e.g. "123", "#123")<commit_sha>: scan only files changed in commit (e.g. "abc123")--allor no args: scan entire codebase--scope [web|api|mobile|backend|frontend]: focus on specific vulnerability categories
If a PR or commit is specified, use Bash to get changed files:
# For PR
gh pr view <pr_number> --json files --jq '.files[].path'
# For commit
git diff-tree --no-commit-id --name-only -r <commit_sha>Phase 1: Project Technology Discovery
Use an Explore agent (model: haiku) to identify the stack: languages/frameworks from
package.json/pyproject.toml/pom.xml/go.mod, existing security tooling
(.pre-commit-config.yaml, SAST steps in .github/workflows), web framework, DB/ORM patterns,
auth patterns (JWT/OAuth/sessions), and any SECURITY.md. Return a stack summary with the
vulnerability categories to prioritize. No Task tool available? Skip the agent: read those
same files and grep those same paths yourself, inline, then note the stack directly.
Phase 2: Initialize Progress Tracking
Use TodoWrite to track scan progress across all OWASP categories, bytecode security, and report generation.
Phase 3: Vulnerability Scanning
Each OWASP category is owned by a fixed agent number (grep patterns and full prompts for each are in references/agent-prompts.md):
| Agent | Owns |
| 1 | A01 Access Control, A07 Authentication |
| 2 | A02 Security Misconfiguration, A06 Insecure Design |
| 3 | A05 Injection, A08 Data Integrity |
| 4 | A04 Cryptographic Failures, A03 Supply Chain (SRI/lockfiles/CI trust settings only, see note below) |
| 5 | Bytecode & compiled-code security |
| 6 | A09 Logging/Monitoring, A10 Exception Handling |
Scope → categories in scope (the only place scope decides anything: edit this table, nowhere else, if scope definitions change):
--scope | Categories |
web | A02, A05 |
api | A01, A06, A07 |
mobile | A04, A08 |
backend | A05, A06, A08 |
frontend | A02, A05, A08 |
(none) / --all | all categories, all 6 agents |
Spawn every agent that owns at least one category from the scope's list (per the ownership
table above). Spawn all 6 for --all or no scope given.
Each agent must: grep for its patterns, read each match to verify context, extract the exact code snippet (5-10 lines), explain why it's vulnerable, classify severity (Critical/High/Medium/Low), and give 2-3 fix approaches.
No Task tool available? Work through each owned category inline and sequentially instead of spawning its agent, same grep patterns from the reference file, same read-and-verify step, one category at a time.
A03 note: dependency staleness and known-CVE scans (outdated package versions, npm
audit-style findings) are review-deps' job, not this skill's: don't duplicate them here.
Agent 4 only checks the supply-chain surface review-deps doesn't: missing SRI on CDN
<script> tags, absent lockfiles, and CI/CD steps that weaken package integrity (e.g.
--trusted-host, strict-ssl false). If dependency CVEs come up, point the user to
review-deps instead of reporting them here.
Phase 4: Consolidate & Analyze Findings
After scanning completes:
- Collect all findings from every agent/category pass.
- Deduplicate: remove duplicate findings across categories.
Prioritize by severity, using this table:
Severity Examples Critical RCE, SQLi, auth bypass, hardcoded secrets High XSS, CSRF, broken access control, weak crypto Medium Info disclosure, missing logging, insecure design Low Minor security-adjacent code quality - Categorize by OWASP category (confirm codes are current per the note at the top of this file before tagging).
- Compute statistics: total vulnerabilities, counts by severity/category, files scanned vs. files with issues, all counted from actual findings, never estimated.
Phase 5: Generate Security Report
Generate a markdown report following references/report-template.md.
Phase 6: Verification & Quality Check
Before presenting the report, verify that every finding has a file path + line numbers + an actual code snippet (not a placeholder) + a clear explanation + 2-3 fix approaches. Then confirm the report as a whole: statistics are counted rather than estimated; no duplicate findings; severity ratings are justified; only files within the specified scope were scanned; no invented vulnerabilities; any CWE/CVE references are accurate.
Usage
review-security 123 # scan files changed in PR #123
review-security abc123def # scan files changed in a commit
review-security --all # scan entire codebase
review-security # same as --all
review-security --all --scope web
review-security 123 --scope apiIf no scope is specified, scan comprehensively across all categories.
Worked Example
Input: review-security --all --scope api on a Flask API.
Agent 1 (A01/A07) and Agent 2 (A02/A06) run, per the scope table above, api maps to
A01/A06/A07, both owned by those two agents. A finding might read:
#### Finding 1: Missing authorization check on account balance endpoint
- Severity: Critical
- File: `app/routes/accounts.py:42-47`
- Code:
@app.route("/api/accounts/<account_id>/balance")
def get_balance(account_id):
account = Account.query.get(account_id)
return jsonify(balance=account.balance)
- Explanation: any authenticated user can read any account's balance by
guessing/enumerating account_id, no ownership check against the current session user.
- Fix approaches:
1. Add `if account.owner_id != current_user.id: abort(403)` before the query returns.
2. Scope the query itself: `Account.query.filter_by(id=account_id, owner_id=current_user.id).first_or_404()`.Agent 3/4/5/6 don't run for this scope: their categories (A03-A05, A08-A10, bytecode)
aren't in the api scope's list.
Additional Resources
- references/agent-prompts.md: grep patterns and full agent prompts per category
- references/report-template.md: full markdown report template
What This Skill Does NOT Do
- Does not modify code or auto-fix vulnerabilities, and never commits changes
- Does not run dynamic security testing (DAST) or penetration testing
- Does not audit dependency CVEs, versions, or licenses (use review-deps)
- Does not guarantee 100% detection: static, pattern-based analysis only
OWASP References
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.

