red-team-remediation
Structured protocol for processing red-team audit reports without causing regressions. Wraps the iterative-planner with 5 anti-regression phases: INGEST…
от stelios12312312★ 20 звёзд на GitHub
Установить red-team-remediation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Red Team Remediation
Core Principle: Fix the pattern, not the instance. Test the invariant, not the fix.
Every audit-fix cycle that causes regressions shares the same failure modes:
- Narrow fixes — fix 1 of N instances of the same anti-pattern
- No blast-radius analysis — change shared code without mapping dependents
- Tests guard the fix, not the invariant — test passes, but invariant still violable elsewhere
- Arbitrary ordering — fix symptoms before root causes, so root-cause fixes invalidate earlier work
- No generalization — each finding treated in isolation
This skill prevents all five.
When to Use This
| Situation | Use |
|---|---|
| Red team audit report with 3+ findings | Red Team Remediation |
| Post-audit remediation that has already caused regressions | Red Team Remediation |
| Systematic codebase hardening (security, integrity, performance) | Red Team Remediation |
| Single finding, clear fix, no shared code | Iterative Planner (standard) |
| Non-audit work (features, refactors) | Iterative Planner or Lightweight |
Trigger phrases: "red team this", "fix this audit", "remediate these findings", "process this audit report", "harden against this"
Relationship to Iterative Planner
This skill wraps the iterative planner. It adds 3 phases before and 1 phase after:
┌─────────────────────── Red Team Remediation ───────────────────────┐
│ │
│ INGEST → TRIAGE → ┌─── per-finding loop ───┐ → REGRESSION-GATE │
│ │ GENERALIZE │ │
│ │ ↓ │ │
│ │ ITERATIVE PLANNER │ │
│ │ (EXPLORE→PLAN→EXECUTE │ │
│ │ →REFLECT→CLOSE) │ │
│ └────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────┘
Filesystem: Uses plans/ (same as iterative planner). Remediation-specific files (triage.md, blast-radius.md, generalization-log.md, scorecard.md) live in {plan-dir}/.
Iterative planner activation: Each finding enters the iterative planner's standard state machine. The iterative planner's SKILL.md rules (mandatory re-reads, autonomy leash, complexity control, code hygiene) all apply within the FIX phase.
Protocol Overview
stateDiagram-v2
[*] --> INGEST
INGEST --> TRIAGE : findings parsed
TRIAGE --> GENERALIZE : dependency order determined
GENERALIZE --> FIX : pattern search complete
FIX --> GENERALIZE : next finding
FIX --> HOLD : user input needed
HOLD --> FIX : user responds
FIX --> REGRESSION_GATE : all findings fixed
REGRESSION_GATE --> CLOSE : all gates pass
REGRESSION_GATE --> FIX : regression found
CLOSE --> [*]
Phase 1: INGEST
Purpose: Parse the audit report into structured, actionable findings.
Steps
- Read the audit report — identify each finding.
- Parse into structured format — write
{plan-dir}/triage.mdwith one entry per finding:
## F-001 | [severity] | [title]
**Code proof**: [files + lines from audit]
**Affected modules**: [list of files]
**Current state**: OPEN
Count baseline tests — run your project's test command and record the starting test count. Write to
triage.mdheader.Capture baseline test results — run the full test suite and record pass/fail count. Any pre-existing failures are noted as
KNOWN_FAILING.Read tech debt register — read
plans/knowledge/tech-debt.md. Check if any findings touch areas flagged as structurally fragile. Note intriage.md.Scope Expansion (MANDATORY) — For each module referenced in the audit findings: a. List all files in the same package directory. b.
grep_searchfor all files that import from or are imported by the audited module. c. Add discovered files to the audit surface. d. For each discovered file, do a 60-second scan: does it contain the same semantic patterns as the audited module? If yes → add totriage.mdas[ADJACENCY_REVIEW].Why: Adjacency discovery prevents bugs from hiding in sibling modules that share the same patterns but are never audited.
e. Reference script scan — search for
smoke_*,example_*,demo_*files related to the modules in scope. These scripts demonstrate how existing infrastructure is meant to be used and often reveal capabilities that are not obvious from reading exports alone.
Exit Criteria
- All findings parsed into
triage.md - Baseline test count and pass/fail recorded
- Tech debt register consulted
- Scope expansion complete — adjacent modules discovered an
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/audit-formats.md
FAQ
Что делает скилл red-team-remediation?
Structured protocol for processing red-team audit reports without causing regressions. Wraps the iterative-planner with 5 anti-regression phases: INGEST, TRIAGE, GENERALIZE, FIX, REGRESSION-GATE. Addresses root causes of fix-regression cycles: narrow fixes, missing blast-radius analysis, tests guarding fixes instead of invariants, arbitrary fix ordering, and no generalization.
Как установить скилл red-team-remediation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл red-team-remediation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…