agentic-code: Skill for Claude Code

.agents/skills/testing/SKILL.md

testing is a skill for Claude Code, Codex from shinpr/agentic-code. It costs 31 tokens per session (618 once invoked), scanned A, original, MIT.

A testing guide based on TDD, or test-driven development: first write a focused test that fails, then make it pass, and finally improve the code. It also covers observable test design and repository-specific checks.

In plain words
What is it for?
Writing or reviewing tests, changing behavior, running focused proofs, and completing the relevant checks already established by a repository.
Why use it?
It provides evidence that a behavior change works and helps catch regressions without relying on guesswork. It also prevents tests that pass but check the wrong part of the system.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is shinpr/agentic-code's own configuration. It tells Claude Code and Codex how to work on agentic-code itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentic-code configures →

Reuse

Borrowing it

Nothing to install: this file belongs to shinpr/agentic-code. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/shinpr/agentic-code/main/.agents/skills/testing/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/shinpr/agentic-code

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/shinpr/agentic-code/testing/github.svg)](https://agentmods.dev/skills/shinpr/agentic-code/testing)
Your own site
<a href="https://agentmods.dev/skills/shinpr/agentic-code/testing"><img src="https://agentmods.dev/badge/skills/shinpr/agentic-code/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/shinpr/agentic-code/testing"><img src="https://agentmods.dev/badge/skills/shinpr/agentic-code/testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 618 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00031 $0.00618
Opus 5.5 $0.00012 $0.00247
Sonnet 5.5 $0.00006 $0.00124
Haiku 4.5 $0.00003 $0.00062

Measured 2mo ago against content hash 4af3e0b47dcc, 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.

.agents/skills/testing/SKILL.md · 82 lines

How it starts

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

Testing Rules

Language-Specific References

Read a language reference only when the repository uses that language and the reference affects the current test or check:

Repository commands and established conventions take precedence over generic examples.

TDD Process

Use RED → GREEN → REFACTOR when a behavior change can be represented by a focused failing test.

RED

  1. Write or select a test that observes the required behavior.
  2. Run it and confirm the current implementation does not satisfy the new expectation.
  3. If the test already passes, inspect whether the outcome is already satisfied, the test observes the wrong boundary, or implementation work is still required elsewhere.

GREEN

Implement the smallest change that makes the focused proof pass while preserving current contracts and non-goals.

REFACTOR

Improve structure only where the current change supplies evidence that refactoring is needed. Keep the focused proof passing.

VERIFY

Run the focused proof and the repository's applicable established checks. Fix in-scope regressions before completion.

TDD is not required for documentation-only changes, pure configuration without executable behavior, disposable spikes, or a no-change conclusion. Add a test after an emergency fix when the test protects the reproduced failure from recurrence.

Test Boundary

Test observable behavior:

  • public or shared contracts;
  • outputs, errors, and persisted effects;
  • required external calls or side effects;
  • named interactions across components or processes.

Keep internal implementation details outside tests unless they are themselves an accepted contract.

Choose the narrowest sufficient level:

  • unit or local check for isolated behavior;
  • integration for a named interaction boundary;
  • E2E for a complete journey required by the acceptance criterion.

Test Design

  • Use clear setup, action, and observable expectation.
  • Keep test data minimal and free of secrets.
  • Prefer deterministic behavior and independent state.
  • Mock external I/O at unit boundaries; use real internal collaborators when their interaction is the behavior under test.
  • Reuse or extend existing representative coverage before adding another lane.

Read the full file on GitHub · 82 lines

Files

What ships with it

1 file 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. 2mo ago First seen · 82 lines · 31 tokens per session scan A 4af3e0b47dcc

Subscribe to this mod's changes

testing is a skill published in the GitHub repository shinpr/agentic-code (50 stars, last pushed 7d ago), licensed MIT. It adds 31 tokens to every session and 618 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.