01
It starts by itself
test files change. Runs in GitHub Actions or Claude Code routine.
- ↻ test files change
pull_request paths: **/*Tests*/**, **/test_*.py, **/*.test.*
Tests that prove nothing get caught.
Install the Test Anti-Patterns skill and make it a habit: follow https://gethabit.dev/skills/dotnet/test-anti-patterns.md
4K installs6K starsMIT licenceSource on GitHub ↗

Test Anti-Patterns
by dotnet · 4K installs
The skill
Test anti-patterns audits a test file or suite in any language and produces a severity-ranked report of tests that verify nothing, swallowed exceptions, flaky or order-dependent tests, duplication and magic values.
Only when you ask.
The habit
Tests that prove nothing get caught.
↻ Runs by itselftest files change
When does it start? How does it check its work? What does it remember?
Stops after the changed test files of one pull request.
Find the test files in the workspace and identify language and framework.
List every test method and class-level fixture before reading bodies.
Check each test against the Critical, High, Medium and Low anti-patterns.
Open the production symbol behind each suspicious test to judge the oracle.
Apply the severity rules and the not-an-issue list, never inflating findings.
Write summary, findings with locations and fixes, adjacent gaps and positive observations.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the Test Anti-Patterns skill helps.
No. It produces a diagnostic report; writing fixes belongs to other skills.
No. The skill lists it as the canonical form, not an issue.
It is polyglot, with examples for .NET, Python, JS/TS, Java, Go, Ruby, Rust, PowerShell and C++.
Copy the prompt at the top into your agent. It installs the skill from dotnet/skills and sets up the habit. Or run npx skills add dotnet/skills --skill test-anti-patterns.
Yes. It is published under MIT. Habit is free too.
Install the Test Anti-Patterns skill and make it a habit: follow https://gethabit.dev/skills/dotnet/test-anti-patterns.md
All dotnet skills →More code skills →
Works in
Made by dotnet, published under MIT. Habit links to the original and never changes it. Is this your skill?