/bantoilatoi:testingfrom bantoilatoi
Write, repair, debug, audit or delete automated tests. Use when adding coverage for new behavior, writing a regression test for a defect, fixing a failing or flaky test, choosing the right test level, or auditing a suite's quality. Not for explaining what an existing test does, and not for running a suite as a routine verification step.
Ships in bantoilatoi. 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.
Read when SKILL.md points to them.
Owns automated tests as a portfolio: what to add, what to fix, what to delete, and at which level. The decision that matters most is rarely "how do I write this test" — it's whether the change in front of you needs a new test, a change to an existing one, or nothing at all.
| Signal | Mode | Done means |
|---|---|---|
| New or changed behavior has no test that observes it | Author | The behavior is pinned at the cheapest level that can see it, and the new test has been seen failing for the reason it claims. |
| A defect just got a fix | Author (regression) | The test existed and was seen red against the unfixed code before the fix landed. |
| An existing test is wrong on its own terms — flaky, weak, assertion-free, mislabeled, asserting the wrong thing — but the behavior it's supposed to pin down hasn't changed | Repair | The defect is named, the fix addresses that defect (not the assertion value), and the repaired test still fails against broken behavior. |
| A test is failing or flaky and the cause isn't known yet | Debug | The cause is established — product defect, environment, timing, shared state, test bug — before anything is changed. See references/test-quality.md for flake diagnosis. |
| A suite, directory, or feature's coverage needs assessing as a whole | Audit | Every test in scope is classified by what it actually does at runtime, defects are catalogued, and the portfolio shape is reported. Scope this to what was actually asked — a fix to one function does not license a walk through the whole suite. |
This skill is not for reading an existing test and explaining what it checks — that's a read, not a testing task. It is also not for running the suite as a routine step after unrelated work; that verification belongs to whatever produced the change, not to this skill on its own.
Ask what the behavior needs in order to be observed, then use the cheapest level that can actually see it. Do not default upward because a higher level "feels more real."
| The behavior is observable by | Level | Reference |
|---|---|---|
| Calling the code in one process, no I/O | Unit | references/unit.md |
| Only when the code talks to a real out-of-process collaborator — database, HTTP, queue, cache, filesystem | Integration | references/integration.md |
| Only when a user drives the assembled system through its real interface | E2E | references/e2e.md |
Two traps to check before committing to a level:
When classifying a test that already exists (debug, repair, or audit), classify by what it does at
runtime, not by which directory or naming convention it lives under — a "unit" test that opens a
socket is an integration test regardless of its folder. references/test-quality.md has the
classification and triage tables.
| Change in front of you | Existing tests | New tests |
|---|---|---|
| Pure refactor | Unchanged. If one breaks, either the refactor changed behavior or the test was coupled to implementation — fix that cause, not the assertion. | None |
| New feature | Unchanged | Add, covering the new behavior only |
| Bug fix | Unchanged | Add a regression test, written and seen failing against the unfixed code first |
| Behavior intentionally changed | Update the tests whose asserted behavior is now different | Add for anything genuinely new |
Editing an existing test's expected value to match new output is warranted only when the behavior it
encodes genuinely changed on purpose. Any other edit that makes a test pass is a repair of a defect
in the test itself (see the triage catalogue in references/test-quality.md) — name which defect,
confirm the product behavior is correct first, then fix the test so it fails against broken behavior
and passes against the real one. "It was failing" and "it was slow" are not reasons to delete a test;
deletion needs one of: the behavior no longer exists, it duplicates another test at the same level,
it's defective with nothing salvageable, or it's now covered more cheaply by a replacement that was
itself seen failing first.
These hold regardless of mode or level:
data-* attributes, counts, codes, types,
and state. Where a specific string genuinely is the requirement (a legal notice, a wire-protocol
constant), assert the identifier it's rendered from, not the literal text.Report, for whatever mode ran:
references/test-quality.md — behavior vs. implementation, assertion discipline, test doubles,
determinism, classifying an existing test by runtime behavior, the defect triage catalogue, and
flake diagnosis.references/unit.md — unit-level boundaries, structure, and per-ecosystem conventions.references/integration.md — integration-level boundaries: real collaborators, data lifecycle,
isolation, and network handling.references/e2e.md — e2e-level boundaries: when a journey earns this level, locators, waiting,
and flake control.What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/agent-instructionsCreate, audit, shrink or restructure an AGENTS.md instruction file. Use when writing a repository's AGENTS.md, auditing one for stale or oversized guidance, deciding what belongs in persistent instructions versus a skill, a document or a lint rule, or migrating instruction files between agent harnesses. Not for editing ordinary project documentation./agent-orchestrationDecide whether to delegate work to subagents or a scripted workflow, and run the delegation well — topology from real data dependencies, fan-out width, minimal context packets, disjoint write ownership, model and effort per node, monitoring, failure handling and handoff validation. Use when a task is about to be split across subagents, parallel workers or a workflow graph, or when a running delegation needs steering. Not for work done directly in one session, and not for reviewing a finished change.Other plugins' skills for the same job
/backlog-maintenancenpx claudepluginhub bantoilatoi/agentskills --plugin bantoilatoi