Skip to content
Back to skills

Sweep Supervisor State

ASecurity

Remove test-contamination records from supervisor state files

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
businessgo

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add nirecom/agents --skill sweep-supervisor-state --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sweep Supervisor State?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sweep Supervisor State
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nirecom-sweep-supervisor-state/badge)](https://www.skillsdirectory.com/skills/nirecom-sweep-supervisor-state)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sweep-supervisor-state
description: Remove test-contamination records from supervisor state files
user-invocable: true
model: sonnet
context: fork
---

# /sweep-supervisor-state

Remove the escape-hatch records that leaking test suites wrote into real supervisor state files under `~/.workflow-plans/`.

## Usage

Invoke `bin/sweep-supervisor-state.sh` with forwarded arguments.

Nothing is written unless `--apply` is passed — this member of the `/sweep` family is deliberately non-destructive by default, because it edits a governance audit trail rather than a regenerable derivative.

| Flag | Effect |
|---|---|
| `--apply` | Write the changes; the pre-modification files and a `manifest.json` are copied to a timestamped backup directory first. |
| `--ci-mode` | Emit a single-line JSON summary instead of prose. |
| `--list-signatures` | Print the reason allowlist and exit. |
| `--session <SID>` | Narrow the target set to one session. |

## When to use

Run after a test suite is found writing into the live plans dir, or when `bin/check-plans-dir-isolation.sh` reports W-candidates that already ran.

Preview with a flagless run first, confirm the reported records are test fixtures, then re-run with `--apply`.

## Guard

Sessions still in flight (`alert_phase=pending`, `audit_phase` pending or in progress, updated within 24h, or the current session) are always skipped. There is no override flag; `--session` narrows the target set but never relaxes the guard.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.