secure-code-review
Skill59 starsChanged 2 months agoMITView on GitHub
Review a change or a codebase for security defects with a deliberate reading order — where bugs cluster, trace source to sink, confirm reachability, and write a finding someone can actually fix. Use when asked to security-review a pull request, feature or repository, or before shipping anything touching auth, money, tenancy, uploads or secrets. Not a scanner run (its output is leads), not design-stage threat modeling, and not a penetration test — nothing here authorizes touching a running system.
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
- 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
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
- 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
- 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 repository79 other files it gives its agents.
- agent-dispatcherSkill
- agent-designSkill
- agent-evalsSkill
- context-engineeringSkill
- llm-observabilitySkill
- mcp-designSkill
- memory-designSkill
- model-routingSkill
- prompt-engineeringSkill
- prompt-injection-defenseSkill
- retrieval-ragSkill
- structured-outputSkill
- tool-designSkill
- api-contract-verificationSkill
- api-designSkill
- authenticationSkill
- authorizationSkill
- background-jobsSkill
- cachingSkill
- idempotency-and-retriesSkill
- webhooksSkill
- database-migration-verificationSkill
- data-integritySkill
- data-pipelinesSkill
- data-qualitySkill
- migrationsSkill
- postgresSkill
- query-optimizationSkill
- schema-designSkill
- accessibilitySkill
- accessibility-verificationSkill
- design-systemsSkill
- design-to-codeSkill
- frontend-designSkill
- motion-designSkill
- responsive-designSkill
- ui-auditSkill
- ux-writingSkill
- ci-cdSkill
- deploymentSkill
- dockerSkill
- github-actionsSkill
- incident-responseSkill
- observabilitySkill
- release-verificationSkill
- rollbackSkill
- component-architectureSkill
- frontend-performanceSkill
- shadcn-uiSkill
- stack-detectionSkill
- tailwindSkill
- visual-verificationSkill
- competitive-analysisSkill
- copywritingSkill
- data-analysisSkill
- deep-researchSkill
- documentation-verificationSkill
- positioningSkill
- seoSkill
- source-evaluationSkill
- The first 60 shown.
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 45
Say exactly what you did, per finding: Read, executed, tested, reproduced — these are different claims.
“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 reviewer who reads files in the order the diff lists them finds what a linter finds. The value is in reading in the order defects cluster, following untrusted input to where it does damage, and writing findings precise enough that a fix lands in the right place.
When this fires
A change is about to ship and it touches authentication, authorization, money, personal data, tenancy, uploads, deserialization, URLs or secrets; or a repository needs a security pass. Also on a report that someone reached something they should not have.
Procedure
- Fix the scope and the ground rules in writing. What is in scope, what the code is supposed to do, and — explicitly — that this is a reading exercise. Running the application, sending payloads, scanning a host or touching production is a separate, authorized act: propose it and stop and ask, naming the target and the environment.
- Get the ground truth. For a change: the actual diff, plus the callers of anything it changed — a guard removed in one file is a defect in every file that relied on it. For a repository: the route table, the entry points, and the dependency manifest.
- Read in the order defects cluster, not in file order. New or changed entry points; anything touching identity or permissions; anything building a query, command, path, URL or template; anything handling money, credentials, personal data or tenant scope; configuration and middleware (ordering, CORS, cookie flags, content security policy, dependency bumps); and last, everything labelled temporary, commented out, or added late under pressure.
- Trace each candidate both directions. Backwards to an untrusted source, forwards to the
dangerous sink, and check what the path in between actually enforces. A finding is a source, a
sink, and a path. Without the path it is a hardening suggestion — still worth saying, but say
which it is. Use the
owasp-webskill for the class-by-class patterns. - Check the cases the author did not write a test for. The other tenant, the anonymous caller, the expired or replayed token, the second identical request, the bulk endpoint, the id belonging to a different scope, the empty and the enormous input.
- Ask what changed about the rules, not only about the lines. A relaxed database constraint, a middleware registered earlier or later, a default that flipped, a dependency major version, a feature flag now on by default. These are invisible in a diff read line by line and they move the security properties of code nobody touched.
- Do not turn into a scanner. A tool hit you cannot connect to a reachable path is a lead to triage, not a finding to report. Noise trains the reader to skim the one finding that mattered.
- Say exactly what you did, per finding. Read, executed, tested, reproduced — these are different claims. "Reachable by inspection" is honest; "exploitable" requires having run it, in an environment you were authorized to run it in, and you name that environment.
- Group by root cause, not by occurrence. One unscoped shared query reachable from four handlers is one finding with four locations and one fix — at the choke point every caller goes through. Four findings invite four local patches and leave the fifth caller open.
- Write each finding so it can be fixed without you: file and line, the untrusted input, the path to the sink, the concrete consequence to a named asset, the smallest correct fix, and your confidence with what evidence would settle it.
- Rank by consequence and reachability. Unauthenticated, no preconditions, hits credentials or the whole dataset, at the top. A category name is not a severity: not every injection outranks every access-control gap, and usually the reverse.
- Report coverage and blind spots in the same document. What was read, what was skipped, what could not be assessed and why. A review with no stated limits reads as a clean bill of health it did not earn.
- Fixing and disclosing are separate decisions. Proposing a patch is part of the review; committing it, pushing it, or writing an unfixed vulnerability into a public issue or PR comment is outward-facing — stop and ask before any of those.
Checklist
- Scope agreed, and no running system touched without an explicit ask
- Diff read together with the callers of everything it changed
- Clustered reading order followed, config and middleware included
- Each candidate traced source → path → sink; hardening labelled separately
- Negative cases considered: other tenant, anonymous, replay, bulk, expired
- Rule changes (constraints, defaults, ordering, dependency majors) examined
- Tool output triaged for reachability, not pasted
- Read / executed / tested / reproduced distinguished in every claim
- Findings grouped by root cause, with the fix at the shared choke point
- Severity argued from consequence and reachability
- Coverage and blind spots stated
- Nothing committed, pushed or published without asking
Failure handling
- You cannot tell whether input is trusted — say so and name what would settle it (the caller, the middleware, the schema). An assumed-safe input is how the interesting bugs survive review.
- The path runs through code you cannot follow — dynamic dispatch, generated code, a vendored binary — report the trace as far as it goes and mark it unresolved. Unresolved is not safe.
- The fix is architectural and large — size it and say so rather than proposing a local patch that adds a second enforcement point. Two checks that can disagree are worse than one badly placed.
- You find something serious in unrelated code — report it; do not quietly widen the change. Scope is about what you touch, not about what you are allowed to notice.
- Nothing was found — say what was read and what was not. "No findings in the six handlers and the auth middleware; the queue consumers and the infrastructure config were not reviewed" is a result. "Looks fine" is not.
- The change is already merged or deployed — that changes urgency and sequencing, not the review. Report first, and let the people who own the system decide on rollback or a fix forward.
Evidence to report
The scope and what was read, by file or area; per finding, the location, the source-to-sink trace, the consequence, the fix and the confidence; the severity ranking with its reasoning; tool output with its triage; the explicit list of what was not reviewed and what could not be assessed; and, for anything you ran, exactly what you ran and against which environment.
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.

