Official agent skill

Testfx Localization Validation

by microsoft in microsoft/testfx

Validate generated TestFx localization catalogs, resource IDs, placeholders and locked tokens.

OfficialMITAuto-check passedFrontend & Design

Install Testfx Localization Validation

skills CLI
$ npx skills add microsoft/testfx --skill testfx-localization-validation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install microsoft/testfx testfx-localization-validation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/microsoft/testfx.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/testfx-localization-validation .claude/skills/testfx-localization-validation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
testfx-localization-validation
GitHub stars
1k
Token cost
~1.7k tokens
SKILL.md length
862 words
Files
1
Skills in repo
50
Repo updated
First seen
Licence
MIT

At a glance

Validate generated TestFx localization catalogs, resource IDs, placeholders and locked tokens.

  • RESX/XLF changes
  • SKILL.md covers Runtime choice, Rules and limits and Diagnose and repair at the…
  • Calls python and dotnet
  • Localization build failures

What it does

Testfx Localization Validation is an agent skill from microsoft/testfx, published by the product's own GitHub organization. Validate generated TestFx localization catalogs, resource IDs, placeholders and locked tokens. Use for RESX/XLF changes, OneLoc PRs, localization build failures, duplicate targets or units, and orphaned translation entries.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Internationalization. It works with Python, PowerShell and .NET. The repository describes itself as: This repository holds the source code of Microsoft.Testing.Platform (MTP), a lightweight alternative to VSTest, as well as MSTest adapter and framework. The licence is MIT.

When your agent uses it

  • RESX/XLF changes
  • Localization build failures
  • Duplicate targets
  • Orphaned translation entries

Example prompts

  • “/testfx-localization-validation”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 19d717a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python
    • dotnet

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.oasis-open.org
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Testfx Localization Validation loads about 1.7k tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 862 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from microsoft/testfx at commit 19d717a, republished under its MIT licence (© microsoft). 862 words, ~1,747 tokens.

Download SKILL.mdSave it as .claude/skills/testfx-localization-validation/SKILL.md (or your agent's skills folder).
name
testfx-localization-validation
description
Validate generated TestFx localization catalogs, resource IDs, placeholders and locked tokens. Use for RESX/XLF changes, OneLoc PRs, localization build failures, duplicate targets or units, and orphaned translation entries.

TestFx localization validation

Run from the repository root with Python 3.12 or newer; no third-party packages or .NET build are needed for the guard:

powershell
python .github\scripts\test_check_localization.py
python .github\scripts\check_localization.py

On Linux/macOS use / in command paths. The standalone check-localization.yml workflow runs the same commands on localization PRs. The guard is read-only. Exit codes are 0 for clean, 1 for catalog findings, and 2 for invocation/discovery errors (including no catalogs).

Runtime choice

Python is a measured exception to the preference for PowerShell when there is no performance, feature or security impact. On Windows with Python 3.12.10 and PowerShell 7.6.6, nine interleaved warm-cache runs (including process startup) gave these medians:

WorkloadComplete Python guardPowerShell feasibility probe
All 364 catalogs / 19,695 units1.830 s3.686 s
Clean 13-locale fixture0.272 s0.825 s
Empty runtime startup0.063 s0.468 s

The dependency-free probe used .NET XML readers, cached neutral resources and ordinal IDs. It implemented only a subset of validation, not feature parity; it already exceeded the complete guard's runtime. Python is retained rather than accepting that regression or weakening the checks. These measurements are not a claim about every possible PowerShell implementation or other operating systems. A future port must demonstrate no performance regression and pass the committed regression suite, including case-sensitive IDs/tokens and literal/escaped placeholder semantics. Explicit .NET XML-reader security settings and DTD handling were independently exercised in the feasibility probe, not by the Python regression suite. A port must separately verify those settings and compare accepted XML-input profiles; passing the suite alone does not prove XML security parity.

Rules and limits

  • TestFx uses XLIFF 1.2 with the OASIS namespace and a relative file original pointing to the neutral RESX. Resolve it relative to the catalog, not the project or repository. Do not confuse locale cs (Czech) with a C# file.
  • The XLIFF 1.2 transitional schema requires one direct source and permits zero or one direct target per trans-unit. Do not require a target to exist. Targets inside alt-trans are alternatives, not duplicates. Groups are legal. Unit IDs are unique within a file across trans-unit and bin-unit, not globally across files.
  • Generated units must correspond to neutral string resource IDs, and their source text must match the neutral value exactly. When the neutral comment is nonempty, a note must match it exactly. Match XliffTasks' RESX exclusions: typed/binary entries, designer names (>>..., *.LayoutSettings), whole-value {Locked} comments, and empty/whitespace values do not require units. Additional notes are legal. An absent target or empty unfinished target is allowed; unfinished translations are not evidence of a structural defect.
  • Numeric composite-format argument indices must be preserved; reordering, repetition, alignment and format specifier changes are not automatically translation defects. Escaped braces are supported. Named templates such as {tfm} and literal JSON are not assumed to be .NET composite formats. When source text is not unambiguously a composite format, manually check any embedded numeric placeholders. This is not a complete String.Format parser.
  • Every {Locked="..."} token must occur verbatim in the neutral value and in a nonempty/completed target. Matching is case-sensitive and substring-based. The guard checks presence, not grammar or a word's translatability. Manually check for collisions with other words in the same value: const also matches constant. Prefer the longest unambiguous invariant token. Lock punctuation only when invariant or necessary to disambiguate.
  • This is a focused guard, not a full XSD validator or translation-quality review. Inline XLIFF codes require producer-specific rendering and are reported for manual handling instead of silently flattened. Do not invent new bans on otherwise legal XLIFF solely to make the checker pass.
Show full SKILL.md (280 more words)Show less

Diagnose and repair at the authoritative source

Catalog-derived findings are grouped by neutral file, resource ID and defect, with every affected catalog path listed. Findings about the neutral RESX itself (XML/root/ID/value/locked-source errors) are emitted once for that file without listing its referencing catalogs. Treat one bad resource copied across 13 locales as one root cause, not 13 independent review requests.

The default command audits the entire current checkout, including tracked and non-ignored new catalogs. A finding is not automatically introduced by the PR. Compare the same check on the PR base before attributing older drift to the author. Do not silently repair old entries, suppress failures with a broad allowlist, or assume removing an orphan from one locale repairs all catalogs. The initial repository baseline was clean; no grandfathered ID list is needed.

For developer-owned values, IDs or comments, edit the neutral RESX only. Regenerate with the owning project's UpdateXlf target, using the pinned repository SDK initialized by the build scripts. For example, on Windows:

powershell
.\build.cmd
.\.dotnet\dotnet.exe msbuild src\Platform\Microsoft.Testing.Platform\Microsoft.Testing.Platform.csproj /t:UpdateXlf -bl:artifacts\log\localization-update.binlog
python .github\scripts\check_localization.py

Use the corresponding project for adapter, framework, analyzer or extension resources. If DOTNET_INSTALL_DIR supplies the repo's pinned SDK, use that dotnet instead. Regeneration is authoritative for source text, IDs and notes; it does not prove that a translation is linguistically correct. Inspect the generated diff and run the affected project's normal build when assessing a localization build failure.

Never hand-edit generated XLF. For duplicate targets, bad translations, translated placeholders or locked tokens in a OneLoc submission, route the grouped diagnostics to the OneLoc producer/maintainers and request a corrected generated submission. Regenerate developer-owned source metadata as appropriate; do not fabricate translated text or assume UpdateXlf repairs upstream translation quality. Re-run the guard on the corrected output.

© microsoft, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/testfx-localization-validation of microsoft/testfx.

Open the folder on GitHubat commit 19d717a

Compare with similar skills

Testfx Localization Validation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Testfx Localization Validation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Testfx Localization Validation this skillmicrosoft/testfx1k—~1.7kAutomated safety check: PassMIT
SDK Release Checklistmacalbert/envilder138—~1.5kAutomated safety check: PassMIT
Claude Desktop Chinese Localizationjavaht/claude-desktop-zh-cn7.5k—~1.6kAutomated safety check: PassMIT
Translation ReviewDevolutions/UniGetUI26k—~1.3kAutomated safety check: PassMIT
Ok Script I18nAliceJump/ok-end-field556—~828Automated safety check: PassAGPL-3.0
I18n Development4thfever/cultivation-world-simulator2.1k—~451Automated safety check: PassCustom licence

Similar skills

  • SDK Release Checklist

    macalbert/envilder

    Checklist for adding a new SDK or releasing a new SDK version.

    138 GitHub stars~1.5k tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Claude Desktop Chinese Localization

    javaht/claude-desktop-zh-cn

    Adds missing Simplified and Traditional Chinese translations to the Claude Desktop Chinese patch across three layers, then checks how many mappings actually hit.

    7.5k GitHub stars~1.6k tokensUpdated 4 days ago
    Frontend & DesignAuto-check passed
  • Translation Review

    Devolutions/UniGetUI

    Reviews UniGetUI .json language files for localization quality, detects parity issues, English-equal entries, wrong-script content, and cross-language outliers, then generates a dataset for…

    26k GitHub stars~1.3k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Ok Script I18n

    AliceJump/ok-end-field

    Maintain gettext translations for ok-script task UI and runtime messages.

    556 GitHub stars~828 tokensUpdated today
    Frontend & DesignAuto-check passed
  • I18n Development

    4thfever/cultivation-world-simulator

    国际化 (i18n) 开发指南。在添加新文本、创建物品/事件、修改翻译或管理 PO/MO 文件时使用. An agent skill from 4thfever/cultivation-world-simulator.

    2.1k GitHub stars~451 tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • Fluent Migration

    BrowserWorks/waterfox-android

    A skill your agent uses when a patch or local changes rename, restructure, move, or replace Fluent (.ftl) strings - or migrate legacy .properties strings to Fluent - and you need a migration recipe…

    379 GitHub starsUsed in 1 repo~4.2k tokens
    Frontend & DesignAuto-check passed

More from microsoft/testfx

All 50 skills in this repo
  • Official

    Guide for organizing MSBuild infrastructure with Directory.Build.props, Directory.Build.targets, Directory.Packages.props, and Directory.Build.rsp.

    1k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Coverage Analysis

    microsoft/testfx

    Official

    Project-wide code coverage and CRAP (Change Risk Anti-Patterns) score analysis for .NET projects.

    1k GitHub stars~7.3k tokensUpdated today
    Auto-check passed
  • Incremental Build

    microsoft/testfx

    Official

    Guide for optimizing MSBuild incremental builds. An agent skill from microsoft/testfx.

    1k GitHub starsUsed in 3 repos~3.7k tokens
    Auto-check passed
  • Official

    Validate TestFx shipping paths and capable CI execution using packed consumers, package/cache provenance, exact exits and artifacts, and selected-versus-executed test evidence.

    1k GitHub stars~4.7k tokensUpdated today
    Auto-check passed
  • Msbuild Modernization

    microsoft/testfx

    Official

    Guide for modernizing and migrating MSBuild project files to SDK-style format.

    1k GitHub starsUsed in 3 repos~4.3k tokens
    Auto-check passed
  • Official

    Guide for interpreting ResolveProjectReferences time in MSBuild performance summaries.

    1k GitHub starsUsed in 3 repos~743 tokens
    Auto-check passed

Questions about Testfx Localization Validation

What does Testfx Localization Validation do?

Validate generated TestFx localization catalogs, resource IDs, placeholders and locked tokens. Testfx Localization Validation is an agent skill from microsoft/testfx, published by the product's own GitHub organization. Validate generated TestFx localization catalogs, resource IDs, placeholders and locked tokens.

When should I use Testfx Localization Validation?

Testfx Localization Validation fits situations like: RESX/XLF changes; localization build failures; duplicate targets; orphaned translation entries.

How do I install Testfx Localization Validation in Claude Code?

Run `npx skills add microsoft/testfx --skill testfx-localization-validation -a claude-code`. Or copy the skill folder (.github/skills/testfx-localization-validation in microsoft/testfx) into .claude/skills/testfx-localization-validation in your project. Claude Code loads it when a task matches its description.

How do I install Testfx Localization Validation in Codex?

Run `npx skills add microsoft/testfx --skill testfx-localization-validation -a codex`. Or copy the skill folder (.github/skills/testfx-localization-validation in microsoft/testfx) into .agents/skills/testfx-localization-validation in your project. Codex loads it when a task matches its description.

Can I use Testfx Localization Validation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microsoft/testfx --skill testfx-localization-validation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/testfx-localization-validation, .gemini/skills/testfx-localization-validation, .github/skills/testfx-localization-validation and .opencode/skills/testfx-localization-validation in your project.

What does Testfx Localization Validation need to run?

Going by SKILL.md and its folder, Testfx Localization Validation needs the command-line tools its instructions call (python and dotnet). Our summary lists: Python 3.

Does Testfx Localization Validation access the network?

SKILL.md names 2 domains. As links in the text: docs.oasis-open.org and github.com. This is read from the text; nothing was executed.

Is Testfx Localization Validation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Testfx Localization Validation use?

Testfx Localization Validation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Testfx Localization Validation use?

About 1.7k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Testfx Localization Validation?

Skills that share tags, products or a category with Testfx Localization Validation: SDK Release Checklist (macalbert/envilder, 138 stars), Claude Desktop Chinese Localization (javaht/claude-desktop-zh-cn, 7.5k stars), Translation Review (Devolutions/UniGetUI, 26k stars) and Ok Script I18n (AliceJump/ok-end-field, 556 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Testfx Localization Validation?

microsoft (a GitHub organization, an official publisher) maintains it in microsoft/testfx, which has 1,047 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on October 9, 2026.

Source: microsoft/testfx on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.