test-tagging
Qué hace
Esta skill añade etiquetas de categoría estándar, llamadas traits, a las pruebas existentes e informa de cómo se divide el conjunto de pruebas. Es para equipos que quieren ver la mezcla de sus pruebas, por ejemplo pruebas del camino feliz frente a pruebas de error.
Cuándo usarla
- ✓Cuando quieres que todas las pruebas de un conjunto tengan atributos de categoría estándar.
- ✓Cuando quieres un resumen de cómo se reparten las pruebas entre el camino feliz y el de error.
- ✓Cuando quieres comprobar si los caminos críticos tienen suficientes pruebas en la mezcla.
Link de la skill
https://github.com/dotnet/skills/blob/main/plugins/dotnet-test/skills/test-tagging/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
“Etiqueta todas mis pruebas con categorías estándar y muéstrame cuántas son de camino feliz frente a camino de error.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente lee los nombres y el cuerpo de cada prueba, clasifica cada una según sus traits, aplica los atributos estándar donde están claros y muestra la distribución.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Test Trait Tagging
Analyze an existing test suite in any supported language and apply a standardized set of trait tags to each test method, giving teams visibility into their test distribution (positive vs. negative, critical-path coverage, smoke tests, etc.).
Language-specific guidance: Read the caller-provided or runtime-listed
test-analysis-extensionscatalog and its matching language file. The helper is reference-only, not an invocable skill. If absent, continue with the built-in framework table below and report the limitation.
When to Use
- Auditing a test project to understand the mix of test types
- Adding trait attributes to untagged tests
- Generating a summary report of trait distribution across a test suite
- Reviewing whether critical paths have sufficient coverage
When Not to Use
- Writing new tests from scratch (use
code-testingfor any language, orwriting-mstest-testsfor MSTest) - Running or filtering tests (use
run-testsfor .NET; equivalent native runners elsewhere) - Migrating between test frameworks
- General quality, smell, flakiness, or assertion audits (use
test-anti-patternsor the matching analysis skill) - Diagnostic .NET executed line/branch/Cobertura interpretation or project-wide CRAP risk (use
coverage-analysis); raw coverage collection (userun-testsfor .NET, native tooling otherwise) - CRAP analysis for a named method, class, or file (use
crap-score) - Behavioral gaps where a test would survive broken production logic (use
test-gap-analysis)
Inputs
| Input | Required | Description |
|---|---|---|
| Test project or files | No | Path to the test project, folder, or specific test files. Discover from the current workspace when omitted. |
| Scope | No | Infer from the verb: tag/apply edits, audit/classify/report is report-only, and both applies only when both are requested. If ambiguous, default to audit to avoid unrequested edits. Frameworks declared report-only always emit a report; convention-based frameworks edit only after the user confirms the convention. |
| Framework | No | Auto-detected. Override when detection fails. |
Trait Taxonomy
Use exactly these trait names and values. Do not invent new trait values outside this table.
| Trait Value | Meaning | Heuristics |
|---|---|---|
positive |
Verifies expected behavior under normal/valid conditions | Asserts success, valid output, expected state, no exceptions for valid input |
negative |
Verifies correct handling of invalid input, errors, or edge cases | Asserts exceptions, error codes, validation failures, rejects bad input |
boundary |
Tests limits, thresholds, empty/null/None/nil inputs, min/max values | Operates on 0, -1, int.MaxValue / sys.maxsize / Number.MAX_SAFE_INTEGER / math.MaxInt64 / i32::MAX, empty string, null/None/nil/undefined, empty collection, boundary of valid range |
critical-path |
Core workflow that must never break; breakage blocks users | Tests the primary success scenario of a key public API or user-facing feature |
smoke |
Quick sanity check that the system is operational | Fast, no complex setup, verifies basic wiring (e.g., service resolves, endpoint returns 200) |
regression |
Reproduces a specific previously-reported bug | References a bug ID, issue number, or describes a fix in its name or comments |
integration |
Crosses process, network, or persistence boundaries | Uses real database, HTTP client, file system, external service, or multi-component setup |
end-to-end |
Full user workflow spanning the entire application stack | Exercises a complete scenario from entry point to final result, distinct from single-boundary integration |
performance |
Validates timing, throughput, or resource consumption | Asserts on elapsed time, memory, allocations, or uses benchmark harness (BenchmarkDotNet, pytest-benchmark, benchmark.js, JMH, go test -bench, criterion.rs, XCTMetric, kotlinx-benchmark, Google Benchmark) |
security |
Verifies authentication, authorization, input sanitization, or secrets handling | Tests for SQL injection, XSS, CSRF, unauthorized access, token validation, permission checks |
concurrency |
Validates thread safety, parallelism, or async correctness | Uses Task.WhenAll / Parallel.ForEach / SemaphoreSlim (.NET); asyncio.gather / threading.Lock / multiprocessing (Python); Promise.all / worker threads |
Preguntas frecuentes
¿Cambiará mis pruebas?
Aplica los atributos estándar solo cuando están claros; en otro caso solo informa de la clasificación.
¿Ejecuta las pruebas?
No. Clasifica e informa. Ejecutar pruebas lo hace otra skill.
¿Trata de la cobertura de código?
No exactamente. Describe la mezcla de tipos de prueba, mientras que el análisis de cobertura cubre líneas y ramas ejecutadas.
Detalles
Descripción original del autor
Classifies existing tests by standard traits and reports their distribution. USE FOR: tagging all tests with category attributes, categorizing/tagging/ labeling each test, compare happy vs error paths, audit the test mix, describe coverage shape by test type, or tag then verify the project builds. Read bodies when names mislead. Apply canonical attributes; otherwise report only. DO NOT USE FOR: requests owned by test-anti-patterns, coverage-analysis, crap-score, test-gap-analysis, code-testing, or migration skills.
repo: dotnet/skills
Popularidad
- Estrellas en GitHub
- 5,8 mil
- Posición en el ranking
- #14640
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
create-custom-agent
5,8 milAyuda a tu agente a crear archivos de agentes personalizados de VS Code, con sus propias herramientas, instrucciones y traspasos a otros agentes.
create-skill
5,8 milAyuda a tu agente a crear una skill nueva de agente con un nombre válido, una descripción de activación clara y un archivo SKILL.md que siga el estándar.
csharp-scripts
5,8 milAyuda a tu agente a ejecutar un pequeño programa en C# como un único archivo con la herramienta de línea de comandos de .NET, sin crear un proyecto completo.
dotnet-pinvoke
5,8 milAyuda a tu agente a llamar correctamente a librerías nativas de C o C++ desde .NET, cubriendo firmas, manejo de cadenas, memoria y handles seguros.
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.