testing-strategy

testing-strategy is a skill for Claude Code, Codex from JimmyPaolini/codebase. It costs 71 tokens per session (1,787 once invoked), scanned A, original, MIT.

Guidance for choosing and running unit, integration, and end-to-end tests in this codebase. End-to-end tests check a complete user flow, while unit tests check a small piece of code.

In plain words
What is it for?
Use it when adding tests, naming test files, selecting test types, running Nx test targets, or checking whether coverage thresholds still pass.
Why use it?
It helps match tests to the right scope and keeps test names, commands, and coverage checks consistent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when adding tests, naming test files, selecting test types, running Nx test targets, or checking whether coverage thresholds still pass.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jimmypaolini/codebase/testing-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 JimmyPaolini/codebase --skill testing-strategy
Clone the repo
git clone --depth 1 https://github.com/JimmyPaolini/codebase

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/jimmypaolini/codebase/testing-strategy/github.svg)](https://agentmods.dev/skills/jimmypaolini/codebase/testing-strategy)
Your own site
<a href="https://agentmods.dev/skills/jimmypaolini/codebase/testing-strategy"><img src="https://agentmods.dev/badge/skills/jimmypaolini/codebase/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/jimmypaolini/codebase/testing-strategy"><img src="https://agentmods.dev/badge/skills/jimmypaolini/codebase/testing-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,787 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.
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.00071 $0.01787
Opus 5.5 $0.00028 $0.00715
Sonnet 5.5 $0.00014 $0.00357
Haiku 4.5 $0.00007 $0.00179

Measured 2mo ago against content hash 9d4d8aa775ec, 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 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 2mo 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.

.agents/skills/testing-strategy/SKILL.md · 175 lines

How it starts

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

Testing Strategy

This skill describes the codebase testing model and naming conventions.

When to Use This Skill

Use when asked to:

  • Add tests or choose test types
  • Name test files correctly
  • Run tests via Nx
  • Recommend coverage or test scope

Test Types and Naming

  • Unit: *.unit.test.ts
  • Integration: *.integration.test.ts
  • End-to-end: *.end-to-end.test.ts

Run Tests

nx run <project>:vitest:unit
nx run <project>:vitest:integration
nx run <project>:vitest:end-to-end
nx affected --target=vitest --base=main

Coverage Verification

When a task includes coverage goals (or CI enforces coverage thresholds), run:

nx run <project>:vitest --configuration=coverage

Key practice: after structural test refactors (renaming, regrouping, helper extraction), always re-run coverage to verify no threshold regression.

If branch coverage is just below threshold, add focused tests for uncovered guard/fallback branches first (for example undefined/null guards, sparse-array fallbacks, and error-only paths).

Additional coverage practices from recent 96% threshold work:

  • Keep project Vitest configs thin and inherit shared defaults using mergeConfig(...) from configuration/vitest.config.ts so threshold changes stay centralized.
  • Use a hotspot-first loop: generate coverage, sort the lowest branch-coverage files, patch the highest-impact offenders, then re-run coverage.
  • Raise coverage with behavior-first assertions, not synthetic test inflation. Prioritize guard clauses, empty-result paths, fallback branches, and explicit error paths.
  • Add dedicated branch-focused test files for services with dense branching logic so intent stays explicit and regressions are easier to detect after refactors.
  • Prefer deterministic fixtures and fixed clocks for time-sensitive or orbital/math-heavy logic to keep branch tests stable.
  • For orchestration services, combine focused unit tests with a small set of integration tests that verify cross-service error propagation and empty-data behavior.
  • Include module wiring and constants/types-adjacent smoke tests where needed so structural files do not remain persistent blind spots under strict thresholds.
  • Before opening or updating a coverage-focused PR, run the CI-shaped command locally: nx affected --target=vitest --configuration=coverage --base=main.

Read the full file on GitHub · 175 lines

Files

What ships with it

1 file 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. 2mo ago Changed · +28 lines · +39 tokens per session 9d4d8aa775ec
  2. 2mo ago First seen · 147 lines · 32 tokens per session scan A d7a9522c8596

Subscribe to this mod's changes

testing-strategy is a skill published in the GitHub repository JimmyPaolini/codebase (0 stars, last pushed 2mo ago), licensed MIT. It adds 71 tokens to every session and 1,787 once invoked, about $0.0003 per session on Opus 5.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

testing-strategy compared with skills from other repositories

testing-strategy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testing-strategyJimmyPaolini/codebaseSkill02mo agoMITA71Claude Code, Codex
test-masterJeffallan/claude-skillsSkill13ktodayMITA104Claude Code
axiom-testingCharlesWiltgen/AxiomSkill1.3k21d agoMITA38Claude Code
test-generatorrshankras/claude-code-apple-skillsSkill91521d agoMITA33Claude Code
test-automation-expertcuriositech/some_claude_skillsSkill2782d agoMITA133Claude Code
designing-testsCloudAI-X/claude-workflow-v2Skill1.4k1mo agoMITA48Claude Code
testing-blocksadobe/skillsSkill339todayApache-2.0A114Claude Code