testing-strategies

testing-strategies is a skill for Claude Code, Codex from cosmicstack-labs/mercury-agent-skills. It costs 27 tokens per session (4,277 once invoked), scanned A, original, MIT.

A guide to planning software tests at several levels, from small unit tests to tests that exercise the whole application. It also covers integration, property-based, and mutation testing.

In plain words
What is it for?
Use it to build testing strategies, organize unit and end-to-end tests, check component interactions, and assess whether tests detect faulty code.
Why use it?
It helps teams choose tests that find real problems without creating a slow or brittle test suite. The guidance focuses on confidence in behavior rather than chasing coverage numbers alone.

Skill for Claude CodeCodex

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

Good fit Use it to build testing strategies, organize unit and end-to-end tests, check component interactions, and assess whether tests detect faulty code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cosmicstack-labs/mercury-agent-skills/testing-strategies
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 cosmicstack-labs/mercury-agent-skills --skill testing-strategies
Clone the repo
git clone --depth 1 https://github.com/cosmicstack-labs/mercury-agent-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 testing-strategies

README.md
[![agentmods](https://agentmods.dev/badge/skills/cosmicstack-labs/mercury-agent-skills/testing-strategies/github.svg)](https://agentmods.dev/skills/cosmicstack-labs/mercury-agent-skills/testing-strategies)
Your own site
<a href="https://agentmods.dev/skills/cosmicstack-labs/mercury-agent-skills/testing-strategies"><img src="https://agentmods.dev/badge/skills/cosmicstack-labs/mercury-agent-skills/testing-strategies/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-strategies

Your own site · 80×15
<a href="https://agentmods.dev/skills/cosmicstack-labs/mercury-agent-skills/testing-strategies"><img src="https://agentmods.dev/badge/skills/cosmicstack-labs/mercury-agent-skills/testing-strategies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,277 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 226
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original 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.00027 $0.04277
Opus 5 $0.00014 $0.02139
Sonnet 5 $0.00005 $0.00855
Haiku 4.5 $0.00003 $0.00428

Measured 6d ago against content hash 2f18778f7fa2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

testing-strategies 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 6d 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.

categories/development/testing-strategies/SKILL.md · 611 lines

How it starts

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

Testing Strategies

A comprehensive approach to testing that gives you confidence your code works correctly — from unit tests to mutation testing.

Core Principles

1. Test Behavior, Not Implementation

Your tests should specify what the code does, not how it does it. Tests that pass after a refactor (with the same behavior) are good tests. Tests that break after a refactor (with the same behavior) are brittle tests.

2. The Test Pyramid Is a Guideline, Not a Rule

Write many fast unit tests, some integration tests, and a few end-to-end tests. But adjust ratios based on your context: a data pipeline needs more integration tests; a UI component needs more visual regression tests.

3. Tests Are Code — Treat Them That Way

Tests need the same care as production code: clean naming, DRY helpers, proper abstractions. Test code that's hard to maintain leads to tests that get deleted.

4. Confidence Is the Goal

Coverage numbers are a proxy metric. A codebase with 80% coverage and excellent tests is better than one with 100% coverage and shallow tests. Test the things that scare you.


Testing Maturity Model

Level Unit Tests Integration Tests CI Integration Quality Gates
1: None No tests No tests No CI None
2: Skeleton Some critical paths Happy-path smoke tests Tests run manually None
3: Standard >60% coverage >80% of API endpoints Tests run on every PR Coverage check: >60%
4: Systematic >80% coverage Contract tests + DB tests CI fails on test failure Coverage + mutation score >70%
5: Excellence Property-based + mutation Consumer-driven contracts Test parallelization, flaky test detection Mutation score >85%, flaky tests auto-retry

Target: Level 3+ for production services. Level 4+ for critical systems.


Actionable Guidance

Unit Testing Patterns

The AAA Pattern (Arrange, Act, Assert)

Read the full file on GitHub · 611 lines

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. 6d ago First seen · 611 lines · 27 tokens per session scan A 2f18778f7fa2

Subscribe to this mod's changes

testing-strategies is a skill published in the GitHub repository cosmicstack-labs/mercury-agent-skills (470 stars, last pushed 16d ago), licensed MIT. It adds 27 tokens to every session and 4,277 once invoked, about $0.0001 per session on Opus 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.