[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699EDYEC17ETS68CZ0M1EZR":3,"skill-same:01M699EDYEC17ETS68CZ0M1EZR":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":54,"linkOnly":55,"markdownContent":56,"markdownBody":57,"frontMatter":58,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":63,"repositoryHtmlUrl":64,"repositoryHomepageUrl":17,"ownerHtmlUrl":65,"ownerBlogUrl":66,"ownerDescription":67,"updatedAt":68,"install":69,"resources":82},"01M699EDYEC17ETS68CZ0M1EZR","grade-tests","测试用例质量评级","Grade a curated list of individual tests for readiness, A-F quality, and concrete improvements. ALWAYS USE FOR: grade tests, review only a named test, per-test readiness decisions, or quality bands for supplied methods, bodies, file spans, or bounded PR diffs, including existing tests. Produce a PR-ready Pass, Failed, Uncertain, or Not applicable table; unresolved or empty scopes omit the grade. Compose read-only per-test mutation evidence when available. Polyglot: .NET, Python, TS\u002FJS, Java, Go, Ruby, Rust, Swift, Kotlin, PowerShell, C++. DO NOT USE FOR: suite-wide audits (test-engineer or test-anti-patterns), writing or fixing tests, or measuring coverage.","对一组精选的单个测试进行评级，评估其准备度、A-F 质量等级并提出具体改进建议。始终用于：测试评分、仅审查指定的某个测试、针对每个测试的准备度决策，或针对所提供的方法、方法体、文件区段或有边界的 PR 差异（包括现有测试）给出质量分级。产出一份可直接用于 PR 的表格，评级为 Pass、Failed、Uncertain 或 Not applicable；范围未确定或为空时省略评级。在可用时编写只读的逐测试变异（mutation）证据。支持多种语言：.NET、Python、TS\u002FJS、Java、Go、Ruby、Rust、Swift、Kotlin、PowerShell、C++。不用于：全测试套件审计（使用 test-engineer 或 test-anti-patterns）、编写或修复测试、或测量覆盖率。","microsoft\u002Ftestfx","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M699C71CJ91B5WZ3AXG3GG2M",1059,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgrade-tests\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],"tests","grade tests","read","when","suite","mutation","patterns","engineer","ready","only","anti-patterns","coverage","list","writing","ruby","powershell","test","rust","python","go","diffs","review","swift","2026-11-10 10:12:30",false,"---\nname: grade-tests\ndescription: >\n  Grade a curated list of individual tests for readiness, A-F quality, and\n  concrete improvements. ALWAYS USE FOR: grade tests, review only a named test,\n  per-test readiness decisions, or quality bands for supplied methods, bodies,\n  file spans, or bounded PR diffs, including existing tests. Produce a PR-ready\n  Pass, Failed, Uncertain, or Not applicable table; unresolved or empty scopes\n  omit the grade. Compose read-only per-test mutation evidence when available.\n  Polyglot: .NET, Python, TS\u002FJS, Java, Go, Ruby, Rust, Swift, Kotlin,\n  PowerShell, C++. DO NOT USE FOR: suite-wide audits (test-engineer or\n  test-anti-patterns), writing or fixing tests, or measuring coverage.\nlicense: MIT\n---\n\n# Grade Tests\n\nAssess a curated list of test methods and produce a compact,\nPR-comment-friendly report. The primary result is one of **Pass**, **Failed**,\n**Uncertain**, or **Not applicable**; an A-F quality grade remains secondary\ndiagnostic information. The skill **does not discover tests on its own** — the\ncaller (typically a PR automation workflow or a human reviewer holding a\nspecific list) provides the tests or a bounded diff to assess.\n\nAfter Step 0 admits a bounded scope, enforce these grading invariants:\n\n- With production context, **load `test-gap-analysis` by name once before\n  scoring**, in `per-test-read-only` caller context. Read its owned composition\n  reference; do not compute mutation evidence from this grading rubric or run\n  its standalone workflow. Report N\u002FA \u002F unverified only when the dependency,\n  reference, or required context is actually unavailable.\n- Any reported mutation inference must use **Likely killed (inferred)** or\n  **Candidate survivor (unverified)**, even when explained in prose.\n- Apply only the rubric below, not extra heuristics such as a duplicate-test\n  penalty. Do not use sibling tests to alter the individual assessment.\n- A **B** quality grade does not require a Failed result; a complete focused\n  test may have no actionable change.\n\n> **Language-specific guidance**: If the caller supplies the matching bundled\n> extension file path, read it directly. Otherwise call `test-analysis-extensions`\n> to discover available extension files, then read the file matching the\n> target codebase's language and framework (e.g., `extensions\u002Fdotnet.md`,\n> `extensions\u002Fpython.md`, `extensions\u002Ftypescript.md`, `extensions\u002Fgo.md`).\n> You MUST read the relevant extension file before scoring assertions or\n> anti-patterns, because assertion APIs and idiomatic patterns differ\n> significantly across frameworks.\n\n## Why a Decision Result Plus Quality Detail\n\nPR reviewers need a simple answer to *does this test need follow-up?* The\nfour-state result provides that decision; the existing A-F rubric explains its\nquality and severity.\n\n## When to Use\n\n- A PR automation workflow needs to post a decision on the tests introduced or\n  modified in a pull request.\n- A reviewer has a specific list of tests (a file, a class, a method list,\n  or a diff hunk) and wants per-test follow-up decisions rather than a suite\n  report.\n- A maintainer wants to triage which of N tests in a contribution deserve\n  follow-up improvements, with quality grades for resolved tests.\n\n## When Not to Use\n\n- The caller wants a full suite audit or comparative metrics — use\n  `test-anti-patterns` (pragmatic) or `test-smell-detection` (formal) and\n  let the `test-engineer` agent orchestrate its internal quality specialist.\n- The caller wants to *write* new tests — use `test-engineer`\n  (any language) or `writing-mstest-tests` (MSTest specifically).\n- The caller wants to measure code coverage or CRAP scores — use\n  `coverage-analysis` or `crap-score` (.NET only).\n- The caller wants to fix issues directly in test code — invoke the\n  appropriate editing skill.\n- No specific list of tests is provided. Do **not** try to grade every test\n  in the workspace; ask the caller for an explicit list or scope.\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| 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 \u002F 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. |\n| Test bodies \u002F spans | Recommended | The exact source lines for each test method. If omitted, read them from the listed files. |\n| Production code | No | The code under test, for judging whether assertions cover the claimed behavior. When unavailable, mark the mutation assessment N\u002FA \u002F unverified rather than guessing or deducting. |\n| 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. |\n| Diff context | No | When grading PR changes, the unified diff for each test method helps focus on what actually changed. |\n\n### Step 0: Validate the input\n\nBefore doing anything else, check that the caller provided one of:\n\n1. An explicit list of test method names, **or**\n2. One or more file paths plus an explicit instruction to grade every test\n   declared in those files (e.g., \"grade every test in `OrderTests.cs`\"), **or**\n3. A diff hunk or PR identifier whose changed tests should be graded.\n\nIf the request is ambiguous (e.g., *\"Grade my tests\"*, *\"Are these tests\nany good?\"* with no scope, *\"Review the test suite\"*), **do not load\nextensions, do not read files, and do not grade anything**. Reply with a\nshort message asking the caller to provide an explicit list \u002F file(s) \u002F\ndiff, and optionally point them at the `test-engineer` agent or\n`test-anti-patterns` skill for full-suite analysis. Stop there.\n\nIf a valid bounded scope resolves to zero eligible tests, return\n**Not applicable** with a short explanation and no invented rows.\n\n## Workflow\n\n### Step 1: Detect language and load extension\n\nIdentify the target codebase's language and test framework from the file\nextensions and the test method markers in the provided list. Call the\n`test-analysis-extensions` skill unless the caller already supplied the matching\nbundled extension file path. In either case, read that extension file (e.g.,\n`extensions\u002Fdotnet.md` for MSTest\u002FxUnit\u002FNUnit\u002FTUnit, `extensions\u002Fpython.md`\nfor pytest, `extensions\u002Ftypescript.md` for Jest\u002FVitest, `extensions\u002Fgo.md`\nfor the standard `testing` package). If the input contains tests from\nmultiple languages, load each relevant extension and grade each test using\nits language's conventions.\n\n### Step 2: Resolve the test bodies\n\nFor each entry in the input list:\n\n1. If the test body is provided inline, use it directly.\n2. Otherwise read the file at the given path and locate the method by its\n   fully-qualified name. Capture the full method body, including attributes\n   \u002F decorators \u002F fixtures and any helper code that the test calls.\n3. If a requested method cannot be found, record it as\n   `Uncertain — method not found` with no quality grade and continue. Never\n   invent a body to grade. A missing requested method requires human review;\n   it is not the same as a valid scope containing no tests.\n\n**Composition checkpoint:** for resolved tests with available production\ncontext, load `test-gap-analysis` now, once for the batch, with\n`per-test-read-only` assessment context. Complete its owned reference assessment\nbefore Step 3. Do not skip this load just because a body-level weakness already\nseems obvious; a locally invented mutation explanation is not composition.\n\n### Step 3: Assess the claimed behavior and score each resolved test\n\nKeep grading read-only: no build\u002Ftest runs, mutation execution, file edits,\ntool installation, broad suite discovery, or agent delegation. Resolve only\nthe supplied tests, their relevant fixtures\u002Fhelpers, and the production call\nchain needed for their claims.\n\nUse the inline `test-gap-analysis` assessment from Step 2's checkpoint;\ndo not load it a second time. Supply each test's\nidentifier\u002Fbody, relevant setup\u002Fhelpers, claimed behavior, assertion semantics,\nand available source. Its composition dispatch loads the owned read-only\nreference rather than its standalone baseline\u002Fverification workflow. Consume\nits per-test evidence; do not duplicate its mutation catalog here or invoke an\naudit\u002Fgeneration agent.\nConvey mode and inputs as assessment context using the host's supported caller\ninstructions. If the loader accepts only a skill name, load `test-gap-analysis`\nby name only; do not invent tool arguments or a mode-specific skill name.\n\nIf the skill\u002Freference or production context is unavailable, record\n`Pseudo-mutation: N\u002FA \u002F unverified — \u003Creason>` and continue normal body-level\ngrading. This is not a grade deduction or, by itself, an Uncertain result.\nDo not search installation directories or substitute a mutation runner.\n\nAssess only what each test claims: do not borrow another test's assertions,\nor demand unrelated branches, outputs, or scenarios. An observable survivor\ncan support an existing Assertion strength category when it proves that the\ntest does not verify its claimed outcome; do not introduce mutation points,\nweights, ceilings, or an automatic survivor penalty. Apply the existing rubric\nnormally, including weaknesses it classifies in both Assertion and Anti-pattern\ndimensions; do not add another deduction for the same mutation evidence.\n\nStart every test at grade **A (score band 90–100)**, then apply deductions\nstrictly for **observable issues** in the captured body. Do **not** deduct\nfor hypothetical concerns (e.g., \"could have more negative assertions\")\nunless the production code clearly demands them and the production code is\navailable.\n\nWhen production code is unavailable, grade observable issues in the test body\nnormally, but do not infer missing behaviors or deduct for them. State\n`Production-dependent behavior coverage: Unverified` once in the summary so the\nreader can distinguish test-body findings from claims that require source code.\n\n#### Three sub-dimensions\n\nCompute three sub-grades (each A–F) that together drive the overall grade.\n\n##### A. Assertion strength\n\nRead the loaded language extension's assertion API list and classify every\nassertion in the test body. Score from highest to lowest:\n\n| Sub-grade | Pattern |\n|-----------|---------|\n| **A** | At least one meaningful value assertion (equality \u002F structural \u002F exception \u002F state) plus, where appropriate, additional checks (negative, type, collection contents). Mock-call verifications (`Verify`, `toHaveBeenCalledWith`, `Should -Invoke`) and bare assertion forms (pytest `assert`, Go `if got != want { t.Errorf(...) }`, Rust `assert!()`) count as real assertions. |\n| **B** | One clear meaningful assertion that verifies the behavior under test. |\n| **C** | Only trivial assertions (single `IsNotNull` \u002F `toBeDefined` \u002F `assert x is not None`), or assertions that leave a meaningful part of the test's claimed result unchecked. A focused single-field claim does not require unrelated fields. |\n| **D** | One self-referential \u002F tautological assertion (`Assert.AreEqual(x, x)`, `assert dto.name == dto.name`, round-trip identity without a non-trivial input), or broad exception assertions (`Assert.ThrowsException\u003CException>`). |\n| **F** | No assertions at all; **all** assertions are always-true literals (`Assert.IsTrue(true)`, `assert True`, `expect(true).toBe(true)`) — these verify nothing and are equivalent to having no assertions; or all assertions are silently un-awaited (e.g., `expect(promise).resolves.toBe(x)` without `await`\u002F`return`, async TUnit\u002FxUnit `Assert.ThrowsAsync` without `await`, pytest-asyncio with un-awaited coroutine). |\n\nException and error-path tests (`Assert.ThrowsException\u003CT>`, constrained\n`pytest.raises`, `expect(fn).toThrow`, `assertThrows`, `#[should_panic]`,\n`Should -Throw`, `EXPECT_THROW`, or Go code that verifies an expected non-nil\nerror) are complete on their own. Give Assertion strength **A** when the test\nchecks the exact promised error condition for its stated scope. Do not deduct\nfor having only that assertion, and do not require an error-message assertion\nunless the message is part of the documented contract. A Go happy-path test\nthat only checks `err == nil` while discarding a meaningful returned value is\nstill **C** because it does not verify the successful result.\n\n##### B. Structure & focus\n\n| Sub-grade | Pattern |\n|-----------|---------|\n| **A** | Clear Arrange-Act-Assert (or Given-When-Then) separation. Single behavior under test. Body under ~30 lines. Setup uses framework conventions. |\n| **B** | One mild structural issue (slightly long body, missing blank lines between phases) but intent is clear. |\n| **C** | Multiple behaviors mixed in one test, or AAA phases interleaved enough to slow comprehension. |\n| **D** | Conditional logic in the test (`if`\u002F`switch` driving assertions) — except for idiomatic Go\u002FRust table-driven sub-test loops; or test relies on previous test state (ordering dependency). |\n| **F** | Test exceeds ~60 lines and verifies multiple unrelated behaviors; or shares mutable state with other tests through statics\u002Fglobals without reset. |\n\n##### C. Anti-pattern hygiene\n\nScan against the catalog below. The Anti-pattern sub-grade is computed\nin two passes and combined deterministically:\n\n1. **Hard ceiling pass.** Every **Critical** or **High** finding sets a\n   maximum sub-grade (F, D, or C as labeled). Take the **worst** ceiling\n   across all matched Critical\u002FHigh findings — these do not accumulate\n   (a single F finding caps the sub-grade at F regardless of how many\n   other Critical\u002FHigh findings are present).\n2. **Medium-deduction pass.** Start from **A**, then for each **Medium**\n   finding deduct one sub-grade level (A→B, B→C, C→D, D→F). These do\n   accumulate across findings.\n\nThe final Anti-pattern sub-grade is the **worse** of the two passes\n(i.e., `min(hard_ceiling, A − medium_count)`). **Low** findings never\naffect the grade — mention them in the note only.\n\nExamples (Critical\u002FHigh and Medium counts → Anti-pattern sub-grade):\n\n- Zero Critical\u002FHigh, 1 Medium → **B** (A − 1)\n- Zero Critical\u002FHigh, 3 Medium → **D** (A − 3)\n- One C-ceiling (e.g., over-mocking), 0 Medium → **C**\n- One C-ceiling, 2 Medium → **C** (`min(C, A − 2 = C) = C`; a third Medium tips to **D**)\n- One F-finding (e.g., swallowed exception) plus any number of Medium → **F**\n\n**Critical (drop straight to F or D)**\n\n- No assertions at all → F (also drives Assertion sub-grade to F)\n- Swallowed exceptions: `try { … } catch { }` (.NET), bare `except: pass`\n  (Python), `try { … } catch (e) {}` (JS\u002FTS\u002FJava), `defer recover()`\n  without re-panic (Go), `rescue StandardError` with no assertion (Ruby),\n  empty `catch` (Kotlin\u002FSwift) → F\n- Assert-in-catch pattern (`Assert.Fail(ex.Message)` instead of\n  `Assert.ThrowsException`) → D\n- Always-true literal assertions (`Assert.IsTrue(true)`, `assert True`,\n  `expect(true).toBe(true)`) → **F** (verifies nothing; also drives\n  Assertion sub-grade to F)\n- Self-referential \u002F tautological assertions on bound values\n  (`Assert.AreEqual(x, x)`, `assert dto.name == dto.name`) → D\n- Commented-out assertions → D\n\n**High (drop one or two sub-grades)**\n\n- Wall-clock sleep used for synchronization: `Thread.Sleep`, `Task.Delay`,\n  `time.sleep`, `setTimeout`-based wait, `Thread.sleep`, `time.Sleep`,\n  `sleep`, `std::thread::sleep`, `Start-Sleep`,\n  `std::this_thread::sleep_for` (in a unit test) → D\n- Unseeded randomness, wall-clock reads without abstraction\n  (`DateTime.Now`, `datetime.now()`, `Date.now()`,\n  `System.currentTimeMillis()`, `time.Now()`, `Time.now`,\n  `Instant::now()`, `Get-Date`, `system_clock::now`) → D\n- Hard-coded environment-dependent paths (`C:\\…`, `\u002Ftmp\u002F…`, network hosts) → D\n- Ordering dependency on mutable static \u002F package globals → D\n- Broad exception assertion (`Assert.ThrowsException\u003CException>`,\n  `pytest.raises(Exception)`, `expect(fn).toThrow(Error)` without matcher,\n  `#[should_panic]` without `expected = \"…\"`, `Should -Throw` without\n  `-ExpectedMessage`, `EXPECT_ANY_THROW`) → C\n- Over-mocking: more mock setup lines than test logic, or verifying exact\n  call sequences instead of outcomes → C\n- Implementation coupling: reflection on private members, casting to\n  internal types to access state → C\n\n**Medium (drop one sub-grade)**\n\n- Poor name: `Test1`, `TestMethod`, `test`, single-word name that says\n  nothing about scenario or expected outcome (judge against the language\n  extension's convention) → drop one sub-grade\n- Magic values: unexplained `42`, `\"foo\"`, `0x1234` in arrange\u002Fassert\n  without naming or comment → drop one sub-grade\n- Giant test (>30 lines covering a single behavior) → drop one sub-grade\n- Assertion messages that just repeat the assertion text → drop one sub-grade\n- Missing AAA \u002F GWT separation when the test is non-trivial → drop one sub-grade\n\n**Low (note only, no deduction)**\n\n- Unused setup\u002Fteardown hooks; print debugging left in (`Console.WriteLine`,\n  `print`, `console.log`, `System.out.println`, `fmt.Println`, `puts`,\n  `dbg!`, `Write-Host`, `std::cout`); inconsistent naming versus siblings;\n  leftover TODO comments. Mention in the note column but do not deduct.\n\n#### Combining sub-grades\n\nConvert sub-grades to numeric points: A=4, B=3, C=2, D=1, F=0.\n- **Overall score band** = weighted average:\n  `0.45 × Assertion + 0.30 × Anti-pattern + 0.25 × Structure`\n- Map to letter:\n  - ≥ 3.5 → **A** (band 90–100)\n  - ≥ 2.8 → **B** (band 80–89)\n  - ≥ 2.0 → **C** (band 70–79)\n  - ≥ 1.2 → **D** (band 60–69)\n  - \u003C 1.2 → **F** (band 0–59)\n- The overall grade is **capped at the worst sub-grade** — if any sub-grade\n  is **F**, the overall grade is **F**; if the worst sub-grade is **D**,\n  the overall grade is at most **D**; and so on. A test that fails on any\n  one dimension cannot earn a higher overall grade than that dimension.\n\nReport the **letter grade** and the **score band** (not a single 0–100\nnumber). False precision invites bikeshedding; bands keep the conversation\nfocused on the rubric.\n\n### Step 4: Assign the decision result\n\nThe grade summarizes strength; the result says whether follow-up exists.\nAn actionable improvement is an evidence-backed change to the test, setup, or\nfixtures. Assign exactly one:\n\n- **Pass** — no actionable improvement; positive\u002Fcontext-only notes are allowed.\n- **Failed** — at least one actionable improvement, regardless of grade.\n- **Uncertain** — missing evidence prevents a decision and needs human review.\n- **Not applicable** — a valid scope contains no eligible tests; normally an\n  overall result with no rows.\n\nDo not derive status from grade: a complete focused test can be **B \u002F Pass**,\nwhile debug output can make an otherwise excellent test **A \u002F Failed**. Use\nUncertain for an unresolved body, unsupported construct, or essential missing\ncontract—not merely absent production code. A definite finding wins over\nuncertainty.\n\n### Step 5: Build the note\n\nUse one sentence (target ≤ 120 characters) for the most important reason:\n`No issues found.`, `Only checks IsNotNull; receipt contents are unverified.`, or\n`Method body could not be resolved; human review is required.` Do not invent a\nweakness to justify a grade or Failed result.\n\nKeep the action in a separate **How to improve** field. For each Failed test,\nname the smallest useful input, assertion, or fixture change and its expected\noutcome, grounded in the body, source, or an explicit contract. For example,\n`Replace self-comparison with Assert.AreEqual(60m, account.Balance).`, not\n`Improve assertions`; `Remove Console.WriteLine after Deposit(25m).`, not\n`Clean up`. Prioritize the highest-impact distinct finding, and include other\nactionable findings only when they require a different change.\n\nFor a behavioral gap, use the distinguishing witness and original\u002Fmutant\nobservations from the shared assessment; check the expected result against\nthe unmodified source. If essential context is missing, name the evidence\nneeded instead of inventing an expected value. Pass gets `None`; Uncertain\ngets a concrete evidence-resolution step, not a speculative test rewrite.\nA rubric-only deduction is not proof of a behavioral gap or an actionable\nimprovement: a focused **B \u002F Pass** may need no change. **A \u002F Failed** still\nneeds its concrete action, such as removing debug output.\n\n### Step 6: Report\n\nProduce two sections.\n\n#### 1. Summary\n\nBegin with `**Result: \u003CPass|Failed|Uncertain|Not applicable>**`, then give result\ncounts and the highest-priority action. Aggregate using\n**Failed → Uncertain → Pass → Not applicable**. For Not applicable, explain the\nempty scope and omit the table.\n\n#### 2. Per-test table\n\n```markdown\n| Test | Result | Quality | Notes | How to improve |\n|------|--------|---------|-------|----------------|\n| `Namespace.ClassName.Test_Method_Condition_Expected` | Pass | B (80–89) | One complete value assertion. | None |\n| `Namespace.ClassName.Withdraw_SufficientFunds` | Failed | D (60–69) | Balance is compared with itself. | Replace self-comparison with `Assert.AreEqual(60m, account.Balance)` after withdrawing 40m from 100m. |\n| `Namespace.ClassName.Test_Missing` | Uncertain | — | Method body could not be resolved; human review is required. | Supply the method body and its referenced fixture. |\n```\n\nKeep these two report sections and the original Test\u002FResult\u002FQuality\u002FNotes\nfields. When mutation evidence explains a finding or the caller requests\ndetail, append a compact per-test **Pseudo-mutation evidence** block inside\nthe per-test section: change, witness, original\u002Fmutant observations, relevant\nassertion, and classification. Static results are **Likely killed (inferred)**\nor **Candidate survivor (unverified)**, never executed Killed\u002FSurvived or\nempirical killed\u002Ftotal counts. State missing-context N\u002FA \u002F unverified once\nper shared limitation. Do not repeat the improvement table in prose.\n\n**Caps and ordering**:\n- If the table would exceed **50 rows**, show Failed tests first, then\n  Uncertain tests, then a sample of Pass tests. Wrap overflow in a collapsed\n  `\u003Cdetails>` block.\n- Within the same result, order by quality from worst to best, then by file\n  path and method name for determinism.\n- If the diff context is provided, prefix each test name with a `(new)` or\n  `(modified)` marker.\n\nIf multiple languages are present, produce one table per language and\nprefix each section with the language name and framework.\n\n## Validation\n\n- [ ] Every test in the input list appears in the table (or is recorded as\n      `Uncertain — method not found`).\n- [ ] Every resolved test has Pass or Failed plus A-F quality detail.\n- [ ] Uncertain is an evidence gap; Not applicable is a valid empty scope.\n- [ ] Every grade is justified by at least one observable signal in the\n      captured body — no speculative deductions.\n- [ ] Every Failed row has a concrete, evidence-backed How to improve action;\n      Pass rows have no invented weakness, even when the quality grade is B.\n- [ ] Mutation assessment stayed read-only and per-test; unavailable context\n      was not penalized, equivalents were excluded, and static labels\u002Fcounts\n      were not presented as executed evidence.\n- [ ] Verified observable findings inform existing categories without a\n      duplicate deduction or any change to scoring weights and ceilings.\n- [ ] Trivial-assertion tests are flagged only when the **only** assertion\n      is trivial (a null check before a meaningful assertion is not trivial).\n- [ ] Exception-only tests are not penalized for low assertion count.\n- [ ] Mock-call verifications and bare assertion forms count as real\n      assertions of the appropriate category.\n- [ ] Boolean assertions on meaningful properties (`Assert.IsTrue(result.IsValid)`)\n      are not classified as always-true; only literal `true`\u002F`false` constants are.\n- [ ] Self-referential assertions are flagged separately from normal\n      equality assertions.\n- [ ] Idiomatic patterns are not flagged: Go\u002FRust table-driven sub-tests,\n      pytest bare `assert`, Go `if got != want { t.Errorf(...) }`,\n      JS\u002FTS `expect(mock).toHaveBeenCalledWith(...)`.\n- [ ] Async test pitfalls (un-awaited `resolves`\u002F`rejects`\u002F`ThrowsAsync`,\n      pytest-asyncio without `await`) drop the Assertion sub-grade to F.\n- [ ] The summary leads with the highest-leverage observation, not a recap\n      of the table.\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| Grading every test in the workspace when no list is provided | Ask the caller for the explicit list; this skill is for curated input. |\n| Inflating deductions to justify the grade | Start at A; deduct only for observable issues. |\n| Penalizing exception tests for low assertion count | Exception assertions are complete on their own. |\n| Downgrading a focused Go error-path test because it checks only `err != nil` | Expected-error existence is the observable contract for that scope; keep it at A unless the production contract requires a specific error identity or message. |\n| Treating `IsNotNull` before a value assertion as trivial | Only flag when the null check is the **only** assertion. |\n| Treating any Boolean assertion as effectively assertion-free | Only always-true literals (`Assert.IsTrue(true)`, `assert True`) are; meaningful `Assert.IsTrue(result.IsValid)` is a real assertion. |\n| Flagging Go\u002FRust table-driven loops as conditional logic | They are idiomatic; do not deduct. |\n| Treating pytest bare `assert` or Go `if got != want { t.Error… }` as missing-framework | Both are canonical; count in the correct assertion category. |\n| Penalizing tests when production code is unavailable | Mark concerns about uncovered behaviors as `Unverified` and do not deduct. |\n| Using a fake-precise score (e.g., 87\u002F100) | Use the score band only — 90–100, 80–89, 70–79, 60–69, 0–59. |\n| Spilling a 500-row table into a PR comment | Apply the row cap from Step 6; collapse extras into `\u003Cdetails>`. |\n| Re-reporting an existing finding three times under different categories | Pick the most fitting category and report once. |\n| Giving a weak test credit for a sibling's assertions | Use only the current test and helpers\u002Ffixtures it executes. |\n| Turning pseudo-mutation composition into a suite audit | Pass explicit per-test-read-only mode; no runs, edits, broad discovery, or agent recursion. |\n| Inventing weaknesses for A-grade tests to make the note \"balanced\" | If a test is clean, the note may simply read `No issues found.` |\n| Mapping status from grade or comments | Fail only for actionable improvements; a B can Pass and an A can Fail. |\n| Confusing Uncertain and Not applicable | Evidence gaps are Uncertain; a valid empty scope is Not applicable. |\n","# Grade Tests\n\nAssess a curated list of test methods and produce a compact,\nPR-comment-friendly report. The primary result is one of **Pass**, **Failed**,\n**Uncertain**, or **Not applicable**; an A-F quality grade remains secondary\ndiagnostic information. The skill **does not discover tests on its own** — the\ncaller (typically a PR automation workflow or a human reviewer holding a\nspecific list) provides the tests or a bounded diff to assess.\n\nAfter Step 0 admits a bounded scope, enforce these grading invariants:\n\n- With production context, **load `test-gap-analysis` by name once before\n  scoring**, in `per-test-read-only` caller context. Read its owned composition\n  reference; do not compute mutation evidence from this grading rubric or run\n  its standalone workflow. Report N\u002FA \u002F unverified only when the dependency,\n  reference, or required context is actually unavailable.\n- Any reported mutation inference must use **Likely killed (inferred)** or\n  **Candidate survivor (unverified)**, even when explained in prose.\n- Apply only the rubric below, not extra heuristics such as a duplicate-test\n  penalty. Do not use sibling tests to alter the individual assessment.\n- A **B** quality grade does not require a Failed result; a complete focused\n  test may have no actionable change.\n\n> **Language-specific guidance**: If the caller supplies the matching bundled\n> extension file path, read it directly. Otherwise call `test-analysis-extensions`\n> to discover available extension files, then read the file matching the\n> target codebase's language and framework (e.g., `extensions\u002Fdotnet.md`,\n> `extensions\u002Fpython.md`, `extensions\u002Ftypescript.md`, `extensions\u002Fgo.md`).\n> You MUST read the relevant extension file before scoring assertions or\n> anti-patterns, because assertion APIs and idiomatic patterns differ\n> significantly across frameworks.\n\n## Why a Decision Result Plus Quality Detail\n\nPR reviewers need a simple answer to *does this test need follow-up?* The\nfour-state result provides that decision; the existing A-F rubric explains its\nquality and severity.\n\n## When to Use\n\n- A PR automation workflow needs to post a decision on the tests introduced or\n  modified in a pull request.\n- A reviewer has a specific list of tests (a file, a class, a method list,\n  or a diff hunk) and wants per-test follow-up decisions rather than a suite\n  report.\n- A maintainer wants to triage which of N tests in a contribution deserve\n  follow-up improvements, with quality grades for resolved tests.\n\n## When Not to Use\n\n- The caller wants a full suite audit or comparative metrics — use\n  `test-anti-patterns` (pragmatic) or `test-smell-detection` (formal) and\n  let the `test-engineer` agent orchestrate its internal quality specialist.\n- The caller wants to *write* new tests — use `test-engineer`\n  (any language) or `writing-mstest-tests` (MSTest specifically).\n- The caller wants to measure code coverage or CRAP scores — use\n  `coverage-analysis` or `crap-score` (.NET only).\n- The caller wants to fix issues directly in test code — invoke the\n  appropriate editing skill.\n- No specific list of tests is provided. Do **not** try to grade every test\n  in the workspace; ask the caller for an explicit list or scope.\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| 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 \u002F 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. |\n| Test bodies \u002F spans | Recommended | The exact source lines for each test method. If omitted, read them from the listed files. |\n| Production code | No | The code under test, for judging whether assertions cover the claimed behavior. When unavailable, mark the mutation assessment N\u002FA \u002F unverified rather than guessing or deducting. |\n| 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. |\n| Diff context | No | When grading PR changes, the unified diff for each test method helps focus on what actually changed. |\n\n### Step 0: Validate the input\n\nBefore doing anything else, check that the caller provided one of:\n\n1. An explicit list of test method names, **or**\n2. One or more file paths plus an explicit instruction to grade every test\n   declared in those files (e.g., \"grade every test in `OrderTests.cs`\"), **or**\n3. A diff hunk or PR identifier whose changed tests should be graded.\n\nIf the request is ambiguous (e.g., *\"Grade my tests\"*, *\"Are these tests\nany good?\"* with no scope, *\"Review the test suite\"*), **do not load\nextensions, do not read files, and do not grade anything**. Reply with a\nshort message asking the caller to provide an explicit list \u002F file(s) \u002F\ndiff, and optionally point them at the `test-engineer` agent or\n`test-anti-patterns` skill for full-suite analysis. Stop there.\n\nIf a valid bounded scope resolves to zero eligible tests, return\n**Not applicable** with a short explanation and no invented rows.\n\n## Workflow\n\n### Step 1: Detect language and load extension\n\nIdentify the target codebase's language and test framework from the file\nextensions and the test method markers in the provided list. Call the\n`test-analysis-extensions` skill unless the caller already supplied the matching\nbundled extension file path. In either case, read that extension file (e.g.,\n`extensions\u002Fdotnet.md` for MSTest\u002FxUnit\u002FNUnit\u002FTUnit, `extensions\u002Fpython.md`\nfor pytest, `extensions\u002Ftypescript.md` for Jest\u002FVitest, `extensions\u002Fgo.md`\nfor the standard `testing` package). If the input contains tests from\nmultiple languages, load each relevant extension and grade each test using\nits language's conventions.\n\n### Step 2: Resolve the test bodies\n\nFor each entry in the input list:\n\n1. If the test body is provided inline, use it directly.\n2. Otherwise read the file at the given path and locate the method by its\n   fully-qualified name. Capture the full method body, including attributes\n   \u002F decorators \u002F fixtures and any helper code that the test calls.\n3. If a requested method cannot be found, record it as\n   `Uncertain — method not found` with no quality grade and continue. Never\n   invent a body to grade. A missing requested method requires human review;\n   it is not the same as a valid scope containing no tests.\n\n**Composition checkpoint:** for resolved tests with available production\ncontext, load `test-gap-analysis` now, once for the batch, with\n`per-test-read-only` assessment context. Complete its owned reference assessment\nbefore Step 3. Do not skip this load just because a body-level weakness already\nseems obvious; a locally invented mutation explanation is not composition.\n\n### Step 3: Assess the claimed behavior and score each resolved test\n\nKeep grading read-only: no build\u002Ftest runs, mutation execution, file edits,\ntool installation, broad suite discovery, or agent delegation. Resolve only\nthe supplied tests, their relevant fixtures\u002Fhelpers, and the production call\nchain needed for their claims.\n\nUse the inline `test-gap-analysis` assessment from Step 2's checkpoint;\ndo not load it a second time. Supply each test's\nidentifier\u002Fbody, relevant setup\u002Fhelpers, claimed behavior, assertion semantics,\nand available source. Its composition dispatch loads the owned read-only\nreference rather than its standalone baseline\u002Fverification workflow. Consume\nits per-test evidence; do not duplicate its mutation catalog here or invoke an\naudit\u002Fgeneration agent.\nConvey mode and inputs as assessment context using the host's supported caller\ninstructions. If the loader accepts only a skill name, load `test-gap-analysis`\nby name only; do not invent tool arguments or a mode-specific skill name.\n\nIf the skill\u002Freference or production context is unavailable, record\n`Pseudo-mutation: N\u002FA \u002F unverified — \u003Creason>` and continue normal body-level\ngrading. This is not a grade deduction or, by itself, an Uncertain result.\nDo not search installation directories or substitute a mutation runner.\n\nAssess only what each test claims: do not borrow another test's assertions,\nor demand unrelated branches, outputs, or scenarios. An observable survivor\ncan support an existing Assertion strength category when it proves that the\ntest does not verify its claimed outcome; do not introduce mutation points,\nweights, ceilings, or an automatic survivor penalty. Apply the existing rubric\nnormally, including weaknesses it classifies in both Assertion and Anti-pattern\ndimensions; do not add another deduction for the same mutation evidence.\n\nStart every test at grade **A (score band 90–100)**, then apply deductions\nstrictly for **observable issues** in the captured body. Do **not** deduct\nfor hypothetical concerns (e.g., \"could have more negative assertions\")\nunless the production code clearly demands them and the production code is\navailable.\n\nWhen production code is unavailable, grade observable issues in the test body\nnormally, but do not infer missing behaviors or deduct for them. State\n`Production-dependent behavior coverage: Unverified` once in the summary so the\nreader can distinguish test-body findings from claims that require source code.\n\n#### Three sub-dimensions\n\nCompute three sub-grades (each A–F) that together drive the overall grade.\n\n##### A. Assertion strength\n\nRead the loaded language extension's assertion API list and classify every\nassertion in the test body. Score from highest to lowest:\n\n| Sub-grade | Pattern |\n|-----------|---------|\n| **A** | At least one meaningful value assertion (equality \u002F structural \u002F exception \u002F state) plus, where appropriate, additional checks (negative, type, collection contents). Mock-call verifications (`Verify`, `toHaveBeenCalledWith`, `Should -Invoke`) and bare assertion forms (pytest `assert`, Go `if got != want { t.Errorf(...) }`, Rust `assert!()`) count as real assertions. |\n| **B** | One clear meaningful assertion that verifies the behavior under test. |\n| **C** | Only trivial assertions (single `IsNotNull` \u002F `toBeDefined` \u002F `assert x is not None`), or assertions that leave a meaningful part of the test's claimed result unchecked. A focused single-field claim does not require unrelated fields. |\n| **D** | One self-referential \u002F tautological assertion (`Assert.AreEqual(x, x)`, `assert dto.name == dto.name`, round-trip identity without a non-trivial input), or broad exception assertions (`Assert.ThrowsException\u003CException>`). |\n| **F** | No assertions at all; **all** assertions are always-true literals (`Assert.IsTrue(true)`, `assert True`, `expect(true).toBe(true)`) — these verify nothing and are equivalent to having no assertions; or all assertions are silently un-awaited (e.g., `expect(promise).resolves.toBe(x)` without `await`\u002F`return`, async TUnit\u002FxUnit `Assert.ThrowsAsync` without `await`, pytest-asyncio with un-awaited coroutine). |\n\nException and error-path tests (`Assert.ThrowsException\u003CT>`, constrained\n`pytest.raises`, `expect(fn).toThrow`, `assertThrows`, `#[should_panic]`,\n`Should -Throw`, `EXPECT_THROW`, or Go code that verifies an expected non-nil\nerror) are complete on their own. Give Assertion strength **A** when the test\nchecks the exact promised error condition for its stated scope. Do not deduct\nfor having only that assertion, and do not require an error-message assertion\nunless the message is part of the documented contract. A Go happy-path test\nthat only checks `err == nil` while discarding a meaningful returned value is\nstill **C** because it does not verify the successful result.\n\n##### B. Structure & focus\n\n| Sub-grade | Pattern |\n|-----------|---------|\n| **A** | Clear Arrange-Act-Assert (or Given-When-Then) separation. Single behavior under test. Body under ~30 lines. Setup uses framework conventions. |\n| **B** | One mild structural issue (slightly long body, missing blank lines between phases) but intent is clear. |\n| **C** | Multiple behaviors mixed in one test, or AAA phases interleaved enough to slow comprehension. |\n| **D** | Conditional logic in the test (`if`\u002F`switch` driving assertions) — except for idiomatic Go\u002FRust table-driven sub-test loops; or test relies on previous test state (ordering dependency). |\n| **F** | Test exceeds ~60 lines and verifies multiple unrelated behaviors; or shares mutable state with other tests through statics\u002Fglobals without reset. |\n\n##### C. Anti-pattern hygiene\n\nScan against the catalog below. The Anti-pattern sub-grade is computed\nin two passes and combined deterministically:\n\n1. **Hard ceiling pass.** Every **Critical** or **High** finding sets a\n   maximum sub-grade (F, D, or C as labeled). Take the **worst** ceiling\n   across all matched Critical\u002FHigh findings — these do not accumulate\n   (a single F finding caps the sub-grade at F regardless of how many\n   other Critical\u002FHigh findings are present).\n2. **Medium-deduction pass.** Start from **A**, then for each **Medium**\n   finding deduct one sub-grade level (A→B, B→C, C→D, D→F). These do\n   accumulate across findings.\n\nThe final Anti-pattern sub-grade is the **worse** of the two passes\n(i.e., `min(hard_ceiling, A − medium_count)`). **Low** findings never\naffect the grade — mention them in the note only.\n\nExamples (Critical\u002FHigh and Medium counts → Anti-pattern sub-grade):\n\n- Zero Critical\u002FHigh, 1 Medium → **B** (A − 1)\n- Zero Critical\u002FHigh, 3 Medium → **D** (A − 3)\n- One C-ceiling (e.g., over-mocking), 0 Medium → **C**\n- One C-ceiling, 2 Medium → **C** (`min(C, A − 2 = C) = C`; a third Medium tips to **D**)\n- One F-finding (e.g., swallowed exception) plus any number of Medium → **F**\n\n**Critical (drop straight to F or D)**\n\n- No assertions at all → F (also drives Assertion sub-grade to F)\n- Swallowed exceptions: `try { … } catch { }` (.NET), bare `except: pass`\n  (Python), `try { … } catch (e) {}` (JS\u002FTS\u002FJava), `defer recover()`\n  without re-panic (Go), `rescue StandardError` with no assertion (Ruby),\n  empty `catch` (Kotlin\u002FSwift) → F\n- Assert-in-catch pattern (`Assert.Fail(ex.Message)` instead of\n  `Assert.ThrowsException`) → D\n- Always-true literal assertions (`Assert.IsTrue(true)`, `assert True`,\n  `expect(true).toBe(true)`) → **F** (verifies nothing; also drives\n  Assertion sub-grade to F)\n- Self-referential \u002F tautological assertions on bound values\n  (`Assert.AreEqual(x, x)`, `assert dto.name == dto.name`) → D\n- Commented-out assertions → D\n\n**High (drop one or two sub-grades)**\n\n- Wall-clock sleep used for synchronization: `Thread.Sleep`, `Task.Delay`,\n  `time.sleep`, `setTimeout`-based wait, `Thread.sleep`, `time.Sleep`,\n  `sleep`, `std::thread::sleep`, `Start-Sleep`,\n  `std::this_thread::sleep_for` (in a unit test) → D\n- Unseeded randomness, wall-clock reads without abstraction\n  (`DateTime.Now`, `datetime.now()`, `Date.now()`,\n  `System.currentTimeMillis()`, `time.Now()`, `Time.now`,\n  `Instant::now()`, `Get-Date`, `system_clock::now`) → D\n- Hard-coded environment-dependent paths (`C:\\…`, `\u002Ftmp\u002F…`, network hosts) → D\n- Ordering dependency on mutable static \u002F package globals → D\n- Broad exception assertion (`Assert.ThrowsException\u003CException>`,\n  `pytest.raises(Exception)`, `expect(fn).toThrow(Error)` without matcher,\n  `#[should_panic]` without `expected = \"…\"`, `Should -Throw` without\n  `-ExpectedMessage`, `EXPECT_ANY_THROW`) → C\n- Over-mocking: more mock setup lines than test logic, or verifying exact\n  call sequences instead of outcomes → C\n- Implementation coupling: reflection on private members, casting to\n  internal types to access state → C\n\n**Medium (drop one sub-grade)**\n\n- Poor name: `Test1`, `TestMethod`, `test`, single-word name that says\n  nothing about scenario or expected outcome (judge against the language\n  extension's convention) → drop one sub-grade\n- Magic values: unexplained `42`, `\"foo\"`, `0x1234` in arrange\u002Fassert\n  without naming or comment → drop one sub-grade\n- Giant test (>30 lines covering a single behavior) → drop one sub-grade\n- Assertion messages that just repeat the assertion text → drop one sub-grade\n- Missing AAA \u002F GWT separation when the test is non-trivial → drop one sub-grade\n\n**Low (note only, no deduction)**\n\n- Unused setup\u002Fteardown hooks; print debugging left in (`Console.WriteLine`,\n  `print`, `console.log`, `System.out.println`, `fmt.Println`, `puts`,\n  `dbg!`, `Write-Host`, `std::cout`); inconsistent naming versus siblings;\n  leftover TODO comments. Mention in the note column but do not deduct.\n\n#### Combining sub-grades\n\nConvert sub-grades to numeric points: A=4, B=3, C=2, D=1, F=0.\n- **Overall score band** = weighted average:\n  `0.45 × Assertion + 0.30 × Anti-pattern + 0.25 × Structure`\n- Map to letter:\n  - ≥ 3.5 → **A** (band 90–100)\n  - ≥ 2.8 → **B** (band 80–89)\n  - ≥ 2.0 → **C** (band 70–79)\n  - ≥ 1.2 → **D** (band 60–69)\n  - \u003C 1.2 → **F** (band 0–59)\n- The overall grade is **capped at the worst sub-grade** — if any sub-grade\n  is **F**, the overall grade is **F**; if the worst sub-grade is **D**,\n  the overall grade is at most **D**; and so on. A test that fails on any\n  one dimension cannot earn a higher overall grade than that dimension.\n\nReport the **letter grade** and the **score band** (not a single 0–100\nnumber). False precision invites bikeshedding; bands keep the conversation\nfocused on the rubric.\n\n### Step 4: Assign the decision result\n\nThe grade summarizes strength; the result says whether follow-up exists.\nAn actionable improvement is an evidence-backed change to the test, setup, or\nfixtures. Assign exactly one:\n\n- **Pass** — no actionable improvement; positive\u002Fcontext-only notes are allowed.\n- **Failed** — at least one actionable improvement, regardless of grade.\n- **Uncertain** — missing evidence prevents a decision and needs human review.\n- **Not applicable** — a valid scope contains no eligible tests; normally an\n  overall result with no rows.\n\nDo not derive status from grade: a complete focused test can be **B \u002F Pass**,\nwhile debug output can make an otherwise excellent test **A \u002F Failed**. Use\nUncertain for an unresolved body, unsupported construct, or essential missing\ncontract—not merely absent production code. A definite finding wins over\nuncertainty.\n\n### Step 5: Build the note\n\nUse one sentence (target ≤ 120 characters) for the most important reason:\n`No issues found.`, `Only checks IsNotNull; receipt contents are unverified.`, or\n`Method body could not be resolved; human review is required.` Do not invent a\nweakness to justify a grade or Failed result.\n\nKeep the action in a separate **How to improve** field. For each Failed test,\nname the smallest useful input, assertion, or fixture change and its expected\noutcome, grounded in the body, source, or an explicit contract. For example,\n`Replace self-comparison with Assert.AreEqual(60m, account.Balance).`, not\n`Improve assertions`; `Remove Console.WriteLine after Deposit(25m).`, not\n`Clean up`. Prioritize the highest-impact distinct finding, and include other\nactionable findings only when they require a different change.\n\nFor a behavioral gap, use the distinguishing witness and original\u002Fmutant\nobservations from the shared assessment; check the expected result against\nthe unmodified source. If essential context is missing, name the evidence\nneeded instead of inventing an expected value. Pass gets `None`; Uncertain\ngets a concrete evidence-resolution step, not a speculative test rewrite.\nA rubric-only deduction is not proof of a behavioral gap or an actionable\nimprovement: a focused **B \u002F Pass** may need no change. **A \u002F Failed** still\nneeds its concrete action, such as removing debug output.\n\n### Step 6: Report\n\nProduce two sections.\n\n#### 1. Summary\n\nBegin with `**Result: \u003CPass|Failed|Uncertain|Not applicable>**`, then give result\ncounts and the highest-priority action. Aggregate using\n**Failed → Uncertain → Pass → Not applicable**. For Not applicable, explain the\nempty scope and omit the table.\n\n#### 2. Per-test table\n\n```markdown\n| Test | Result | Quality | Notes | How to improve |\n|------|--------|---------|-------|----------------|\n| `Namespace.ClassName.Test_Method_Condition_Expected` | Pass | B (80–89) | One complete value assertion. | None |\n| `Namespace.ClassName.Withdraw_SufficientFunds` | Failed | D (60–69) | Balance is compared with itself. | Replace self-comparison with `Assert.AreEqual(60m, account.Balance)` after withdrawing 40m from 100m. |\n| `Namespace.ClassName.Test_Missing` | Uncertain | — | Method body could not be resolved; human review is required. | Supply the method body and its referenced fixture. |\n```\n\nKeep these two report sections and the original Test\u002FResult\u002FQuality\u002FNotes\nfields. When mutation evidence explains a finding or the caller requests\ndetail, append a compact per-test **Pseudo-mutation evidence** block inside\nthe per-test section: change, witness, original\u002Fmutant observations, relevant\nassertion, and classification. Static results are **Likely killed (inferred)**\nor **Candidate survivor (unverified)**, never executed Killed\u002FSurvived or\nempirical killed\u002Ftotal counts. State missing-context N\u002FA \u002F unverified once\nper shared limitation. Do not repeat the improvement table in prose.\n\n**Caps and ordering**:\n- If the table would exceed **50 rows**, show Failed tests first, then\n  Uncertain tests, then a sample of Pass tests. Wrap overflow in a collapsed\n  `\u003Cdetails>` block.\n- Within the same result, order by quality from worst to best, then by file\n  path and method name for determinism.\n- If the diff context is provided, prefix each test name with a `(new)` or\n  `(modified)` marker.\n\nIf multiple languages are present, produce one table per language and\nprefix each section with the language name and framework.\n\n## Validation\n\n- [ ] Every test in the input list appears in the table (or is recorded as\n      `Uncertain — method not found`).\n- [ ] Every resolved test has Pass or Failed plus A-F quality detail.\n- [ ] Uncertain is an evidence gap; Not applicable is a valid empty scope.\n- [ ] Every grade is justified by at least one observable signal in the\n      captured body — no speculative deductions.\n- [ ] Every Failed row has a concrete, evidence-backed How to improve action;\n      Pass rows have no invented weakness, even when the quality grade is B.\n- [ ] Mutation assessment stayed read-only and per-test; unavailable context\n      was not penalized, equivalents were excluded, and static labels\u002Fcounts\n      were not presented as executed evidence.\n- [ ] Verified observable findings inform existing categories without a\n      duplicate deduction or any change to scoring weights and ceilings.\n- [ ] Trivial-assertion tests are flagged only when the **only** assertion\n      is trivial (a null check before a meaningful assertion is not trivial).\n- [ ] Exception-only tests are not penalized for low assertion count.\n- [ ] Mock-call verifications and bare assertion forms count as real\n      assertions of the appropriate category.\n- [ ] Boolean assertions on meaningful properties (`Assert.IsTrue(result.IsValid)`)\n      are not classified as always-true; only literal `true`\u002F`false` constants are.\n- [ ] Self-referential assertions are flagged separately from normal\n      equality assertions.\n- [ ] Idiomatic patterns are not flagged: Go\u002FRust table-driven sub-tests,\n      pytest bare `assert`, Go `if got != want { t.Errorf(...) }`,\n      JS\u002FTS `expect(mock).toHaveBeenCalledWith(...)`.\n- [ ] Async test pitfalls (un-awaited `resolves`\u002F`rejects`\u002F`ThrowsAsync`,\n      pytest-asyncio without `await`) drop the Assertion sub-grade to F.\n- [ ] The summary leads with the highest-leverage observation, not a recap\n      of the table.\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| Grading every test in the workspace when no list is provided | Ask the caller for the explicit list; this skill is for curated input. |\n| Inflating deductions to justify the grade | Start at A; deduct only for observable issues. |\n| Penalizing exception tests for low assertion count | Exception assertions are complete on their own. |\n| Downgrading a focused Go error-path test because it checks only `err != nil` | Expected-error existence is the observable contract for that scope; keep it at A unless the production contract requires a specific error identity or message. |\n| Treating `IsNotNull` before a value assertion as trivial | Only flag when the null check is the **only** assertion. |\n| Treating any Boolean assertion as effectively assertion-free | Only always-true literals (`Assert.IsTrue(true)`, `assert True`) are; meaningful `Assert.IsTrue(result.IsValid)` is a real assertion. |\n| Flagging Go\u002FRust table-driven loops as conditional logic | They are idiomatic; do not deduct. |\n| Treating pytest bare `assert` or Go `if got != want { t.Error… }` as missing-framework | Both are canonical; count in the correct assertion category. |\n| Penalizing tests when production code is unavailable | Mark concerns about uncovered behaviors as `Unverified` and do not deduct. |\n| Using a fake-precise score (e.g., 87\u002F100) | Use the score band only — 90–100, 80–89, 70–79, 60–69, 0–59. |\n| Spilling a 500-row table into a PR comment | Apply the row cap from Step 6; collapse extras into `\u003Cdetails>`. |\n| Re-reporting an existing finding three times under different categories | Pick the most fitting category and report once. |\n| Giving a weak test credit for a sibling's assertions | Use only the current test and helpers\u002Ffixtures it executes. |\n| Turning pseudo-mutation composition into a suite audit | Pass explicit per-test-read-only mode; no runs, edits, broad discovery, or agent recursion. |\n| Inventing weaknesses for A-grade tests to make the note \"balanced\" | If a test is clean, the note may simply read `No issues found.` |\n| Mapping status from grade or comments | Fail only for actionable improvements; a B can Pass and an A can Fail. |\n| Confusing Uncertain and Not applicable | Evidence gaps are Uncertain; a valid empty scope is Not applicable. |\n",{"name":5,"license":16,"description":59},"Grade a curated list of individual tests for readiness, A-F quality, and concrete improvements. ALWAYS USE FOR: grade tests, review only a named test, per-test readiness decisions, or quality bands for supplied methods, bodies, file spans, or bounded PR diffs, including existing tests. Produce a PR-ready Pass, Failed, Uncertain, or Not applicable table; unresolved or empty scopes omit the grade. Compose read-only per-test mutation evidence when available. Polyglot: .NET, Python, TS\u002FJS, Java, Go, Ruby, Rust, Swift, Kotlin, PowerShell, C++. DO NOT USE FOR: suite-wide audits (test-engineer or test-anti-patterns), writing or fixing tests, or measuring coverage.\n","main","f8f2bfd77819bb789d4736ce7db4a567a37fcf7e",".agents\u002Fskills\u002Fgrade-tests",315,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 14:01:43",{"source":9,"skillName":5,"commands":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add microsoft\u002Ftestfx --skill grade-tests",{"tool":75,"command":76},"bunx","bunx skills add microsoft\u002Ftestfx --skill grade-tests",{"tool":78,"command":79},"pnpm","pnpm dlx skills add microsoft\u002Ftestfx --skill grade-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgrade-tests\u002FSKILL.md",true,[],[84,111,137,161,185,213],{"skillNo":85,"name":86,"nameZh":17,"description":87,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":54},"01M70GYY0AV0JGMTHE2CN6TNYK","dotnet-breaking-changes","Use before changing .NET\u002FC# code whose callers you do not control: a NuGet library, or a repo with PublicAPI.Shipped\u002FUnshipped.txt, ApiCompat, multiple TargetFrameworks, InternalsVisibleTo, or generated (.g.cs) partials. Green builds miss silent breaks from optional parameters, parameter names, sealing, const values, nullability, and #if. USE FOR: \"without breaking existing callers\"; adding a public method, overload, optional parameter, or interface member to a shipped library; renaming a public method or an internal helper a friend assembly uses; consolidating duplicated logic; changing a signature, nullability, default, or attribute; adding a target framework; RS0016\u002FRS0017 or ApiCompat errors; \"is this PR breaking?\". For a rename, extract, or merge, also invoke csharp-refactoring. DO NOT USE FOR: an executable whose callers all live in one project; renaming a local variable or private member, even in a shipped library; formatting; framework\u002FSDK\u002FNuGet upgrades (use dotnet-upgrade).","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdotnet-breaking-changes\u002FSKILL.md",[],[91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110],"dotnet","dotnet breaking changes","changes","green","project","default","local","errors","interface","generated","upgrade","invoke","you","code","refactoring","merge","rename","library","live","assembly",{"skillNo":112,"name":113,"nameZh":114,"description":115,"descriptionZh":116,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":117,"categories":118,"keywords":121,"publishedAt":54},"01M699HHE9DTZWAMPB1ZR7ZKSW","testfx-test-value-evidence","TestFx 测试值证据应用","Apply the vendored test-value-evidence skill with TestFx toolchain, assertion, parallel-safety, packed-consumer, and review conventions. Use when implementing or reviewing behavior-changing TestFx PRs or commits, including source-only changes.","结合 TestFx 工具链、断言、并行安全、打包消费者（packed-consumer）和评审约定，应用项目内置的 test-value-evidence 技能。在实现或评审会改变行为的 TestFx PR 或提交时使用，包括仅修改源代码的变更。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftestfx-test-value-evidence\u002FSKILL.md",[119,120],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[47,122,123,124,125,52,126,127,128,129,130,40,131,34,132,133,93,134,135,136],"testfx test value evidence","test value evidence","evidence","value","parallel","toolchain","commits","implementing","prs","use","apply","with","behavior","Safety","conventions",{"skillNo":138,"name":139,"nameZh":140,"description":141,"descriptionZh":142,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":143,"categories":144,"keywords":147,"publishedAt":54},"01M699HEYWH1B9XGNBFY8J2FZS","testfx-parallel-safety-preflight","TestFx 并行安全预检","Check concurrency and isolation before implementing or refactoring TestFx tests, lifecycle code, helpers, shared-state declarations, or production paths those tests exercise. Use before narrowing DoNotParallelize or ResourceLock, changing parallelization settings, or introducing asynchronous workers; repeat against the final diff.","在实现或重构 TestFx 测试、生命周期代码、辅助函数、共享状态声明，或这些测试所覆盖的生产代码路径之前，检查并发性与隔离性。在缩小 DoNotParallelize 或 ResourceLock 的使用范围、更改并行化设置或引入异步工作线程之前使用；并针对最终 diff 重复检查。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftestfx-parallel-safety-preflight\u002FSKILL.md",[145,146],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[148,135,149,126,150,151,129,152,104,153,105,154,155,156,157,158,159,31,131,160],"testfx parallel safety preflight","preflight","shared","asynchronous","exercise","concurrency","paths","isolation","helpers","diff","parallelization","lifecycle","workers",{"skillNo":162,"name":163,"nameZh":164,"description":165,"descriptionZh":166,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":167,"categories":168,"keywords":171,"publishedAt":54},"01M699HC61ZV9GJ2C8JV03951G","testfx-localization-validation","TestFx 本地化校验","Validate generated TestFx localization catalogs, resource IDs, placeholders and locked tokens. Use for RESX\u002FXLF changes, OneLoc PRs, localization build failures, duplicate targets or units, and orphaned translation entries.","验证生成的 TestFx 本地化目录、资源 ID、占位符和锁定标记。适用于 RESX\u002FXLF 变更、OneLoc PR、本地化构建失败、重复的目标文本或翻译单元，以及孤立的翻译条目。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftestfx-localization-validation\u002FSKILL.md",[169,170],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[172,173,174,175,176,177,178,179,180,130,100,131,181,182,93,183,184],"testfx localization validation","validation","localization","validate","translation","ids","for","tokens","entries","units","duplicate","targets","build",{"skillNo":186,"name":187,"nameZh":188,"description":189,"descriptionZh":190,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":191,"categories":192,"keywords":195,"publishedAt":54},"01M699H9J2NWQXE4BDT6R0FH7S","testfx-acceptance-validation","TestFx 验收验证","Validate TestFx shipping paths and capable CI execution using packed consumers, package\u002Fcache provenance, exact exits and artifacts, and selected-versus-executed test evidence. Use for acceptance regressions, package\u002FMSBuild\u002Flauncher\u002Fprotocol changes, or skipped-only CI results; not for unrelated unit-only or documentation changes.","使用打包后的消费者、包与缓存来源、精确的退出码和产物，以及选中测试与实际执行测试的证据，验证 TestFx 的交付路径及有效的 CI 执行。适用于验收回归、包\u002FMSBuild\u002F启动器\u002F协议变更，或仅有跳过测试的 CI 结果；不适用于无关的纯单元测试或文档变更。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftestfx-acceptance-validation\u002FSKILL.md",[193,194],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[196,197,173,47,198,124,199,200,201,40,202,131,203,204,205,206,207,208,209,210,211,212,154,178],"testfx acceptance validation","acceptance","msbuild","launcher","ci","execution","package","cache","artifacts","provenance","documentation","unrelated","shipping","results","protocol","unit","ci results",{"skillNo":214,"name":215,"nameZh":216,"description":217,"descriptionZh":218,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":219,"categories":220,"keywords":227,"publishedAt":54},"01M699H70BB999BT4F627T1PHE","session-delivery-hygiene","会话交付规范管控","Gate local-session scope, persistent delivery, live PR state, integration provenance, and owned cleanup. Use before implementing guidance changes, changing or pushing PR work, diagnosing package\u002Foutput mismatches, or handing off implementation.","把控本地会话范围、持久化交付、实时 PR 状态、集成来源以及责任范围内的清理工作。在实施指导变更、修改或推送 PR、诊断包与产物不匹配，或交接实现工作之前使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsession-delivery-hygiene\u002FSKILL.md",[221,224],{"categoryNo":222,"categoryName":223,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":225,"categoryName":226,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[228,229,230,231,232,129,97,233,234,109,235,202,131,205,236,237,93,238,239,240],"session delivery hygiene","delivery","session","hygiene","scope","cleanup","work","pr","output","state","integration","guidance","gate"]