/aftermath:test-regressionfrom aftermath
Diagnoses test regressions when a green suite turns red after an edit. Diffs against last-known-good, isolates the single correlated hunk, and reverts it. Includes runner-specific failure signatures and subset re-run commands for pytest, Jest, Go, Cargo, and more.
Ships in aftermath. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A green suite just turned red. The edit caused it until proven otherwise.
ultra checkpoint.git diff against it. Isolate the single hunk that correlates with the failure.lite, propose it and wait; at full, ask before the next edit; at ultra with autoRevert: true, the plugin may already have restored it — verify the diff).retry-loop, do not vary the fix blindly.| Runner | Failure signature | Re-run the subset |
|---|---|---|
| pytest | FAILED tests/..., 1 failed, Traceback | pytest tests/test_auth.py::test_login -q |
| Jest / Vitest | ✕, 1 failed, FAIL | npx jest auth.spec -t "login" |
| Go | --- FAIL: TestLogin | go test ./pkg/auth -run TestLogin -v |
| Cargo | test result: FAILED, panicked at | cargo test auth::login -- --nocapture |
| node:test | ✖, fail 1 | node --test tests/auth.test.js |
| Mocha | 1 failing | npx mocha tests/auth.spec.js --grep login |
| RSpec | Failures:, 1 example, 1 failure | bundle exec rspec spec/auth_spec.rb:42 |
| PHPUnit | FAILURES!, Tests: 3, Failures: 1 | vendor/bin/phpunit --filter testLogin |
| Rake / Rails | Failure:, 1 failure | bin/rails test test/models/auth_test.rb:12 |
| Gradle / Maven | BUILD FAILED / BUILD FAILURE | ./gradlew test --tests '*AuthTest*' / mvn -Dtest=AuthTest test |
Never blame the test before the diff is read. If the test was already red before your edit, say so with evidence: the prior run log, or stash your change and re-run. Without evidence, assume your edit did it.
ultra with autoRevert: true, a green→red transition restores files that still match the agent's edit. Conflicts (manual edits) are left alone and reported./aftermath-checkpoint status shows tracked files; restore and clear are manual overrides.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub moah0911/aftermath --plugin aftermath8 skills in this plugin
/aftermathPost-failure recovery when something already broke: a test suite went green to red, the same error repeats after a fix, a destructive command was blocked, a forward edit is frozen, the user says "you broke it", or the fix touched files outside scope. Stop, revert cheap damage, diagnose honestly, return to last-known-good. Supports intensity levels lite, full (default), ultra, plus opt-in checkpoint auto-revert. Use ONLY for recovery after failure, not for planning new work.
/build-failureUse when compilation, typechecking, bundling, or another build step fails. Read the first error, isolate the hunk, and do not run tests until the build is green. Distinct from a test regression: the code never ran.
/dependency-failureUse when an install, lockfile, resolver, or package-manager step fails: ERESOLVE, version conflicts, missing distributions, registry or network errors. Paste the exact resolver error, respect the lockfile, and change one thing at a time.
/destructive-actionUse when the next action is irreversible: force push, reset --hard, clean, drop, delete, rm, overwrite, schema migration, or permission change. Confirm current state explicitly and never proceed on assumption. Also covers scope creep and the forward-edit freeze that follows an unresolved failure.
/flaky-testUse when the same test alternates between pass and fail without code edits, or when a failure cannot be reproduced. Rerun to confirm, find the source of nondeterminism, and never revert working code on an unconfirmed flake.
/merge-conflictUse when a merge, rebase, or cherry-pick stops on conflicts. Read both sides, never blindly take ours or theirs, never reset/abort to escape, and run the affected tests after resolving.
Other plugins' skills for the same job