testing

testing is a skill for Claude Code, Codex from rtazima/claude-proj-blueprint. It costs 49 tokens per session (1,340 once invoked), scanned A, original, MIT.

A code-testing workflow that reads the code, identifies important behavior and edge cases, and creates tests for it. TDD, or test-driven development, is a method of writing tests as part of the development process.

In plain words
What is it for?
Use it to write or improve tests, analyze test coverage, and verify that tests pass. It is intended for functions, classes, endpoints, and code with dependencies such as databases, network requests, files, or timers.
Why use it?
It reduces the chance that tests only repeat the implementation or miss real failures. It also checks error cases such as empty input, boundary values, missing data, and failed dependencies.

Skill for Claude CodeCodex

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/rtazima/claude-proj-blueprint/testing
Any agent
npx skills add rtazima/claude-proj-blueprint --skill testing
Clone the repo
git clone --depth 1 https://github.com/rtazima/claude-proj-blueprint

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/rtazima/claude-proj-blueprint/testing.svg)](https://agentmods.dev/skills/rtazima/claude-proj-blueprint/testing)
Your own site
<a href="https://agentmods.dev/skills/rtazima/claude-proj-blueprint/testing"><img src="https://agentmods.dev/badge/skills/rtazima/claude-proj-blueprint/testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,340 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 $0.00049 $0.01340
Opus 5 $0.00024 $0.00670
Sonnet 5 $0.00010 $0.00268
Haiku 4.5 $0.00005 $0.00134

Measured 5d ago against content hash 9cb38e030e77, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

testing 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 5d 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.

.claude/skills/testing/SKILL.md · 124 lines

How it starts

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

Testing

Analyze code and generate meaningful tests. Not just "test the function" — understand what the code does, identify edge cases, and create tests that catch real bugs.

Rules

  1. Read before testing — understand the code's purpose and dependencies before writing tests
  2. AAA pattern — every test: Arrange (setup), Act (execute), Assert (verify)
  3. One assertion per concept — test one behavior per it/test block
  4. Test behavior, not implementation — test what the function does, not how it does it
  5. Edge cases matter — null, empty, boundary values, error paths
  6. Name tests descriptively"should return 0 when cart is empty", not "test1"
  7. No test interdependence — each test must work independently and in any order
  8. Run after writing — always execute the tests to confirm they pass

Workflow

Phase 1: Analyze the code

  1. Read the source file(s) to test
  2. Identify:
    • Public API surface — exported functions, class methods, endpoints
    • Dependencies — what it imports, what needs mocking
    • Side effects — DB calls, HTTP requests, file I/O, timers
    • Edge cases — null inputs, empty arrays, boundary values, error conditions
    • Business rules — domain-specific logic that MUST be correct

Phase 2: Decide test type

What you're testing Test type Approach
Pure function (no side effects) Unit test Direct call, no mocks needed
Function with dependencies Unit test Mock dependencies, test logic in isolation
Multiple modules working together Integration test Minimal mocking, test the interaction
API endpoint Integration test Test request/response cycle
User workflow E2E test Test full flow from user perspective
Data transformation Unit test Input → expected output tables

Phase 3: Generate tests

Structure
describe('[ModuleName]', () => {
  describe('[functionName]', () => {
    // Happy path
    it('should [expected behavior] when [condition]', () => {
      // Arrange
      // Act
      // Assert
    });

    // Edge cases
    it('should [behavior] when input is null/empty/zero', () => { ... });
    it('should [behavior] when input is at boundary', () => { ... });

    // Error cases
    it('should throw/return error when [invalid condition]', () => { ... });
  });
});

Read the full file on GitHub · 124 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. 5d ago First seen · 124 lines · 49 tokens per session scan A 9cb38e030e77

Subscribe to this mod's changes

testing is a skill published in the GitHub repository rtazima/claude-proj-blueprint (20 stars, last pushed 3mo ago), licensed MIT. It adds 49 tokens to every session and 1,340 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

sparc-methodology

SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) comprehensive development methodology with multi-agent orchestration.

ruvnet/RuView · 29 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

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

pest-testing

Use this skill for Pest PHP testing in Laravel projects only. Trigger whenever any test is being written, edited, fixed, or refactored — including fixing tests that broke after a code change, adding assertions, converting PHPUnit to Pest, adding datasets, and TDD workflows. Always activate when the user asks how to…

coollabsio/coolify · 171 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