grade-tests

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

1|Updated Jul 27, 2026
One-click install
npx skills add https://github.com/FittyAr/Cardscape --skill grade-tests-fittyar
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: grade-tests
Source: https://github.com/FittyAr/Cardscape/tree/main/.agents/skills/grade-tests
Command: npx skills add https://github.com/FittyAr/Cardscape --skill grade-tests-fittyar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Reviewers of pull requests need a quick, per-test verdict on the tests a 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 assertion strength, structure & focus, and anti-pattern hygiene, then 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 reviewers can scan in seconds to spot tests with no assertions, tautological checks, or wall-clock sleeps. ## Quick Start Grade the test methods OrderServiceTests.CreateOrder_ValidInput_ReturnsOrder and OrderServiceTests.CreateOrder_NullInput_Throws in OrderTests.cs and give me the per-test grade table.

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 skill with the list of changed test methods, the file paths containing them, or the PR diff. It resolves each test body, scores assertion strength, structure, and anti-patterns, and returns a markdown table with letter grades and notes suitable for a PR comment.

What test frameworks and languages does per-test grading support?▼

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

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

Use it when you have a curated list of tests, such as those added or modified in a PR, and want a compact per-test verdict. For suite-wide audits, comparative metrics, or smell detection across an entire codebase, use a full audit skill instead.

Can it grade tests without access to the production code?▼

Yes. It grades observable issues in the test body normally but does not deduct for potentially uncovered behaviors. The summary marks production-dependent behavior coverage as Unverified so readers can distinguish body findings from source-dependent claims.

Why does the skill refuse to grade my tests when I give no list?▼

The skill is designed for curated input and rejects ambiguous requests like "grade my tests" with no scope. It asks for an explicit method list, file paths, or a diff before loading extensions or reading any files.