testing

testing is a skill for Claude Code, Codex from elct9620/ai-coding-skills. It costs 102 tokens per session (3,728 once invoked), scanned A, original, Apache-2.0.

A testing guide for checking new features, behavior changes, and bug fixes with integration, unit, and end-to-end tests. It uses AAA structure: arrange the setup, act by running the code, and assert the result.

In plain words
What is it for?
Use it to choose between integration tests, which check components working together, unit tests for focused edge cases, and end-to-end tests for complete user flows.
Why use it?
It helps catch regressions—new breakages caused by later code changes—and checks that tests would fail if the original problem returned.

Skill for Claude CodeCodex

Part of the coding plugin — 9 skills, 4 commands 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/elct9620/ai-coding-skills/testing
Any agent
npx skills add elct9620/ai-coding-skills --skill testing
Clone the repo
git clone --depth 1 https://github.com/elct9620/ai-coding-skills

Made for: Claude Code, Codex.

Or install coding, the plugin that ships this one along with the rest of its 9 skills, 4 commands.

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/elct9620/ai-coding-skills/testing.svg)](https://agentmods.dev/skills/elct9620/ai-coding-skills/testing)
Your own site
<a href="https://agentmods.dev/skills/elct9620/ai-coding-skills/testing"><img src="https://agentmods.dev/badge/skills/elct9620/ai-coding-skills/testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,728 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.00102 $0.03728
Opus 5 $0.00051 $0.01864
Sonnet 5 $0.00020 $0.00746
Haiku 4.5 $0.00010 $0.00373

Measured 3d ago against content hash 18253c84efa4, 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 3d 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/SKILL.md · 300 lines

How it starts

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

  • Found a code smell while writing tests? → Use refactoring to fix it first
  • Need to design the class structure before testing? → Use design-patterns or principles
  • Adding a database migration or API endpoint? → Use schema alongside testing

Applicability Rubric

Condition Pass Fail
New feature implementation Adding new functionality No new behavior
Behavior change Modifying existing behavior No behavior change
Bug fix Fixing a defect Non-bug change
Pre-refactoring Ensuring tests exist before refactor Tests already sufficient

Apply when: Any condition passes

Core Principles

Integration-First Philosophy

Ensure components work together first, then verify individual component details. Unit tests are supplementary — only add them for edge cases that integration tests cannot practically cover.

Scenario Action
Starting new feature Write integration/E2E test first
Integration test passes Add unit tests only for uncovered edge cases
Edge case not covered by integration Add unit test for specific case
Component works alone but fails together Missing integration test coverage
Module has no integration test path Verify the module serves a real user need; if it does, add the missing integration path

Proving the Net Holds

A suite running green proves the code passes the tests, not that the tests would notice if the code broke. Where the same hand wrote the code, wrote the tests, and reports the result, green is self-issued and carries no more weight than the claim itself.

What settles it is breaking the code on purpose and watching a test object. Take a promise the spec makes about the scope, change the code so that promise is violated — 410 becomes 404, a guard disappears, a boundary moves one step — then run the suite.

Baseline With the break in After restoring Reading
Green Red Diff matches The net holds for that promise
Green Green Diff matches Nothing was watching — the missing test is the finding
Red Nothing follows; the baseline has to be green first
Green Red Diff differs Restoration failed — the tree is dirty, stop and say so

Read the full file on GitHub · 300 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. 3d ago First seen · 300 lines · 102 tokens per session scan A 18253c84efa4

Subscribe to this mod's changes

testing is a skill published in the GitHub repository elct9620/ai-coding-skills (5 stars, last pushed 8d ago), licensed Apache-2.0. It adds 102 tokens to every session and 3,728 once invoked, about $0.0005 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-31.