Skip to content
Scaffolding
Skill

/security-review

Review the branch's pending changes for security problems against Every App's security page (docs/security.md), with pnpm security-review (Claude Code's scanner plus this repository's boundaries and false-positive rules); use before opening a pull request that touches the

From plugin
every-app
1k4 skills

Claude Code

$ npx -y skills add every-app/every-app --skill security-review --agent claude-code

SKILL.md

security-review.SKILL.md
name: security-review
description: Review the branch's pending changes for security problems against Every App's security page (docs/security.md), with pnpm security-review (Claude Code's scanner plus this repository's boundaries and false-positive rules); use before opening a pull request that touches the perimeter, identity, Cloudflare Access, OAuth, tokens or secrets.

Security review

When

Before a pull request that touches the perimeter (`packages/perimeter`, public routes included), identity (the SDK's verifier, the Gateway's sessions and sign-in), Cloudflare Access, OAuth, tokens (personal tokens, MCP connections, deploy keys) or secrets. Other changes don't need it. Not for prose: `docs/`, `prompts/`, `landing-page/content/`, `*.md` and `pnpm-lock.yaml` are not reviewed, and a branch that changes only those is refused as nothing to review.

The model reads the diff as instructions too: the review is a second pair of eyes on your own changes, never a gate on a stranger's. On a contributor's branch read the diff yourself first, and read their changes to `scripts/`, `.claude/`, `.agents/` and `package.json` before running the command, which runs the branch's own copy of the script.

The command

From the checkout root:

pnpm security-review                 the branch against origin/main, plus the working tree
pnpm security-review --base main     against another ref
pnpm security-review --staged        only what is committed or staged
pnpm security-review --json          the findings as JSON
pnpm security-review --model opus    another model than Claude Code's default

It is one non-interactive Claude Code run (`claude -p --restricted`) on your own Claude Code login, with read-only tools confined to the checkout (Read, Grep, Glob: no commands, no edits, no MCP servers, and the branch's own `.claude` settings and hooks ignored), over the diff since the branch left the base plus whatever is edited and not yet committed, untracked files included. A file whose name only ever holds credentials (`.env`, `*.pem`, `providers.env`, `accounts.json`, the list in `scripts/security-review.mjs`) is never sent; stderr names what was sent and what was kept back. When the diff is too long for one prompt it runs again with the file list and no diff, and the model reads the files. It needs `claude` on PATH and signed in (https://docs.claude.com/en/docs/claude-code). Expect a few minutes and the run's tokens; the summary line prints the cost.

The prompt is `scripts/security-review.mjs` putting together the audit prompt of Anthropic's security review for Claude Code (`scripts/security-review/audit-prompt.md`, pinned to the upstream commit named in it), this repository's boundaries (`scripts/security-review/scan-instructions.md`: the one list, don't copy it elsewhere), its false-positive rules (`scripts/security-review/false-positives.md`) and a pointer to `docs/security.md`, the page every finding is judged against. There is no CI job: the review runs where you run.

Reading the output

One block per finding: `SEVERITY file:line category`, what is wrong, the exploit scenario (which actor from `docs/security.md` does what), the fix. Exit 1 while a high or medium finding remains, 0 when none does (a low finding is printed and does not fail), 2 when the review could not run (no `claude`, nothing to review, no answer it could read). `--json` gives `{ branch, base, mergeBase, files, rulesChanged, findings[], summary, counts, run }` (`run`: the cost, the duration, the model, whether the diff went). A deleted file is listed as `path (deleted)`. When the branch changed the review's own rules (`scripts/security-review/`, the script, this skill), a stderr line names the files: `*.md` keeps them out of the diff, so read them.

With a finding

1. Real: fix it on the branch, pin it with a test, and run the review again. Change `docs/security.md` only when the fix changes a boundary or closes one of its known gaps. 2. A false positive: say so in the pull request body under "Security review", with the finding and the rule in `false-positives.md` or the precedent in `docs/security.md` it matches. When the same false positive will come back for every pull request, add a rule to `false-positives.md` in the same pull request, as its own commit, worded for the class and not for the one finding. 3. Never edit the rules to make one pull request pass, and never run the review with permissions widened: the script restricts the tools on purpose, and the model needs nothing more than reading to review.

Read more
@every-app
Ships withevery-app

From the team behind OpenSEO (28k ⭐) Make every SaaS open source Lots of people are cloning desktop apps, but what about the next generation of web apps? Self host open source apps and personal software with one command.

Stars on GitHub

Momentum

stars in total
1.0k
Star history of every-app/every-app on GitHub, a chart by star-history.com

Other skills on every-app.

build-every-app

build-every-app

Build or change an app on EveryApp: create one, add a feature, a page, a table, an AI tool, a capability, a public route or a…

@every-app@every-appInstall Skill
everyapp

everyapp

Create, run, deploy and manage private web apps on Cloudflare with everyapp (EveryApp). Use before running any everyapp command,…

@every-app@every-appInstall Skill
port-to-every-app

port-to-every-app

Builds a new EveryApp app with the core features of any software product, from its public website or a GitHub repository's page,…

@every-app@every-appInstall Skill

More skills from other plugins.

next-forge

next-forge

Expert assistance for next-forge — a production-grade Turborepo template for Next.js SaaS apps. Triggers on questions about…

next-forge5mo7.8k
@vercel@vercelInstall Skill
blog-style

blog-style

Use when drafting or editing a blog post or long-form article in the house voice.

eve3d5.9k
@vercel@vercelInstall Skill
nubase

nubase

Use when the user mentions Nubase broadly, wants a backend for an AI-generated app, or needs to deploy/publish generated code…

nubase13d621
@ottermind@ottermindInstall Skill
fireact-builder

fireact-builder

Helps customize and extend Fireact SaaS apps after installation. Auto-detects Fireact projects by checking for @fireact.dev/app…

main2mo562
@fireact-dev@fireact-devInstall Skill

Questions about security-review.

Which coding agents can use security-review?
security-review installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.