About security-review
security-review is a code-change security review skill for reviewers. It focuses on diffs and related call paths, with a concrete checklist and severity-based findings format.
Key features
- 01Check authentication and authorization
- 02Review input handling and data safety
- 03Inspect secrets and configuration risks
- 04Check network and server security
- 05Review dangerous APIs and deserialization
- 06Group findings by severity with fixes
Use cases
- 01Review a code diff before merging
- 02Check access control for sensitive actions
- 03Find risks in input, uploads, and path handling
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ icodecraft/ anti-slop --skill security-reviewAfter installing, type/security-reviewin Claude Code to confirm it loaded.
Details
From the project READMESecurity Review
Review the current change like a security-minded senior. Prefer concrete findings over generic advice.
Scope
Focus on the diff and directly related call paths. Do not audit the whole repo unless asked.
Checklist
Auth & access
- Every sensitive action checks authentication and authorization
- IDs from the client are not trusted for ownership (
userIdin body ≠ proof) - Admin/debug routes are gated; no "temporary" open endpoints
Input & data
- User input is validated at the boundary (type, length, allowlist)
- SQL/NoSQL/search queries are parameterized — no string concat
- HTML/Markdown/user content is escaped or sanitized where rendered
- File uploads: size limits, type allowlist, stored outside web root, randomized names
- Path joins cannot escape intended directories (
../)
Secrets & config
- No secrets in source, logs, client bundles, or example env files with real values
- New env vars documented; defaults are safe for production
- Tokens/passwords not written to analytics or error trackers
Network & server
- Outbound fetches do not accept raw user URLs without allowlisting (SSRF)
- CORS is least-privilege; credentials only when required
- Cookies:
HttpOnly,Secure,SameSitewhere applicable
Dangerous APIs
- No
eval,dangerouslySetInnerHTML, shellexecwith unsanitized input - Deserialization of untrusted data is avoided or hardened
- Crypto/auth libraries are standard — no home-rolled JWT/crypto
Output format
Group findings:
| Severity | Rule | Where | Why it matters | Fix |
|---|---|---|---|---|
| Critical / High / Medium / Low / Note | short name | file:line or symbol | 1 sentence | concrete change |
End with:
- Blockers — must fix before merge
- Safe to ship with follow-ups — optional
If no issues: say so explicitly and list what you checked.
Comments
Markdown supported