supertest
Skill4 starsChanged 56 days agoMITView on GitHub
Use when creating, changing, running, or auditing unit and integration tests, investigating tests that pass without observing outcomes, or analyzing application mutations and Necessist findings.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- aks-builds/quality-skillstheir own version, first seen Jun 12, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- aks-builds/quality-skills★ 5same 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.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Use temporary regressions in an isolated copy containing relevant local changes.
- Distinctive: line 19
Create/change tests: follow focused guidance; no automatic mutation/Necessist audit.
- Distinctive: line 20
Audit: default to progressive scope and evidence below.
- Distinctive: line 31
Run affected verification and required project checks.
- Distinctive: line 37
Read instructions, contracts, diff, stack, commands.
- Very specific: line 39
Verify write access, services, all test connection settings.
- Distinctive: line 45
Check rules, boundaries, invalid inputs, errors, outcomes.
- Very specific: line 55
Run sequentially on the same isolated files.
- Distinctive: line 60
Explain why removal passed: check whether the statement repeats a framework default or other setup.
- Distinctive: line 68
When candidates exceed the budget, order files and survivors by contract risk and process them in that order until the budget ends: …
- Distinctive: line 141
Stop when metrics replace evidence, every removal becomes defective, or correct legacy code is rewritten.
- Distinctive: line 163
Read-only original: deliver verified patch.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Supertest
Core rule
Approve effectiveness only after observing detection of the expected defect. Green establishes baseline.
Use temporary regressions in an isolated copy containing relevant local changes; restore and pass. Preserve correct legacy code. Collection/import/compilation/environment errors never prove detection.
Scope routing
Load before test work; honor scope:
- Run only: execute the requested suite; report command, collection, passed/failed/skipped counts and limitations. Do not audit, mutate, or modify.
- Create/change tests: follow focused guidance; no automatic mutation/Necessist audit.
- Audit: default to progressive scope and evidence below.
- Full audit: retain the entire requested scope, audit cycle, compatible mutation/Necessist analyses, and completion checklist.
Internal baseline, regression, restoration, and final runs remain one invocation; never retrigger Supertest.
Create or change tests
Establish authoritative contracts and independent expectations; cover boundaries/errors and integration effects. Consult good tests.
Existing correct behavior: pass, demonstrate expected assertion failure through isolated regression, restore, pass. Missing behavior: demonstrate expected assertion failure before authorized implementation; verify the same contract test passes afterward.
Run affected verification and required project checks; report changes, commands/counts, evidence, limitations, pending work. Failed checks remain pending; prevent completion.
Audit cycle
1. Select and establish baseline
Read instructions, contracts, diff, stack, commands. Select changed/requested contracts plus unchanged protective tests/callers. Expand for shared dependencies, integration risk, unexpected failures, or unresolved findings. Unreliable mapping requires at least module scope. Explicit full audits retain all requested scope.
Verify write access, services, all test connection settings. Record command, scope, collected/passed/failed/skipped counts; require stable, collected baseline before tool interpretation.
Reuse collected baseline only within this invocation with unchanged command, source/tests, dependencies, configuration, runtime/services. Never transfer baseline across unverified environments. Changes invalidate affected evidence/tool caches.
2. Audit unit tests
Check rules, boundaries, invalid inputs, errors, outcomes. Derive expectations without copying algorithms; avoid tautologies/core mocks, replace necessary boundaries. Consult good tests. Await promises; prove callbacks execute.
3. Audit integration tests
Observe real communication, persistence, transactions, effects; HTTP 201 alone cannot prove a write. Isolate data/services; deterministic setup, failure-safe cleanup, order independence.
4. Evaluate effectiveness
Progressive audits add tool probes when findings/risk require; demonstrated local detection does not automatically require both tools. Explicit full audits run compatible application mutation testing and Necessist. Consult tools.
Run sequentially on the same isolated files; restore between analyses. Record versions, commands, scope, collected tests, candidates, reports. Reproduce survivors/passed candidates; classify findings/limitations. Manual review is not execution.
Necessist passed means the test still passed after that statement was removed: a weakness candidate, never evidence of effectiveness. Triage each candidate in order:
- Removed assertion or assertion-helper call (for example,
assertEqual): removing an assertion always passes. Classify configuration noise; stop. See tools. If its arguments perform an action (for example,assertNoError(t, tx.Commit())), continue to step 2. - Explain why removal passed: check whether the statement repeats a framework default or other setup; verify any language or framework semantics you rely on with a minimal executed check.
- Name the contract the removed statement serves; consult the gap patterns in good tests.
- Execute a contractual regression against the unmodified test: a temporary production-code change violating that contract. Removal, or removal combined with the regression, proves nothing.
- Unmodified test fails: legitimate redundancy; stop.
- Unmodified test passes: Necessist defect; correct and reproduce both.
Select or report a finding only from the last outcome; reasoned or conceptual regressions remain unverified candidates.
When candidates exceed the budget, order files and survivors by contract risk and process them in that order until the budget ends: documented, security, validation, and decision-guard contracts first; timing-dependent tests last. Record unsampled files and untriaged survivors.
5. Correct and verify
Apply minimal permanent test corrections to original by default. Demonstrate regression failure and restored passage in isolation; repeat relevant Necessist removals.
Iterate with focused checks; repeat whole suites only for risk/project requirements. Rerun previously executed affected analyses and freshly execute original project's required lint, typecheck, tests; never substitute reused evidence. Justify inapplicability. Consult CI only when requested.
Report corrections/evidence/pending work, selected/excluded scope, unexecuted analyses, and phase durations (setup, normal tests, mutations, Necessist, final checks) as applicable. Progressive results cannot grant full-audit approval; claim no unmeasured speedup.
Good and weak tests
Unit: free shipping from 100
Contract: shipping costs 10 below 100 and zero from 100.
def shipping_cost(total):
return 0 if total >= 100 else 10
def test_shipping_weak():
assert shipping_cost(120) == 0
def test_shipping_boundary():
assert shipping_cost(99) == 10
assert shipping_cost(100) == 0
assert shipping_cost(101) == 0Gap: 120 misses >= versus >. Correction: observe 100 and neighbors. Proof: temporarily use >: weak passes, corrected fails at 100. Restore; both pass. No assertions means no return observation.
Integration: persistence through an independent connection
Adapt API: db_path prepares an empty disposable SQLite table; create_order writes, commits, returns ID.
import sqlite3
from contextlib import closing
def test_order_weak(db_path):
assert create_order(db_path, "o-1") == "o-1"
def test_order_persisted(db_path):
assert create_order(db_path, "o-1") == "o-1"
with closing(sqlite3.connect(db_path)) as reader:
saved = reader.execute(
"SELECT id FROM orders WHERE id = ?", ("o-1",)
).fetchone()
assert saved == ("o-1",)Gap: ID return cannot prove persistence. Correction: read independently after commit. Proof: omit INSERT/commit, retain return: weak passes, corrected fails on missing record. Restore and pass. Cache, repository mocks, same transaction cannot prove durability.
Interpret tools
| Result | Decision |
| Relevant survivor | Contract violation allowed; correct and demonstrate detection. |
| Justified equivalent | Identical valid-domain effects; document proof/domain evidence, no artificial tests. |
| Necessist defect | Removal passes, and the unmodified test also passes the contractual regression; correct observation/setup, reproduce both. |
| Legitimate redundancy | Remaining observations detect regression despite removal; preserve protection/necessary cleanup. |
| Inconclusive | Error, timeout, invalid baseline, empty collection, unproven cause; investigate without approval. |
Equivalence/redundancy resolves only that finding.
Rationalizations and warning signs
| Rationalization | Response |
| "Green suite/high score." | Prove regression; investigate survivors, avoid universal thresholds/metric exclusions. |
| "Zero exit." | Check collection/categories/reproduced findings. |
| "Reading equals execution." | Disclose manual review/unexecuted analyses. |
Stop when metrics replace evidence, every removal becomes defective, or correct legacy code is rewritten.
Full-audit completion checklist
- Verified, stable collected baseline.
- Contracts observed, including integration effects.
- Regressions demonstrated; correct behavior restored.
- Corrections applied to original; otherwise patch application explicitly pending.
- Findings classified with rationale; missing analyses identified.
- Final checks executed or inapplicability justified.
- Report separates execution/manual review/outstanding work; does not promise freedom from bugs.
When blocked
Ambiguous contract: establish authority; implementation cannot settle ambiguity.
Unstable/failing baseline: investigate isolation/cause; rerun before interpretation.
Missing required tool: verify support; try Docker with reachable daemon and project test runtime before host installation proposals, within authorization. Report blockers. Incompatible: record version/backend/alternatives; avoid framework migration.
Empty collection: check discovery/filters/configuration. Zero candidates imply neither zero tests nor effectiveness.
Read-only original: deliver verified patch; application pending, never applied/complete.
Without execution, report limited manual review. Required unexecuted tools prevent full approval.
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.

