/mattpocock-skills:red-teamfrom mattpocock-skills
Adversarial security and threat modeling review of a spec before ticketing.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Adversarially probe a specification for security flaws, race conditions, authorization bypasses, and business logic vulnerabilities before tickets are created.
code-review verifies that code matches the spec and adheres to coding standards. If the spec itself contains design vulnerabilities or overlooks adversarial behaviour, code-review will give vulnerable code a clean pass because the implementation faithfully matches a flawed design.
red-team runs immediately after /to-spec and before /to-tickets. It adopts the perspective of an attacker with full internal knowledge of the system and hardens the specification.
Read the active specification from the conversation context, or fetch the spec file or issue referenced by the user (for example: docs/specs/<feature>.md).
Also inspect GLOSSARY.md and relevant ADRs to understand established authentication, tenancy, and data isolation boundaries.
Evaluate the proposed feature against five primary attack vectors:
SELECT ... FOR UPDATE), atomic database increments, distributed locks, or optimistic concurrency version checks.-100 dollars, buy 0 items to trigger free gifts, or send integer values exceeding standard bounds??limit=1000000) or unindexed filter parameters that cause full table scans?Do not merely write a separate report that gets forgotten. Update the specification document directly by adding or updating a dedicated section:
## Security Constraints & Threat Mitigations
- **Concurrency & Locking**: <Required locking or atomic transaction mechanisms>
- **Authorization & Tenancy**: <Explicit tenant scoping and object ownership checks>
- **Input Boundaries & Validation**: <Strict schema validation, numerical bounds, and sanitization>
- **Rate Limiting & Abuse Prevention**: <Maximum batch sizes, request throttling, and pagination bounds>
- **State Machine Integrity**: <Valid transition checks and webhook verification requirements>
Summarise the identified threats and the newly added defensive requirements in plain language:
/to-tickets.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./code-reviewReview the changes since a fixed point (commit, branch, tag, or merge-base) along three axes: Standards (does the code follow this repo's documented coding standards?), Spec (does the code match what the originating issue/spec asked for?), and Security (does the code protect authorization, concurrency, DTOs, and input validation?). Runs all reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".