testing

testing is a skill for Claude Code from AvinashP/AgentsAtlas. It costs 28 tokens per session (1,443 once invoked), scanned A, original, MIT.

A test-driven development workflow. Test-driven development, or TDD, means writing a test that fails, implementing the smallest change that makes it pass, and then improving the code.

In plain words
What is it for?
Use it before implementing a feature or bug fix to create a focused test, confirm it fails, implement the change, and then refactor safely.
Why use it?
Writing code before defining its expected behavior can leave bugs untested or make changes harder to verify. This workflow requires a failing test before production code for features, fixes, refactors, and behavior changes.

Skill for Claude Code

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

Part of the agents-atlas plugin — 24 skills shipped together

Good fit Use it before implementing a feature or bug fix to create a focused test, confirm it fails, implement the change, and then refactor safely.

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

Made for: Claude Code.

Or install agents-atlas, the plugin that ships this one along with the rest of its 24 skills.

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/avinashp/agentsatlas/testing/github.svg)](https://agentmods.dev/skills/avinashp/agentsatlas/testing)
Your own site
<a href="https://agentmods.dev/skills/avinashp/agentsatlas/testing"><img src="https://agentmods.dev/badge/skills/avinashp/agentsatlas/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/avinashp/agentsatlas/testing"><img src="https://agentmods.dev/badge/skills/avinashp/agentsatlas/testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,443 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.00028 $0.01443
Opus 5.5 $0.00011 $0.00577
Sonnet 5.5 $0.00006 $0.00289
Haiku 4.5 $0.00003 $0.00144

Measured 1mo ago against content hash 96732e5bb42f, 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 1mo 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 · 255 lines

How it starts

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

Test-Driven Development

Write the test first. Watch it fail. Write minimal code to pass.

The Iron Law

NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST

If you didn't watch the test fail, you don't know if it tests the right thing.

Write code before the test? Delete it. Start over.

When to Use

Always:

  • New features
  • Bug fixes
  • Refactoring
  • Behavior changes

Exceptions (ask first):

  • Throwaway prototypes
  • Generated code
  • Configuration files

Thinking "skip TDD just this once"? Stop. That's rationalization.

Red-Green-Refactor

RED - Write Failing Test

Write one minimal test showing what should happen.

// Good: Clear name, tests real behavior, one thing
test('rejects empty email', async () => {
  const result = await submitForm({ email: '' });
  expect(result.error).toBe('Email required');
});
// Bad: Vague name, tests mock not code
test('form works', async () => {
  const mock = jest.fn().mockResolvedValue('success');
  await submitForm(mock);
  expect(mock).toHaveBeenCalled();
});

Requirements:

  • One behavior per test
  • Clear descriptive name
  • Real code (no mocks unless unavoidable)

Verify RED - Watch It Fail

MANDATORY. Never skip.

npm test path/to/test.test.ts

Confirm:

  • Test fails (not errors)
  • Failure message is expected
  • Fails because feature missing (not typos)

Test passes? You're testing existing behavior. Fix the test.

GREEN - Minimal Code

Write the simplest code to pass the test.

// Good: Just enough to pass
function validateEmail(email: string): string | null {
  if (!email?.trim()) return 'Email required';
  return null;
}
// Bad: Over-engineered
function validateEmail(
  email: string,
  options?: {
    allowEmpty?: boolean;
    customRegex?: RegExp;
    onValidate?: (email: string) => void;
  }
): ValidationResult {
  // YAGNI - don't add features not tested
}

Don't add features, refactor other code, or "improve" beyond the test.

Read the full file on GitHub · 255 lines

Files

What ships with it

3 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. 1mo ago First seen · 255 lines · 28 tokens per session scan A 96732e5bb42f

Subscribe to this mod's changes

testing is a skill published in the GitHub repository AvinashP/AgentsAtlas (7 stars, last pushed 5mo ago), licensed MIT. It adds 28 tokens to every session and 1,443 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-31.