Install any skill in seconds. Free to start, no credit card required.
Get Started Free →managedcode/test-anti-patterns
Audits an existing test file or suite in any language for anti-patterns and quality issues — produces a severity-ranked report (Critical/Warning/Info). INVOKE whenever asked to audit or review tests, find what's wrong with a suite, judge whether tests are any good, or check for: tests that pass but verify nothing, missing assertions, swallowed exceptions, self-comparing / tautological assertions, coverage-touching tests, broad exceptions, flaky or order-dependent tests (Thread.Sleep, DateTime.No
Passed 15 of 20 test cases with the skill, and 14 of 20 without it.
2 fixed14 passed either way5 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
Audit this JavaScript Jest test file: ```javascript test('calculates total correctly', () => { const total = calculateTotal([10, 20]); console.log('debug output total:', total); expect(total).toBe(30); }); ``` What code hygiene or style issue exists in this snippet?
| Checked | Without skill | With skill |
|---|---|---|
| Flags leftover console print debugging calls as a low-severity hygiene issue. | Passed | Passed |
| Recommends removing debug statements prior to merging test code. | Missed | Passed |
The instructions your model reads when the skill loads.
Quick, pragmatic analysis of test code in any supported language for anti-patterns and quality issues that undermine test reliability, maintainability, and diagnostic value.
Language-specific guidance: Call the
test-analysis-extensionsskill to discover available extension files, then read the file matching the target codebase (e.g.,extensions/dotnet.md,extensions/python.md,extensions/typescript.md,extensions/go.md). The extension file tells you which sleep / time / random / skip / setup-teardown / mystery-guest APIs to look for in that language.
code-testing-agent for any language, or writing-mstest-tests for MSTest specifically)Assert.AreEqual argument order in MSTest (use writing-mstest-tests)DynamicData from IEnumerable<object[]> to ValueTuple (use writing-mstest-tests)run-tests for .NET)test-smell-detection)| Input | Required | Description |
|---|---|---|
| Test code | Yes | One or more test files or classes to analyze |
| Production code | No | The code under test, for context on what tests should verify |
| Specific concern | No | A focused area like "flakiness" or "naming" to narrow the review |
Identify the target codebase's language and test framework. Call the test-analysis-extensions skill and read the matching extension file. The extension file documents framework-specific anti-pattern markers — what counts as a sleep/wait, a test marker, a skip, a setup/teardown, a shared-state hot spot, and an integration boundary — so this skill stays language-neutral.
test cases passed, vs 14 / 20 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.