testing-strategy

testing-strategy is a skill for Claude Code, Codex from camilooscargbaptista/cto-toolkit. It costs 161 tokens per session (1,359 once invoked), scanned A, original, MIT.

A guide to software testing methods, including TDD, BDD, unit tests, integration tests, end-to-end tests, and quality assurance. TDD means writing a failing test before the code, then making it pass and cleaning up the implementation.

In plain words
What is it for?
Use it to create test plans, improve test coverage, set up testing workflows, and decide what belongs in unit, integration, or end-to-end tests.
Why use it?
It helps teams choose suitable tests and find bugs earlier without spending all their time on slow or unnecessary checks.

Skill for Claude CodeCodex

Part of the cto-toolkit plugin — 54 skills, 6 agents, 3 hooks shipped together

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.

agentmods
npx agentmods add skills/camilooscargbaptista/cto-toolkit/testing-strategy
Any agent
npx skills add camilooscargbaptista/cto-toolkit --skill testing-strategy
Clone the repo
git clone --depth 1 https://github.com/camilooscargbaptista/cto-toolkit

Made for: Claude Code, Codex.

Or install cto-toolkit, the plugin that ships this one along with the rest of its 54 skills, 6 agents, 3 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/camilooscargbaptista/cto-toolkit/testing-strategy.svg)](https://agentmods.dev/skills/camilooscargbaptista/cto-toolkit/testing-strategy)
Your own site
<a href="https://agentmods.dev/skills/camilooscargbaptista/cto-toolkit/testing-strategy"><img src="https://agentmods.dev/badge/skills/camilooscargbaptista/cto-toolkit/testing-strategy.svg" alt="Measured on agentmods" height="20"></a>
Per session 161 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,359 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00161 $0.01359
Opus 5 $0.00081 $0.00679
Sonnet 5 $0.00032 $0.00272
Haiku 4.5 $0.00016 $0.00136

Measured yesterday against content hash 22e8d1ad89c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

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

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.

testing-strategy/SKILL.md · 143 lines

How it starts

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

Testing Strategy — TDD, BDD & QA

You are a senior QA engineer and testing advocate. Help the user write better tests, implement TDD/BDD workflows, and build a testing culture that catches bugs early without slowing down development.

Testing Pyramid

        ╱ ╲
       ╱ E2E ╲           Few, slow, expensive — critical user paths only
      ╱───────╲
     ╱Integration╲       Moderate — API, DB, service interactions
    ╱─────────────╲
   ╱   Unit Tests   ╲    Many, fast, cheap — business logic, pure functions
  ╱───────────────────╲
Level Speed Count What to Test
Unit <10ms Hundreds Business logic, pure functions, domain entities
Integration <5s Dozens API endpoints, DB queries, service interactions
E2E <30s Handful Critical user journeys, cross-system flows

Test-Driven Development (TDD)

The Red-Green-Refactor Cycle

1. RED    → Write a failing test for the behavior you want
2. GREEN  → Write the minimum code to make it pass
3. REFACTOR → Clean up without changing behavior (tests still pass)
4. Repeat

Why it works: Tests define the contract before implementation, catch bugs early, and prevent over-engineering. Tests become documentation.

When TDD Works Best

  • Domain logic with clear inputs/outputs
  • Bug fixes (write the failing test first, then fix)
  • API contracts (test the interface before implementing)
  • Algorithms and calculations

When TDD is Less Useful

  • Exploratory coding / prototyping
  • UI layout (hard to test visually)
  • Infrastructure glue code
  • One-off scripts

Behavior-Driven Development (BDD)

BDD bridges business requirements and technical tests using natural language. Gherkin syntax lets non-technical stakeholders read and approve tests.

Key benefit: Reduces miscommunication. Everyone agrees on requirements before coding.

For detailed BDD/Gherkin examples with Scenario Outlines and TypeScript step definitions, read references/bdd-examples.md

Read the full file on GitHub · 143 lines

Files

What ships with it

3 files 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. yesterday First seen · 143 lines · 161 tokens per session scan A 22e8d1ad89c3

Subscribe to this mod's changes

testing-strategy is a skill published in the GitHub repository camilooscargbaptista/cto-toolkit (7 stars, last pushed 5mo ago), licensed MIT. It adds 161 tokens to every session and 1,359 once invoked, about $0.0008 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

cover

Generate tests that do not exist yet. Analyzes coverage gaps, then writes and runs new test files across three tiers (unit, integration via testcontainers, Playwright E2E), one test-generator agent per tier, healing failures for up to 3 iterations. Use when code has no tests or when raising coverage after…

yonatangross/orchestkit · 95 tokens

test-generator

Generate comprehensive unit, integration, and end-to-end tests. Use when adding test coverage, writing tests for new features, or improving existing test suites.

asgarovf/locusai · 33 tokens

Test Engineer

Creates or completes a medium-coverage test suite: unit, component, and critical e2e flows.

Tariux/AI-Skills-Not-Awesome · 24 tokens

testing-patterns

Vitest + Playwright testing patterns: unit tests, mocking, fixtures, E2E, coverage, and anti-patterns. Use when writing tests, setting up test infrastructure, or following TDD workflows.

zebbern/termstack · 46 tokens

testing-expert

Expert-level software testing with unit tests, integration tests, E2E tests, TDD/BDD, and testing best practices. Use when the user mentions TDD, BDD, unit tests, integration tests, or end-to-end tests, or when the task involves Testing Fundamentals, Unit Testing, Integration Testing, or End-to-End Testing.

personamanagmentlayer/pcl · 73 tokens

embedded-testing

Embedded test-design expert that operates in two modes: (1) Unit-test generation — analyse a C function for decisions and conditions, produce test cases achieving MC/DC coverage (required for ASIL-C/D), add boundary and error-path tests, provide RTE/BSW stub declarations, and output a coverage matrix; (2) Boundary…

ptsilivis/autonomousguy · 201 tokens