Skip to content
Back to skills

aftermath

ASecurity

Post-failure recovery when something already broke: test suite went green to red, same error repeats after a fix, build or dependency resolution fails, a test is flaky, a merge conflicts, a destructive command is blocked, a forward edit is frozen, user says "you broke it", or the fix touched files outside scope. Stop, revert cheap damage, diagnose honestly, return to last-known-good. Supports lite/full/ultra, opt-in checkpoint autoRevert. Use ONLY for recovery after failure, not for planning ...

  • 15 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 24, 2026
ai-agentsgobash

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add moah0911/aftermath --skill assets --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of aftermath?

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

Security grade badge for aftermath
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/moah0911-aftermath/badge)](https://www.skillsdirectory.com/skills/moah0911-aftermath)

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: aftermath
description: >
  Post-failure recovery when something already broke: test suite went green to
  red, same error repeats after a fix, build or dependency resolution fails, a
  test is flaky, a merge conflicts, a destructive command is blocked, a forward
  edit is frozen, user says "you broke it", or the fix touched files outside
  scope. Stop, revert cheap damage, diagnose honestly, return to last-known-good.
  Supports lite/full/ultra, opt-in checkpoint autoRevert. Use ONLY for recovery
  after failure, not for planning new work.
license: MIT
---

# Aftermath — using the recovery agent

You are operating the Aftermath recovery skill. Most skills teach how to build; this one fires **after something already broke**. Invoke it when any of these hold: a test suite went green to red, the same error recurred after a fix, a destructive command was blocked, a forward edit was frozen, the user corrected you, or the fix touched files outside scope.

## The ladder

Stop at the first rung that holds, before your next edit:

1. Uncommitted / one file / cheap to undo? → Revert now. Do not patch forward.
2. Last-known-good exists? → Diff it, isolate one change, revert just that.
3. 2nd+ failed attempt at the same fix? → State exact error, state theory, ask.
4. Next action irreversible? → Confirm state explicitly. Never assume.
5. Filling a gap with a guess? → Say so out loud. Never continue silently.
6. User just corrected you? → Do not defend. Find the diff. Fix only that.

Honesty: never hide a break. Never silently revert. Never invent an unverified root cause.

## Intensity and commands

- Levels: `lite` (suggest) · `full` (default: stop, diagnose, ask) · `ultra` (guards + opt-in checkpoint autoRevert) · `off`. Switch: `/aftermath [lite|full|ultra|off]`.
- `/aftermath-status` — what changed since last-known-good · `/aftermath-revert` — undo the last change, nothing more · `/aftermath-audit` — scope-creep scan · `/aftermath-log` — one-line postmortem · `/aftermath-checkpoint status|clear|restore` — inspect, clear, or manually restore checkpoints · `/aftermath-init` — initialize the project with destructive-safe paths.
- Enforcement: OpenCode blocks destructive commands and forward edits at full/ultra; checkpoints restore at ultra when `autoRevert` is enabled. Other hosts inject the ladder and block destructive Bash. `aftermath init` writes the project's safe/protected paths so artifact deletes are allowed and source is not.

## Full behavior (read these, this file is only the entry point)

- `skills/aftermath/SKILL.md` — the canonical skill: persistence, enforcement, checkpoints, attempt ledger, output pattern, intensity table.
- Category playbooks: `skills/test-regression/SKILL.md` · `skills/retry-loop/SKILL.md` · `skills/destructive-action/SKILL.md` · `skills/build-failure/SKILL.md` · `skills/flaky-test/SKILL.md` · `skills/dependency-failure/SKILL.md` · `skills/merge-conflict/SKILL.md` — loaded when their signal fires.
- `hooks/` — lifecycle wiring (instruction builder, mode config, checkpoint store, signal detectors, destructive policy). `AFTERMATH.md` — the always-on ladder source.

Files in this skill

  • .claude-plugin/marketplace.json510 B
  • .claude-plugin/plugin.json263 B
  • .codex-plugin/plugin.json171 B
  • AFTERMATH.log116 B
  • AFTERMATH.md767 B
  • AGENTS.md948 B
  • SKILL.md2.4 KB
  • assets/README.md278 B
  • assets/aftermath.txt488 B
  • assets/icon.png7.3 KB
  • assets/logo.png21.3 KB
  • commands/aftermath-audit.md606 B
  • commands/aftermath-log.md662 B
  • commands/aftermath-revert.md717 B
  • commands/aftermath-status.md510 B
  • commands/aftermath.md705 B
  • docs/agent-portability.md1.2 KB
  • hooks/aftermath-config.js3.3 KB
  • hooks/aftermath-instructions.js3.2 KB
  • hooks/aftermath-signals.cjs2.1 KB

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 ai-agents →

Comments

Loading comments…

Newsletter

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