agentleFS
CassioRoosCassioRoos/godfly-skills/skills/red-blue-review/SKILL.md

red-blue-review

Skill1 starsChanged 3 months agoMITView on GitHub

Examine concrete attack and failure paths, then design prevention, detection, containment and recovery. Use for red team, blue team, threat models, attack paths or defense plans. General engineering review belongs to morpheus; component failure inventories belong to failure-analysis.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    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:

    Use opposing lenses to find what breaks and what defends it.

    line 15
  2. Distinctive:

    If there is no evidence for a control, say "control not demonstrated." A design promise is not a control.

    line 84

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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/Blue Review

Use opposing lenses to find what breaks and what defends it. Do not list generic risks. Produce concrete attack paths, failure paths, and mitigations.

Inputs To Gather

  • The artifact: code, diff, design, ADR, spec, migration, runbook, or launch plan.
  • The asset at risk: money, data integrity, availability, privacy, developer time, customer trust.
  • The threat or failure model: malicious actor, operator error, dependency failure, scale, bad data, ambiguous requirements.
  • The deployment context: environments, permissions, observability, rollback path.

Red Team

Act like the system will be misused, overloaded, misconfigured, or attacked.

Check:

  • Trust boundaries and privilege escalation.
  • Input validation and malformed data.
  • Authentication, authorization, and tenant isolation.
  • Secrets handling and accidental leakage.
  • Retry storms, duplicate effects, race conditions, and idempotency gaps.
  • Silent data corruption and partial writes.
  • Missing timeouts, circuit breakers, and backpressure.
  • Operational mistakes: bad deploy, bad config, bad rollback, stale docs.

Blue Team

Defend with practical controls, not wishful thinking.

For each credible issue:

  • Prevention: code/design change that stops it.
  • Detection: logs, metrics, traces, alerts, invariants, tests.
  • Containment: rate limits, circuit breakers, feature flags, kill switches.
  • Recovery: rollback, replay, reconciliation, data repair.
  • Ownership: who notices and who acts.

Output

## Red Team Findings

### Critical
- Attack/failure path:
  Evidence:
  Impact:
  Why current controls fail:

### High
- Attack/failure path:
  Evidence:
  Impact:
  Why current controls fail:

## Blue Team Plan

- Control:
  Covers:
  Implementation:
  Validation:

## Launch Gate

- Ship:
- Block:
- Spike:

Rule

If there is no evidence for a control, say "control not demonstrated." A design promise is not a control.

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.