[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699GAVS4XKR81ACX1KNZ8V8":3,"skill-same:01M699GAVS4XKR81ACX1KNZ8V8":80},{"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":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":17,"ownerHtmlUrl":62,"ownerBlogUrl":63,"ownerDescription":64,"updatedAt":65,"install":66,"resources":79},"01M699GAVS4XKR81ACX1KNZ8V8","test-tagging","测试用例标记分类","Classifies existing tests by standard traits and reports their distribution. USE FOR: tagging all tests with category attributes, categorizing\u002Ftagging\u002F labeling each test, compare happy vs error paths, audit the test mix, describe coverage shape by test type, or tag then verify the project builds. Read bodies when names mislead. Apply canonical attributes; otherwise report only. DO NOT USE FOR: requests owned by test-anti-patterns, coverage-analysis, crap-score, test-gap-analysis or code-testing. Framework\u002Fplatform migration workflows are not installed in this repository and are outside this skill's scope.","按标准特征（traits）对现有测试进行分类，并报告其分布情况。适用场景：为所有测试添加类别属性，对每个测试进行分类\u002F标记\u002F贴标签，比较正常路径与错误路径，审计测试构成，按测试类型描述覆盖形态，或标记后验证项目能否构建。当测试名称具有误导性时，应阅读测试主体。应用规范化属性（canonical attributes）；否则仅做报告。不适用于：由 test-anti-patterns、coverage-analysis、crap-score、test-gap-analysis 或 code-testing 负责的请求。框架\u002F平台迁移工作流未安装在本仓库中，不在本技能的范围内。","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\u002Ftest-tagging\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],"test","tagging","test tagging","project","testing","when","mix","attributes","traits","error","scope","distribution","workflows","reports","only","coverage","analysis","gap-analysis","audit","code","2026-11-10 10:12:30",false,"---\nname: test-tagging\ndescription: >\n  Classifies existing tests by standard traits and reports their distribution.\n  USE FOR: tagging all tests with category attributes, categorizing\u002Ftagging\u002F\n  labeling each\n  test, compare happy vs error paths, audit the test mix, describe coverage shape\n  by test type, or tag then verify the project builds. Read bodies when names\n  mislead. Apply canonical attributes; otherwise report only. DO NOT USE FOR:\n  requests owned by test-anti-patterns, coverage-analysis, crap-score,\n  test-gap-analysis or code-testing. Framework\u002Fplatform migration workflows\n  are not installed in this repository and are outside this skill's scope.\nlicense: MIT\n---\n\n# Test Trait Tagging\n\nAnalyze an existing test suite in any supported language and apply a standardized set of trait tags to each test method, giving teams visibility into their test distribution (positive vs. negative, critical-path coverage, smoke tests, etc.).\n\n> **Language-specific guidance**: Try `test-analysis-extensions` once. If it is\n> unavailable, continue immediately with the built-in framework table below;\n> never block tagging on the helper.\n\n## When to Use\n\n- Auditing a test project to understand the mix of test types\n- Adding trait attributes to untagged tests\n- Generating a summary report of trait distribution across a test suite\n- Reviewing whether critical paths have sufficient coverage\n\n## When Not to Use\n\n- Writing new tests from scratch (use `code-testing` for any language, or `writing-mstest-tests` for MSTest)\n- Running or filtering tests (use `run-tests` for .NET; equivalent native runners elsewhere)\n- Migrating between test frameworks\n- General quality, smell, flakiness, or assertion audits (use `test-anti-patterns` or the matching analysis skill)\n- Diagnostic .NET executed line\u002Fbranch\u002FCobertura interpretation or project-wide CRAP risk (use `coverage-analysis`); raw coverage collection (use `run-tests` for .NET, native tooling otherwise)\n- CRAP analysis for a named method, class, or file (use `crap-score`)\n- Behavioral gaps where a test would survive broken production logic (use `test-gap-analysis`)\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Test project or files | No | Path to the test project, folder, or specific test files. Discover from the current workspace when omitted. |\n| Scope | No | Infer from the verb: `tag`\u002F`apply` edits, `audit`\u002F`classify`\u002F`report` is report-only, and `both` applies only when both are requested. If ambiguous, default to `audit` to avoid unrequested edits. Frameworks declared `report-only` always emit a report; `convention-based` frameworks edit only after the user confirms the convention. |\n| Framework | No | Auto-detected. Override when detection fails. |\n\n## Trait Taxonomy\n\nUse exactly these trait names and values. Do not invent new trait values outside this table.\n\n| Trait Value | Meaning | Heuristics |\n|-------------|---------|------------|\n| `positive` | Verifies expected behavior under normal\u002Fvalid conditions | Asserts success, valid output, expected state, no exceptions for valid input |\n| `negative` | Verifies correct handling of invalid input, errors, or edge cases | Asserts exceptions, error codes, validation failures, rejects bad input |\n| `boundary` | Tests limits, thresholds, empty\u002Fnull\u002FNone\u002Fnil inputs, min\u002Fmax values | Operates on `0`, `-1`, `int.MaxValue` \u002F `sys.maxsize` \u002F `Number.MAX_SAFE_INTEGER` \u002F `math.MaxInt64` \u002F `i32::MAX`, empty string, null\u002FNone\u002Fnil\u002Fundefined, empty collection, boundary of valid range |\n| `critical-path` | Core workflow that must never break; breakage blocks users | Tests the primary success scenario of a key public API or user-facing feature |\n| `smoke` | Quick sanity check that the system is operational | Fast, no complex setup, verifies basic wiring (e.g., service resolves, endpoint returns 200) |\n| `regression` | Reproduces a specific previously-reported bug | References a bug ID, issue number, or describes a fix in its name or comments |\n| `integration` | Crosses process, network, or persistence boundaries | Uses real database, HTTP client, file system, external service, or multi-component setup |\n| `end-to-end` | Full user workflow spanning the entire application stack | Exercises a complete scenario from entry point to final result, distinct from single-boundary `integration` |\n| `performance` | Validates timing, throughput, or resource consumption | Asserts on elapsed time, memory, allocations, or uses benchmark harness (BenchmarkDotNet, pytest-benchmark, benchmark.js, JMH, `go test -bench`, criterion.rs, XCTMetric, kotlinx-benchmark, Google Benchmark) |\n| `security` | Verifies authentication, authorization, input sanitization, or secrets handling | Tests for SQL injection, XSS, CSRF, unauthorized access, token validation, permission checks |\n| `concurrency` | Validates thread safety, parallelism, or async correctness | Uses `Task.WhenAll` \u002F `Parallel.ForEach` \u002F `SemaphoreSlim` (.NET); `asyncio.gather` \u002F `threading.Lock` \u002F `multiprocessing` (Python); `Promise.all` \u002F worker threads (JS\u002FTS); `CompletableFuture` \u002F `ExecutorService` \u002F `synchronized` (Java); `go func` \u002F `sync.WaitGroup` \u002F `sync.Mutex` \u002F `chan` (Go); `Mutex` \u002F `Thread.new` (Ruby); `tokio::spawn` \u002F `Arc\u003CMutex\u003C_>>` \u002F `crossbeam` (Rust); `DispatchQueue` \u002F `actor` (Swift); `coroutineScope` \u002F `Mutex` (Kotlin); `Start-Job` \u002F `RunspacePool` (PowerShell); `std::thread` \u002F `std::mutex` (C++); reproduces race conditions |\n| `resilience` | Tests retry logic, timeouts, circuit breakers, or graceful degradation | Asserts behavior under transient failures, network drops, or service unavailability (e.g., Polly, tenacity, p-retry, resilience4j, hystrix, opossum, retry-go) |\n| `destructive` | Mutates shared or external state that is hard to roll back | Deletes records, drops resources, modifies global config -- useful for CI isolation decisions |\n| `configuration` | Verifies settings loading, defaults, environment behavior | Tests missing config keys, invalid values, environment variable fallbacks, options validation |\n| `flaky` | Known to intermittently fail (meta-tag for test health tracking) | Mark tests the team knows are unreliable; used to quarantine or prioritize stabilization |\n\nA single test may have **multiple traits** (e.g., both `negative` and `boundary`). At minimum, every test should receive one of `positive` or `negative`.\n\n## Workflow\n\n### Step 1: Detect the language, framework, and tagging capability\n\nResolve the requested test scope from the current workspace before asking for a\npath. The skill context's `Base directory` contains these instructions, not the\nuser's repository. Always inspect the current working directory before claiming\nthat repository files are unavailable. If the prompt's relative path is absent,\nsearch the workspace for the named project\u002Ffile and retry the exact result. A\nsuccessful search proves that the target is present; if the normal reader then\nreports that same path missing, treat the contradiction as a reader\npath-normalization or transport failure rather than asking the user for files.\nUse a shell text reader (`sed`\u002F`cat` on Unix,\n`Get-Content` on PowerShell) only for a confirmed reader availability,\ntransport, or path-normalization failure and only after verifying the canonical\npath remains inside the current workspace. Stop on content-exclusion,\npermission\u002Fpolicy, workspace-boundary, or unknown read failures. Never ask the\nuser for a path or file contents after a workspace search found a readable\ntarget.\n\nFor an `auto-edit` framework, a failed patch\u002Feditor call is not a stopping\ncondition only when the failure is confirmed tool availability, transport, or\npath normalization. Do not bypass stale-context, concurrent-change,\npermission\u002Fpolicy, or path-boundary errors. Before a shell fallback, resolve\nthe canonical path inside the current workspace, freshly read the file, and use\nan anchored transformation that aborts unless the expected old text and exact\nmatch count are unchanged. Then re-open the complete file, inspect the diff,\nand run Step 6 validation. Do not report proposed attributes as completion when\nthe user asked to apply them.\n\nIdentify the language and framework. Try the matching\n`test-analysis-extensions` guidance once. If unavailable, classify capability\nfrom the built-in rules below:\n\n- **`auto-edit`** — framework has canonical tag syntax this skill can safely insert (.NET `[TestCategory]` \u002F `[Trait]` \u002F `[Category]` \u002F `[Property]`, pytest `@pytest.mark.\u003Cname>`, JUnit 5 `@Tag(\"...\")`, TestNG `groups = {\"...\"}`, RSpec metadata `it \"...\" , :tag => true`, Pester `-Tag '...'`, Kotest `@Tags(...)`, Swift Testing `@Tag(.tagName)`, Catch2 `[tag]`, doctest `* doctest::test_suite(\"tag\")` decorator).\n- **`report-only`** — framework has no canonical, agreed-upon tag attribute; report tags in a Markdown table only and do not edit source (Go standard `testing` without build-tag conventions, Jest\u002FVitest without consistent describe-prefix convention, Rust without project-specific cfg conventions, XCTest without a test plan, GoogleTest without test-name prefix conventions, Mocha without describe-prefix conventions).\n- **`convention-based`** — framework uses naming or file conventions for tagging (Go `\u002F\u002Fgo:build integration` build tags, file-name suffixes like `*_integration_test.go`, GoogleTest `INTEGRATION_*` filter prefix). Only emit canonical edits when the user has confirmed the project convention; otherwise treat as `report-only`.\n\nCapture the capability before Step 4.\n\nAlso lock the requested mode before classification. Do not turn an audit into\nsource edits because canonical attributes are available; edit only for an\nexplicit tagging\u002Fapply request.\n\n### Step 2: Scan existing traits\n\nCheck which tests already have trait attributes. Use the extension when loaded;\notherwise use this built-in table as the source of truth:\n\n| Framework | Existing Attribute | Example |\n|-----------|--------------------|---------|\n| MSTest | `[TestCategory(\"...\")]` | `[TestCategory(\"positive\")]` |\n| xUnit | `[Trait(\"Category\", \"...\")]` | `[Trait(\"Category\", \"positive\")]` |\n| NUnit | `[Category(\"...\")]` | `[Category(\"positive\")]` |\n| TUnit | `[Property(\"Category\", \"...\")]` | `[Property(\"Category\", \"positive\")]` |\n| JUnit 5 | `@Tag(\"...\")` | `@Tag(\"positive\")` |\n| TestNG | `@Test(groups = {\"...\"})` | `@Test(groups = {\"positive\"})` |\n| pytest | `@pytest.mark.\u003Cname>` | `@pytest.mark.positive` |\n| RSpec | metadata after `it` | `it \"...\", :positive do` |\n| Pester | `-Tag '...'` | `It '...' -Tag 'positive'` |\n| Kotest | `@Tags(...)` | `@Tags(Positive)` |\n| Swift Testing | `@Tag(.\u003Cname>)` | `@Test(.tags(.positive))` |\n| Catch2 | `[tag]` in name | `TEST_CASE(\"...\", \"[positive]\")` |\n| doctest | `* doctest::test_suite(\"...\")` decorator | `TEST_CASE(\"...\" *doctest::test_suite(\"positive\"))` |\n\nRecord which tests already have tags to avoid duplication.\n\n### Step 3: Classify each test method\n\nBuild one canonical inventory containing each discovered test exactly once.\nRecord the test identifier, behavioral classification, and traits in that\ninventory; use the same rows for source edits, per-test reporting, totals, and\ndistribution counts. Do not hand-count a separate denominator. Before\npublishing, reconcile the reported total with the number of inventory rows and\nverify that every row contributes to each displayed trait count.\n\nFor each test method without traits, analyze:\n\n1. **Method name** -- names containing `Invalid`, `Fail`, `Error`, `Throw`, `Reject`, `BadInput`, `Null`, `None`, `Nil`, `Negative`, `raises_`, `_throws_`, `_returns_error` suggest `negative`\n2. **Assertion type** -- `Assert.ThrowsException` \u002F `Assert.Throws` \u002F `Should().Throw()` \u002F `pytest.raises` \u002F `expect(fn).toThrow` \u002F `assertThrows` \u002F `assert.Error(t, err)` \u002F `expect { ... }.to raise_error` \u002F `#[should_panic]` \u002F `XCTAssertThrowsError` \u002F `Should -Throw` \u002F `EXPECT_THROW` suggest `negative`\n3. **Input values** -- `null` \u002F `None` \u002F `nil` \u002F `undefined`, `\"\"`, `0`, `-1`, `int.MaxValue` \u002F `sys.maxsize` \u002F `Number.MAX_SAFE_INTEGER` \u002F `math.MaxInt64` \u002F `i32::MAX`, empty collections suggest `boundary`\n4. **Setup complexity** -- minimal setup with basic assertions suggests `smoke`; external dependencies (file\u002Fdb\u002Fnet\u002Fenv) suggest `integration`\n5. **Comments and names** -- references to issue numbers or \"regression\" \u002F \"bug\" \u002F \"fix for #...\" suggest `regression`\n6. **Timing assertions** -- `Stopwatch`, `BenchmarkDotNet`, elapsed-time checks; pytest-benchmark fixtures; benchmark.js; JMH `@Benchmark`; `go test -bench`; criterion.rs; XCTMetric; Google Benchmark; kotlinx-benchmark suggest `performance`\n7. **Feature centrality** -- tests on primary public API entry points or critical user workflows suggest `critical-path`\n8. **Security patterns** -- validates auth, checks permissions, sanitizes input, tests for injection, handles tokens\u002Fsecrets suggest `security`\n9. **Parallel\u002Fasync constructs** -- per-language concurrency primitives (see Trait Taxonomy table) suggest `concurrency`\n10. **Fault injection** -- simulates failures, tests retries, timeouts, or circuit breakers suggest `resilience`\n11. **State mutation** -- deletes external records, drops resources, modifies shared\u002Fglobal state suggest `destructive`\n12. **Full-stack flow** -- test spans entry point through data layer to final response, covering a complete user scenario suggest `end-to-end`\n13. **Config\u002Fsettings** -- loads configuration, tests missing keys, validates options, checks environment variables suggest `configuration`\n14. **Known instability** -- test has skip \u002F ignore annotations with comments about flakiness, or names contain \"flaky\" \u002F \"intermittent\" suggest `flaky`\n15. **Default** -- if the test verifies a normal success path, tag `positive`\n\nWhen in doubt between `positive` and `negative`, read the assertion: if it asserts success -> `positive`; if it asserts failure -> `negative`.\n\nFor a requested distribution or coverage-shape audit, use available production\ncode to map each test to the exact outcome it exercises before summarizing.\nCall out duplicated boundary coverage and whether the test inventory represents\nboth sides of named thresholds and the observable collaborator outcomes on\nbusiness-critical paths. Keep these as concise distribution observations, not\nnew trait values. Do not perform mutation reasoning, prescribe new tests, or\nexpand into the behavioral-gap audit owned by `test-gap-analysis`.\n\n### Step 4: Apply trait attributes (or report only)\n\nResolve the mode before applying the capability:\n\n- **Audit mode** (`audit`, `classify`, `report`, or ambiguous intent): emit the\n  per-test mapping and summary without modifying source, regardless of\n  capability.\n- **Edit mode** (`tag`, `apply`, or explicitly requested `both`): continue with\n  the capability branch below.\n\n**In edit mode, if the resolved capability is `auto-edit`**, add the appropriate\nattribute to each test method. Place trait attributes adjacent to the existing\ntest attribute. Examples:\n\nApply traits at the individual test-method\u002Fcase level. Do not substitute one\nclass-level category for method-level classification: different methods usually\nexercise different positive, negative, and boundary behavior.\n\n**MSTest:**\n```csharp\n[TestMethod]\n[TestCategory(\"negative\")]\n[TestCategory(\"boundary\")]\npublic void Parse_NullInput_ThrowsArgumentNullException() { ... }\n```\n\n**xUnit:**\n```csharp\n[Fact]\n[Trait(\"Category\", \"positive\")]\n[Trait(\"Category\", \"critical-path\")]\npublic void CreateOrder_ValidItems_ReturnsConfirmation() { ... }\n```\n\n**NUnit:**\n```csharp\n[Test]\n[Category(\"regression\")]\n[Category(\"negative\")]\npublic void Calculate_OverflowInput_ReturnsError() \u002F\u002F Fix for #1234\n{ ... }\n```\n\n**pytest:**\n```python\n@pytest.mark.negative\n@pytest.mark.boundary\ndef test_parse_none_input_raises_value_error():\n    ...\n```\n\n**JUnit 5:**\n```java\n@Test\n@Tag(\"positive\")\n@Tag(\"critical-path\")\nvoid createOrder_validItems_returnsConfirmation() { ... }\n```\n\n**TestNG:**\n```java\n@Test(groups = {\"negative\", \"boundary\"})\npublic void parse_nullInput_throwsIllegalArgumentException() { ... }\n```\n\n**RSpec:**\n```ruby\nit \"rejects null input\", :negative, :boundary do\n  ...\nend\n```\n\n**Pester:**\n```powershell\nIt 'Rejects null input' -Tag 'negative','boundary' {\n    ...\n}\n```\n\n**Kotest:**\n```kotlin\n@Tags(Negative, Boundary)\nclass ParserSpec : StringSpec({\n    \"rejects null input\" { ... }\n})\n```\n\n**Swift Testing:**\n```swift\n@Test(.tags(.negative, .boundary))\nfunc parseNullInputThrows() throws { ... }\n```\n\n**Catch2:**\n```cpp\nTEST_CASE(\"Parse null input throws\", \"[negative][boundary]\") { ... }\n```\n\n**In any mode, if the resolved capability is `report-only`** (Go standard\n`testing`, plain Jest\u002FVitest without convention, Rust without project-specific\ncfg, plain XCTest, plain GoogleTest, plain Mocha), do NOT modify source files.\nInstead emit a concise mapping from each test to its suggested tags. Recommend a\nproject-wide convention only when the user asks how to persist or filter those\ntags; an analysis-only request should report and stop.\n\n**In edit mode, if the resolved capability is `convention-based`** (e.g., Go\n`\u002F\u002Fgo:build integration`, `*_integration_test.go`, GoogleTest `INTEGRATION_*`\nprefix), only emit canonical edits when the user has confirmed the project's\nconvention. Otherwise treat as `report-only`.\n\n### Step 5: Generate trait summary\n\nAfter tagging, produce a summary table. Include only traits with a non-zero\ncount unless the user asks for the full taxonomy; zero-filled rows obscure the\nsuite's actual shape. For a small report-only suite, keep the per-test mapping\nand non-zero distribution together rather than expanding into a dashboard.\n\n```\n## Trait Distribution\n\n| Trait         | Count | % of Total |\n|---------------|-------|------------|\n| positive      |    50 |      64.1% |\n| negative      |    28 |      35.9% |\n| boundary      |     8 |      10.3% |\n| critical-path |    12 |      15.4% |\n| **Total tests** | **78** | -- |\n\nNote: Percentages exceed 100% because tests can have multiple traits.\n```\n\nInclude observations such as:\n- Ratio of positive to negative tests\n- Whether critical-path tests exist for key public APIs\n- Any tests that could not be confidently classified (list them for manual review)\n\n`boundary` and every other specialized trait are additive. A boundary success\ncase still counts as `positive`; a rejected boundary still counts as `negative`.\nDerive the positive\u002Fnegative distribution after applying this rule.\n\n### Step 6: Verify edits before reporting\n\nFor every `auto-edit` framework, run the narrowest command that compiles the\nedited attributes and confirms test discovery. This is required even when the\nuser asks only to add tags: syntactically plausible attributes are not a\ncompleted edit.\n\n| Framework | Minimum verification |\n|---|---|\n| .NET | Run `dotnet build \u003Ctest-project>`, then confirm discovery with `dotnet test \u003Ctest-project> --list-tests --no-build`. Do not execute the suite unless the user asks; route execution to `run-tests`. |\n| pytest | collect the edited suite with the repository's configured pytest command |\n| JUnit\u002FTestNG | compile tests through the repository's Maven\u002FGradle test task |\n| Other auto-edit frameworks | Use the repository's narrowest compile or test-discovery command |\n\nIf an edit or patch application was uncertain, re-open the complete edited file\nbefore verification and reconcile every inventory row with the actual\nattribute next to that test. Do not report success from a partial diff or from\nthe intended patch. If verification fails, report the exact command and error;\nnever publish a successful distribution handoff for uncompiled edits.\n\n## Validation\n\n- [ ] Every test method has at least one trait classification (`positive` or `negative` at minimum) — in the report for `report-only` frameworks, or as an attribute for `auto-edit` frameworks\n- [ ] The total equals the per-test inventory count, and displayed trait counts were derived from that inventory\n- [ ] No invented trait values outside the taxonomy table\n- [ ] Existing trait attributes were preserved, not duplicated\n- [ ] The trait summary table was generated\n- [ ] For `auto-edit` frameworks, the project still builds \u002F tests still discover without executing unrequested tests (`dotnet build` plus list mode \u002F `pytest --collect-only` \u002F `mvn test-compile` \u002F `go vet .\u002F...` \u002F `cargo check --tests` \u002F `npm run test:list` \u002F equivalent)\n- [ ] The final summary cites successful validation commands and the discovered test count when a discovery command is available\n- [ ] For `report-only` frameworks, no source files were modified\n- [ ] For `convention-based` frameworks, edits were applied ONLY when a project convention was confirmed\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| Guessing traits without reading the test body | Always read assertions and setup to classify accurately |\n| Tagging a test only as `boundary` without `positive`\u002F`negative` | Every test should also be `positive` or `negative` -- `boundary` is additive |\n| Using the wrong attribute syntax for the detected framework | Match the loaded extension or built-in table (don't put `[TestCategory]` in xUnit or `@pytest.mark.x` in unittest) |\n| Duplicating an existing category attribute | Check for pre-existing traits in Step 2 before adding |\n| Over-tagging as `critical-path` | Reserve for tests on primary public entry points, not every helper |\n| Editing Go \u002F plain Jest \u002F plain Rust \u002F plain XCTest \u002F plain GoogleTest source | These are `report-only` by default — emit a Markdown table instead. Only edit if the user confirms a project-wide convention (build tag, file suffix, describe-prefix, test-plan grouping). |\n| Inventing tag prefixes for convention-based frameworks | Confirm the project's existing convention before adopting one — don't guess between `_integration_test.go`, `\u002F\u002Fgo:build integration`, or `IntegrationTest` prefix |\n| Missing language-specific concurrency \u002F async primitives | Use the loaded extension when available; otherwise use the Trait Taxonomy concurrency row |\n","# Test Trait Tagging\n\nAnalyze an existing test suite in any supported language and apply a standardized set of trait tags to each test method, giving teams visibility into their test distribution (positive vs. negative, critical-path coverage, smoke tests, etc.).\n\n> **Language-specific guidance**: Try `test-analysis-extensions` once. If it is\n> unavailable, continue immediately with the built-in framework table below;\n> never block tagging on the helper.\n\n## When to Use\n\n- Auditing a test project to understand the mix of test types\n- Adding trait attributes to untagged tests\n- Generating a summary report of trait distribution across a test suite\n- Reviewing whether critical paths have sufficient coverage\n\n## When Not to Use\n\n- Writing new tests from scratch (use `code-testing` for any language, or `writing-mstest-tests` for MSTest)\n- Running or filtering tests (use `run-tests` for .NET; equivalent native runners elsewhere)\n- Migrating between test frameworks\n- General quality, smell, flakiness, or assertion audits (use `test-anti-patterns` or the matching analysis skill)\n- Diagnostic .NET executed line\u002Fbranch\u002FCobertura interpretation or project-wide CRAP risk (use `coverage-analysis`); raw coverage collection (use `run-tests` for .NET, native tooling otherwise)\n- CRAP analysis for a named method, class, or file (use `crap-score`)\n- Behavioral gaps where a test would survive broken production logic (use `test-gap-analysis`)\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Test project or files | No | Path to the test project, folder, or specific test files. Discover from the current workspace when omitted. |\n| Scope | No | Infer from the verb: `tag`\u002F`apply` edits, `audit`\u002F`classify`\u002F`report` is report-only, and `both` applies only when both are requested. If ambiguous, default to `audit` to avoid unrequested edits. Frameworks declared `report-only` always emit a report; `convention-based` frameworks edit only after the user confirms the convention. |\n| Framework | No | Auto-detected. Override when detection fails. |\n\n## Trait Taxonomy\n\nUse exactly these trait names and values. Do not invent new trait values outside this table.\n\n| Trait Value | Meaning | Heuristics |\n|-------------|---------|------------|\n| `positive` | Verifies expected behavior under normal\u002Fvalid conditions | Asserts success, valid output, expected state, no exceptions for valid input |\n| `negative` | Verifies correct handling of invalid input, errors, or edge cases | Asserts exceptions, error codes, validation failures, rejects bad input |\n| `boundary` | Tests limits, thresholds, empty\u002Fnull\u002FNone\u002Fnil inputs, min\u002Fmax values | Operates on `0`, `-1`, `int.MaxValue` \u002F `sys.maxsize` \u002F `Number.MAX_SAFE_INTEGER` \u002F `math.MaxInt64` \u002F `i32::MAX`, empty string, null\u002FNone\u002Fnil\u002Fundefined, empty collection, boundary of valid range |\n| `critical-path` | Core workflow that must never break; breakage blocks users | Tests the primary success scenario of a key public API or user-facing feature |\n| `smoke` | Quick sanity check that the system is operational | Fast, no complex setup, verifies basic wiring (e.g., service resolves, endpoint returns 200) |\n| `regression` | Reproduces a specific previously-reported bug | References a bug ID, issue number, or describes a fix in its name or comments |\n| `integration` | Crosses process, network, or persistence boundaries | Uses real database, HTTP client, file system, external service, or multi-component setup |\n| `end-to-end` | Full user workflow spanning the entire application stack | Exercises a complete scenario from entry point to final result, distinct from single-boundary `integration` |\n| `performance` | Validates timing, throughput, or resource consumption | Asserts on elapsed time, memory, allocations, or uses benchmark harness (BenchmarkDotNet, pytest-benchmark, benchmark.js, JMH, `go test -bench`, criterion.rs, XCTMetric, kotlinx-benchmark, Google Benchmark) |\n| `security` | Verifies authentication, authorization, input sanitization, or secrets handling | Tests for SQL injection, XSS, CSRF, unauthorized access, token validation, permission checks |\n| `concurrency` | Validates thread safety, parallelism, or async correctness | Uses `Task.WhenAll` \u002F `Parallel.ForEach` \u002F `SemaphoreSlim` (.NET); `asyncio.gather` \u002F `threading.Lock` \u002F `multiprocessing` (Python); `Promise.all` \u002F worker threads (JS\u002FTS); `CompletableFuture` \u002F `ExecutorService` \u002F `synchronized` (Java); `go func` \u002F `sync.WaitGroup` \u002F `sync.Mutex` \u002F `chan` (Go); `Mutex` \u002F `Thread.new` (Ruby); `tokio::spawn` \u002F `Arc\u003CMutex\u003C_>>` \u002F `crossbeam` (Rust); `DispatchQueue` \u002F `actor` (Swift); `coroutineScope` \u002F `Mutex` (Kotlin); `Start-Job` \u002F `RunspacePool` (PowerShell); `std::thread` \u002F `std::mutex` (C++); reproduces race conditions |\n| `resilience` | Tests retry logic, timeouts, circuit breakers, or graceful degradation | Asserts behavior under transient failures, network drops, or service unavailability (e.g., Polly, tenacity, p-retry, resilience4j, hystrix, opossum, retry-go) |\n| `destructive` | Mutates shared or external state that is hard to roll back | Deletes records, drops resources, modifies global config -- useful for CI isolation decisions |\n| `configuration` | Verifies settings loading, defaults, environment behavior | Tests missing config keys, invalid values, environment variable fallbacks, options validation |\n| `flaky` | Known to intermittently fail (meta-tag for test health tracking) | Mark tests the team knows are unreliable; used to quarantine or prioritize stabilization |\n\nA single test may have **multiple traits** (e.g., both `negative` and `boundary`). At minimum, every test should receive one of `positive` or `negative`.\n\n## Workflow\n\n### Step 1: Detect the language, framework, and tagging capability\n\nResolve the requested test scope from the current workspace before asking for a\npath. The skill context's `Base directory` contains these instructions, not the\nuser's repository. Always inspect the current working directory before claiming\nthat repository files are unavailable. If the prompt's relative path is absent,\nsearch the workspace for the named project\u002Ffile and retry the exact result. A\nsuccessful search proves that the target is present; if the normal reader then\nreports that same path missing, treat the contradiction as a reader\npath-normalization or transport failure rather than asking the user for files.\nUse a shell text reader (`sed`\u002F`cat` on Unix,\n`Get-Content` on PowerShell) only for a confirmed reader availability,\ntransport, or path-normalization failure and only after verifying the canonical\npath remains inside the current workspace. Stop on content-exclusion,\npermission\u002Fpolicy, workspace-boundary, or unknown read failures. Never ask the\nuser for a path or file contents after a workspace search found a readable\ntarget.\n\nFor an `auto-edit` framework, a failed patch\u002Feditor call is not a stopping\ncondition only when the failure is confirmed tool availability, transport, or\npath normalization. Do not bypass stale-context, concurrent-change,\npermission\u002Fpolicy, or path-boundary errors. Before a shell fallback, resolve\nthe canonical path inside the current workspace, freshly read the file, and use\nan anchored transformation that aborts unless the expected old text and exact\nmatch count are unchanged. Then re-open the complete file, inspect the diff,\nand run Step 6 validation. Do not report proposed attributes as completion when\nthe user asked to apply them.\n\nIdentify the language and framework. Try the matching\n`test-analysis-extensions` guidance once. If unavailable, classify capability\nfrom the built-in rules below:\n\n- **`auto-edit`** — framework has canonical tag syntax this skill can safely insert (.NET `[TestCategory]` \u002F `[Trait]` \u002F `[Category]` \u002F `[Property]`, pytest `@pytest.mark.\u003Cname>`, JUnit 5 `@Tag(\"...\")`, TestNG `groups = {\"...\"}`, RSpec metadata `it \"...\" , :tag => true`, Pester `-Tag '...'`, Kotest `@Tags(...)`, Swift Testing `@Tag(.tagName)`, Catch2 `[tag]`, doctest `* doctest::test_suite(\"tag\")` decorator).\n- **`report-only`** — framework has no canonical, agreed-upon tag attribute; report tags in a Markdown table only and do not edit source (Go standard `testing` without build-tag conventions, Jest\u002FVitest without consistent describe-prefix convention, Rust without project-specific cfg conventions, XCTest without a test plan, GoogleTest without test-name prefix conventions, Mocha without describe-prefix conventions).\n- **`convention-based`** — framework uses naming or file conventions for tagging (Go `\u002F\u002Fgo:build integration` build tags, file-name suffixes like `*_integration_test.go`, GoogleTest `INTEGRATION_*` filter prefix). Only emit canonical edits when the user has confirmed the project convention; otherwise treat as `report-only`.\n\nCapture the capability before Step 4.\n\nAlso lock the requested mode before classification. Do not turn an audit into\nsource edits because canonical attributes are available; edit only for an\nexplicit tagging\u002Fapply request.\n\n### Step 2: Scan existing traits\n\nCheck which tests already have trait attributes. Use the extension when loaded;\notherwise use this built-in table as the source of truth:\n\n| Framework | Existing Attribute | Example |\n|-----------|--------------------|---------|\n| MSTest | `[TestCategory(\"...\")]` | `[TestCategory(\"positive\")]` |\n| xUnit | `[Trait(\"Category\", \"...\")]` | `[Trait(\"Category\", \"positive\")]` |\n| NUnit | `[Category(\"...\")]` | `[Category(\"positive\")]` |\n| TUnit | `[Property(\"Category\", \"...\")]` | `[Property(\"Category\", \"positive\")]` |\n| JUnit 5 | `@Tag(\"...\")` | `@Tag(\"positive\")` |\n| TestNG | `@Test(groups = {\"...\"})` | `@Test(groups = {\"positive\"})` |\n| pytest | `@pytest.mark.\u003Cname>` | `@pytest.mark.positive` |\n| RSpec | metadata after `it` | `it \"...\", :positive do` |\n| Pester | `-Tag '...'` | `It '...' -Tag 'positive'` |\n| Kotest | `@Tags(...)` | `@Tags(Positive)` |\n| Swift Testing | `@Tag(.\u003Cname>)` | `@Test(.tags(.positive))` |\n| Catch2 | `[tag]` in name | `TEST_CASE(\"...\", \"[positive]\")` |\n| doctest | `* doctest::test_suite(\"...\")` decorator | `TEST_CASE(\"...\" *doctest::test_suite(\"positive\"))` |\n\nRecord which tests already have tags to avoid duplication.\n\n### Step 3: Classify each test method\n\nBuild one canonical inventory containing each discovered test exactly once.\nRecord the test identifier, behavioral classification, and traits in that\ninventory; use the same rows for source edits, per-test reporting, totals, and\ndistribution counts. Do not hand-count a separate denominator. Before\npublishing, reconcile the reported total with the number of inventory rows and\nverify that every row contributes to each displayed trait count.\n\nFor each test method without traits, analyze:\n\n1. **Method name** -- names containing `Invalid`, `Fail`, `Error`, `Throw`, `Reject`, `BadInput`, `Null`, `None`, `Nil`, `Negative`, `raises_`, `_throws_`, `_returns_error` suggest `negative`\n2. **Assertion type** -- `Assert.ThrowsException` \u002F `Assert.Throws` \u002F `Should().Throw()` \u002F `pytest.raises` \u002F `expect(fn).toThrow` \u002F `assertThrows` \u002F `assert.Error(t, err)` \u002F `expect { ... }.to raise_error` \u002F `#[should_panic]` \u002F `XCTAssertThrowsError` \u002F `Should -Throw` \u002F `EXPECT_THROW` suggest `negative`\n3. **Input values** -- `null` \u002F `None` \u002F `nil` \u002F `undefined`, `\"\"`, `0`, `-1`, `int.MaxValue` \u002F `sys.maxsize` \u002F `Number.MAX_SAFE_INTEGER` \u002F `math.MaxInt64` \u002F `i32::MAX`, empty collections suggest `boundary`\n4. **Setup complexity** -- minimal setup with basic assertions suggests `smoke`; external dependencies (file\u002Fdb\u002Fnet\u002Fenv) suggest `integration`\n5. **Comments and names** -- references to issue numbers or \"regression\" \u002F \"bug\" \u002F \"fix for #...\" suggest `regression`\n6. **Timing assertions** -- `Stopwatch`, `BenchmarkDotNet`, elapsed-time checks; pytest-benchmark fixtures; benchmark.js; JMH `@Benchmark`; `go test -bench`; criterion.rs; XCTMetric; Google Benchmark; kotlinx-benchmark suggest `performance`\n7. **Feature centrality** -- tests on primary public API entry points or critical user workflows suggest `critical-path`\n8. **Security patterns** -- validates auth, checks permissions, sanitizes input, tests for injection, handles tokens\u002Fsecrets suggest `security`\n9. **Parallel\u002Fasync constructs** -- per-language concurrency primitives (see Trait Taxonomy table) suggest `concurrency`\n10. **Fault injection** -- simulates failures, tests retries, timeouts, or circuit breakers suggest `resilience`\n11. **State mutation** -- deletes external records, drops resources, modifies shared\u002Fglobal state suggest `destructive`\n12. **Full-stack flow** -- test spans entry point through data layer to final response, covering a complete user scenario suggest `end-to-end`\n13. **Config\u002Fsettings** -- loads configuration, tests missing keys, validates options, checks environment variables suggest `configuration`\n14. **Known instability** -- test has skip \u002F ignore annotations with comments about flakiness, or names contain \"flaky\" \u002F \"intermittent\" suggest `flaky`\n15. **Default** -- if the test verifies a normal success path, tag `positive`\n\nWhen in doubt between `positive` and `negative`, read the assertion: if it asserts success -> `positive`; if it asserts failure -> `negative`.\n\nFor a requested distribution or coverage-shape audit, use available production\ncode to map each test to the exact outcome it exercises before summarizing.\nCall out duplicated boundary coverage and whether the test inventory represents\nboth sides of named thresholds and the observable collaborator outcomes on\nbusiness-critical paths. Keep these as concise distribution observations, not\nnew trait values. Do not perform mutation reasoning, prescribe new tests, or\nexpand into the behavioral-gap audit owned by `test-gap-analysis`.\n\n### Step 4: Apply trait attributes (or report only)\n\nResolve the mode before applying the capability:\n\n- **Audit mode** (`audit`, `classify`, `report`, or ambiguous intent): emit the\n  per-test mapping and summary without modifying source, regardless of\n  capability.\n- **Edit mode** (`tag`, `apply`, or explicitly requested `both`): continue with\n  the capability branch below.\n\n**In edit mode, if the resolved capability is `auto-edit`**, add the appropriate\nattribute to each test method. Place trait attributes adjacent to the existing\ntest attribute. Examples:\n\nApply traits at the individual test-method\u002Fcase level. Do not substitute one\nclass-level category for method-level classification: different methods usually\nexercise different positive, negative, and boundary behavior.\n\n**MSTest:**\n```csharp\n[TestMethod]\n[TestCategory(\"negative\")]\n[TestCategory(\"boundary\")]\npublic void Parse_NullInput_ThrowsArgumentNullException() { ... }\n```\n\n**xUnit:**\n```csharp\n[Fact]\n[Trait(\"Category\", \"positive\")]\n[Trait(\"Category\", \"critical-path\")]\npublic void CreateOrder_ValidItems_ReturnsConfirmation() { ... }\n```\n\n**NUnit:**\n```csharp\n[Test]\n[Category(\"regression\")]\n[Category(\"negative\")]\npublic void Calculate_OverflowInput_ReturnsError() \u002F\u002F Fix for #1234\n{ ... }\n```\n\n**pytest:**\n```python\n@pytest.mark.negative\n@pytest.mark.boundary\ndef test_parse_none_input_raises_value_error():\n    ...\n```\n\n**JUnit 5:**\n```java\n@Test\n@Tag(\"positive\")\n@Tag(\"critical-path\")\nvoid createOrder_validItems_returnsConfirmation() { ... }\n```\n\n**TestNG:**\n```java\n@Test(groups = {\"negative\", \"boundary\"})\npublic void parse_nullInput_throwsIllegalArgumentException() { ... }\n```\n\n**RSpec:**\n```ruby\nit \"rejects null input\", :negative, :boundary do\n  ...\nend\n```\n\n**Pester:**\n```powershell\nIt 'Rejects null input' -Tag 'negative','boundary' {\n    ...\n}\n```\n\n**Kotest:**\n```kotlin\n@Tags(Negative, Boundary)\nclass ParserSpec : StringSpec({\n    \"rejects null input\" { ... }\n})\n```\n\n**Swift Testing:**\n```swift\n@Test(.tags(.negative, .boundary))\nfunc parseNullInputThrows() throws { ... }\n```\n\n**Catch2:**\n```cpp\nTEST_CASE(\"Parse null input throws\", \"[negative][boundary]\") { ... }\n```\n\n**In any mode, if the resolved capability is `report-only`** (Go standard\n`testing`, plain Jest\u002FVitest without convention, Rust without project-specific\ncfg, plain XCTest, plain GoogleTest, plain Mocha), do NOT modify source files.\nInstead emit a concise mapping from each test to its suggested tags. Recommend a\nproject-wide convention only when the user asks how to persist or filter those\ntags; an analysis-only request should report and stop.\n\n**In edit mode, if the resolved capability is `convention-based`** (e.g., Go\n`\u002F\u002Fgo:build integration`, `*_integration_test.go`, GoogleTest `INTEGRATION_*`\nprefix), only emit canonical edits when the user has confirmed the project's\nconvention. Otherwise treat as `report-only`.\n\n### Step 5: Generate trait summary\n\nAfter tagging, produce a summary table. Include only traits with a non-zero\ncount unless the user asks for the full taxonomy; zero-filled rows obscure the\nsuite's actual shape. For a small report-only suite, keep the per-test mapping\nand non-zero distribution together rather than expanding into a dashboard.\n\n```\n## Trait Distribution\n\n| Trait         | Count | % of Total |\n|---------------|-------|------------|\n| positive      |    50 |      64.1% |\n| negative      |    28 |      35.9% |\n| boundary      |     8 |      10.3% |\n| critical-path |    12 |      15.4% |\n| **Total tests** | **78** | -- |\n\nNote: Percentages exceed 100% because tests can have multiple traits.\n```\n\nInclude observations such as:\n- Ratio of positive to negative tests\n- Whether critical-path tests exist for key public APIs\n- Any tests that could not be confidently classified (list them for manual review)\n\n`boundary` and every other specialized trait are additive. A boundary success\ncase still counts as `positive`; a rejected boundary still counts as `negative`.\nDerive the positive\u002Fnegative distribution after applying this rule.\n\n### Step 6: Verify edits before reporting\n\nFor every `auto-edit` framework, run the narrowest command that compiles the\nedited attributes and confirms test discovery. This is required even when the\nuser asks only to add tags: syntactically plausible attributes are not a\ncompleted edit.\n\n| Framework | Minimum verification |\n|---|---|\n| .NET | Run `dotnet build \u003Ctest-project>`, then confirm discovery with `dotnet test \u003Ctest-project> --list-tests --no-build`. Do not execute the suite unless the user asks; route execution to `run-tests`. |\n| pytest | collect the edited suite with the repository's configured pytest command |\n| JUnit\u002FTestNG | compile tests through the repository's Maven\u002FGradle test task |\n| Other auto-edit frameworks | Use the repository's narrowest compile or test-discovery command |\n\nIf an edit or patch application was uncertain, re-open the complete edited file\nbefore verification and reconcile every inventory row with the actual\nattribute next to that test. Do not report success from a partial diff or from\nthe intended patch. If verification fails, report the exact command and error;\nnever publish a successful distribution handoff for uncompiled edits.\n\n## Validation\n\n- [ ] Every test method has at least one trait classification (`positive` or `negative` at minimum) — in the report for `report-only` frameworks, or as an attribute for `auto-edit` frameworks\n- [ ] The total equals the per-test inventory count, and displayed trait counts were derived from that inventory\n- [ ] No invented trait values outside the taxonomy table\n- [ ] Existing trait attributes were preserved, not duplicated\n- [ ] The trait summary table was generated\n- [ ] For `auto-edit` frameworks, the project still builds \u002F tests still discover without executing unrequested tests (`dotnet build` plus list mode \u002F `pytest --collect-only` \u002F `mvn test-compile` \u002F `go vet .\u002F...` \u002F `cargo check --tests` \u002F `npm run test:list` \u002F equivalent)\n- [ ] The final summary cites successful validation commands and the discovered test count when a discovery command is available\n- [ ] For `report-only` frameworks, no source files were modified\n- [ ] For `convention-based` frameworks, edits were applied ONLY when a project convention was confirmed\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| Guessing traits without reading the test body | Always read assertions and setup to classify accurately |\n| Tagging a test only as `boundary` without `positive`\u002F`negative` | Every test should also be `positive` or `negative` -- `boundary` is additive |\n| Using the wrong attribute syntax for the detected framework | Match the loaded extension or built-in table (don't put `[TestCategory]` in xUnit or `@pytest.mark.x` in unittest) |\n| Duplicating an existing category attribute | Check for pre-existing traits in Step 2 before adding |\n| Over-tagging as `critical-path` | Reserve for tests on primary public entry points, not every helper |\n| Editing Go \u002F plain Jest \u002F plain Rust \u002F plain XCTest \u002F plain GoogleTest source | These are `report-only` by default — emit a Markdown table instead. Only edit if the user confirms a project-wide convention (build tag, file suffix, describe-prefix, test-plan grouping). |\n| Inventing tag prefixes for convention-based frameworks | Confirm the project's existing convention before adopting one — don't guess between `_integration_test.go`, `\u002F\u002Fgo:build integration`, or `IntegrationTest` prefix |\n| Missing language-specific concurrency \u002F async primitives | Use the loaded extension when available; otherwise use the Trait Taxonomy concurrency row |\n",{"name":5,"license":16,"description":56},"Classifies existing tests by standard traits and reports their distribution. USE FOR: tagging all tests with category attributes, categorizing\u002Ftagging\u002F labeling each test, compare happy vs error paths, audit the test mix, describe coverage shape by test type, or tag then verify the project builds. Read bodies when names mislead. Apply canonical attributes; otherwise report only. DO NOT USE FOR: requests owned by test-anti-patterns, coverage-analysis, crap-score, test-gap-analysis or code-testing. Framework\u002Fplatform migration workflows are not installed in this repository and are outside this skill's scope.\n","main","f8f2bfd77819bb789d4736ce7db4a567a37fcf7e",".agents\u002Fskills\u002Ftest-tagging",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":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add microsoft\u002Ftestfx --skill test-tagging",{"tool":72,"command":73},"bunx","bunx skills add microsoft\u002Ftestfx --skill test-tagging",{"tool":75,"command":76},"pnpm","pnpm dlx skills add microsoft\u002Ftestfx --skill test-tagging","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftest-tagging\u002FSKILL.md",true,[],[81,106,133,158,182,210],{"skillNo":82,"name":83,"nameZh":17,"description":84,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":51},"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",[],[88,89,90,91,34,92,93,94,95,96,97,98,99,50,100,101,102,103,104,105],"dotnet","dotnet breaking changes","changes","green","default","local","errors","interface","generated","upgrade","invoke","you","refactoring","merge","rename","library","live","assembly",{"skillNo":107,"name":108,"nameZh":109,"description":110,"descriptionZh":111,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":112,"categories":113,"keywords":116,"publishedAt":51},"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",[114,115],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[31,117,118,119,120,121,122,123,124,125,126,45,127,36,128,129,90,130,131,132],"testfx test value evidence","test value evidence","evidence","value","review","parallel","toolchain","commits","implementing","prs","use","apply","with","behavior","Safety","conventions",{"skillNo":134,"name":135,"nameZh":136,"description":137,"descriptionZh":138,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":139,"categories":140,"keywords":143,"publishedAt":51},"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",[141,142],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[144,131,145,122,146,147,125,148,50,149,100,150,151,152,153,154,155,156,127,157],"testfx parallel safety preflight","preflight","shared","asynchronous","exercise","concurrency","paths","isolation","helpers","diff","parallelization","lifecycle","tests","workers",{"skillNo":159,"name":160,"nameZh":161,"description":162,"descriptionZh":163,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":164,"categories":165,"keywords":168,"publishedAt":51},"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",[166,167],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[169,170,171,172,173,174,175,176,177,126,96,127,178,179,90,180,181],"testfx localization validation","validation","localization","validate","translation","ids","for","tokens","entries","units","duplicate","targets","build",{"skillNo":183,"name":184,"nameZh":185,"description":186,"descriptionZh":187,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":188,"categories":189,"keywords":192,"publishedAt":51},"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",[190,191],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[193,194,170,31,195,119,196,197,198,45,199,127,200,201,202,203,204,205,206,207,208,209,150,175],"testfx acceptance validation","acceptance","msbuild","launcher","ci","execution","package","cache","artifacts","provenance","documentation","unrelated","shipping","results","protocol","unit","ci results",{"skillNo":211,"name":212,"nameZh":213,"description":214,"descriptionZh":215,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":216,"categories":217,"keywords":224,"publishedAt":51},"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",[218,221],{"categoryNo":219,"categoryName":220,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":222,"categoryName":223,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[225,226,227,228,41,125,93,229,230,104,231,199,127,202,232,233,90,234,235,236],"session delivery hygiene","delivery","session","hygiene","cleanup","work","pr","output","state","integration","guidance","gate"]