grade-tests

Grades a curated list of test methods and outputs a per-test letter-grade table for PR comments.

Updated Aug 9, 2026
One-click install
npx skills add https://github.com/adinj00/player-performance --skill grade-tests-adinj00
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grade-tests
Source: https://github.com/adinj00/player-performance/tree/main/.agents/skills/grade-tests
Command: npx skills add https://github.com/adinj00/player-performance --skill grade-tests-adinj00

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Reviewers of a pull request need a quick per-test verdict on the tests that PR adds or changes, but full suite-audit reports are too long to post as a PR comment. This Skill grades each specified test method individually and produces a compact table mapping every test to a letter grade (A–F), a score band, and a one-line note. ## Core Features & Use Cases - Per-test grading rubric: Scores each test on three sub-dimensions (assertion strength, structure & focus, anti-pattern hygiene) and combines them into a capped overall letter grade with a score band. - Polyglot support: Handles .NET, Python, TypeScript/JavaScript, Java, Go, Ruby, Rust, Swift, Kotlin, PowerShell, and C++ by loading language-specific extension guidance before scoring. - PR-comment-ready output: Produces a short summary plus a markdown table with row caps, deterministic ordering, and (new)/(modified) markers when diff context is provided. - Use Case: A CI workflow lists the test methods changed in a pull request; the Skill grades each one and posts a table showing which new tests are solid and which need follow-up. ## Quick Start Grade the test methods in OrderTests.cs and produce a per-test grade table I can post as a PR comment.

Frequently Asked Questions about grade-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I grade the tests changed in a pull request?

Provide the diff hunk or PR identifier whose changed tests should be graded, or list the test methods explicitly. The Skill resolves each test body, scores it on assertion strength, structure, and anti-patterns, and outputs a markdown table suitable for a PR comment.

What test frameworks does per-test grading support?

It supports MSTest, xUnit, NUnit, and TUnit for .NET, pytest for Python, Jest and Vitest for TypeScript, plus Java, Go, Ruby, Rust, Swift, Kotlin, PowerShell, and C++. Language-specific extension files define the assertion APIs and idiomatic patterns used during scoring.

Can I grade every test in my workspace at once?

No. The Skill requires an explicit list of test methods, file paths with an instruction to grade all tests in them, or a diff hunk. Ambiguous requests like "grade my tests" are rejected, and you are directed to a full suite-audit tool instead.

When should I use a full test suite audit instead of per-test grading?

Use a suite-wide audit when you want comparative metrics or a diagnostic report across the whole test suite rather than a short PR comment. Per-test grading is designed only for curated lists such as the tests added or modified in a pull request.

Why did my test get an F grade?

A test drops to F when it has no assertions, only always-true literal assertions like Assert.IsTrue(true), swallowed exceptions, or un-awaited async assertions. Any single F sub-grade caps the overall grade at F regardless of other dimensions.