grade-tests
Fungsinya
Skill ini memberi nilai pada daftar pengujian yang Anda pilih untuk kesiapan dan kualitas, lalu menjelaskan apa yang perlu diperbaiki di setiap pengujian. Skill ini untuk pengembang dan peninjau yang menginginkan laporan singkat dan jelas tentang pengujian tertentu, misalnya yang ada di pull request.
Kapan dipakai
- βSaat peninjau ingin nilai kualitas untuk pengujian tertentu di pull request.
- βSaat Anda ingin memeriksa apakah pengujian yang disebutkan siap diandalkan.
- βSaat sekumpulan pengujian baru atau yang berubah membutuhkan laporan per pengujian dengan saran perbaikan.
Link skill
https://github.com/dotnet/skills/blob/main/plugins/dotnet-test/skills/grade-tests/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBeri nilai untuk tiga pengujian baru di pull request ini dan beri tahu apa yang perlu diperbaiki di masing-masing.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent membaca setiap pengujian yang diberikan dan kode yang dicakupnya, menerapkan rubrik penilaian yang tetap, lalu melaporkan hasil, nilai huruf, dan saran perubahan untuk setiap pengujian.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah skill ini mencari pengujian sendiri?
Tidak. Skill menilai pengujian atau diff terbatas yang Anda berikan, sehingga daftarnya dipilih oleh Anda atau proses tinjauan Anda.
Apakah nilai huruf adalah hasil utamanya?
Tidak. Hasil utamanya adalah Pass, Failed, Uncertain, atau Not applicable, dan nilai huruf hanya sekunder.
Apakah skill ini mengubah pengujian saya?
Ini penilaian yang hanya membaca, jadi skill melaporkan apa yang perlu diubah dan tidak mengedit pengujian.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 5.8k
- Peringkat
- #14631
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
create-custom-agent
5.8kMembantu agent Anda membuat file agen kustom VS Code dengan alatnya sendiri, instruksi, dan serah terima ke agent lain.
create-skill
5.8kMembantu agent Anda membuat skill agent baru dengan nama yang valid, deskripsi pemicu yang jelas, dan file SKILL.md yang mengikuti standar.
csharp-scripts
5.8kMembantu agent Anda menjalankan program C# kecil sebagai satu file dengan alat baris perintah .NET, tanpa membuat proyek lengkap.
dotnet-pinvoke
5.8kMembantu agent Anda memanggil pustaka native C atau C++ dari .NET dengan benar, mencakup tanda tangan, penanganan string, memori, dan safe handle.
Skill serupa
test-driven-development
311kMengajari agent Anda menulis tes yang gagal dulu, melihatnya gagal, lalu menulis kode terkecil yang lulus, sebelum membangun fitur atau perbaikan apa pun.
verification-before-completion
311kMengajari agent Anda menjalankan pemeriksaan nyata dan membaca keluarannya sebelum menyatakan tugas, perbaikan, atau build sudah selesai atau lulus.
migrate-to-shoehorn
310kMengganti type cast berisiko di file tes Anda dengan pustaka shoehorn, sehingga tes bisa memakai data parsial dan tetap lulus pemeriksaan tipe.