testing-strategies

testing-strategies is a skill for Claude Code from rbarcante/claude-conductor. It costs 22 tokens per session (2,150 once invoked), scanned A, original, Apache-2.0.

Guidance for writing and organizing software tests, including unit tests that check small parts of a program and integration tests that check connected parts.

In plain words
What is it for?
Use it when writing tests, applying TDD—writing tests as part of the development cycle—or setting up test infrastructure, including mocking and test organization.
Why use it?
It helps tests focus on observable behavior, remain independent, and give useful feedback without becoming difficult to maintain.

Skill for Claude Code

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

Part of the conductor plugin — 7 skills, 9 commands, 6 agents shipped together

Good fit Use it when writing tests, applying TDD—writing tests as part of the development cycle—or setting up test infrastructure, including mocking and test organization.

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

Made for: Claude Code.

Or install conductor, the plugin that ships this one along with the rest of its 7 skills, 9 commands, 6 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/rbarcante/claude-conductor/testing-strategies/github.svg)](https://agentmods.dev/skills/rbarcante/claude-conductor/testing-strategies)
Your own site
<a href="https://agentmods.dev/skills/rbarcante/claude-conductor/testing-strategies"><img src="https://agentmods.dev/badge/skills/rbarcante/claude-conductor/testing-strategies/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-strategies

Your own site · 80×15
<a href="https://agentmods.dev/skills/rbarcante/claude-conductor/testing-strategies"><img src="https://agentmods.dev/badge/skills/rbarcante/claude-conductor/testing-strategies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,150 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.00022 $0.02150
Opus 5 $0.00011 $0.01075
Sonnet 5 $0.00004 $0.00430
Haiku 4.5 $0.00002 $0.00215

Measured 10d ago against content hash e218c61cfb38, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

testing-strategies 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 10d 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-strategies/SKILL.md · 363 lines

How it starts

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

Testing Strategies

Guidance for writing effective, maintainable tests. Covers unit testing patterns, integration testing, mocking strategies, and test organization.

Core Principles

  1. Test behavior, not implementation: Tests should verify what code does, not how
  2. Arrange-Act-Assert: Structure every test with clear setup, action, and verification
  3. One assertion per concept: Each test should verify one logical concept
  4. Independent tests: Tests should not depend on each other or shared state
  5. Fast feedback: Unit tests should run in milliseconds

Test Structure

Arrange-Act-Assert (AAA)

describe('UserService', () => {
  describe('createUser', () => {
    it('should create user with valid data', async () => {
      // Arrange
      const userData = { name: 'John', email: '[email protected]' };
      const mockRepo = { save: jest.fn().mockResolvedValue({ id: '1', ...userData }) };
      const service = new UserService(mockRepo);

      // Act
      const result = await service.createUser(userData);

      // Assert
      expect(result.id).toBe('1');
      expect(result.name).toBe('John');
      expect(mockRepo.save).toHaveBeenCalledWith(userData);
    });
  });
});

Test Naming

// Pattern: should [expected behavior] when [condition]
it('should return null when user not found', () => {});
it('should throw ValidationError when email is invalid', () => {});
it('should retry 3 times when connection fails', () => {});

// Or: [condition] => [expected behavior]
it('invalid email => throws ValidationError', () => {});
it('user not found => returns null', () => {});

Test Organization

src/
  services/
    user.ts
    user.test.ts          # Co-located unit tests
tests/
  integration/
    user.integration.ts   # Integration tests
  e2e/
    user-flow.e2e.ts      # End-to-end tests
  fixtures/
    users.ts              # Shared test data
  helpers/
    test-db.ts            # Test utilities

Read the full file on GitHub · 363 lines

Files

What ships with it

5 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. 10d ago First seen · 363 lines · 22 tokens per session scan A e218c61cfb38

Subscribe to this mod's changes

testing-strategies is a skill published in the GitHub repository rbarcante/claude-conductor (56 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 22 tokens to every session and 2,150 once invoked, about $0.0001 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-08-30.