testing-strategy

testing-strategy is a skill for Claude Code from aneja5/forge-skills. It costs 53 tokens per session (1,477 once invoked), scanned A, original, MIT.

A plan for deciding which parts of a project need unit, integration, or end-to-end tests. End-to-end tests check complete user flows, while unit tests check small pieces of code in isolation.

In plain words
What is it for?
Use it when starting a project, resetting test conventions, reviewing test quality, or deciding how to test each component and critical path.
Why use it?
It addresses slow, flaky, inconsistent, or meaningless test suites by defining responsibilities, coverage targets, mocking rules, and CI checks.

Skill for Claude Code

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

Part of the forge-skills plugin — 42 skills, 36 commands, 13 agents, 1 hook 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/aneja5/forge-skills/testing-strategy
Any agent
npx skills add aneja5/forge-skills --skill testing-strategy
Clone the repo
git clone --depth 1 https://github.com/aneja5/forge-skills

Made for: Claude Code.

Or install forge-skills, the plugin that ships this one along with the rest of its 42 skills, 36 commands, 13 agents, 1 hook.

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/aneja5/forge-skills/testing-strategy.svg)](https://agentmods.dev/skills/aneja5/forge-skills/testing-strategy)
Your own site
<a href="https://agentmods.dev/skills/aneja5/forge-skills/testing-strategy"><img src="https://agentmods.dev/badge/skills/aneja5/forge-skills/testing-strategy.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,477 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.00053 $0.01477
Opus 5 $0.00026 $0.00739
Sonnet 5 $0.00011 $0.00295
Haiku 4.5 $0.00005 $0.00148

Measured 2d ago against content hash c710a100569a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 2d 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-strategy/SKILL.md · 118 lines

How it starts

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

Testing Strategy

Overview

Define what gets tested, at what level, with what mocking — before tests proliferate. Output is .forge/testing-strategy.md — the test pyramid for this project (unit/integration/e2e ratio), what each level is responsible for, mocking philosophy, per-component coverage targets, the critical-path inventory, the flake quarantine policy, and CI gate definitions. Consumed by incremental-implementation, tdd, and code-review-and-quality.

When to Use

  • A new project is starting and needs test conventions before code lands
  • The test suite has grown organically and is slow, flaky, or inconsistent
  • Coverage % is being treated as a goal and producing meaningless tests
  • A team is mocking everything internally and tests pass while features break
  • CI takes >15 minutes and the team is starting to skip tests

When NOT to Use

  • Single-task work where tdd is the right skill (write the test, write the code)
  • Reference implementations or learning projects where tests aren't shipped
  • The strategy exists, is followed, and only one component needs adjustment

Common Rationalizations

Thought Reality
"100% coverage is the goal" Coverage measures lines hit, not behavior verified. 100% coverage of a deleted file is meaningless.
"Mock everything" Mocking internals tests the mock, not the code. When the implementation changes, mocks lie.
"E2E is too slow, skip it" One e2e test catches what 50 unit tests miss — integration between layers is where most bugs live.
"We'll add tests after" Tests-after test imagined behavior, not actual behavior. They lock in accidents as decisions.
"Flaky tests just need a retry" Retries hide bugs. A flaky test is a heisenbug — quarantine and fix the root cause.
"Test the implementation so refactors stay safe" Refactors should change implementation freely. Tests on internals make refactoring expensive.

Red Flags

  • "100% coverage" as the explicit target
  • A test file with expect(spy).toHaveBeenCalledWith(...) and no other assertions
  • Every external service mocked at function level (mock the boundary instead)
  • Zero end-to-end tests for the primary user journey
  • A test that takes >30 seconds and runs on every commit
  • A test that passes when the underlying feature is manually broken (snapshot rot, weak assertions)
  • A retry config on pytest/vitest/jest to "fix" flakes

Read the full file on GitHub · 118 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. 2d ago First seen · 118 lines · 53 tokens per session scan A c710a100569a

Subscribe to this mod's changes

testing-strategy is a skill published in the GitHub repository aneja5/forge-skills (3 stars, last pushed 3mo ago), licensed MIT. It adds 53 tokens to every session and 1,477 once invoked, about $0.0003 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.