Best for
- 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.
nimadorostkar/Claude-Skills-collection/skills/testing/test-strategy/SKILL.md
Use when deciding what to test and at which level. Covers the test pyramid, what belongs in unit versus integration versus end-to-end tests, coverage as a signal rather than a target, and eliminating flakiness.
Decision brief
Covers the test pyramid, what belongs in unit versus integration versus end-to-end tests, coverage as a signal rather than a target, and eliminating flakiness.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/nimadorostkar/Claude-Skills-collection --skill "skills/testing/test-strategy"Inspect the Agent Skill "test-strategy" from https://github.com/nimadorostkar/Claude-Skills-collection/blob/03f39b7041ec2679255f8d6bb5b18421561821ae/skills/testing/test-strategy/SKILL.md at commit 03f39b7041ec2679255f8d6bb5b18421561821ae. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
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…
def testrefundcallsgateway(): gateway = Mock() RefundService(gateway).refund(order, 1000) gateway.refund.assertcalledoncewith(order.chargeid, 1000) This passes even if the refund is never recorded, the amount is wrong in the database, and the customer is charged again.
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.
Designing a test suite for a new project.
Test-level selection: unit, integration, contract, end-to-end.
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 92/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 26 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
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.
A test that verifies behavior, and one that verifies implementation:
# Bad: verifies the implementation. Breaks on any refactor; catches no bugs.
def test_refund_calls_gateway():
gateway = Mock()
RefundService(gateway).refund(order, 1000)
gateway.refund.assert_called_once_with(order.charge_id, 1000)
# This passes even if the refund is never recorded, the amount is wrong
# in the database, and the customer is charged again.
# Good: verifies the behavior that the user and the business care about.
def test_refund_reduces_balance_and_is_idempotent(db, fake_gateway):
order = place_order(db, total_cents=5_000)
service = RefundService(fake_gateway, db)
result = service.refund(order.id, amount_cents=2_000)
assert result.ok
assert db.orders.get(order.id).refunded_cents == 2_000
assert fake_gateway.total_refunded(order.charge_id) == 2_000
# The same request again must not refund twice.
service.refund(order.id, amount_cents=2_000, idempotency_key=result.key)
assert db.orders.get(order.id).refunded_cents == 2_000
The distribution that actually works:
Unit ~70% milliseconds each business logic, edge cases, error paths
Integration ~25% seconds each real DB, real queue, real HTTP layer
End-to-end ~5% tens of seconds the three journeys that must never break
The proportions matter less than the principle: put the volume where the tests
are fast and the coverage is cheap, and reserve the slow, brittle level for
the handful of paths whose failure would be catastrophic.
Frequently asked questions
Covers the test pyramid, what belongs in unit versus integration versus end-to-end tests, coverage as a signal rather than a target, and eliminating flakiness.
The source record exposes this install command: npx skills add https://github.com/nimadorostkar/Claude-Skills-collection --skill "skills/testing/test-strategy". Inspect the command and pinned source before running it.
Alternatives
garrytan/gbrain
End-to-end discipline for turning any large data source (audio libraries, email takeouts, document corpora, chat exports, API dumps) into brain pages at scale. The lifecycle spine: SCHEMA → ACCESS → TRIAL → EVALUATE → IMPROVE → CODIFY → TEST → SKILLIFY → BULK → MONITOR. State is tracked in a durable JSON manifest (see MANIFEST-PATTERN.md) so any crash, session boundary, or subagent fan-out resumes from ground truth instead of memory.
alirezarezvani/claude-skills
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
dotnet/skills
Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing
vipshop/cache-dit
High-level guide for integrating a new DiT model into cache-dit: Cache (BlockAdapter/ForwardPattern), Context Parallelism, Tensor Parallelism, Text Encoder Parallelism (TE-P), VAE Parallelism (VAE-P), generate CLI, installation, testing workflow, and detailed references. Use when adding support for a new diffusion transformer model in cache-dit.