security-review
Skill0 starsChanged 2 months agoMITView on GitHub
Analyze a diff or changed files for common security vulnerabilities (injection, XSS, SSRF, secrets). Defaults to staged changes. Triggers on: "security review", "check for secrets", "vulnerability scan".
- 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 repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- changelogSkill
- dependabot-sweepSkill
- markdownSkill
- merge-prSkill
- pre-prSkill
- pr-tldrSkill
- tldrSkill
- agents-searchSkill
- audit-and-fixSkill
- aws-specialistSkill
- azure-specialistSkill
- code-simplifierSkill
- create-assessmentSkill
- create-auditSkill
- create-experimentSkill
- create-inspectionSkill
- crossplane-specialistSkill
- deploy-statusSkill
- detect-flakySkill
- fix-with-evidenceSkill
- flyctlSkill
- gcp-specialistSkill
- gitSkill
- ground-firstSkill
- handoffSkill
- kubernetes-specialistSkill
- local-attestSkill
- plan-graderSkill
- post-pr-reviewSkill
- pr-conductorSkill
- project-syncSkill
- pulumi-specialistSkill
- quality-reviewSkill
- release-conductorSkill
- reproduce-bugSkill
- review-prSkill
- review-prsSkill
- rollback-prodSkill
- security-auditSkill
- smoke-testSkill
- specSkill
- terraform-specialistSkill
- terragrunt-specialistSkill
- validate-specSkill
- veracity-auditSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 165 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 105
If a PR number was given: gh pr diff <number>
- Very specific: line 106
If a file path was given: git diff HEAD -- <path>
- Very specific: line 107
If staged or no argument: git diff --cached (fall back to git diff if nothing staged)
- Distinctive: line 121
If no issues found, report "Security review: clean."
- Distinctive: line 123
Do NOT auto-fix. Report findings for the user or the calling workflow to act on.
“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
Analyze a diff or set of changed files for common security vulnerabilities.
Arguments: $ARGUMENTS (optional: a PR number, file path, or staged for staged changes. Default: staged changes.)
This is a fast checklist on one diff. For a whole-repository or subsystem audit with independently verified findings, use the security-audit skill instead.
Stack detection
Detect what's in the repo before applying checks (run once at the start):
HAS_NODE=$([ -f package.json ] && echo 1)
HAS_GO=$([ -f go.mod ] && echo 1)
HAS_PY=$([ -f pyproject.toml ] || [ -f requirements.txt ] && echo 1)
HAS_RUST=$([ -f Cargo.toml ] && echo 1)
HAS_DOCKER=$([ -f Dockerfile ] || [ -f compose.yml ] || [ -f docker-compose.yml ] && echo 1)
HAS_K8S=$(ls k8s/*.yaml charts/ 2>/dev/null | head -1)Apply only the relevant checklists below.
What this checks
OWASP Top 10 adapted per detected stack. Each category lists the globs to target and the class of issue to flag.
Frontend (if HAS_NODE and source looks like a web app)
Common frontend globs: src/**/*.{js,jsx,ts,tsx,vue,svelte}, app/**/*.{js,jsx,ts,tsx}, pages/**/*.{js,jsx,ts,tsx}, components/**/*.
- XSS: React's raw-HTML injection prop (
dangerously*), Vue'sv-html, Svelte's{@html ...}, unescaped URL params rendered into the DOM, template-literal injection into DOM sinks. - Open redirect: Unvalidated
window.location/router.pushassignments from user input or URL params. - Sensitive data in client: API keys, tokens, or secrets hardcoded in source files. Anything prefixed
NEXT_PUBLIC_,VITE_,REACT_APP_holding a secret-shaped value is a leak. - localStorage / sessionStorage abuse: Storing auth tokens or sensitive data without namespacing; reading without validation.
- Dependency risk: New npm dependencies added. Run
npm audit(orpnpm audit/yarn audit) and flag known CVEs at moderate+ severity. - CSP / headers: Regressions in
Content-Security-Policy,X-Frame-Options,Referrer-Policy,Permissions-Policy.
Backend (Go, if HAS_GO)
Globs: **/*.go (excluding **/*_test.go unless the test introduces real endpoints).
- SQL injection: String concatenation in queries instead of parameterized statements (
$1,$2, or driver-specific placeholders). - Auth bypass: New routes without the project's auth middleware; protected endpoints that don't call a
RequireAuth/RequireAdminwrapper. - CORS misconfiguration: Wildcard
*origins combined withcredentials: true; reflectedOriginheader without allowlist. - Secret exposure: Hardcoded secrets, API keys, database URLs in Go source or config files.
- Path traversal: User-controlled file paths without
filepath.Clean+ containment checks. - SSRF:
http.Get/http.NewRequeston URLs derived from user input without an allowlist. - Deserialization:
json.Unmarshalintointerface{}combined with type assertions on unvalidated input.
Backend (Node/TS, if HAS_NODE and there's server code)
Globs: api/**/*.{ts,js}, server/**/*.{ts,js}, app/api/**/*.{ts,js} (Next.js route handlers), middleware.{ts,js}.
- NoSQL/SQL injection via unparameterized queries.
- Prototype pollution: unsafe
Object.assign/ spread into user-provided JSON. - Auth bypass, CORS, secret exposure, path traversal, SSRF: same as Go section above.
- Weak crypto:
crypto.createHash('md5')orsha1for anything security-relevant.
Backend (Python, if HAS_PY)
Globs: **/*.py (excluding tests).
- SQL injection: f-string / %-format SQL instead of parameterized cursors.
- Shell injection:
subprocess.*(shell=True)with user-controlled args;os.system. - Unsafe deserialization: Python's binary object-serialization module (flag imports and
loadscalls against untrusted input — prefer JSON); YAML withoutSafeLoader. - Auth, CORS, secrets, path traversal, SSRF: same mental model as above.
Data / config files
Globs: any tracked data file (data/**, content/**, project-specific generated files), plus .env*, config/**, infra/**.
- Credential leakage: Database URLs, API keys, tokens accidentally committed.
- SQL injection via migration: Dynamic SQL or unsanitized interpolation in migration files (
migrations/**.sql,db/migrate/**).
Docker / Kubernetes (if detected)
- Privileged containers:
privileged: true,allowPrivilegeEscalation: true. - Hostpath mounts that expose the host filesystem.
- Secrets in env blocks: plaintext values in
env:whereenvFrom: secretRefis the right pattern. latestimage tags in production manifests.
Steps
- Determine the diff to review:
- If a PR number was given:
gh pr diff <number> - If a file path was given:
git diff HEAD -- <path> - If
stagedor no argument:git diff --cached(fall back togit diffif nothing staged)
- If a PR number was given:
- For each changed file, map to the applicable checklists above based on path and file extension.
- Classify each finding:
- CRITICAL: Exploitable vulnerability (XSS, SQL/NoSQL injection, auth bypass, credential exposure, SSRF with internal network reachable).
- WARNING: Potential issue needing review (new dependency with unclear provenance, broad CORS, missing input validation, weak crypto).
- INFO: Best practice suggestion (namespace localStorage keys, add rate limiting, tighten CSP, prefer typed query helpers).
- Report as a table:
| Severity | File | Line | Finding | Recommendation |
- If no issues found, report "Security review: clean."
Do NOT auto-fix. Report findings for the user or the calling workflow to act on.
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.

