agentleFS
opelplepleopelpleple/meta-skills/red-team/SKILL.md

red-team

Skill0 starsChanged 5 months agoMITView on GitHub

Attacks the user's own plan, design, code, or argument the way a motivated adversary or reality would, to surface the holes before a real opponent finds them. Use this skill when the user says "find the flaws", "poke holes in this", "what could go wrong", "stress-test this", wants a security or robustness review, is about to ship or launch something, is finalizing a strategy, or asks you to attack/break their work. Best right before a commitment point, when the cost of a hidden weakness is about to jump.

28 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use retro, architecture and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AWSSkill

    retro

    Conduct a retrospective on a coding session.

    Also in 4 projects that use this

  • AnthropicSkill

    architecture

    Create or evaluate an architecture decision record (ADR). Use when choosing between technologies (e.g., Kafka vs SQS), documenting a design decision with trade-offs and consequences, reviewing a system design proposal, or designing a new component from requirements and constraints.

    Also in 3 projects that use this

  • AWSSkill

    wizard

    Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.

    Also in 3 projects that use this

  • GoogleSkill

    codebase-design

    Shared 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.

    Also in 4 projects that use this

  • GoogleSkill

    domain-modeling

    Build and sharpen a project's domain model. Use when the user wants to pin down domain terminology or a ubiquitous language, record an architectural decision, or when another skill needs to maintain the domain model.

    Also in 4 projects that use this

  • MicrosoftSkill

    grill-with-docs

    Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.

    Also in 4 projects that use this

  • +3 more from google

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 27 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the user needs encouragement to start, not reasons to stop.

    line 19
  2. Distinctive:

    Pick your adversaries and put on each mask in turn: Run distinct passes, e.g.:

    line 24
  3. Distinctive:

    Every finding paired with a mitigation, so it's actionable, not just discouraging.

    line 39

“Common” is measured: kept by at least 6 in 10 of the 27 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Red Team

Switch sides. Become the attacker, the competitor, the failure mode, or Murphy's Law — and try to break the thing the user just built, on purpose.

When to use

  • Right before shipping, launching, publishing, or signing.
  • Security/abuse review: "how would someone exploit this?"
  • A strategy or plan that an opponent (competitor, regulator, adversary) could counter.
  • A claim or argument going in front of a hostile audience.
  • Anything where the cost of a missed weakness is high and rises after commitment.

When NOT to use

  • Early brainstorming, where attacking ideas kills the generative phase. Diverge first, red-team later.
  • When the user needs encouragement to start, not reasons to stop.
  • Trivial, reversible decisions where the failure cost is near zero.

The method

  1. Define the target and the win condition precisely. What exactly are you attacking, and what counts as "broken"? "The plan fails" is vague; "an attacker reads another user's data" or "the launch misses its date" is a target.
  2. Pick your adversaries and put on each mask in turn. Run distinct passes, e.g.:
    • The malicious attacker — wants to exploit, steal, abuse, or cheat.
    • The competitor — wants to out-maneuver, copy, or undercut you.
    • Reality / Murphy — no intent, just everything that can fail will: outages, edge cases, bad inputs, scale, time.
    • The hostile critic — wants to discredit the argument publicly.
  3. For each mask, ask "how do I win against this?" Generate concrete attacks, not vague worries. Name the exact input, move, or condition.
  4. Probe the seams. Attacks live at boundaries: trust boundaries, handoffs, assumptions, "this will never happen," default configs, the unhappy path, the 10x-load path, the malicious-input path.
  5. For each attack, rate severity × likelihood. A devastating-but-impossible attack and an annoying-but-certain one are different problems. Sort by the product.
  6. Steelman the defense, then attack again. For the top attacks, imagine the best fix, then try to break that. Stop when remaining attacks are low-severity or genuinely hard.
  7. Deliver the kill list. Ranked attacks, each with: the exact exploit, why it works, severity × likelihood, and the cheapest mitigation.

What good looks like

  • Specific, reproducible attacks — a concrete input/move, not "security could be better."
  • At least one finding the user clearly hadn't considered.
  • Honest severity ratings, including downgrading scary-sounding but trivial issues.
  • Every finding paired with a mitigation, so it's actionable, not just discouraging.
  • Coverage across multiple adversary types, not just one favorite angle.

Anti-patterns

  • Vague FUD: "this might not scale" with no scenario. Name the load and the breaking point.
  • Attacking the person, not the work. Red-team the artifact, never the author.
  • Only finding flaws you already know how to fix. Push into uncomfortable territory.
  • No prioritization: a flat list of 30 issues is as useless as none. Rank them.
  • Forgetting the boring adversary: most real failures are Murphy, not a genius hacker.

Example

Target: a referral feature giving $10 credit per signup. Win condition: extract money without real referrals. Attacker mask: "I script 10,000 throwaway emails, self-refer, cash out $100k in credit." Seam probed: the trust boundary assumes one human per email. Reality mask: "two legit users refer each other in a loop." Severity × likelihood: high × high — this will be hit on day one. Mitigation: credit only unlocks after the referred account makes a verified action with cost (a real payment), not at signup. Re-attack the fix: "I make one real $1 purchase to unlock $10" — so cap credit at the verified spend. Kill list delivered, ranked, with the cheapest patch first.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.