[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699HC61ZV9GJ2C8JV03951G":3,"skill-same:01M699HC61ZV9GJ2C8JV03951G":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M699HC61ZV9GJ2C8JV03951G","testfx-localization-validation",null,"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.","microsoft\u002Ftestfx","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M699C71CJ91B5WZ3AXG3GG2M",1059,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftestfx-localization-validation\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"testfx localization validation","validation","localization","prs","validate","changes","for","targets","duplicate","tokens","entries","units","translation","build","use","generated","ids","2026-11-10 10:12:30",false,"---\nname: testfx-localization-validation\ndescription: 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.\n---\n\n# TestFx localization validation\n\nRun from the repository root with Python 3.12 or newer; no third-party packages\nor .NET build are needed for the guard:\n\n```powershell\npython .github\\scripts\\test_check_localization.py\npython .github\\scripts\\check_localization.py\n```\n\nOn Linux\u002FmacOS use `\u002F` in command paths. The standalone\n`check-localization.yml` workflow runs the same commands on localization PRs.\nThe guard is read-only. Exit codes are `0` for clean, `1` for catalog findings,\nand `2` for invocation\u002Fdiscovery errors (including no catalogs).\n\n## Runtime choice\n\nPython is a measured exception to the preference for PowerShell when there is\nno performance, feature or security impact. On Windows with Python 3.12.10 and\nPowerShell 7.6.6, nine interleaved warm-cache runs (including process startup)\ngave these medians:\n\n| Workload | Complete Python guard | PowerShell feasibility probe |\n| --- | ---: | ---: |\n| All 364 catalogs \u002F 19,695 units | 1.830 s | 3.686 s |\n| Clean 13-locale fixture | 0.272 s | 0.825 s |\n| Empty runtime startup | 0.063 s | 0.468 s |\n\nThe dependency-free probe used .NET XML readers, cached neutral resources and\nordinal IDs. It implemented only a subset of validation, **not feature parity**;\nit already exceeded the complete guard's runtime. Python is retained rather than\naccepting that regression or weakening the checks. These measurements are not a\nclaim about every possible PowerShell implementation or other operating systems.\nA future port must demonstrate no performance regression and pass the committed\nregression suite, including case-sensitive IDs\u002Ftokens and literal\u002Fescaped\nplaceholder semantics. Explicit .NET XML-reader security settings and DTD\nhandling were independently exercised in the feasibility probe, not by the\nPython regression suite. A port must separately verify those settings and\ncompare accepted XML-input profiles; passing the suite alone does not prove\nXML security parity.\n\n## Rules and limits\n\n- TestFx uses XLIFF 1.2 with the OASIS namespace and a relative `file original`\n  pointing to the neutral RESX. Resolve it relative to the **catalog**, not the\n  project or repository. Do not confuse locale `cs` (Czech) with a C# file.\n- The [XLIFF 1.2 transitional schema](https:\u002F\u002Fdocs.oasis-open.org\u002Fxliff\u002Fv1.2\u002Fos\u002Fxliff-core-1.2-transitional.xsd)\n  requires one direct `source` and permits **zero or one** direct `target` per\n  `trans-unit`. Do not require a target to exist. Targets inside `alt-trans`\n  are alternatives, not duplicates. Groups are legal. Unit IDs are unique\n  within a `file` across `trans-unit` and `bin-unit`, not globally across files.\n- Generated units must correspond to neutral string resource IDs, and their\n  source text must match the neutral value exactly. When the neutral comment\n  is nonempty, a note must match it exactly.\n  Match [XliffTasks' RESX exclusions](https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fxliff-tasks\u002Fblob\u002Fmain\u002Fsrc\u002FMicrosoft.DotNet.XliffTasks\u002FModel\u002FResxDocument.cs):\n  typed\u002Fbinary entries, designer names (`>>...`, `*.LayoutSettings`), whole-value\n  `{Locked}` comments, and empty\u002Fwhitespace values do not require units.\n  Additional notes are legal.\n  An absent target or empty unfinished target is allowed; unfinished\n  translations are not evidence of a structural defect.\n- Numeric composite-format argument **indices** must be preserved; reordering,\n  repetition, alignment and format specifier changes are not automatically\n  translation defects. Escaped braces are supported. Named templates such as\n  `{tfm}` and literal JSON are not assumed to be .NET composite formats.\n  When source text is not unambiguously a composite format, manually check any\n  embedded numeric placeholders. This is not a complete `String.Format` parser.\n- Every `{Locked=\"...\"}` token must occur verbatim in the neutral value and\n  in a nonempty\u002Fcompleted target. Matching is case-sensitive and substring-based.\n  The guard checks presence, not grammar or a word's translatability.\n  Manually check for collisions with other words in the same value: `const`\n  also matches *constant*. Prefer the longest unambiguous invariant token.\n  Lock punctuation only when invariant or necessary to disambiguate.\n- This is a focused guard, **not a full XSD validator or translation-quality\n  review**. Inline XLIFF codes require producer-specific rendering and are\n  reported for manual handling instead of silently flattened. Do not invent\n  new bans on otherwise legal XLIFF solely to make the checker pass.\n\n## Diagnose and repair at the authoritative source\n\nCatalog-derived findings are grouped by neutral file, resource ID and defect,\nwith every affected catalog path listed. Findings about the neutral RESX itself\n(XML\u002Froot\u002FID\u002Fvalue\u002Flocked-source errors) are emitted once for that file without\nlisting its referencing catalogs. Treat one bad resource copied across 13\nlocales as one root cause, not 13 independent review requests.\n\nThe default command audits the entire current checkout, including tracked and\nnon-ignored new catalogs. A finding is **not automatically introduced by the\nPR**. Compare the same check on the PR base before attributing older drift to\nthe author. Do not silently repair old entries, suppress failures with a broad\nallowlist, or assume removing an orphan from one locale repairs all catalogs.\nThe initial repository baseline was clean; no grandfathered ID list is needed.\n\nFor developer-owned values, IDs or comments, edit the neutral RESX only.\nRegenerate with the **owning project's** `UpdateXlf` target, using the pinned\nrepository SDK initialized by the build scripts. For example, on Windows:\n\n```powershell\n.\\build.cmd\n.\\.dotnet\\dotnet.exe msbuild src\\Platform\\Microsoft.Testing.Platform\\Microsoft.Testing.Platform.csproj \u002Ft:UpdateXlf -bl:artifacts\\log\\localization-update.binlog\npython .github\\scripts\\check_localization.py\n```\n\nUse the corresponding project for adapter, framework, analyzer or extension\nresources. If `DOTNET_INSTALL_DIR` supplies the repo's pinned SDK, use that\n`dotnet` instead. Regeneration is authoritative for source text, IDs and notes;\nit does not prove that a translation is linguistically correct. Inspect the\ngenerated diff and run the affected project's normal build when assessing a\nlocalization build failure.\n\n**Never hand-edit generated XLF.** For duplicate targets, bad translations,\ntranslated placeholders or locked tokens in a OneLoc submission, route the\ngrouped diagnostics to the OneLoc producer\u002Fmaintainers and request a corrected\ngenerated submission. Regenerate developer-owned source metadata as appropriate;\ndo not fabricate translated text or assume `UpdateXlf` repairs upstream\ntranslation quality. Re-run the guard on the corrected output.\n","# TestFx localization validation\n\nRun from the repository root with Python 3.12 or newer; no third-party packages\nor .NET build are needed for the guard:\n\n```powershell\npython .github\\scripts\\test_check_localization.py\npython .github\\scripts\\check_localization.py\n```\n\nOn Linux\u002FmacOS use `\u002F` in command paths. The standalone\n`check-localization.yml` workflow runs the same commands on localization PRs.\nThe guard is read-only. Exit codes are `0` for clean, `1` for catalog findings,\nand `2` for invocation\u002Fdiscovery errors (including no catalogs).\n\n## Runtime choice\n\nPython is a measured exception to the preference for PowerShell when there is\nno performance, feature or security impact. On Windows with Python 3.12.10 and\nPowerShell 7.6.6, nine interleaved warm-cache runs (including process startup)\ngave these medians:\n\n| Workload | Complete Python guard | PowerShell feasibility probe |\n| --- | ---: | ---: |\n| All 364 catalogs \u002F 19,695 units | 1.830 s | 3.686 s |\n| Clean 13-locale fixture | 0.272 s | 0.825 s |\n| Empty runtime startup | 0.063 s | 0.468 s |\n\nThe dependency-free probe used .NET XML readers, cached neutral resources and\nordinal IDs. It implemented only a subset of validation, **not feature parity**;\nit already exceeded the complete guard's runtime. Python is retained rather than\naccepting that regression or weakening the checks. These measurements are not a\nclaim about every possible PowerShell implementation or other operating systems.\nA future port must demonstrate no performance regression and pass the committed\nregression suite, including case-sensitive IDs\u002Ftokens and literal\u002Fescaped\nplaceholder semantics. Explicit .NET XML-reader security settings and DTD\nhandling were independently exercised in the feasibility probe, not by the\nPython regression suite. A port must separately verify those settings and\ncompare accepted XML-input profiles; passing the suite alone does not prove\nXML security parity.\n\n## Rules and limits\n\n- TestFx uses XLIFF 1.2 with the OASIS namespace and a relative `file original`\n  pointing to the neutral RESX. Resolve it relative to the **catalog**, not the\n  project or repository. Do not confuse locale `cs` (Czech) with a C# file.\n- The [XLIFF 1.2 transitional schema](https:\u002F\u002Fdocs.oasis-open.org\u002Fxliff\u002Fv1.2\u002Fos\u002Fxliff-core-1.2-transitional.xsd)\n  requires one direct `source` and permits **zero or one** direct `target` per\n  `trans-unit`. Do not require a target to exist. Targets inside `alt-trans`\n  are alternatives, not duplicates. Groups are legal. Unit IDs are unique\n  within a `file` across `trans-unit` and `bin-unit`, not globally across files.\n- Generated units must correspond to neutral string resource IDs, and their\n  source text must match the neutral value exactly. When the neutral comment\n  is nonempty, a note must match it exactly.\n  Match [XliffTasks' RESX exclusions](https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fxliff-tasks\u002Fblob\u002Fmain\u002Fsrc\u002FMicrosoft.DotNet.XliffTasks\u002FModel\u002FResxDocument.cs):\n  typed\u002Fbinary entries, designer names (`>>...`, `*.LayoutSettings`), whole-value\n  `{Locked}` comments, and empty\u002Fwhitespace values do not require units.\n  Additional notes are legal.\n  An absent target or empty unfinished target is allowed; unfinished\n  translations are not evidence of a structural defect.\n- Numeric composite-format argument **indices** must be preserved; reordering,\n  repetition, alignment and format specifier changes are not automatically\n  translation defects. Escaped braces are supported. Named templates such as\n  `{tfm}` and literal JSON are not assumed to be .NET composite formats.\n  When source text is not unambiguously a composite format, manually check any\n  embedded numeric placeholders. This is not a complete `String.Format` parser.\n- Every `{Locked=\"...\"}` token must occur verbatim in the neutral value and\n  in a nonempty\u002Fcompleted target. Matching is case-sensitive and substring-based.\n  The guard checks presence, not grammar or a word's translatability.\n  Manually check for collisions with other words in the same value: `const`\n  also matches *constant*. Prefer the longest unambiguous invariant token.\n  Lock punctuation only when invariant or necessary to disambiguate.\n- This is a focused guard, **not a full XSD validator or translation-quality\n  review**. Inline XLIFF codes require producer-specific rendering and are\n  reported for manual handling instead of silently flattened. Do not invent\n  new bans on otherwise legal XLIFF solely to make the checker pass.\n\n## Diagnose and repair at the authoritative source\n\nCatalog-derived findings are grouped by neutral file, resource ID and defect,\nwith every affected catalog path listed. Findings about the neutral RESX itself\n(XML\u002Froot\u002FID\u002Fvalue\u002Flocked-source errors) are emitted once for that file without\nlisting its referencing catalogs. Treat one bad resource copied across 13\nlocales as one root cause, not 13 independent review requests.\n\nThe default command audits the entire current checkout, including tracked and\nnon-ignored new catalogs. A finding is **not automatically introduced by the\nPR**. Compare the same check on the PR base before attributing older drift to\nthe author. Do not silently repair old entries, suppress failures with a broad\nallowlist, or assume removing an orphan from one locale repairs all catalogs.\nThe initial repository baseline was clean; no grandfathered ID list is needed.\n\nFor developer-owned values, IDs or comments, edit the neutral RESX only.\nRegenerate with the **owning project's** `UpdateXlf` target, using the pinned\nrepository SDK initialized by the build scripts. For example, on Windows:\n\n```powershell\n.\\build.cmd\n.\\.dotnet\\dotnet.exe msbuild src\\Platform\\Microsoft.Testing.Platform\\Microsoft.Testing.Platform.csproj \u002Ft:UpdateXlf -bl:artifacts\\log\\localization-update.binlog\npython .github\\scripts\\check_localization.py\n```\n\nUse the corresponding project for adapter, framework, analyzer or extension\nresources. If `DOTNET_INSTALL_DIR` supplies the repo's pinned SDK, use that\n`dotnet` instead. Regeneration is authoritative for source text, IDs and notes;\nit does not prove that a translation is linguistically correct. Inspect the\ngenerated diff and run the affected project's normal build when assessing a\nlocalization build failure.\n\n**Never hand-edit generated XLF.** For duplicate targets, bad translations,\ntranslated placeholders or locked tokens in a OneLoc submission, route the\ngrouped diagnostics to the OneLoc producer\u002Fmaintainers and request a corrected\ngenerated submission. Regenerate developer-owned source metadata as appropriate;\ndo not fabricate translated text or assume `UpdateXlf` repairs upstream\ntranslation quality. Re-run the guard on the corrected output.\n",{"name":5,"description":7},"main","f8f2bfd77819bb789d4736ce7db4a567a37fcf7e",".github\u002Fskills\u002Ftestfx-localization-validation",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":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add microsoft\u002Ftestfx --skill testfx-localization-validation",{"tool":56,"command":57},"bunx","bunx skills add microsoft\u002Ftestfx --skill testfx-localization-validation",{"tool":59,"command":60},"pnpm","pnpm dlx skills add microsoft\u002Ftestfx --skill testfx-localization-validation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftestfx-localization-validation\u002FSKILL.md",true,[],[65,90,119,140,165,185],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":36},"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",[],[72,73,24,74,75,76,77,78,79,34,80,81,82,83,84,85,86,87,88,89],"dotnet","dotnet breaking changes","green","project","default","local","errors","interface","upgrade","invoke","you","code","refactoring","merge","rename","library","live","assembly",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":101,"publishedAt":36},"01M699HHE9DTZWAMPB1ZR7ZKSW","testfx-test-value-evidence","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.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftestfx-test-value-evidence\u002FSKILL.md",[96],{"categoryNo":97,"categoryName":98,"taxonomyType":99,"taxonomyTypeDesc":100},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",[102,103,104,105,106,107,108,109,110,111,22,112,33,113,114,115,24,116,117,118],"test","testfx test value evidence","test value evidence","evidence","value","review","parallel","toolchain","commits","implementing","only","when","apply","with","behavior","Safety","conventions",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":36},"01M699HEYWH1B9XGNBFY8J2FZS","testfx-parallel-safety-preflight","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.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftestfx-parallel-safety-preflight\u002FSKILL.md",[],[126,117,127,108,128,129,111,130,83,131,84,132,133,134,135,136,137,138,33,139],"testfx parallel safety preflight","preflight","shared","asynchronous","exercise","concurrency","paths","isolation","helpers","diff","parallelization","lifecycle","tests","workers",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":147,"publishedAt":36},"01M699H9J2NWQXE4BDT6R0FH7S","testfx-acceptance-validation","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.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftestfx-acceptance-validation\u002FSKILL.md",[146],{"categoryNo":97,"categoryName":98,"taxonomyType":99,"taxonomyTypeDesc":100},[148,149,20,102,150,105,151,152,153,112,154,33,155,156,157,158,159,160,161,162,163,164,132,25],"testfx acceptance validation","acceptance","msbuild","launcher","ci","execution","package","cache","artifacts","provenance","documentation","unrelated","shipping","results","protocol","unit","ci results",{"skillNo":166,"name":167,"nameZh":6,"description":168,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":36},"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.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsession-delivery-hygiene\u002FSKILL.md",[],[172,173,174,175,176,111,77,177,178,88,179,154,33,157,180,181,24,182,183,184],"session delivery hygiene","delivery","session","hygiene","scope","cleanup","work","pr","output","state","integration","guidance","gate",{"skillNo":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":191,"publishedAt":36},"01M699H4M0M24835C1F8B4TZE0","post-release-activities","Systematic activities that need to be performed after a release is done.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftestfx\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpost-release-activities\u002FSKILL.md",[],[192,193,194,195,196,197],"post release activities","release","post","post release","done","systematic"]