testing-anti-patterns

testing-anti-patterns is a skill for Claude Code, Codex from shekohex/dotai. It costs 31 tokens per session (1,926 once invoked), scanned A, original, no licence file.

Guidance for writing tests and using test doubles, such as mocks, without testing the mock instead of the real behavior.

In plain words
What is it for?
Use it when creating or changing tests, adding mocks, or deciding how tests should interact with dependencies.
Why use it?
It helps keep tests meaningful and avoids adding methods or code to the production application only to make testing easier.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it when creating or changing tests, adding mocks, or deciding how tests should interact with dependencies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shekohex/dotai/testing-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 shekohex/dotai --skill testing-anti-patterns
Clone the repo
git clone --depth 1 https://github.com/shekohex/dotai

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 testing-anti-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/shekohex/dotai/testing-anti-patterns/github.svg)](https://agentmods.dev/skills/shekohex/dotai/testing-anti-patterns)
Your own site
<a href="https://agentmods.dev/skills/shekohex/dotai/testing-anti-patterns"><img src="https://agentmods.dev/badge/skills/shekohex/dotai/testing-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 testing-anti-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/shekohex/dotai/testing-anti-patterns"><img src="https://agentmods.dev/badge/skills/shekohex/dotai/testing-anti-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,926 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 unknown No closer match found 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.00031 $0.01926
Opus 5.5 $0.00012 $0.00770
Sonnet 5.5 $0.00006 $0.00385
Haiku 4.5 $0.00003 $0.00193

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

Security

Grade A, and why

testing-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.

skills/testing-anti-patterns/SKILL.md · 303 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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 · -13 tokens per session 424c65b6f0b6
  2. 1mo ago First seen · 303 lines · 44 tokens per session scan A 4cc391c1e8f2

Subscribe to this mod's changes

testing-anti-patterns is a skill published in the GitHub repository shekohex/dotai (10 stars, last pushed yesterday), with no licence file. It adds 31 tokens to every session and 1,926 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

adk-go-self-review

Review an ADK Go change the way a maintainer will — a fresh-context pass over the whole diff, five lenses (correctness and tests, scope, simplicity, style, adk-python parity), and the mutation check that proves your tests pin the change. Use before opening a PR, before any later push that changes code, and when asked…

google/adk-go · 87 tokens

ccg-workflow

How to run a non-trivial change end to end with the CCG role tools (ccganalyze / ccgdesign / ccgbuild / ccgdebug / ccgoptimize / ccgreview / ccgtest) and the verify- quality gates. Use when a task is a whole feature, a refactor, a bug whose cause is not yet known, or any change large enough that one straight-through…

fengshao1227/ccg-workflow · 97 tokens

red-team-review

Unified adversarial review, two modes. Strategic Matrix v4.3 (MTA-004) for arguments/plans/decisions: Priors → Rubric → Adversarial Lenses → SWOT/TOWS → MCDA → Blind Spot/Kill Switch → Summary. Deliverable Audit for built artefacts (assignments, reports, code outputs): isolated fresh-context hunt against the brief…

winstonkoh87/Athena-Public · 103 tokens

voice-agent-test-harness

Drive a fixed suite of spoken tests against a voice agent ("subject") from a co-located machine ("prober"), measure response latency / clarity / accuracy, diff against baseline, and report to the owner over Telegram.

sonichi/sutando · 0 tokens

test-writer

The task is to add or extend tests for existing behaviour that has a spec, a documented contract, or a confirmed expected output.

hex/claude-council · 30 tokens

bug-fixer

A bug reproduces, the expected behaviour is clear, and the fix stands apart from the current work.

hex/claude-council · 25 tokens