testing-strategy

testing-strategy is a skill for Claude Code from webdevtodayjason/titanium-plugins. It costs 50 tokens per session (5,360 once invoked), scanned A, original, MIT.

A guide to choosing and organizing software tests, including unit tests for small pieces, integration tests for connected parts, and end-to-end tests for complete user journeys. It also explains TDD, or writing a failing test before the code that makes it pass.

In plain words
What is it for?
Use it to plan a test pyramid, practise TDD, review test coverage, investigate failing tests, and connect testing to CI/CD pipelines.
Why use it?
It helps you decide what to test and where, avoiding both untested code and slow, difficult-to-maintain test suites.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { app } from '../src/app';.

Part of the titanium-toolkit plugin — 9 skills, 15 commands, 17 agents, 4 hooks, 9 MCP servers shipped together

Good fit Use it to plan a test pyramid, practise TDD, review test coverage, investigate failing tests, and connect testing to CI/CD pipelines.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/webdevtodayjason/titanium-plugins
agentmods
npx agentmods add skills/webdevtodayjason/titanium-plugins/testing-strategy

Made for: Claude Code.

Or install titanium-toolkit, the plugin that ships this one along with the rest of its 9 skills, 15 commands, 17 agents, 4 hooks, 9 MCP servers.

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/webdevtodayjason/titanium-plugins/testing-strategy/github.svg)](https://agentmods.dev/skills/webdevtodayjason/titanium-plugins/testing-strategy)
Your own site
<a href="https://agentmods.dev/skills/webdevtodayjason/titanium-plugins/testing-strategy"><img src="https://agentmods.dev/badge/skills/webdevtodayjason/titanium-plugins/testing-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 testing-strategy

Your own site · 80×15
<a href="https://agentmods.dev/skills/webdevtodayjason/titanium-plugins/testing-strategy"><img src="https://agentmods.dev/badge/skills/webdevtodayjason/titanium-plugins/testing-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,360 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00050 $0.05360
Opus 5.5 $0.00020 $0.02144
Sonnet 5.5 $0.00010 $0.01072
Haiku 4.5 $0.00005 $0.00536

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

Security

Grade A, and why

testing-strategy scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

(axios.get as jest.Mock).mockResolvedValue({ data: mockData });
plugins/titanium-toolkit/skills/testing-strategy/SKILL.md · 910 lines

How it starts

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

Testing Strategy

This skill provides comprehensive guidance for implementing effective testing strategies across your entire application stack.

Test Pyramid

The Testing Hierarchy

        /\
       /  \
      /E2E \       10% - End-to-End Tests (slowest, most expensive)
     /______\
    /        \
   /Integration\  20% - Integration Tests (medium speed/cost)
  /____________\
 /              \
/   Unit Tests   \ 70% - Unit Tests (fast, cheap, focused)
/__________________\

Rationale:

  • 70% Unit Tests: Fast, isolated, catch bugs early
  • 20% Integration Tests: Test component interactions
  • 10% E2E Tests: Test critical user journeys

Why This Distribution?

Unit tests are cheap:

  • Run in milliseconds
  • No external dependencies
  • Easy to debug
  • High code coverage per test

Integration tests are moderate:

  • Test real interactions
  • Catch integration bugs
  • Slower than unit tests
  • More complex setup

E2E tests are expensive:

  • Test entire system
  • Catch UX issues
  • Very slow (seconds/minutes)
  • Brittle and hard to maintain

TDD (Test-Driven Development)

Red-Green-Refactor Cycle

1. Red - Write a failing test:

describe('Calculator', () => {
  test('adds two numbers', () => {
    const calculator = new Calculator();
    expect(calculator.add(2, 3)).toBe(5); // FAILS - method doesn't exist
  });
});

2. Green - Write minimal code to pass:

class Calculator {
  add(a: number, b: number): number {
    return a + b; // Simplest implementation
  }
}
// Test now PASSES

3. Refactor - Improve the code:

class Calculator {
  add(a: number, b: number): number {
    // Add validation
    if (!Number.isFinite(a) || !Number.isFinite(b)) {
      throw new Error('Arguments must be finite numbers');
    }
    return a + b;
  }
}

TDD Benefits

Design benefits:

  • Forces you to think about API before implementation
  • Leads to more testable, modular code
  • Encourages SOLID principles

Read the full file on GitHub · 910 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. 1mo ago First seen · 910 lines · 50 tokens per session scan A 279aee276423

Subscribe to this mod's changes

testing-strategy is a skill published in the GitHub repository webdevtodayjason/titanium-plugins (7 stars, last pushed 8mo ago), licensed MIT. It adds 50 tokens to every session and 5,360 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

cpp-testing

Use only when writing/updating/fixing C++ tests, configuring GoogleTest/CTest, diagnosing failing or flaky tests, or adding coverage/sanitizers.

affaan-m/ECC · 34 tokens

rust-testing

Rust testing patterns including unit tests, integration tests, async testing, property-based testing, mocking, and coverage. Follows TDD methodology.

affaan-m/ECC · 31 tokens

write-vibe-tests

Write or refactor Mistral Vibe tests with proper decoupling. Use when adding behavior coverage, testing ports/adapters, replacing brittle mocks, creating fakes, adding characterization tests before refactors, or changing tests under tests/ for vibe/core, vibe/cli, vibe/acp, tools, config, sessions, skills, hooks, MCP…

mistralai/mistral-vibe · 80 tokens

composing-matchers

Build compound Gomega assertions by combining matchers — And/SatisfyAll (all pass), Or/SatisfyAny (any pass), Not (negate), WithTransform to map the actual before matching, Satisfy for an ad-hoc predicate, HaveValue to dereference pointers/interfaces, HaveField for struct fields and method results, HaveEach for every…

onsi/gomega · 136 tokens

principle-test-behavior-not-implementation

Apply when you write, change, or keep a test. Assert what the code's users can observe, so that the test fails when that behavior breaks and keeps passing when only the internals change.

michael-denyer/pstack-claude · 50 tokens

spec-driven-tests

Rebuild a package's unit test suite around a behavior specification (SPEC.md) derived from the implementation, with every test citing a numbered rule ID. Use when asked to do a spec-driven test rebuild, write a SPEC.md for a package, repeat the state or store spec process (PRs.

tldraw/tldraw · 63 tokens