security-review

security-review is a skill for Claude Code, Codex from patrickserrano/lacquer. It costs 115 tokens per session (681 once invoked), scanned A, original, MIT.

An adversarial review of code changes before they are merged. It looks for concrete security failures involving areas such as login permissions, untrusted input, secrets, shell commands, databases, and file access.

In plain words
What is it for?
Use it to review a branch, pull request, or working tree for injection, path traversal, secret leaks, and other security risks.
Why use it?
It helps find vulnerabilities before a change reaches users or production systems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review a branch, pull request, or working tree for…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/patrickserrano/lacquer/security-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add patrickserrano/lacquer --skill security-review
Clone the repo
git clone --depth 1 https://github.com/patrickserrano/lacquer

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for security-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/patrickserrano/lacquer/security-review.svg)](https://agentmods.dev/skills/patrickserrano/lacquer/security-review)
Your own site
<a href="https://agentmods.dev/skills/patrickserrano/lacquer/security-review"><img src="https://agentmods.dev/badge/skills/patrickserrano/lacquer/security-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 681 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00115 $0.00681
Opus 5 $0.00057 $0.00341
Sonnet 5 $0.00023 $0.00136
Haiku 4.5 $0.00012 $0.00068

Measured 3d ago against content hash 160dfedbdb22, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

security-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

core/skills/security-review/SKILL.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Review the change adversarially — assume the diff is hostile until proven safe. Report only findings you can tie to a concrete failure scenario; do not pad with generic advice.

Scope the diff

  1. Establish the base: git diff <base>...HEAD for a branch, gh pr diff <n> for a PR, or git diff for the working tree. Read enough surrounding context to judge each hunk — never review a hunk in isolation.
  2. If the change is large, fan out: one reviewer per trust boundary (auth, input parsing, secrets, CI/exec, file I/O), then dedupe. A single pass misses cross-cutting issues.

What to hunt for

  • Injection: untrusted input (user data, github.event.*, PR titles/branch names, file contents, tool output, dependency changelogs) reaching a shell, eval, SQL, YAML, or an LLM instruction context. Trace the value from source to sink; quote both.
  • Path/traversal & symlink: writes that can escape a root, TOCTOU between check and write, following a symlink, absolute paths sneaking in through a config field.
  • Secrets: keys/tokens echoed, written to files that become artifacts, passed on a command line (visible in the process table), over-scoped, or leaking across CI jobs.
  • Privilege: CI that runs untrusted fork code on a privileged/self-hosted runner; missing least-privilege permissions:; unpinned third-party actions or tool installs.
  • Fail-open: a guard that silently passes on error, a || true that swallows a real failure, a check that no-ops when its input is missing.

Verify before reporting

For each candidate finding, state the exact inputs/state that trigger it and the resulting wrong behavior. If a nearby check already prevents it, drop the finding and say so. Default to "refuted" when uncertain — a plausible-but-wrong finding wastes more than a missed nit.

Report

Ranked, most-severe first: file:line, severity (critical/high/medium/low), the concrete exploit/failure scenario, and a suggested fix. Then a short "defenses confirmed" list so the reader knows what is already solid. If nothing survives verification, say so plainly.

Read the full file on GitHub · 51 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 51 lines · 115 tokens per session scan A 160dfedbdb22

Subscribe to this mod's changes

security-review is a skill published in the GitHub repository patrickserrano/lacquer (3 stars, last pushed yesterday), licensed MIT. It adds 115 tokens to every session and 681 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.