Skill Revocation Sweep
ASecurityUse when a skill is being retired, deleted, revoked or replaced, above all one withdrawn because it was unsafe or wrong. Removing the registry entry does not revoke a skill, because an agent can rebuild it from residual carriers such as installed copies, published packages, archives, transcripts and memory entries. List every surface that carries the skill, clear them in one pass with the source first, leave a tombstone that says the skill was withdrawn and why, and test revocation by whether...
- 72 stars
- 0 votes
- 0 copies
- 1 view
- Added November 28, 2026
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add Tibsfox/gsd-skill-creator --skill skill-revocation-sweep --agent claude-codeAre you the author of Skill Revocation Sweep?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tibsfox-skill-revocation-sweep)---
name: skill-revocation-sweep
description: >
Use when a skill is being retired, deleted, revoked or replaced, above all
one withdrawn because it was unsafe or wrong. Removing the registry entry
does not revoke a skill, because an agent can rebuild it from residual
carriers such as installed copies, published packages, archives,
transcripts and memory entries. List every surface that carries the skill,
clear them in one pass with the source first, leave a tombstone that says
the skill was withdrawn and why, and test revocation by whether the
behaviour can still be rebuilt, not by whether the directory is gone.
Distinct from skill-causal-curation (decides keep, repair or retire) and
done-retirement (work items, not skills). Backed by the OBLIVION
skill-unlearning benchmark (arxiv 2608.08264). Triggers on retiring,
deleting or revoking a skill.
description-frequency: on-demand
user-invocable: true
version: 1.0.0
format: 2025-10-02
triggers:
- "retire or delete this skill"
- "this skill was unsafe, make sure it is really gone"
- "is the old skill still reachable anywhere"
updated: 2026-11-27
status: ACTIVE
source: arxiv 2608.08264 (OBLIVION, operational skill unlearning)
---
# Skill Revocation Sweep
Retiring a skill is an erasure across surfaces, not a directory move. This
skill lists the places one skill lives, clears them in a single pass, and
checks the result by trying to get the behaviour back.
## Why
Deleting a skill from the registry does not revoke it: a deployed agent may
still reconstruct the skill from residual carriers such as archives,
transcripts, schemas or memory entries. OBLIVION (arxiv 2608.08264), a
controlled benchmark and defense harness, therefore treats skill unlearning as
an operational problem whose target is rebuilding through primitive tools, not
parameter-level forgetting. It models each episode as a source-to-sink
workflow, erases coherently across surfaces to reduce residual carriers, and
adds remediation near dangerous sinks. In its own benchmark, on the locked 88
attack episodes the no-defense arm reaches formal attack success rate 1.0; the
defense reduces it to 0.114 while keeping locked utility at 1.0 and the benign
block rate at 0.
This system keeps one skill in several places, and its own tooling says so:
`skill-creator skill retire <name> --project`, run from the repository root,
moves a skill out of the auto-load path and, when a `project-claude/` source
exists, warns that `node project-claude/install.cjs` will resurrect it. The
move itself keeps a full copy in `.claude/skills-retired/<name>/`, one
`restore` away. The installed copy, the retired copy, the source, a published
package, the lines in other skills that route to it, a memory entry that
restates its steps and the session traces that recorded it being followed are
all carriers.
## Data classes touched
Reads and removes skill files (project-internal), index entries and memory
lines. Boundary rules: (1) the sweep runs on a retire decision that has
already been made, and anything it removes from shared state (the tracked
source tree, a published package, memory) is proposed first and applied on the
operator's go; (2) a tombstone says that a skill was withdrawn and why, and
never repeats the withdrawn instructions or any `never-surface` content.
## How
1. **Classify the removal.** *Routine* (superseded, unused, merged into
another skill): the goal is no auto-activation and no dangling reference.
*For cause* (unsafe, wrong, compromised source): the goal is that the
behaviour cannot be rebuilt or re-induced. Steps 2-4 apply to both; steps
5-7 are required for cause.
2. **Inventory the carriers.** Search for the skill name and for two or three
of its distinctive anchors (a command, a flag, a phrase), including hidden
and gitignored paths (`.claude/`, `~/.claude/`, `.planning/patterns/`),
which a default search skips. Put the name into a command only when it
matches `^[a-z0-9-]{1,64}$`, the validator's rule for a skill name; a name
with any other character is reported to the operator and never reaches a
shell.
| Surface | Where | Action |
|---|---|---|
| source | `project-claude/skills/<name>/`, with its entry in `project-claude/manifest.json` and its line in `docs/skills-source-of-truth.md` where it has them | remove from the tree, or the installer redeploys it |
| installed copy (project) | `.claude/skills/<name>/` | from the repository root, `skill-creator skill retire <name> --project --reason="..."` (moves it to `.claude/skills-retired/<name>/`; undo with `skill-creator skill restore <name> --project`) |
| installed copy (user) | `~/.claude/skills/<name>/` | `skill-creator skill retire <name> --reason="..."` (user scope is the default) |
| retired copy | `.claude/skills-retired/<name>/`, `~/.claude/skills-retired/<name>/` | routine: leave it, it is the undo; for cause: it is the full skill one `restore` away, so propose deleting the directory |
| published copy | a package or plugin in a public repository | withdraw with the operator; copies already installed elsewhere cannot be recalled |
| indexes | `.claude/skills/.skill-index.json`, a generated `CAPABILITIES.md`, typed-graph edges | regenerate; the index file is rebuilt when it is absent, so propose removing it instead of editing it |
| references | other skills' Integration and "Distinct from" lines, commands, agents, `CLAUDE.md` | repoint or delete |
| memory | `MEMORY.md` lines, topic files and handoffs that restate the procedure | rewrite as a tombstone |
| descendants | skills whose recorded lineage names this skill | for cause: list them and review each |
| traces | session records in `.planning/patterns/`, transcripts | cannot be erased; the withdrawal is recorded by the tombstone (step 5) and by the line `skill retire` appends to `retirements.jsonl` in the retired directory |
| history | git history, archives, backups | cannot be erased; rely on steps 5 and 6 |
3. **Propose the whole pass, then clear it on the operator's go, source
first.** Source (with its manifest entry and source-of-truth line, where
present), then installed copies (and, for cause, the retired copy), then
indexes, then references, then memory lines. A sweep that stops halfway leaves a state in which the
installer or a routing line restores the skill. A published copy is
withdrawn with the operator separately.
4. **Verify by search**, again including hidden and gitignored paths. The
name and the anchors match only the tombstone, the `retirements.jsonl`
record and, for a routine removal, the retired copy; hits in traces,
transcripts and git history are reported as residual.
`node project-claude/install.cjs --dry-run` prints neither an install
line nor a missing-source warning for the skill, and listing
`.claude/skills/<name>/` and `~/.claude/skills/<name>/` finds no
directory. Do not use `skill-creator list` as this check: it reads
`.skill-index.json`, which can lag the directory, so a skill that is
installed and loading can be missing from its output.
5. **Write the tombstone (for cause).** One line in always-loaded memory: the
skill name, the date withdrawn, the reason in a clause, and "withdrawn, do
not re-create". No procedure text.
6. **Guard the sink (for cause).** If the harm ran through one action (a
command, a write to a path, an outward call), propose a deterministic check
at that action: a hook or a test. Propose it; do not install it.
7. **Test by rebuild (for cause).** In a fresh planning-only subagent that
has not read the withdrawn skill during this sweep, give the task the
skill used to trigger on and read the plan. If the withdrawn procedure
reappears, find the carrier that supplied it and return to step 2. A
directory listing is not this test.
### Robustness rule
Judge revocation by whether the behaviour can still be produced, not by
whether the name still appears. A renamed copy, a paragraph in a handoff or a
trace that replays the steps is a carrier even when a search for the name
returns nothing, which is why step 2 searches for anchors as well.
## Confidence / failure model
The inventory is a search plus an **LLM judgment** about which hits are
carriers, and it can miss a paraphrased copy. The rebuild test is one planning
probe: a clean plan does not prove the behaviour is unreachable. The rates
quoted above belong to the paper's benchmark and its harness-level defense,
not to this procedure; the carrier table, the source-first order and the
tombstone are this skill's design. Fail-closed defaults: (a) a surface that
cannot be cleared (history, transcripts, a published copy installed
elsewhere) is reported as residual, never counted as cleared; (b) a removal
for cause with no tombstone is not finished; (c) nothing is deleted from
shared state or a published location without the operator.
## When to skip
- The skill is being edited in place under the same name. Once the operator
has accepted the edit, redeploy that one file with
`node project-claude/install.cjs --only .claude/skills/<name>/SKILL.md --force`.
A rename is not skipped: the installer never removes the old-named
installed directory, so sweep the old name as a routine removal.
- The retire decision has not been made: that is `skill-causal-curation`.
- A work item is being retired, not a skill: that is `done-retirement`.
## Integration
- **skill-causal-curation** — decides keep, repair or retire. This sweep runs
after a retire verdict.
- **skill-counterfactual-audit** — shares the "retire this skill" trigger; it
measures before the verdict, this sweep runs after it.
- **skill-injection-guardian** — a file that fails vetting after it was
installed is a removal for cause.
- **cue-anchored-memory** — the tombstone is an index line whose cue is the
skill name.
- **trace-to-skill-inducer** — does not induce from sessions run under a
skill named in a tombstone or in `retirements.jsonl`; its lineage record is
what the descendants row in step 2 reads.
- **skill-name-provenance-check** — a withdrawn name is one more name not to
recommend from recall.
- **typed-skill-graph-selection** — drop the node and its edges when the
indexes are regenerated.
- **security-hygiene** — its rule against bypassing user confirmation for
skill changes is applied here to deletions and to proposed hooks.
## Version scope
`skill-creator skill retire` and `restore` (scope flags, the
`skills-retired` directory, `retirements.jsonl`) and
`install.cjs --dry-run`, `--only` and `--force` were checked against this
repository's source on 2026-11-27. On that date `skill-creator list` printed
37 project skills from an index built in June while 61 were installed.
Files in this skill
- SKILL.md
- triggering.test.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.