security-review
Skill68 starsChanged 4 months agoMITView on GitHub
USE BEFORE committing security-sensitive changes (auth, crypto, routes, user-input handling, secret loading, templates), or when the `security-nudge` Stop hook suggests it. Audits the current diff for OWASP-Top-10-shaped issues + deps typosquatting. Read-only. Delegates to the `security-reviewer` Sonnet subagent shipped here; returns Critical / Important / Nice schema with `file:line`.
- Reads credentials
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 repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adr-newSkill
- arch-mapSkill
- codex-sandboxSkill
- conventions-initSkill
- dynamic-checkSkill
- explain-diffSkill
- glossary-initSkill
- init-repoSkill
- log-structuredSkill
- process-diagramSkill
- refresh-context-mapSkill
- repo-doctorSkill
- repo-mapSkill
- session-logSkill
- stack-checkSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 165 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Before committing changes that touch authentication, authorization, cryptography, user-input handling, file/path operations, request …
- Very specific: line 25
When the security-nudge Stop hook prints a one-liner suggestion.
- Distinctive: line 59
If diff is empty, report "no changes to review" and stop.
- Distinctive: line 67
Ask the user: "Fix all Critical findings, address one specific finding, or commit as-is and address later?"
- Distinctive: line 75
Never silently downgrade tiers: If the subagent reported a finding as Critical, surface it as Critical.
- Distinctive: line 77
Always relay the full report: Do not trim the "Out of scope" section — it tells the user what wasn't covered.
- Distinctive: line 97
If you want to skip the dispatch and have Opus inline read the diff and emit a report freeform, just type "review this diff for security …
“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
When to use
- Before committing changes that touch authentication, authorization, cryptography, user-input handling, file/path operations, request handling (routes/middleware/templates), or anything that reads/writes secrets.
- When the
security-nudgeStop hook prints a one-liner suggestion. - Whenever you want a second pair of eyes on a diff before pushing — Sonnet running on isolated context will catch things Opus inline missed about a third of the time in informal testing.
What it does NOT replace
- Static analysis (Semgrep, CodeQL, Bandit) — those have rule sets built by full-time security teams. Run them separately in CI.
- Dependency vulnerability scanning (
npm audit,pip-audit,cargo audit, GitHub Dependabot). The skill flags suspicious package additions but does not check CVE feeds. - A real pentest. This is a diff review by a model, not an attacker exercising your live system.
How it runs
sequenceDiagram
participant U as User
participant M as Main session (Opus)
participant S as security-reviewer (Sonnet)
U->>M: /security-review
M->>M: git diff --cached
M->>S: Task: review this diff for OWASP Top 10 patterns
S->>S: Read diff + surrounding context
S->>S: Pattern-walk + tier findings
S-->>M: Markdown report (Critical / Important / Nice / OOS)
M->>U: Relay report verbatim + offer "fix all Critical, fix one, ignore"- Main session reads the staged diff (
git diff --cached; falls back togit diffif nothing staged). - If diff is empty, report "no changes to review" and stop.
- Delegate to
security-reviewersubagent (Sonnet, read-only). Pass:- The full diff
- The list of changed files
- The current branch and
git log --oneline -5for context
- Receive the structured Markdown report.
- Relay the report verbatim to the user. Do not paraphrase, summarize, or pre-emptively fix anything.
- Ask the user: "Fix all Critical findings, address one specific finding, or commit as-is and address later?"
Hard rules for the main session
- Never modify code from this skill's invocation. This skill is purely audit + relay. If the user says "yes, fix the Critical findings," that's a separate main-session step — exit this skill first.
- Never silently downgrade tiers. If the subagent reported a finding as Critical, surface it as Critical. The user decides priority.
- Always relay the full report. Do not trim the "Out of scope" section — it tells the user what wasn't covered.
Why a subagent, not inline
The benchmark series in bench/archive-token-savings-thesis/ showed that
subagent dispatch is usually a cost loss vs Opus inline. We accept that
cost here because:
- Deterministic output schema. Sonnet returns Critical/Important/Nice tiers every invocation; Opus inline produces prose of varying shape. Downstream tooling (e.g., a CI gate that only blocks on Critical) can parse the structured output.
- Context isolation. A read-only subagent cannot accidentally "fix" findings mid-review — eliminating the class of bugs where the reviewer becomes the implementer.
- Cost-not-amortized work. Security review is naturally bounded (one diff in, one report out). It doesn't benefit from main-session warm cache the way iterative coding does.
If you want to skip the dispatch and have Opus inline read the diff and emit a report freeform, just type "review this diff for security issues" without invoking the skill — the model will do it. The skill exists for the cases above (schema, isolation, structured-output workflows).
Codex parity
The same skill ships in Codex via scripts/install-codex.sh. The
subagent is at .codex/agents/security-reviewer.toml (generated from
agents/security-reviewer.md by scripts/gen-codex-agents.py).
Tunables
- The
security-nudgeStop hook fires when net-new code crosses 80 LOC and at least one changed file matches a sensitive-path pattern (*auth*,*login*,routes/,api/,*crypto*,*payment*,templates/,*.env*, …). Override threshold via env varCLAUDE_LEVERAGE_SECURITY_NUDGE_LOC.
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.

