본문으로 건너뛰기
Skillpedia
테스트5.8k · #14631

grade-tests

하는 일

이 스킬은 준비도와 품질에 따라 지정된 테스트 목록에 등급을 매기고, 각 테스트에서 무엇을 개선할지 설명합니다. 풀 리퀘스트의 테스트처럼 특정 테스트에 대한 짧고 분명한 보고서를 원하는 검토자와 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓검토자가 풀 리퀘스트의 특정 테스트에 품질 등급을 원할 때.
  • ✓이름이 정해진 테스트를 믿고 써도 되는지 확인하고 싶을 때.
  • ✓새로 바뀐 테스트 묶음에 대해 테스트별 보고서와 개선 제안이 필요할 때.

스킬 링크

https://github.com/dotnet/skills/blob/main/plugins/dotnet-test/skills/grade-tests/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/dotnet/skills/blob/main/plugins/dotnet-test/skills/grade-tests/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 풀 리퀘스트의 새 테스트 세 개에 등급을 매기고, 각각 무엇을 개선해야 하는지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 제공된 각 테스트와 그것이 다루는 코드를 읽고, 고정된 채점 기준을 적용한 뒤, 테스트마다 결과와 문자 등급, 개선 제안을 보고합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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-analysis by name once before scoring, in per-test-read-only caller 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-extensions catalog 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) or test-smell-detection (formal) and let the test-engineer agent orchestrate its internal quality specialist.
  • The caller wants to write new tests — use test-engineer (any language) or writing-mstest-tests (MSTest specifically).
  • The caller wants to measure code coverage or CRAP scores — use coverage-analysis or crap-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

자주 묻는 질문

테스트를 직접 찾나요?

아니요. 주어진 테스트나 제한된 변경분을 평가합니다. 목록은 사용자나 검토 과정이 정합니다.

문자 등급이 주된 결과인가요?

아니요. 주된 결과는 통과, 실패, 불확실, 해당 없음이고, 문자 등급은 부차적입니다.

테스트를 바꾸나요?

읽기 전용 평가이므로 파일을 고치지 않고, 무엇을 바꿔야 하는지 보고합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
5.8k
순위
#14631
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬