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.
npx skills add fermonterom/claude-testing-kit --skill testing-kitgit clone --depth 1 https://github.com/fermonterom/claude-testing-kitWrote 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.
[](https://agentmods.dev/skills/fermonterom/claude-testing-kit/testing-kit)<a href="https://agentmods.dev/skills/fermonterom/claude-testing-kit/testing-kit"><img src="https://agentmods.dev/badge/skills/fermonterom/claude-testing-kit/testing-kit/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.
<a href="https://agentmods.dev/skills/fermonterom/claude-testing-kit/testing-kit"><img src="https://agentmods.dev/badge/skills/fermonterom/claude-testing-kit/testing-kit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00078 | $0.03867 |
| Opus 5.5 | $0.00031 | $0.01547 |
| Sonnet 5.5 | $0.00016 | $0.00773 |
| Haiku 4.5 | $0.00008 | $0.00387 |
Grade A, and why
testing-kit 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 485 lines — stays where its author put it; the contents beside it link to each section on GitHub.
testing-kit — TDD + Unit + E2E + Quality Gate para Next.js
Parte 1: TDD — Test First, Code Second
3 Reglas de Hierro
1. TEST FIRST, CODE SECOND — sin excepciones
2. NUNCA codigo de produccion sin un test que falle primero
3. CADA route.ts tiene route.test.ts, CADA page.tsx tiene .spec.ts
Ciclo RED → GREEN → REFACTOR
RED: Escribir UN test que describe UN comportamiento → ejecutar → DEBE FALLAR GREEN: Escribir el codigo MINIMO para que pase → ejecutar → DEBE PASAR REFACTOR: Limpiar sin romper tests → ejecutar → SIGUE PASANDO
Repetir. Un test a la vez. SIEMPRE vertical (test → codigo → green), NUNCA horizontal (todos los tests → luego todo el codigo).
Test List (antes de escribir codigo)
Listar todos los comportamientos a testear. Ejemplo para POST /api/users:
1. 201 — crea usuario con datos validos
2. 401 — rechaza sin autenticacion
3. 400 — rechaza campos requeridos vacios
4. 400 — rechaza email invalido
5. 404 — recurso padre no existe
6. 500 — maneja error de base de datos
Cada item = un ciclo RED → GREEN.
Parte 2: Unit Tests con Vitest
Template de 6 Casos (minimo obligatorio)
import { describe, it, expect, vi, beforeEach } from 'vitest'
// Mocks ANTES de los imports del codigo
const mockGetUser = vi.fn()
const mockFrom = vi.fn()
vi.mock('@/lib/supabase/server', () => ({
createClient: vi.fn(() => Promise.resolve({
auth: { getUser: mockGetUser },
from: mockFrom,
})),
}))
// Import del codigo a testear
import { POST } from './route'
const MOCK_USER = { id: 'user-123', email: '[email protected]' }
function createRequest(body?: unknown): Request {
return new Request('http://localhost/api/resource', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
...(body ? { body: JSON.stringify(body) } : {}),
})
}
beforeEach(() => { vi.clearAllMocks() })
describe('POST /api/resource', () => {
// CASO 1: Happy path (200/201)
it('returns 201 with created resource', async () => {
mockGetUser.mockResolvedValue({ data: { user: MOCK_USER } })
mockFrom.mockReturnValue({
insert: vi.fn().mockReturnThis(),
select: vi.fn().mockReturnThis(),
single: vi.fn().mockResolvedValue({ data: { id: '1', name: 'Test' }, error: null }),
})
const res = await POST(createRequest({ name: 'Test' }))
expect(res.status).toBe(201)
})
// CASO 2: Sin autenticacion (401)
it('returns 401 when not authenticated', async () => {
mockGetUser.mockResolvedValue({ data: { user: null } })
const res = await POST(createRequest({ name: 'Test' }))
expect(res.status).toBe(401)
})
// CASO 3: Input invalido (400)
it('returns 400 on invalid input', async () => {
mockGetUser.mockResolvedValue({ data: { user: MOCK_USER } })
const res = await POST(createRequest({})) // body vacio
expect(res.status).toBe(400)
})
// CASO 4: No encontrado (404)
it('returns 404 when resource not found', async () => {
mockGetUser.mockResolvedValue({ data: { user: MOCK_USER } })
mockFrom.mockReturnValue({
select: vi.fn().mockReturnThis(),
eq: vi.fn().mockReturnThis(),
single: vi.fn().mockResolvedValue({ data: null, error: null }),
})
const res = await POST(createRequest({ parentId: 'not-found' }))
expect(res.status).toBe(404)
})
// CASO 5: Error de BD (500)
it('returns 500 on database error', async () => {
mockGetUser.mockResolvedValue({ data: { user: MOCK_USER } })
mockFrom.mockReturnValue({
insert: vi.fn().mockReturnThis(),
select: vi.fn().mockReturnThis(),
single: vi.fn().mockResolvedValue({ data: null, error: { message: 'DB error' } }),
})
const res = await POST(createRequest({ name: 'Test' }))
expect(res.status).toBe(500)
// Verificar que NO expone el error interno
const body = await res.json()
expect(body.error).not.toContain('DB error')
})
// CASO 6: Extra (especifico del endpoint — SIEMPRE implementar, nunca dejar vacio)
it('returns 409 when duplicate name exists', async () => {
mockGetUser.mockResolvedValue({ data: { user: MOCK_USER } })
mockFrom.mockReturnValue({
insert: vi.fn().mockReturnThis(),
select: vi.fn().mockReturnThis(),
single: vi.fn().mockResolvedValue({
data: null,
error: { message: 'unique_violation', code: '23505' },
}),
})
const res = await POST(createRequest({ name: 'Duplicado' }))
expect(res.status).toBe(409)
})
})
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.
- 3mo ago First seen · 485 lines · 78 tokens per session scan A 05fbd464c80f
testing-kit is a skill published in the GitHub repository fermonterom/claude-testing-kit (10 stars, last pushed 8mo ago), licensed MIT. It adds 78 tokens to every session and 3,867 once invoked, about $0.0003 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.
testing-kit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| testing-kitfermonterom/claude-testing-kit | Skill | 10 | 8mo ago | MIT | A | 78 | Claude Code |
| test-masterJeffallan/claude-skills | Skill | 13k | today | MIT | A | 104 | Claude Code |
| axiom-testingCharlesWiltgen/Axiom | Skill | 1.3k | 2d ago | MIT | A | 38 | Claude Code |
| test-generatorrshankras/claude-code-apple-skills | Skill | 926 | 25d ago | MIT | A | 33 | Claude Code |
| test-automation-expertcuriositech/some_claude_skills | Skill | 284 | 6d ago | MIT | A | 133 | Claude Code |
| testing-blocksadobe/skills | Skill | 343 | today | Apache-2.0 | A | 114 | Claude Code |
| mobile-app-testingsecondsky/claude-skills | Skill | 257 | 4d ago | MIT | A | 47 | Claude Code |