test-anti-patterns SKILL.md skillA
test-anti-patterns from dotnet/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add dotnet/skills/test-anti-patterns@git:20261009.e191d40Pins git:20261009.e191d40 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- dotnet/skills
- Path
plugins/dotnet-test/skills/test-anti-patterns/SKILL.md- Versions recorded
- 8
- Latest version
- git:20261009.e191d40, committed Oct 9, 2026
- First version recorded
- Aug 28, 2026
- Size
- 27,331 bytes
- Repository stars
- 5,836
- License
- MIT
Audit a test file or suite; produce a severity-ranked diagnostic report. ALWAYS USE for tests that verify nothing, missing/tautological assertions, swallowed/broad exceptions, flaky/order-dependent tests, duplication, or magic values. Polyglot. DO NOT USE for direct edits: writing-mstest-tests owns supplied MSTest assertions/attributes/lifecycle; code-testing owns new tests. Exclude running tests, migration, assertion metrics (assertion-quality), raw .NET coverage collection (run-tests)…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Test Anti-Pattern Detection 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**: Read the caller-provided or runtime-listed > `test-analysis-extensions` catalog and its matching language file when needed. > Do not invoke the reference-only > helper. If its files are absent, use the built-in framework rules below. ## When to Use - User asks to review test quality or find test smells - User wants to know why tests are flaky or unreliable - User asks "are my tests good?" or "what's wrong with my tests?" - User requests a test audit or test code review - User wants diagnostic findings before deciding what to improve ## When Not to Use - User wants to write new tests from scratch (use `code-testing`) - User wants direct implementation fixes rather than a diagnostic review (use the relevant write/edit skill) - User asks to fix swapped `Assert.AreEqual` argument order in MSTest (use `writing-mstest-tests`) - User asks to convert MSTest `DynamicData` from `IEnumerable<object[]>` to `ValueTuple` (use `writing-mstest-tests`) …
Read the whole file at its exact version.
How to install
mdr add dotnet/skills/test-anti-patterns@sha256:01cf87008db2f6ffThe line at the top of this page pins the label git:20261009.e191d40, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_755zaqkf226g562i)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 8 versions of this file, between Aug 28, 2026 and Oct 9, 2026, about one every 6 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261009.e191d40 latest | 2026-10-09 | e191d40 | 27,331 B | A | view · diff |
| git:20261008.a51399b | 2026-10-08 | a51399b | 27,104 B | A | view · diff |
| git:20260925.a824bbb | 2026-09-25 | a824bbb | 27,116 B | A | view · diff |
| git:20260908.e8ed847 | 2026-09-08 | e8ed847 | 26,283 B | A | view · diff |
| git:20260904.ac8f412 | 2026-09-04 | ac8f412 | 25,942 B | A | view · diff |
| git:20260903.30b30ef | 2026-09-03 | 30b30ef | 24,834 B | A | view · diff |
| git:20260902.00b3bac | 2026-09-02 | 00b3bac | 23,991 B | A | view · diff |
| git:20260828.2b9056b | 2026-08-28 | 2b9056b | 23,390 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (27331 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
dotnet/skills · 5,836 stars · license MIT · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_755zaqkf226g562i GET https://markdownregistry.com/api/v1/resolve?ref=dotnet/skills/test-anti-patterns GET https://markdownregistry.com/api/v1/blob/01cf87008db2f6ffe17f397856d9ccb5080bbc869e4089baab9acee2e5b0027c
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.