Security cycle

From senda-labs/DQIII8 · View interactive version

Security cycle is an AI agent skill from the GitHub repository senda-labs/DQIII8. Run iterative red-team/blue-team cycles until the codebase is hardened. Each cycle runs /red-team, then /blue-team, then /red-team again to verify fixes hold. Stops when red-team finds 0 CRITICAL and 0 HIGH findings.

How to use this skill

Skill file

/security-cycle — Iterative Security Hardening

Run red-team → blue-team → red-team cycles until the code is a bunker.

Usage

/security-cycle                     # Full cycle on current project
/security-cycle --max-iterations 5  # Limit iterations
/security-cycle $ARGUMENTS          # Cycle on specific path

Pipeline

Iteration N:

  1. Run /red-team → generates red-team report at tasks/audit/red-team-{date}-{N}.md
  2. Count CRITICAL + HIGH findings in the report
  3. If 0: STOP — code is hardened
  4. If > 0: Run /blue-team → fixes findings, generates tasks/audit/blue-team-{date}-{N}.md
  5. Run /red-team again → verify fixes hold + find new issues
  6. Repeat until CRITICAL + HIGH = 0 or max iterations reached (default: 10)

Stopping criteria

After all iterations:

Generate: tasks/audit/security-cycle-{date}.md

# Security Cycle Report — {date}

## Iterations: {N}

| Iteration | Critical | High | Medium | Low | Fixed |
|-----------|----------|------|--------|-----|-------|
| 1 (red)   | 3        | 5    | 12     | 8   | —     |
| 1 (blue)  | —        | —    | —      | —   | 8 fixed |
| 2 (red)   | 0        | 1    | 9      | 6   | —     |
| 2 (blue)  | —        | —    | —      | —   | 1 fixed |
| 3 (final) | 0        | 0    | 7      | 4   | HARDENED |

## Final Security Score: {score}/100
## Vibe-Coding Patterns Fixed: {N}
## Kill Chains Eliminated: {N}
## Total Fixes Applied: {N}

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.