secure-code-review
Skill0 starsChanged 5 months agoMITView on GitHub
Run a security-focused review pass over a diff, PR, or file. Trigger when the user says "security review this", "is this PR safe to merge", "review for vulnerabilities", or before merging code that touches auth, input handling, data access, or external requests.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- hemapriyan-rk/claude-rigor-skillstheir own version, first seen Sep 26, 2026
- nahid-sparktales/agent-dispatchertheir own version, first seen Sep 21, 2026
- alizafarbati/opencode-agents-mcptheir own version, first seen Sep 8, 2026
- ShieldNet-360/secure-vibetheir own version, first seen Jul 9, 2026
- xAmirHamza77/PenKit51their own version, first seen Jul 6, 2026
- JayRHa/AgentSkillstheir own version, first seen Jun 9, 2026
Used with
Projects with it also use secrets-management and incident-response.
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.
xfstudioSkillsecrets-management
Implement secure secrets management for CI/CD pipelines using Vault, AWS Secrets Manager, or native platform solutions. Use when handling sensitive credentials, rotating secrets, or securing CI/CD environments.
Also in 3 projects that use this
AnthropicSkillincident-response
Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.
Also in 4 projects that use this
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- zebbern/claude-code-guide★ 4.6ksame name
- UnitOneAI/SecuritySkills★ 78same name
- nahid-sparktales/agent-dispatcher★ 59same name
- Robotti-io/copilot-security-instructions★ 42same name
- Hack23/European-Parliament-MCP-Server★ 28same name
- ShieldNet-360/secure-vibe★ 22same name
- JayRHa/AgentSkills★ 11same name
- xAmirHamza77/PenKit51★ 2same name
- alizafarbati/opencode-agents-mcp★ 1same name
- hemapriyan-rk/claude-rigor-skills★ 1same name
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 repository8 other files it gives its agents.
- ci-security-gateSkill
- dependency-auditSkill
- dockerfile-hardeningSkill
- env-hygieneSkill
- sbom-generationSkill
- secret-rotationSkill
- secscanSkill
- threat-modelSkill
The file
Files
When to use
- Reviewing a PR or diff before merge, especially one touching auth, user input, DB/queries, file I/O, outbound requests, or crypto.
- The user asks "any security issues here?" or wants a second pass focused only on vulnerabilities (not style).
- Complements
secscan(automated) — this is the human-grade reasoning pass.
Process
- Get the diff scope:
git diff main...HEADor the PR's changed files. Review the change, not the whole repo, but read enough surrounding code to judge data flow. - Trace untrusted input from entry point to sink — where does external data reach a query, command, file path, template, or response?
- Walk the checklist below against the changed code.
- For each finding, assign a severity (Critical/High/Medium/Low) and write the exact file:line, the risk, and a concrete fix.
- Distinguish real exploitable issues from theoretical ones; don't drown the author in noise.
- Output a prioritized list, Critical/High first.
Checklist
- AuthN/AuthZ — every new endpoint/action checks identity AND permission; no missing per-object authorization (IDOR); no trusting client-supplied user IDs, roles, or
is_adminflags. - Input validation — untrusted input validated/allow-listed at the boundary; length/type/format enforced.
- Injection — SQL/NoSQL parameterized; no string-built queries; no
shell=True/os.systemon user input; no command, LDAP, or template injection. - SSRF — outbound URLs from user input are allow-listed; no fetching arbitrary user-supplied URLs/IPs (block internal ranges & metadata endpoints).
- Insecure deserialization — no
pickle/yaml.load/Java native deser on untrusted data; use safe loaders. - Secrets — no hardcoded keys/tokens/passwords; config from env/secrets manager.
- Crypto — strong algorithms (AES-GCM, SHA-256+, bcrypt/argon2); no MD5/SHA1 for security; TLS verification on;
secretsnotrandomfor tokens. - Error handling / info leak — no stack traces, SQL, or secrets in responses/logs; fail closed; generic error messages to users.
- XSS / output encoding — output encoded for its context; no
dangerouslySetInnerHTML/innerHTMLwith untrusted data; safe templating. - Access control on files/paths — no path traversal (
../), uploads validated for type/size and stored outside the web root.
How to fix
- For each finding give the specific remediation: parameterize the query, add the authz check at line X, swap
random→secrets, allow-list the URL host, switchyaml.load→yaml.safe_load, encode the output. - Recommend the framework-native control where one exists (the ORM's binding, the framework's CSRF token, the platform's secrets store).
- Flag anything that needs a follow-up ticket vs. must-block-merge.
Report back
Output findings grouped by severity (Critical → Low), each with file:line, one-line risk, and the fix. Lead with a verdict: "block merge — N critical/high issues" or "approve — only low-severity notes". Note what you reviewed and any areas you couldn't fully assess.
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.

