/flagrare:security-auditfrom Flagrare
Reviews staged diffs and lockfile changes for high-confidence, exploitable vulnerabilities (injection, authn/authz, secrets, deserialization, crypto misuse, SSRF). Only reports findings with a concrete exploit path.
Ships in Flagrare. 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.
No em-dashes. Nothing this skill writes may contain an em-dash; use a comma, colon, or parentheses instead. Enforced by a repo hook that flags em-dashes in generated
.md. See/flagrare:write-docs.
A focused security pass over a change. The job is narrow on purpose: find the vulnerabilities that a senior security engineer would confidently raise in review, and stay silent about everything else. A security review that flags twenty theoretical issues gets ignored; one that flags the two real ones gets acted on. Noise is the enemy, not thoroughness.
This skill is the single source of security truth for the collection. It runs two ways:
/flagrare:implementation-review, a parallel subagent whose brief pulls in this skill's content, the same way Checks 2 to 4 pull in /flagrare:testing-philosophy. Diff-scoped, fast./flagrare:security-audit), when you want a deliberate pass on demand.Only report a finding you can attach a concrete exploit path to, and only when you are over 80% confident it is actually exploitable. Everything else in this skill serves that rule.
A finding is worth reporting when you can name the untrusted input, trace it to the dangerous sink, and describe the attack in a sentence. If you cannot do that, it is a hunch, and a hunch in a security report is noise that trains the reader to skip the whole thing.
Score every candidate before reporting it:
| Confidence | Meaning | Action |
|---|---|---|
| 0.9 to 1.0 | Certain exploit path, you could write the payload | Report |
| 0.8 to 0.9 | Clear known-bad pattern with a real trigger | Report |
| 0.7 to 0.8 | Suspicious, needs specific conditions to fire | Report only if HIGH impact |
| below 0.7 | Speculative | Drop it, do not mention it |
Resolve the scope first, because it differs by how the skill was invoked:
implementation-review (a commit gate): the staged diff, git diff --staged. That is exactly what is about to be committed./flagrare:security-audit): the change under review, which is rarely staged yet. Resolve it in this order and use the first that is non-empty: an explicit target the user named (a file, a path, "the auth changes"); the branch diff against its base, git diff $(git merge-base HEAD origin/HEAD)...HEAD plus uncommitted work (git diff HEAD); or, failing a base, the full working-tree diff. The point is to never review an empty git diff --staged and report "no vulnerabilities" when the actual change is sitting unstaged. If you truly cannot find a change to review, say so rather than reporting clean.Whichever scope resolves, extend it to the trust boundary it lands in: a one-line change to an authorization check pulls in the surrounding auth path, not just the changed line, because the bug is usually in the code the diff assumes rather than the line it edits. Review security implications the change newly introduces. Do not audit pre-existing issues the change merely sits near; that is a separate, deliberate effort.
Input validation and injection
Authentication and authorization
Secrets and data exposure
Crypto and code execution
Math.random() for tokens, static IV, ECB mode, weak password hashingpickle, unsafe YAML load, Java/PHP object injection, eval on dynamic inputWork in three phases. The first two are what separate a real review from pattern-matching on keywords.
Phase 1: Understand the repo's security model. Before judging the diff, look at how the codebase already defends itself. What validation and sanitization helpers exist? What auth middleware wraps the endpoints? Is there an ORM that parameterizes queries, or is it raw SQL? A finding only makes sense relative to the existing model: raw string interpolation is damning in a codebase that parameterizes everywhere, and expected in one that has its own escaping layer you have not read yet.
Phase 2: Compare the change against that model. Where does the diff deviate from the established secure pattern? New code that rolls its own auth check instead of using the middleware, or builds a query by hand where everything else uses the query builder, is where vulnerabilities enter. Deviation is the signal.
Phase 3: Trace the data flow. For each modified file, follow untrusted input from where it enters (request params, headers, uploaded files, external API responses) to where it does something dangerous (a query, a shell, a file path, an HTML render, a deserializer). A vulnerability is a path from a source to a sink with no adequate sanitization in between. If you cannot draw that path, you do not have a finding.
You do not need to run the code to confirm a vulnerability; read it. This pass is read-only for the code-vuln findings (the dependency audit below is the one exception that runs a tool).
When the staged diff touches a lockfile or manifest, a dependency was added or bumped, and a bump can pull in a version with a known published vulnerability (a CVE). Detect the repo's package manager from the lockfile present and run its native auditor. This is the one place the skill shells out.
| Ecosystem | Lockfile present | Command |
|---|---|---|
| npm | package-lock.json | npm audit |
| pnpm | pnpm-lock.yaml | pnpm audit |
| yarn | yarn.lock | yarn npm audit |
| Python | poetry.lock, uv.lock, requirements*.txt | pip-audit |
| Rust | Cargo.lock | cargo audit |
| Go | go.sum | govulncheck ./... |
| Ruby | Gemfile.lock | bundle audit |
| PHP | composer.lock | composer audit |
Degrade gracefully. If the detected auditor is not installed, do not fail the review and do not guess. Report a single advisory finding: "lockfile <name> changed and <tool> is not available; run your dependency auditor," and name the packages the diff added or bumped so the reader knows what to check.
When running inside implementation-review Check 7, scope the audit report to the packages the diff actually changed rather than the whole tree, so the commit gate stays fast and quiet. The full-tree audit is what a standalone run surfaces.
These are the calls a security engineer makes automatically and a checklist gets wrong. Applying them is most of what keeps this review credible. Do not report:
dangerouslySetInnerHTML, bypassSecurityTrustHtml, or a similar explicit escape hatch. These frameworks auto-escape..md files are not attack surface.Assume UUIDs are unguessable and do not need validation.
Where we diverge from the built-in security-review: it excludes dependency CVEs as "managed separately." We keep them, because they are a real and common way vulnerabilities ship, and because the audit is cheap and deterministic. That is the dependency-audit step above, kept separate from the code-vuln pass so the precedents here stay clean.
Report findings in this shape, most severe first:
# Vuln 1: SQL injection: `api/users.ts:42`
- Severity: HIGH
- Confidence: 0.9
- Category: sql_injection
- Description: `userId` from the request query is interpolated directly into the SQL string, with no parameterization.
- Exploit: GET /users?id=1 OR 1=1 returns every user; a UNION payload reads adjacent tables.
- Fix: use the parameterized query builder already used in `api/orders.ts:88`.
For the commit-gate synthesis inside implementation-review, collapse to the house line format so it sits alongside the other checks:
Check 7 · Security
✓ No vulnerabilities in the diff
✗ `api/users.ts:42` SQL injection (HIGH): `userId` interpolated into query, use the parameterized builder
⚠ lockfile changed, `pip-audit` unavailable, run your dependency auditor (added: requests 2.19.1)
Severity: HIGH is directly exploitable (RCE, data breach, auth bypass). MEDIUM needs specific conditions but has real impact. LOW is a lower-impact or defense-in-depth issue. In the commit gate, HIGH and MEDIUM block; LOW is advisory. Report MEDIUM only when it is obvious and concrete.
/flagrare:staleness-audit
↓
/flagrare:implementation-review ← Check 7 pulls in THIS skill
↓
git commit
Or standalone, any time a change touches auth, user input, secrets, or untrusted data, and before shipping anything security-sensitive.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
43 skills in this plugin
/atdd-planProduce an ATDD-first implementation plan in Claude Code's native plan mode, with named design patterns called out where they earn their keep. The skill enters plan mode automatically (via the EnterPlanMode tool), runs /flagrare:codebase-explore to ground the plan in the actual codebase, then produces a plan-mode plan that MUST include both: (1) 3-5 acceptance tests in plain English defining 'done' before any implementation, written behavior-first against the public API only; and (2) any non-trivial structural decisions named as design patterns with a one-line rationale. Plan mode's native approve/edit/reject button UI is the close, ExitPlanMode is how the skill ends. Use whenever the user wants to plan a feature, fix, or refactor, 'how should we implement X', 'plan this', 'let's design X', 'where do we start on Y'. Tests follow Kent Dodds Testing Trophy: behavior over implementation, integration-heavy, public-API-only, refactor-proof. The skill stops at the plan; it does not write implementation code./brag-docGenerate a comprehensive, impact-framed brag-doc entry for a chosen time window (day, week, biweek, month, or custom). Pulls authored PRs, reviews given, commits, deploys, and linked tickets across GitHub, local git, and configured MCPs, then synthesises a themed narrative, leading with outcomes, quantifying impact, owning the work in first-person past tense, separating IC contributions from amplification, and naming the judgment exercised. Output is designed to drop straight into a developer journal, a personal bragging sheet, or a performance-review packet. Accepts a mode argument, `/flagrare:brag-doc resumancer` renders the output as ready-to-paste Resumancer CLI commands (`resumancer impact "..." --branch ...`) instead of markdown. Use whenever the user says "brag doc", "brag sheet", "what did I do this week", "weekly recap", "monthly recap", "performance review prep", "what should I tell my manager", "summarise my impact", "career log entry", "give me my wins", "biweekly recap", or any variant about looking back over a longer window than a single day's standup. Also trigger near review season ("self-review", "perf packet", "evaluation prep"), and on phrases like "log my wins to resumancer" or "make resumancer entries for this week" (which should pass the `resumancer` mode). For windows longer than about a month, a tenure retrospective, a departure record, or "everything I did at this company", hand off to `/flagrare:impact-timeline` instead; this skill's window tops out at a month./bug-bashProgrammatic bug bashing, ingest a prescribed test plan (Notion, markdown, pasted spec), drive a real running system (browser via Chrome DevTools / Playwright MCP, backend via API tools when relevant), run every prescribed case with evidence, then do exploratory passes (viewports, edge inputs, multi-actor flows, codebase-driven concerns, additional context like meeting transcripts, emails and links checked in the real inbox with a control case, other languages, failures and races) without ever claiming a bug it didn't itself reproduce. Fills free-text fields with tagged, playful test data that also probes something (unicode, HTML, template syntax, length). Lands results in a local MD file by default, optionally writes back to the source (Notion bug DB, test case Eng QA columns, etc.) in the user's voice. Use whenever the user says 'bug bash', 'QA this feature', 'run the test cases', 'go through this test plan', 'verify these scenarios', 'do a bash on X', when they hand over a Notion test case page, or any time programmatic end-to-end verification of a feature against a checklist is needed. Also use it when a smoke test passed but the user wants more cases tested, or asks 'what else should we test' and then 'test it yourself'. Make sure to use this skill even when the user just says 'test this Notion page' or 'check these scenarios', anything that smells like running someone else's prescribed test plan against a live system./careerRun the career skills that are due, in one pass, and return one short combined digest plus an updated board. It reads timestamps and flags to decide: the promotion map's first run when there is none (after asking), a refresh of map sections that are older than 90 days or flagged by a scan, an opportunity scan when the last one is a month old, and an impact scan every time. The digest leads with the initiative the user owns and its next step, then up to 5 threads worth weighing in on, one line on the promotion map (open rubric rows, people who haven't seen the work, when to talk to the manager, the packet deadline), anything that needs the user, and an "all answering, nothing owned" warning when the user keeps replying but owns nothing. A scheduled run (from /loop or a schedule) never asks questions and never posts; it lists what needs the user as pending. Use when the user says "career", "career check", "career digest", "run my career skills", "what should I do for my promotion this week", "daily career scan", or sets up a recurring career run. Also trigger for a scheduled career run./codebase-exploreExplore the codebase to map conventions, reusable utilities, analogous features, and data flows relevant to a planned change. Returns raw findings (file paths, patterns, code snippets), does NOT produce a plan. Used by /flagrare:atdd-plan as its codebase understanding step./communication-setupSet up, change or remove how Claude talks to you: a custom output style with your reply rules, a reminder of those rules on every message, and a Stop hook that quietly nudges Claude when a reply runs a little long and blocks one that runs far past your limit. Use when the user says Claude's replies are too long, exhausting, hard to skim, full of process narration or caveats, 'you make me work for the information', 'talk to me shorter', 'communication setup', 'set up how you talk to me'; when the length check or reply-length hook blocked a reply it shouldn't have, or the user wants a different limit or style; or asks to remove or undo it ('remove communication setup', 'go back to normal replies').npx claudepluginhub flagrare/agent-skills --plugin flagrareOther plugins' skills for the same job