secure-code-review
Skill1 starsChanged 2 months agoMITView on GitHub
Review code, a diff, or a PR for real security and correctness bugs — not style nitpicks. Use before merging anything that crosses a trust boundary (service-to-service calls, user input, file/network I/O, auth checks), whenever the user asks for a code review or security review, or before a patent PoC / project component gets treated as production-ready. Prioritizes exploitable findings over cosmetic ones.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- 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
- Hayatelin/devsecops-skillstheir own version, first seen Jun 27, 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
- Hayatelin/devsecops-skills★ 0same 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 repository29 other files it gives its agents.
- agent-system-designSkill
- api-contract-designSkill
- architecture-designSkill
- architecture-optimizationSkill
- code-handoffSkill
- cross-ai-handoffSkill
- crypto-storage-auditSkill
- database-designSkill
- dataset-sourcingSkill
- distributed-debuggerSkill
- embedded-constrained-codingSkill
- freedom-to-operate-analysisSkill
- frontend-architectureSkill
- github-masterSkill
- idea-finderSkill
- ieee-paper-drafterSkill
- ml-model-selectionSkill
- ml-security-auditSkill
- mobile-platform-architectureSkill
- observability-designSkill
- patent-drafterSkill
- patent-novelty-evaluatorSkill
- performance-optimizationSkill
- project-scaffoldingSkill
- researcher-evaluatorSkill
- researcherSkill
- safety-compliance-scopingSkill
- scale-refactorSkill
- test-architectSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
1
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 12
Don't review line-by-line in isolation — a change that looks fine alone can break an invariant defined elsewhere in the file.
“Common” is measured: kept by at least 6 in 10 of the 8 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
Secure Code Review
A review that produces forty style comments and misses the one auth bypass is worse than no review — it burns the reviewee's attention on noise and buries the thing that matters. This skill finds the thing that matters first.
Read the whole diff/file before judging anything
Don't review line-by-line in isolation — a change that looks fine alone can break an invariant defined elsewhere in the file. Understand what the code is supposed to guarantee before checking whether it does.
Check these classes explicitly, in priority order
- Trust boundaries — every point where data crosses from a less-trusted zone to a more-trusted one (user input, another service's response, a file read, a sensor reading, a retrieved document). Is it validated at the boundary, or does validation happen somewhere downstream where it's easy to skip on a new code path?
- Auth/authz — is every internal service-to-service call actually authenticated, or does the code assume "it's internal, it's fine"? That assumption is the single most common real-world breach vector in distributed systems — internal trust is not a security boundary.
- Race conditions / TOCTOU — check-then-act patterns on shared state, especially across async boundaries or between a permission check and the operation it gates.
- Injection — anywhere a string gets built from untrusted input and then interpreted (SQL, shell, template, deserialization). Check the actual sink, not just whether input "looks sanitized."
- Error handling that swallows security-relevant failures — a caught exception that logs and continues past a failed auth check or failed validation is a silent bypass.
- Secrets — hardcoded keys/tokens, secrets in logs, secrets in error messages returned to a client.
- Unsafe defaults — fail-open instead of fail-closed on any check that matters.
Output format
## Critical
- [location] — [the actual exploit scenario, concretely, not "this could be unsafe"] — fix: [specific change]
## High / Medium / Low
- same formatRank by exploitability, not by how easy the finding was to spot. A theoretical issue with no realistic attacker path goes in Low even if it's technically incorrect; an easy-to-trigger auth gap goes in Critical even if the fix is a one-liner. State plainly if nothing critical was found — don't manufacture severity to look thorough.
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.

