grade-tests
O que ela faz
Esta skill dá nota a uma lista escolhida de testes quanto a prontidão e qualidade, e explica o que melhorar em cada um. É para desenvolvedores e revisores que querem um relatório curto e claro sobre testes específicos, como os de um pull request.
Quando usar
- ✓Quando um revisor quer uma nota de qualidade para testes específicos em um pull request.
- ✓Quando você quer verificar se um teste nomeado está pronto para ser confiável.
- ✓Quando um conjunto de testes novos ou alterados precisa de um relatório por teste com sugestões de melhoria.
Link da skill
https://github.com/dotnet/skills/blob/main/plugins/dotnet-test/skills/grade-tests/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Dê nota aos três testes novos deste pull request e me diga o que melhorar em cada um.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente lê cada teste fornecido e o código que ele cobre, aplica uma régua de avaliação fixa e informa um resultado, uma nota de A a F e as mudanças sugeridas para cada teste.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Grade Tests
Assess a curated list of test methods and produce a compact, PR-comment-friendly report. The primary result is one of Pass, Failed, Uncertain, or Not applicable; an A-F quality grade remains secondary diagnostic information. The skill does not discover tests on its own — the caller (typically a PR automation workflow or a human reviewer holding a specific list) provides the tests or a bounded diff to assess.
After Step 0 admits a bounded scope, enforce these grading invariants:
- With production context, load
test-gap-analysisby name once before scoring, inper-test-read-onlycaller context. Read its owned composition reference; do not compute mutation evidence from this grading rubric or run its standalone workflow. Report N/A / unverified only when the dependency, reference, or required context is actually unavailable. - Any reported mutation inference must use Likely killed (inferred) or Candidate survivor (unverified), even when explained in prose.
- Apply only the rubric below, not extra heuristics such as a duplicate-test penalty. Do not use sibling tests to alter the individual assessment.
- A B quality grade does not require a Failed result; a complete focused test may have no actionable change.
Language-specific guidance: Read the caller-provided matching extension file, or the runtime-listed
test-analysis-extensionscatalog and its matching language file. The reference-only helper is not an invocable skill. If its files are absent, use the embedded rubric and pinned framework APIs; mark an essential unresolved framework construct Uncertain instead of guessing or searching installation directories.
Why a Decision Result Plus Quality Detail
PR reviewers need a simple answer to does this test need follow-up? The four-state result provides that decision; the existing A-F rubric explains its quality and severity.
When to Use
- A PR automation workflow needs to post a decision on the tests introduced or modified in a pull request.
- A reviewer has a specific list of tests (a file, a class, a method list, or a diff hunk) and wants per-test follow-up decisions rather than a suite report.
- A maintainer wants to triage which of N tests in a contribution deserve follow-up improvements, with quality grades for resolved tests.
When Not to Use
- The caller wants a full suite audit or comparative metrics — use
test-anti-patterns(pragmatic) ortest-smell-detection(formal) and let thetest-engineeragent orchestrate its internal quality specialist. - The caller wants to write new tests — use
test-engineer(any language) orwriting-mstest-tests(MSTest specifically). - The caller wants to measure code coverage or CRAP scores — use
coverage-analysisorcrap-score(.NET only). - The caller wants to fix issues directly in test code — invoke the appropriate editing skill.
- No specific list of tests is provided. Do not try to grade every test in the workspace; ask the caller for an explicit list or scope.
Inputs
| Input | Required | Description |
|---|---|---|
| Test methods | Yes | A scope to grade. Provide one of: (a) an explicit list of test method names (fully-qualified, e.g. Namespace.ClassName.TestMethodName); (b) one or more file paths plus an explicit instruction to grade every test declared in those files; or (c) a diff hunk / PR identifier whose changed tests should be graded. File paths are recommended but optional when method names are unambiguous in the workspace. Ambiguous requests like "grade my tests" with no scope are rejected up-front (see Step 0); this skill is for curated input and does not auto-grade an entire workspace. |
| Test bodies / spans | Recommended | The exact source lines for each test method. If omitted, read them from the listed files. |
| Production code | No | The code under test, for judging whether assertions cover the claimed behavior. When unavailable, mark the mutation assessment N/A / unverified rather than guessing or deducting. |
| Language reference | No | A host-supplied path to the matching bundled test-analysis-extensions file. Read it directly instead of invoking its reference-only loader; do not substitute unverified framework guidance. |
| Diff context | No | When grading PR changes, the unified diff for each test method helps focus on what actually changed. |
Step 0: Validate the input
Before
Perguntas frequentes
Ela encontra testes sozinha?
Não. Ela avalia os testes ou o diff limitado que você fornecer, então a lista é escolhida por você ou pelo seu processo de revisão.
A nota de letra é o resultado principal?
Não. O resultado principal é Aprovado, Reprovado, Incerto ou Não aplicável, e a nota de letra é secundária.
Ela muda meus testes?
É uma avaliação somente de leitura, então informa o que mudar em vez de editar os testes.
Detalhes
Descrição original do autor
Grade curated individual tests for readiness, A-F quality and improvements. ALWAYS USE FOR: grade tests, review only a named test, per-test readiness or quality bands for supplied methods, bodies, file spans or bounded PR diffs, including existing tests. Return Pass/Failed/Uncertain/Not applicable; unresolved/empty scopes omit grades. Compose read-only per-test evidence. Polyglot. DO NOT USE FOR: suite audits (test-engineer/test-anti-patterns), concrete fix/feature detection proof (test-value-evidence), writing/fixing tests, or coverage.
repo: dotnet/skills
Popularidade
- Estrelas no GitHub
- 5,8 mil
- Posição no ranking
- #14631
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
create-custom-agent
5,8 milAjuda seu agente a criar arquivos de agentes personalizados para o VS Code, com suas próprias ferramentas, instruções e transferências para outros agentes.
create-skill
5,8 milAjuda seu agente a criar uma nova skill de agente com nome válido, uma descrição clara de quando usá-la e um arquivo SKILL.md que segue o padrão.
csharp-scripts
5,8 milAjuda seu agente a rodar um pequeno programa C# como um único arquivo com a ferramenta de linha de comando do .NET, sem criar um projeto completo.
dotnet-pinvoke
5,8 milAjuda seu agente a chamar corretamente bibliotecas nativas em C ou C++ a partir do .NET, cobrindo assinaturas, tratamento de strings, memória e handles seguros.
Skills parecidas
test-driven-development
311 milEnsina seu agente a escrever primeiro um teste que falha, ver a falha e depois escrever o menor código que passa, antes de criar qualquer funcionalidade ou correção.
verification-before-completion
311 milEnsina seu agente a rodar verificações reais e ler a saída antes de afirmar que uma tarefa, correção ou build está concluído ou passando.
migrate-to-shoehorn
310 milSubstitui conversões de tipo arriscadas nos seus arquivos de teste pela biblioteca shoehorn, para que os testes usem dados parciais e ainda passem na checagem de tipos.