/mattpocock-skills:security-auditfrom mattpocock-skills
Security audit for code changes, APIs, and data access. Use when auditing code diffs for vulnerabilities, reviewing authorization and tenant isolation (AuthZ, IDOR, BOLA), validating database row locking (SELECT FOR UPDATE), checking DTO sensitive data exposure, or enforcing input schema strictness.
Ships in mattpocock-skills. 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.
Read when SKILL.md points to them.
Examine code diffs and entrypoints for authorization flaws, race conditions, sensitive data leakage, and improper input validation.
security-audit acts as the third axis in code-review (alongside Standards and Spec) or runs independently over any diff between HEAD and a fixed point. When dispatched as a subagent, always start it with a fresh context window.
Inspect every entrypoint in the diff (API routes, tRPC procedures, Server Actions, GraphQL resolvers, background job handlers, and webhook receivers) against four critical security areas:
where: { id, organizationId }), rather than fetching the object first and checking permissions in application memory?SELECT ... FOR UPDATE, an atomic database decrement with RETURNING, or an optimistic concurrency check (comparing a version or updatedAt field)?.strict()) to prevent mass assignment, unrecognized properties, or prototype pollution?Report findings grouped by severity:
Vulnerabilities that allow unauthorized data access, privilege escalation, account takeover, or arbitrary data mutation without credentials.
Race conditions leading to double spending or state corruption, missing ownership checks on mutation endpoints, or plain-text leakage of sensitive credentials.
Missing input strictness, potential information disclosure in error messages, or missing rate limiting on public routes.
For each finding, provide:
If no security issues are found, state "Security audit: no vulnerabilities identified in the diff." Under 400 words.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub op3616windows/superskills --plugin mattpocock-skills50 skills in this plugin
/ask-mattAsk which skill or flow fits your situation. A router over the skills in this repo./brownfield-onboardSurvey an existing brownfield codebase, detect conflicting domain terminology, and bootstrap GLOSSARY.md and foundational ADRs./chief-of-staffPursue a long-running goal in a single session by co-ordinating subagents./claude-handoffHand the current conversation off to a fresh background agent that picks up the work immediately.