test-strategy

test-strategy is a skill for Claude Code, Codex from nimadorostkar/Claude-Skills-collection. It costs 47 tokens per session (1,250 once invoked), scanned A, original, MIT.

A guide to deciding what to test and whether to use unit, integration, contract, or end-to-end tests. It also covers test doubles, coverage, flaky tests, and how to keep a test suite fast.

In plain words
What is it for?
Use it to design a test suite, choose the right test level for a change, diagnose flaky failures, decide what to fake, and select tests for fast feedback on each change.
Why use it?
It prevents teams from building slow, fragile tests that miss important defects or break whenever code is reorganized. It treats coverage as a signal rather than the goal itself.

Skill for Claude CodeCodex

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

Good fit Use it to design a test suite, choose the right test level for a change, diagnose flaky failures, decide what to fake, and select tests for fast feedback on each change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nimadorostkar/claude-skills-collection/test-strategy
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 nimadorostkar/Claude-Skills-collection --skill test-strategy
Clone the repo
git clone --depth 1 https://github.com/nimadorostkar/Claude-Skills-collection

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-strategy

README.md
[![agentmods](https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/test-strategy/github.svg)](https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/test-strategy)
Your own site
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/test-strategy"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/test-strategy/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-strategy

Your own site · 80×15
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/test-strategy"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/test-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,250 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 pass 7 Sept 2026
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.00047 $0.01250
Opus 5 $0.00023 $0.00625
Sonnet 5 $0.00009 $0.00250
Haiku 4.5 $0.00005 $0.00125

Measured 8d ago against content hash e8651d2eb180, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

test-strategy 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 8d 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/test-strategy/SKILL.md · 106 lines

How it starts

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

Test Strategy

Purpose

Build a test suite that catches real defects, runs fast enough to be run, and does not need to be rewritten every time the code is refactored.

When to Use

  • Designing a test suite for a new project.
  • A suite that is slow, flaky, or fails to catch bugs.
  • Deciding what to test for a specific change.
  • Setting a coverage policy without making coverage the goal.

Capabilities

  • Test-level selection: unit, integration, contract, end-to-end.
  • Test-double strategy: what to fake, what to use for real.
  • Coverage interpretation.
  • Flakiness diagnosis and elimination.
  • Suite performance: parallelization and selective execution.

Inputs

  • The system, its dependencies, and its risk profile.
  • The current suite: its runtime, its failure rate, its bug-escape rate.

Outputs

  • A test suite whose distribution across levels is deliberate.
  • A fast feedback loop for the tests run on every change.
  • Zero tolerated flakes.

Workflow

  1. Test behavior, not implementation — A test that breaks when you rename a private method is a test that prevents refactoring rather than enabling it.
  2. Choose the level by what you are verifying — Business logic: unit tests, fast and many. Integration with a real database or queue: integration tests, fewer. A complete user journey: end-to-end, a handful.
  3. Use real dependencies where practical — A test against a real Postgres in a container catches the SQL error that a mocked repository never will. Mocks verify that you called a thing; they do not verify that it works.
  4. Write the test that would have caught the bug — After every production defect. This is where the highest-value tests come from — a real bug is empirical evidence of an untested path.
  5. Treat a flake as a defect — Quarantine it immediately, then fix it. A suite with a 2% flake rate teaches the team to re-run and eventually to ignore.
  6. Keep the fast loop fast — Under five minutes for what runs on every change, or people will stop running it.

Read the full file on GitHub · 106 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. 8d ago First seen · 106 lines · 47 tokens per session scan A e8651d2eb180

Subscribe to this mod's changes

test-strategy is a skill published in the GitHub repository nimadorostkar/Claude-Skills-collection (26 stars, last pushed 24d ago), licensed MIT. It adds 47 tokens to every session and 1,250 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

testing-setup

Analyze and create a testing strategy for native Android apps - install testing libraries, set up test infrastructure, create harnesses for unit tests, UI tests, screenshot tests, and end-to-end tests.

android/skills · 43 tokens

smoke-test

Launch the app and hands-on verify that it works by interacting with it. Falls back to an existing integration test suite when there is no interactive surface in scope. Use when the user asks to "smoke test", "test it manually", "verify it works", "try it out", "run a smoke test", "check it in the browser", or "does…

tobihagemann/turbo · 88 tokens

langchain4j-testing-strategies

Provides unit test, integration test, and mock AI patterns for LangChain4j applications. Creates mock LLM responses, tests retrieval chains, validates RAG workflows, and implements Testcontainers-based integration tests for Java AI services. Use when unit testing AI services, integration testing LangChain4j…

giuseppe-trisciuoglio/developer-kit · 81 tokens

testing-blocks

Use this when you have made AEM Edge Delivery Services code changes to blocks, scripts, or styles and need to validate them before opening a pull request. Covers unit testing for utilities and logic, browser testing with Playwright, linting, and guidance on what to test and how.

adobe/skills · 61 tokens

testing-strategies

Comprehensive testing strategy covering unit, integration, e2e, property-based, and mutation testing with practical patterns.

cosmicstack-labs/mercury-agent-skills · 27 tokens

frontend-testing

Comprehensive frontend testing strategy covering unit, integration, E2E, visual regression, and accessibility testing.

cosmicstack-labs/mercury-agent-skills · 23 tokens