review-tests
Skill2 starsChanged 2 days agoMITView on GitHub
Judges whether a test earns its place, when you write one and when you sweep a package for tests that pin code instead of behavior. Use before adding or changing a test, and when asked to clean up a package's tests.
14 other projects use a version of this.
Adopted by
Most recently taken up by
- hua0512/rust-srectheir own version, first seen Nov 30, 2026
- collectiveai-team/boticatheir own version, first seen Nov 29, 2026
- allmonty/better-code-agenttheir own version, first seen Nov 22, 2026
- changeroa/iyen-skillstheir own version, first seen Nov 22, 2026
- wufei-png/skillstheir own version, first seen Nov 20, 2026
- desbma/agent-skillstheir own version, first seen Oct 27, 2026
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- hashicorp/terraform-provider-aws★ 11ksame name
- mrinalwadhwa/fluent★ 125same name
- hua0512/rust-srec★ 121same name
- changeroa/iyen-skills★ 14same name
- collectiveai-team/botica★ 10same name
- Arasz/ai-badger★ 3same name
- cjohnhanson/tisket★ 2same name
- cjohnhanson/almanac★ 1same name
- desbma/agent-skills★ 1same name
- wufei-png/skills★ 1same name
4 more not listed
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 repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-chainSkill
- add-mcp-toolSkill
- add-migrationSkill
- add-protocol-operationSkill
- add-venueSkill
- clean-diffSkill
- debug-failureSkill
- handle-security-reportSkill
- releaseSkill
- review-diffSkill
- review-money-pathSkill
- run-testsSkill
- shape-commitSkill
- speed-up-testsSkill
- test-telegramSkill
- tune-ciSkill
- vet-releaseSkill
- write-adrSkill
- binference-toolsSkill
- copy-tradingSkill
- dca-planSkill
- meme-huntingSkill
- safe-swapSkill
- token-due-diligenceSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Write down, before the test:
- Distinctive: line 23
The entry point: Test through what callers use.
- Very specific: line 63
Read the package's AGENTS.md, its ports.ts and one folder's tests.
- Distinctive: line 67
Delete the exports, flags and helpers that only the removed tests used.
- Very specific: line 68
Run the folder's tests. pnpm check runs once, when the sweep ends.
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Review the tests
A test runs on every change for years. It earns that when it goes red on a mistake a person would feel: a wrong amount, a lost card, a broken call, a word missing in Chinese. Use this skill on a test you are about to write, and on a folder of tests you are asked to clean up.
1. A new test
Write down, before the test:
- The promise. The sentence from the spec, the package's
AGENTS.mdor the TSDoc that the test holds the code to. No promise, no test. - The layer. The cheapest one that can see the promise: a unit test for a rule, a contract
suite for a port, a composed test in
packages/cli/src/compose/for wiring, the fork suite for the chain, the crash suite for a kill between signing and receipt. - The owner. The test that already holds this promise, if any. Add a case to its table instead of writing a second test.
- The entry point. Test through what callers use. If the test needs a new export or flag that no caller needs, test one level up.
For a bug, the test goes red on the old code for the reason the bug names, and green after the fix. Keep both runs for the pull request.
2. Tests to rewrite or delete
It proves nothing. It has no assertion or only checks that nothing threw; its expected value comes from the code under test; it would pass if the function body were empty.
It proves the code's shape, not its behavior. It counts internal calls, greps source text, copies an export list or a message file, or goes red when a module is split without a change a caller could see.
It proves the fake. Its fake makes the decision the test asserts; it checks rows in a fake store the real path never writes; it asserts what the engine reports where the promise is about what reached the chain (the crash suite counts transactions at the relays and in anvil for this reason).
It proves something else. Its name promises a refusal, and the refusal it sees comes from
another check; it is a .zh.test.ts file that never reads a Chinese message.
3. Tests that stay
These guard contracts other code relies on. Keep them even when they look plain or slow:
- contract suites, and each adapter's and fake's run of them;
- the intent state machine's full transition table, and every property test of policy and amounts;
- the money rules of
review-money-path: bigint amounts, decimal strings on the wire, the recheck before signing, no retry after a side effect, the raw transaction stored before broadcast; - each operation's example call and the protocol compatibility snapshot;
- migrations, the config schema and its migrations, error codes and their messages;
- English and Chinese message checks;
- fork tests of registry addresses and venue calls, and the crash suite.
A slow test gets faster (speed-up-tests); it does not go.
4. A sweep
- Read the package's
AGENTS.md, itsports.tsand one folder's tests. Do not edit yet. - For each candidate, note its file and name, the group from section 2 it falls in, the test that still holds the promise after it goes, and any export or helper only it uses.
- Change only candidates with every note filled in. One folder per commit, type
test. - Delete the exports, flags and helpers that only the removed tests used.
- Run the folder's tests.
pnpm checkruns once, when the sweep ends.
5. Report
Each test removed or rewritten with its group, the tests you looked at and kept with the reason, the lines of source and of tests removed, and the commands 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.

