Command Palette

Search for a command to run...

Назад к скиллам
скилл № 17638

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от 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:

  1. Narrow fixes — fix 1 of N instances of the same anti-pattern
  2. No blast-radius analysis — change shared code without mapping dependents
  3. Tests guard the fix, not the invariant — test passes, but invariant still violable elsewhere
  4. Arbitrary ordering — fix symptoms before root causes, so root-cause fixes invalidate earlier work
  5. 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

  1. Read the audit report — identify each finding.
  2. Parse into structured format — write {plan-dir}/triage.md with one entry per finding:
## F-001 | [severity] | [title]
**Code proof**: [files + lines from audit]
**Affected modules**: [list of files]
**Current state**: OPEN
  1. Count baseline tests — run your project's test command and record the starting test count. Write to triage.md header.

  2. Capture baseline test results — run the full test suite and record pass/fail count. Any pre-existing failures are noted as KNOWN_FAILING.

  3. Read tech debt register — read plans/knowledge/tech-debt.md. Check if any findings touch areas flagged as structurally fragile. Note in triage.md.

  4. Scope Expansion (MANDATORY) — For each module referenced in the audit findings: a. List all files in the same package directory. b. grep_search for 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 to triage.md as [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
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • 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), без исполняемых скриптов.

Похожие скиллы

Сравнить red-team-remediation с