← ClaudeAtlas

refit-testslisted

Refit a test suite: find tests that do not gate a merge, flake, pass when the code is wrong, reach the network or clock, sleep, miss code, run slow, repeat each other, or grow faster than the code. Use when asked to audit, speed up, clean up or deflake tests, or before you add tests (check). NOT for: writing tests (use write-tests); one failing test (use diagnosing-bugs).
crsmithdev/aleph · ★ 0 · Testing & QA · score 62
Install: claude install-skill crsmithdev/aleph
# Refit tests [refit-code](../refit-code/SKILL.md) for the test suite. Nine **lenses** each ask one question. Read `.refit.json` at the repo root when it exists: its `accepted` list, shared with refit-code, holds what the repo keeps on purpose, each `{"concept", "copies": ["file[:line]", ...], "reason"}`. The order of the lenses is the order of harm. A suite that does not gate, or that cries wolf, teaches people to ignore it; flakes come mostly from async waits, concurrency and test order (Luo et al., FSE 2014), and half of the flakes in iDFlakies depend on order (Lam et al., ICST 2019). A slow or large suite costs time, not trust. ## Lenses | Lens | Asks | File | |---|---|---| | **gates** | Does a red test stop a merge? | [GATES.md](GATES.md) | | **flake** | Which tests fail with no change to the code? | [FLAKE.md](FLAKE.md) | | **hollow** | Which tests pass when the code is wrong? | [HOLLOW.md](HOLLOW.md) | | **hermetic** | Which tests reach past their own process and temp dir? | [HERMETIC.md](HERMETIC.md) | | **smells** | Which tests wait, focus, print or guess where they should assert? | [SMELLS.md](SMELLS.md) | | **gaps** | Which code that matters does no test reach? | [GAPS.md](GAPS.md) | | **runtime** | Where does the suite spend its time? | [RUNTIME.md](RUNTIME.md) | | **merge** | Which tests check the same behaviour twice? | [MERGE.md](MERGE.md) | | **growth** | Does the suite grow with the code, or faster? | [GROWTH.md](GROWTH.md) | Where they meet: a skipped o