security-review
Skill215 starsChanged 5 months agoMITView on GitHub
Review code for security vulnerabilities. Use when the user says 'security review', 'security audit', 'check for vulnerabilities', 'pentest the code', 'OWASP check', or any variation of wanting a security assessment.
187 other projects use a version of this.
Adopted by
Most recently taken up by
- rafaelob/pragmatic-agent-skillstheir own version, first seen Oct 5, 2026
- Lukk17/agent-standardstheir own version, first seen Oct 5, 2026
- CaseyLabs/kc-secure-repo-templatetheir own version, first seen Oct 4, 2026
- HMBSbige/skillstheir own version, first seen Oct 3, 2026
- aprameyak/coding-skillstheir own version, first seen Oct 2, 2026
- hahuyhungdev/ai-coding-configtheir own version, first seen Oct 2, 2026
Used with
Projects with it also use kotlin-testing, configure-ecc and 10 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.
tpavanipradeepSkillkotlin-testing
Kotlin testing patterns with Kotest, MockK, coroutine testing, property-based testing, and Kover coverage. Follows TDD methodology with idiomatic Kotlin practices.
Also in 6 projects that use this
saxon-ySkillconfigure-ecc
Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.
Also in 12 projects that use this
InfopibeSkillcontent-hash-cache-pattern
Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.
Also in 12 projects that use this
InfopibeSkillralphinho-rfc-pipeline
RFC-driven multi-agent DAG execution pattern with quality gates, merge queues, and work unit orchestration.
Also in 10 projects that use this
mryeastcodeSkillpytorch-patterns
PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.
Also in 9 projects that use this
berntpoppSkilldependency-cve-sweep
Use when handling Dependabot PRs, CodeQL/Trivy alerts, or doing a routine dependency/CVE sweep for this repo.
Also in 5 projects that use this
Other versions187 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 187
- github/awesome-copilot★ 40ksame name
- WorldFlowAI/everything-claude-code★ 4ksame name
- compozy/compozy★ 2.8ksame name
- getsentry/sentry-python★ 2.2ksame name
- xu-xiang/everything-claude-code-zh★ 2ksame name
- codeaholicguy/ai-devkit★ 1.6ksame name
- getsentry/skills★ 1ksame name
- microsoft/power-platform-skills★ 961same name
- thesongzhu/Friday★ 837same name
- ktnyt/cclsp★ 675same name
177 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 repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- scripts/CLAUDE.mdCLAUDE.md
- commitSkill
- weak-agent-testSkill
- docx-cliSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 165 edited versions we read keep these.
8
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 21
Run git diff main...HEAD --name-only to get files changed on this branch vs main.
- Distinctive: line 22
If that fails (no main, detached worktree, etc.), fall back to git diff HEAD --name-only for uncommitted changes, then git diff --cached …
- Distinctive: line 23
If no diff is available, ask the user which files to review.
- Distinctive: line 25
Read every changed file completely before starting the review.
- Very specific: line 71
Known vulnerabilities: If bun audit / npm audit / pip-audit is available, check for known CVEs.
- Distinctive: line 104
Don't flag style issues — that's the code review's job.
- Distinctive: line 105
Don't suggest adding WAFs, rate limiters, or infrastructure changes unless the code-level fix is insufficient.
- Distinctive: line 106
Don't report theoretical issues that require physical access or compromised infrastructure.
- Distinctive: line 107
Don't pile on — prioritize the top findings that matter most.
“Common” is measured: kept by at least 6 in 10 of the 165 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
Audit changed files for security vulnerabilities, focusing on the OWASP Top 10 and issues specific to the project's stack.
When running locally as a forked subagent, the main session does not see any files you read or any reasoning you do — only the final report you return. When running in CI (e.g. via claude-code-action), the workflow takes the report and turns it into GitHub PR review comments. Either way, take your time, read every changed file completely, and produce a thorough, actionable report. The consumer of this report uses it as a worklist, so it must be complete and self-contained.
Scope
Determine the diff to review:
- Run
git diff main...HEAD --name-onlyto get files changed on this branch vs main. - If that fails (no
main, detached worktree, etc.), fall back togit diff HEAD --name-onlyfor uncommitted changes, thengit diff --cached --name-onlyfor staged files. - If no diff is available, ask the user which files to review.
Read every changed file completely before starting the review. Read CLAUDE.md first to understand the project's stack and any subsystems with security-sensitive surface area (auth, real-time, payments, file uploads).
What to Look For
Injection & Input Handling
- SQL injection: Raw SQL with string interpolation instead of parameterized queries. Check for any template literals that build SQL, and verify that database libraries are being used in their parameterized form.
- Command injection: User input passed to shell commands (
Bun.$,child_process,subprocess,os.system) without sanitization. - XSS: User-controlled data rendered as
dangerouslySetInnerHTML, or reflected into HTML/JS without escaping. CheckcontentEditablefields that accept pasted HTML. - Path traversal: User input used in file paths without validation. Check for
..traversal. - Prototype pollution:
Object.assignor spread on user-controlled objects without allowlisting keys.
Authentication & Authorization
- Missing auth checks: Endpoints that read/write data without verifying the caller's identity or org membership.
- IDOR (Insecure Direct Object Reference): Endpoints that accept an ID parameter and return/modify the resource without verifying the caller has access. Particularly dangerous when URL params (like a slug) aren't validated against the actual resource ownership.
- Privilege escalation: Actions that should be restricted (delete, move, admin operations) but aren't gated on role/permission.
Data Exposure
- Over-fetching: API responses that include more data than the client needs (e.g., internal IDs, secrets, full document state when only a title is needed).
- Error leakage: Stack traces, SQL errors, or internal paths exposed in error responses.
- Sensitive data in logs: Passwords, tokens, or PII logged to console.
Real-time / WebSocket Security
(Only relevant if the project has a WebSocket layer — see CLAUDE.md.)
- Channel authorization: Can a client subscribe to any channel by guessing the name? Are channel subscriptions validated against user permissions?
- Message spoofing: Can a client broadcast messages to channels they shouldn't have write access to?
- Payload validation: Are incoming WebSocket messages validated before processing?
Denial of Service
- Unbounded queries: Endpoints that return all records without pagination or limits.
- Regex DoS: User input used in regex patterns without sanitization.
- Resource exhaustion: File uploads, large request bodies, or expensive operations without rate limiting or size limits.
Cryptography & Secrets
- Hardcoded secrets: API keys, passwords, or tokens in source code.
- Weak randomness:
Math.random()/random.random()used for security-sensitive operations instead ofcrypto.randomUUID()/secrets.token_*(). - Missing TLS: WebSocket connections using
ws://in production contexts.
Dependencies
- Known vulnerabilities: If
bun audit/npm audit/pip-auditis available, check for known CVEs. - Prototype pollution via deps: Libraries that merge user input deeply.
Report Format
Return the complete formatted report as your final message — not a summary or TL;DR. Whatever consumes the report (a main Claude session locally, or a CI workflow that posts inline GitHub PR comments) uses it as a worklist, so it must be self-contained.
Organize findings by severity:
Critical
Exploitable now with no authentication required. Data loss, unauthorized access, or remote code execution.
High
Exploitable with some preconditions (e.g., needs authenticated user, specific timing). Privilege escalation, significant data leakage.
Medium
Defense-in-depth issues. Missing validation that's currently protected by another layer but shouldn't rely on it.
Low
Hardening recommendations. Not exploitable today but reduce attack surface.
For each finding, include enough detail that the consumer can apply the fix without re-reading the entire file:
- File and line — exact
path:line(orpath:start-endfor ranges); list every site for cross-file findings - Severity — Critical / High / Medium / Low
- Vulnerability type — OWASP category or CWE
- Current code — short snippet of the vulnerable code (not just a description)
- Exploit scenario — concrete steps showing how an attacker would use this
- Fix — specific code change, ideally as a before/after snippet
- Surrounding context — callers, related files that must change in lockstep, validation layers the fix depends on, tests that should be added
What NOT to Do
- Don't flag style issues — that's the code review's job.
- Don't suggest adding WAFs, rate limiters, or infrastructure changes unless the code-level fix is insufficient.
- Don't report theoretical issues that require physical access or compromised infrastructure.
- Don't pile on — prioritize the top findings that matter most.
After the Report
The fix phase (or PR-comment-posting phase) happens in whatever consumes this report — not here. Your job ends when you return the report. Make sure it has enough information for that consumer to act on findings without re-reading the codebase. Locally, the main session will work through findings in severity order with minimal, targeted fixes and run bun run check + bun test after each. In CI, the workflow will turn each finding into a GitHub PR review comment.
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.

