From claude-leverage
Audits staged git diffs for OWASP Top 10 issues and dependency typosquatting before committing. Designed for pre-commit review of security-sensitive changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-leverage:security-reviewThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Before committing changes that touch authentication, authorization,
security-nudge Stop hook prints a one-liner suggestion.npm audit, pip-audit,
cargo audit, GitHub Dependabot). The skill flags suspicious package
additions but does not check CVE feeds.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"
git diff --cached; falls back to
git diff if nothing staged).security-reviewer subagent (Sonnet, read-only). Pass:
git log --oneline -5 for contextThe 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:
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).
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).
security-nudge Stop 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
var CLAUDE_LEVERAGE_SECURITY_NUDGE_LOC.npx claudepluginhub filip-podstavec/claude-leverage --plugin claude-leveragePerforms security reviews on Git diffs identifying high-confidence exploitable vulnerabilities with severity/confidence scoring, OWASP 2025 alignment, and optional GitHub PR comments.
Reviews implementation changes for vulnerabilities, insecure patterns, and coding best practices. Focuses on code deltas rather than full audits.
Runs OWASP Top 10 security audits and dependency vulnerability checks on code changes. Use for security-sensitive code, not general code review.