agentleFS
bestdeejay-designbestdeejay-design/agent-skills/skills/security-review/SKILL.md

security-review

Skill5 starsChanged 4 months agoMITView on GitHub

Security review orchestrator for dependency lockfiles and source: inventory of lockfiles/manifests (npm, pip, cargo, go, gem, maven, gradle, composer), exit-code classifier for 13 security tools (semgrep, bandit, gitleaks, osv-scanner, pip-audit, trufflehog, checkov, trivy, grype, npm audit, cargo audit), JSON normalizer to a unified finding schema, and human-readable reports. Stdlib-only Python helper + workflow for OWASP-aligned security review.

187 other projects use a version of this.

Adopted by

Most recently taken up by

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.
  • tpavanipradeepSkill

    kotlin-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-ySkill

    configure-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

  • InfopibeSkill

    content-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

  • InfopibeSkill

    ralphinho-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

  • mryeastcodeSkill

    pytorch-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

  • berntpoppSkill

    dependency-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

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 165 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not use as a dedicated secret scanner.

    line 101

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Security Review — dependency & static analysis orchestration

Load this skill when you need to run a security review of a codebase: audit the dependency manifest/lockfile inventory, decide which scanner to run per ecosystem, interpret scanner exit codes correctly (real findings vs. infrastructure errors), and normalize reports from different tools into one unified schema for a final report.

The helper script is offline by design — it inventories, classifies, and normalizes. Actual scans are executed by the well-known external tools listed below (install once locally or in CI).


The helper script

scripts/security_review.py — pure Python 3 stdlib (no dependencies).

CommandPurpose
security_review.py inventory --dir . List dependency locks with ecosystem + suggested tool
security_review.py inventory --dir . --jsonSame, machine-readable
security_review.py classify --tool semgrep --exit-code 1Explain what a tool exit code means
security_review.py normalize --tool osv-scanner --input out.jsonFlatten a tool JSON report into unified findings
security_review.py normalize --tool pip-audit --input pip.json --output report.jsonSave unified report
security_review.py report --root .Report skeleton (markdown default, --json for JSON)

Lockfile inventory (per-ecosystem suggested tool)

Lockfile / manifestEcosystemSuggested tool
package-lock.json, pnpm-lock.yaml, yarn.locknpm / pnpm / yarnnpm audit / osv-scanner
requirements*.txt, pyproject.toml, Pipfile.lock, poetry.lockpippip-audit
Cargo.lockcargocargo audit
go.mod, go.sumgoosv-scanner
Gemfile.lockgemosv-scanner
pom.xml, build.gradle(.kts)maven / gradleosv-scanner / dependency-check
composer.lockcomposerosv-scanner

package.json alone (no lockfile) is still reported, so gate or scan it with npm audit.


Exit-code semantics (verified August 2026)

Get each tool's meaning on the fly with classify --tool X --exit-code N.

Tool0findingserror / other
semgrepclean1 (findings)2 fatal; 3/4/5/7/8/13/99 specific errors
banditclean1 (issues)2 error
gitleaksclean1 (leaks or error)126 unknown flag
pip-auditclean1 (vulns)—
osv-scanner v2clean1 (vulns)127 error, 128 no packages, 129 API failed, 130 config
npm auditclean1 (vulns)—
cargo auditcleannon-zero (vulns / errors)—
grypeclean2 (vulns ≥ fail-on)1 error, 100 DB update
truffleclean183 (findings, only with --fail)1 error
checkovclean1 (failed checks)2 error
trivyclean1 (vulns, with --exit-code)—
dependency-checkclean1 (vulns ≥ threshold)—

Rule of thumb: exit 0 == "no findings" only for tools listed as clean=0; other codes are infra errors and must not be treated as "vulnerable".


Workflow

  1. Inventory — security_review.py inventory --dir <project> --json → know exactly which lockfiles exist and which tool applies.
  2. Scan — run the suggested tool per row above with its JSON format (see references/canonical-patterns.md for exact CLI + JSON shapes; e.g. semgrep JSON with --json, osv-scanner --json, pip-audit --format json, gitleaks --report-format json, bandit -f json).
  3. Classify exits — in CI, map exit codes via classify so 1 = findings, 2+ = infra error.
  4. Normalize — normalize --tool <t> --input <scanner.json> → unified findings (ruleId/rule/level/message/path/line/col).
  5. Report — merge all normalized findings into one report (markdown or JSON), present severity rollup.

When NOT to use

  • Not a scanner itself — it does not detect vulnerabilities; it orchestrates/normalizes the real scanners. Run the real tools.
  • Not a secret detector — use the secret-scanner skill for credentials/tokens.
  • Not a web scanner — OWASP Top-10 dynamic testing is out of scope.

Success criteria

  • inventory lists every lockfile in the target directory with correct ecosystem + suggested tool.
  • classify --exit-code matches the verified table above for your installed tools.
  • normalize produces a valid unified report for the 5 built-in formats (osv-scanner, pip-audit, semgrep, gitleaks, bandit).
  • CI gate: exit 1 on real findings, EXIT_NEUTRAL (or 2) on infra errors, clean on 0.

Boundaries

  • Do not use as a dedicated secret scanner; use secret-scanner for credential detection.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.