test-anti-patterns

test-anti-patterns is a skill for Claude Code, Codex from managedcode/dotnet-skills. It costs 181 tokens per session (6,189 once invoked), scanned A, a copy of test-anti-patterns, MIT.

A diagnostic reviewer for automated test files or suites that looks for patterns that make tests unreliable or uninformative. It reports findings by severity instead of directly changing the code.

In plain words
What is it for?
Use it to audit tests for missing or meaningless assertions, swallowed exceptions, flaky timing, duplication, and hard-coded values.
Why use it?
Tests can pass without checking anything, depend on execution order, hide errors, or fail intermittently. Finding these problems helps teams trust their test results.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit tests for missing or meaningless assertions, swallowed exceptions, flaky timing, duplication, and hard-coded values.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/managedcode/dotnet-skills/test-anti-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add managedcode/dotnet-skills --skill test-anti-patterns
Clone the repo
git clone --depth 1 https://github.com/managedcode/dotnet-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-anti-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/managedcode/dotnet-skills/test-anti-patterns/github.svg)](https://agentmods.dev/skills/managedcode/dotnet-skills/test-anti-patterns)
Your own site
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/test-anti-patterns"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/test-anti-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test-anti-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/test-anti-patterns"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/test-anti-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 181 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,189 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00181 $0.06189
Opus 5.5 $0.00072 $0.02476
Sonnet 5.5 $0.00036 $0.01238
Haiku 4.5 $0.00018 $0.00619

Measured 1mo ago against content hash 01cf87008db2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-anti-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

86% identical to test-anti-patterns — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

catalog/Testing/Official-DotNet-Test/skills/test-anti-patterns/SKILL.md · 303 lines

How it starts

The opening of the file, as written. The whole thing — 303 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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)
  • User wants to run or execute tests (use run-tests for .NET)
  • User wants to migrate between test frameworks or versions (use migration skills)
  • User wants raw .NET coverage collection (use run-tests), non-.NET coverage collection or analysis (use native tooling), project-wide .NET coverage/CRAP metrics (use coverage-analysis), or named-target .NET CRAP (use crap-score)
  • User asks whether tests would catch a bug or wants behavioral/pseudo-mutation gaps (use test-gap-analysis)
  • User wants test-mix or happy-vs-error-path classification, standardized tagging, or trait/category distributions (use test-tagging)
  • User wants a deep formal test smell audit with academic taxonomy and extended catalog (use test-smell-detection)

Inputs

Input Required Description
Test scope No Test files, classes, directory, or project to analyze. Discover from the current workspace when omitted.
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

Read the full file on GitHub · 303 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +3 lines 01cf87008db2
  2. 1mo ago Changed · -1 tokens per session 33e33a82bf2f
  3. 2mo ago Changed · +14 lines 9420f867b6eb
  4. 2mo ago Changed · +28 lines 9f948b9df0c7
  5. 2mo ago Changed · +34 lines 62022253bc67
  6. 2mo ago First seen · 224 lines · 182 tokens per session scan A c9709e420a20

Subscribe to this mod's changes

test-anti-patterns is a skill published in the GitHub repository managedcode/dotnet-skills (527 stars, last pushed 16d ago), licensed MIT. It adds 181 tokens to every session and 6,189 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to test-anti-patterns, differing in 3 lines, and is treated as a copy.

Related

test-anti-patterns compared with skills from other repositories

test-anti-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-anti-patternsmanagedcode/dotnet-skillsSkill52716d agoMITA181Claude Code, Codex
windbg-kernel-lock-deadlock-triagemicrosoft/win-dev-skillsSkill52113d agoMITA56Claude Code
fuzzy-selectingSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A25Claude Code, Codex
rust-developmentnavikt/copilotSkill65yesterdayMITA27Claude Code, Codex
spring-boot-scaffoldnavikt/copilotSkill65yesterdayMITA32Claude Code, Codex
tlc-discovertech-leads-club/agent-skillsSkill7.2k2d agononeA76Claude Code, Codex
repo-baseline-auditnavikt/copilotSkill65yesterdayMITA122Claude Code, Codex