/claude-leverage:security-reviewfrom claude-leverage
Audits staged git diffs for OWASP Top 10 patterns and dependency typosquatting before committing security-sensitive changes.
Ships in claude-leverage. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
security-audit, diff-review, owasp-top-10, pre-commit, supply-chain
16 skills in this plugin
/adr-newUSE WHEN a load-bearing architectural decision is being made in conversation (database / framework / auth model / integration choice, or explicit rejection of an alternative) — one likely to be re-litigated in 6 months without the rationale. Bootstraps a numbered MADR ADR in `docs/adr/`, asks for context + decision + alternatives, updates the index. Immutable status once accepted. See `docs/adr/README.md` for the convention; full Do/Don't list in this SKILL body.
/arch-mapUSE WHEN setting up a repo for AI-first work, after a major directory restructure, or when an agent needs structured answers like "which modules are stable?" / "what's the public surface of X?" that the prose AGENTS.md doesn't give cheaply. Bootstraps or refreshes `architecture.yml` at repo root — machine-readable module metadata (path / role / stability / public_surface / depends_on / paired_with / owners). Hand-curated; the skill drafts, the user confirms. See ADR 0005 for why this file lives at root and why YAML over JSON.
/codex-sandboxUSE WHEN setting up Codex CLI in a project, tightening sandbox for prod/CI, or when user asks about Codex permissions. Interactive helper for per-project `.codex/config.toml`: `dev` / `prod` / `custom` profiles, idempotent via markers, preserves unmanaged config below the block. Codex-only artifact.
/conventions-initUSE WHEN setting up a repo for AI-first work (after /init-repo), or when the context-surface hook should start feeding repo conventions to agents before edits. Drafts `conventions.yml` at repo root: per-kind casing (inferred from the code), a vague-name denylist seed, directory roles, and a hand-filled house-rules block. Idempotent — never overwrites a populated file; re-running prints suggested additions for manual merge. Read-only on code; never invents house rules. After writing, run /refresh-context-map so the hook picks it up.
/dynamic-checkUSE WHEN the user explicitly asks to verify that this repo's DECLARED build/test/lint commands actually run ("does the quickstart work?", "validate the commands in AGENTS.md"), typically after /repo-doctor or /repo-doctor --semantic raised suspicion. Executes only commands the repo itself declares (AGENTS.md build/test blocks, README quickstart), with preview + explicit confirmation, denylist tripwire, and timeouts. Advisory — results never enter /repo-doctor's deterministic score (ADR 0012/0013). Opt-in by invocation; never fired by hooks or other skills.
/explain-diffUSE WHEN about to open a PR, when teammate asks "what's in this diff?", or when returning to a branch and needing self-orientation. Three modes: `--for pr|review|self`. Reads `git diff HEAD` (or passed range), returns 3–5 bullet plain-English narration. Read-only — defers security/test concerns to other skills.
npx claudepluginhub filip-podstavec/claude-leverage --plugin claude-leverageOther plugins' skills for the same job