testing

testing is a skill for Claude Code, Codex from byronxlg/skillfold. It costs 17 tokens per session (407 once invoked), scanned A, original, MIT.

A set of instructions for writing reliable software tests. It focuses on checking visible behavior, including normal inputs, boundary cases, and errors, with each test explaining one expected result.

In plain words
What is it for?
Use it to plan and write tests, choose what inputs to cover, structure tests as setup-action-check, and keep test names and fixtures understandable.
Why use it?
It helps prevent tests that only mirror the code's internal structure or miss important failure cases. Clear behavior-focused tests are easier to maintain when the code changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to plan and write tests, choose what inputs to cover, structure tests as setup-action-check, and keep test names and fixtures understandable.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/byronxlg/skillfold/testing"><img src="https://agentmods.dev/badge/skills/byronxlg/skillfold/testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 407 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.00017 $0.00407
Opus 5.5 $0.00007 $0.00163
Sonnet 5.5 $0.00003 $0.00081
Haiku 4.5 $0.00002 $0.00041

Measured 2mo ago against content hash cd99a17f8de7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

library/skills/testing/SKILL.md · 52 lines

What it actually says

Testing

You write and reason about tests that verify code correctness. Your tests are reliable, readable, and focused on behavior.

Principles

  • Test behavior, not implementation - tests should survive refactoring
  • Each test verifies one thing and has a descriptive name that reads as a specification
  • Tests are documentation - a reader should understand the expected behavior from the test suite alone
  • Prefer real implementations over mocks where practical
  • Cover the happy path, edge cases, and error cases

Approach

When writing tests:

  1. Identify the public API surface to test
  2. List the behaviors: what should happen for valid input, boundary input, and invalid input?
  3. Write tests for the happy path first, then edge cases, then error cases
  4. Use descriptive test names that explain the expected behavior (e.g., "rejects empty input with a clear error")
  5. Keep test setup minimal - only include what is relevant to the behavior under test
  6. Use the project's existing test framework and conventions

Test Structure

Follow the arrange-act-assert pattern:

  • Arrange: Set up inputs and expected state with minimal fixtures
  • Act: Call the function or method under test
  • Assert: Verify the output, side effect, or error

What to Test

  • Public API and exported functions
  • Boundary conditions (empty input, maximum values, type boundaries)
  • Error paths (invalid input, missing dependencies, network failures)
  • State transitions and side effects

What Not to Test

  • Implementation details (private methods, internal state)
  • Third-party library behavior
  • Trivial code (getters, simple pass-through functions)

Output

Produce well-structured tests that follow the project's conventions. Each test should be independent - no shared mutable state between tests. Clean up any resources (temp files, connections) after each test.

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 First seen · 52 lines · 17 tokens per session scan A cd99a17f8de7

Subscribe to this mod's changes

testing is a skill published in the GitHub repository byronxlg/skillfold (15 stars, last pushed 6d ago), licensed MIT. It adds 17 tokens to every session and 407 once invoked, about $0.0001 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-08-30.

Related

Other skills, from other repositories

migrate-to-shoehorn

Migrate test files from as type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace as in tests, or needs partial test data.

mxyhi/ok-skills · 48 tokens

V3 Core Implementation

Core module implementation for claude-flow v3. Implements DDD domains, clean architecture patterns, dependency injection, and modular TypeScript codebase with comprehensive testing.

ruvnet/RuView · 37 tokens

adversarial-reviewer

Stress-test a code change for concrete correctness defects, unsafe assumptions, and failure modes. Use when the user explicitly asks for an adversarial review, a deep bug hunt, or to tear a change apart, or to check your own change before submitting it. Do not use for ordinary review, style feedback, or general…

emdash-cms/emdash · 72 tokens

om-troubleshooter

Diagnose and fix standalone Open Mercato bugs across scope, commands, locking, fields, generated registries, UI hydration, cache/search, bootstraps, queues, and providers. Use for "fix bug", "why does this fail", "regression", "debug", "napraw błąd", or a failing test.

open-mercato/open-mercato · 73 tokens

output

Import and use Kubb's generated code (types, clients, hooks, schemas, mocks). Use when writing app or test code that consumes a Kubb build.

kubb-labs/kubb · 35 tokens

walkeros-testing-strategy

Use when writing tests, reviewing test code, or discussing testing approach for walkerOS packages. Covers env pattern, dev examples, and package-specific strategies.

elbwalker/walkerOS · 36 tokens