The operator typed #undo: reverse the last #sudo proposal or archive the entries a tag made by mistake, with their #undo-yes. Use when the [slightly-parallel] #undo or #undo-yes notice appears.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Undo A Mistake?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nmar33-undo-a-mistake)
---
name: undo-a-mistake
description: "The operator typed #undo: reverse the last #sudo proposal or archive the entries a tag made by mistake, with their #undo-yes. Use when the [slightly-parallel] #undo or #undo-yes notice appears."
---
`#undo` is the operator taking back entries nobody wanted. Archiving is
theirs: you list, they choose, you confirm, they say `#undo-yes`.
1. Call `undo_find`. If it answers with `sudo_batch`, show its numbered
`summary` with the current and restored values, then ask for `#undo-yes`.
On that reply, call `undo_apply` and show the reversal or the stale
values it reports. The approval covers the whole batch. Otherwise use
the archive flow below. If the server refuses the request, say why.
2. Show the candidates as a numbered list, one line each:
`3 · rule rl_7de70501 — "Rules for all agents …" · 16:20 · this chat`.
Mark the ones that fit what the operator said (`← from the pasted
announcement`). Ask: «Answer with the numbers to archive.»
3. Their numbers → the ids → `undo_propose {ids}`. Show its `confirm` text
as it is, and say the answer: «Reply `#undo-yes` to archive them; any
other reply cancels.»
4. On `#undo-yes`, call `undo_apply`. Say in one line what went to the
archive and that each can be restored. Refused: say why, in one line;
archive nothing.
5. «Bring back …»: `undo_restore {id}`.
{{part:undo}}