test-regression
Skill14 starsChanged 6 days agoMITView on GitHub
Use when a test suite goes green to red after an edit, or a previously passing test starts failing. Diff against last-known-good, isolate the one change, revert just that hunk instead of patching around it. Includes runner-specific failure signatures, subset re-runs, and checkpoint behavior.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- hishamkaram/markdown-memorytheir own version, first seen Oct 17, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- hishamkaram/markdown-memory★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- aftermathSkill
- aftermathSkill
- build-failureSkill
- dependency-failureSkill
- destructive-actionSkill
- flaky-testSkill
- merge-conflictSkill
- retry-loopSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Stop. No new edits.
- Distinctive: line 41
Never blame the test before the diff is read.
- Distinctive: line 46
After an auto-revert, re-run the failing subset before any new edit.
- Distinctive: line 51
Never patch around a regression with a new guard elsewhere.
- Distinctive: line 52
Never widen the change to "make the test pass".
- Distinctive: line 53
Never claim green from a partial run.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Test Regression
A green suite just turned red. The edit caused it until proven otherwise.
Steps
- Stop. No new edits.
- State what broke: which runner, which suite, which tests, what the last edit touched. One line each.
- Find last-known-good: last passing run, last commit, or the
ultracheckpoint. git diffagainst it. Isolate the single hunk that correlates with the failure.- Revert just that hunk (at
lite, propose it and wait; atfull, ask before the next edit; atultrawithautoRevert: true, the plugin may already have restored it — verify the diff). - Re-run the failing subset only. Green → stand down. Still red → escalate to
retry-loop, do not vary the fix blindly.
Runner signatures and subset re-runs
| 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 |
Was it already red?
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.
Checkpoints
- At
ultrawithautoRevert: true, a green→red transition restores files that still match the agent's edit. Conflicts (manual edits) are left alone and reported. - After an auto-revert, re-run the failing subset before any new edit. A restore is not proof of green.
/aftermath-checkpoint statusshows tracked files;restoreandclearare manual overrides.
Never
- Never patch around a regression with a new guard elsewhere.
- Never widen the change to "make the test pass".
- Never claim green from a partial run; name the command you ran.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

