test-master
Qué hace
Ayuda a la IA a crear pruebas unitarias, de integración y de extremo a extremo, y a planificar cómo debe probarse un proyecto. Está pensada para desarrolladores y personal de QA.
Cuándo usarla
- ✓Cuando quieres pruebas escritas para una funcionalidad nueva o para código existente.
- ✓Cuando necesitas encontrar huecos en la cobertura de tus pruebas.
- ✓Cuando tus pruebas fallan o son inestables y quieres corregir la causa raíz.
Link de la skill
https://github.com/Jeffallan/claude-skills/blob/main/skills/test-master/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Puedes escribir pruebas unitarias para esta función de precios y decirme qué casos me faltan?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA define el alcance, escribe pruebas con comprobaciones claras, las ejecuta, corrige los fallos y escribe un informe con valoraciones de gravedad.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Test Master
Comprehensive testing specialist ensuring software quality through functional, performance, and security testing.
Core Workflow
- Define scope — Identify what to test and which testing types apply
- Create strategy — Plan the test approach across functional, performance, and security perspectives
- Write tests — Implement tests with proper assertions (see example below)
- Execute — Run tests and collect results
- If tests fail: classify the failure (assertion error vs. environment/flakiness), fix root cause, re-run
- If tests are flaky: isolate ordering dependencies, check async handling, add retry or stabilization logic
- Report — Document findings with severity ratings and actionable fix recommendations
- Verify coverage targets are met before closing; flag gaps explicitly
Quick-Start Example
A minimal Jest unit test illustrating the key patterns this skill enforces:
// ✅ Good: meaningful description, specific assertion, isolated dependency
describe('calculateDiscount', () => {
it('applies 10% discount for premium users', () => {
const result = calculateDiscount({ price: 100, userTier: 'premium' });
expect(result).toBe(90); // specific outcome, not just truthy
});
it('throws on negative price', () => {
expect(() => calculateDiscount({ price: -1, userTier: 'standard' }))
.toThrow('Price must be non-negative');
});
});
Apply the same structure for pytest (def test_…, assert result == expected) and other frameworks.
Reference Guide
Load detailed guidance based on context:
<!-- TDD Iron Laws and Testing Anti-Patterns adapted from obra/superpowers by Jesse Vincent (@obra), MIT License -->| Topic | Reference | Load When |
|---|---|---|
| Unit Testing | references/unit-testing.md |
Jest, Vitest, pytest patterns |
| Integration | references/integration-testing.md |
API testing, Supertest |
| E2E | references/e2e-testing.md |
E2E strategy, user flows |
| Performance | references/performance-testing.md |
k6, load testing |
| Security | references/security-testing.md |
Security test checklist |
| Reports | references/test-reports.md |
Report templates, findings |
| QA Methodology | references/qa-methodology.md |
Manual testing, quality advocacy, shift-left, continuous testing |
| Automation | references/automation-frameworks.md |
Framework patterns, scaling, maintenance, team enablement |
| TDD Iron Laws | references/tdd-iron-laws.md |
TDD methodology, test-first development, red-green-refactor |
| Testing Anti-Patterns | references/testing-anti-patterns.md |
Test review, mock issues, test quality problems |
Constraints
MUST DO
- Test happy paths AND error/edge cases (e.g., empty input, null, boundary values)
- Mock external dependencies — never call real APIs or databases in unit tests
- Use meaningful
it('…')descriptions that read as plain-English specifications - Assert specific outcomes (
expect(result).toBe(90)), not just truthiness - Run tests in CI/CD; document and remediate coverage gaps
MUST NOT
- Skip error-path testing (e.g., don't test only the success branch of a try/catch)
- Use production data in tests — use fixtures or factories instead
- Create order-dependent tests — each test must be independently runnable
- Ignore flaky tests — quarantine and fix them; don't just re-run until green
- Test implementation details (internal method calls) — test observable behaviour
Output Templates
When creating test plans, provide:
- Test scope and approach
- Test cases with expected outcomes
- Coverage analysis
- Findings with severity (Critical/High/Medium/Low)
- Specific fix recommendations
Maintained by @jeffallan, Principal Consultant at Synergetic Solutions
Preguntas frecuentes
¿Solo escribe pruebas unitarias?
No. También cubre pruebas de integración, de extremo a extremo, de rendimiento y de seguridad.
¿Qué herramientas usa?
Sus ejemplos usan Jest, y menciona k6 y Artillery para las pruebas de rendimiento.
¿Cómo trata las pruebas inestables?
Busca problemas de orden y de asincronía, y puede añadir lógica de reintento o de estabilización.
Detalles
Descripción original del autor
Generates test files, creates mocking strategies, analyzes code coverage, designs test architectures, and produces test plans and defect reports across functional, performance, and security testing disciplines. Use when writing unit tests, integration tests, or E2E tests; creating test strategies or automation frameworks; analyzing coverage gaps; performance testing with k6 or Artillery; security testing with OWASP methods; debugging flaky tests; or working on QA, regression, test automation, quality gates, shift-left testing, or test maintenance.
repo: Jeffallan/claude-skills
Popularidad
- Estrellas en GitHub
- 12 mil
- Posición en el ranking
- #11464
- Licencia
- MIT
- Actualizada
- 30/10/2026
Comentarios
- …
Más skills de este repositorio
angular-architect
12 milAyuda a tu agente a construir apps de Angular 17 y posteriores con componentes independientes, enrutamiento con carga diferida, estado con NgRx, patrones de RxJS y optimización del rendimiento.
api-designer
12 milAyuda a tu agente a diseñar APIs REST o GraphQL y a escribir especificaciones OpenAPI 3.1, con reglas para recursos, paginación, formatos de error y versionado.
architecture-designer
12 milAyuda a tu agente a diseñar la arquitectura de un sistema, comparar patrones y tecnologías, y escribir Registros de Decisiones de Arquitectura que expliquen cada elección.
atlassian-mcp
12 milAyuda a tu agente a buscar y actualizar incidencias de Jira y páginas de Confluence mediante MCP, incluidas las consultas JQL y CQL, los sprints y la sincronización de la documentación.
Skills parecidas
test-driven-development
311 milEnseña a tu agente a escribir primero una prueba que falle, verla fallar y después escribir el código más pequeño que la hace pasar, antes de construir cualquier función o corrección.
verification-before-completion
311 milEnseña a tu agente a ejecutar comprobaciones reales y leer su resultado antes de afirmar que una tarea, una corrección o una compilación está completa o en buen estado.
migrate-to-shoehorn
310 milSustituye los casts de tipo arriesgados de tus archivos de prueba por la librería shoehorn, para que las pruebas usen datos parciales y sigan pasando las comprobaciones de tipos.