ensure-localization
Skill2k starsChanged 4 months agoMITView on GitHub
Inspect, author, repair, and review customer-facing RESW and localization YAML resources. Use shared product terminology, translator context, lock annotations, and six file-based checks; the caller supplies the goal and scope.
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about microsoft/intelligent-terminal
- @awakecoding.com“"Intelligent Terminal is an experimental fork of Windows Terminal with native agent integration." Microsoft …”Bluesky · Sep 16, 2026 · 2 likes
- yeelam-gordon/intelligent-terminal“Historical validation: agent-pane lifetime and cross-window transfers (#898)”GitHub · Sep 21, 2026
- yeelam-gordon/intelligent-terminal“Defer WSL shell integration installation until a new tab opens”GitHub · Sep 10, 2026
- yeelam-gordon/intelligent-terminal“Make session MCP tool schemas safe for strict function-calling providers”GitHub · Aug 27, 2026
- microsoft/terminal“Tamil Language Text Overlaps in Terminal.”GitHub · Aug 27, 2026
The biggest 5 of 10 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 10
Talked about on GitHub and Bluesky (10 times).
On GitHub · 9
- Sep 21, 2026Historical validation: agent-pane lifetime and cross-window transfers (#898) — yeelam-gordon/intelligent-terminal0 reactions
- Sep 10, 2026Defer WSL shell integration installation until a new tab opens — yeelam-gordon/intelligent-terminal0 reactions · 3 comments
- Aug 27, 2026Make session MCP tool schemas safe for strict function-calling providers — yeelam-gordon/intelligent-terminal0 reactions · 3 comments
- Aug 27, 2026Tamil Language Text Overlaps in Terminal. — microsoft/terminal0 reactions · 14 comments
- Jul 15, 2026Mirror of #218 upstream-sync skill (for review loop) — yeelam-gordon/intelligent-terminal0 reactions
4 more on GitHub
- Jul 14, 2026integrate Intelligent Terminal with b00t ACP — bridge to Windows desktop — elasticdotventures/_b00t_0 reactions · 1 comment
- Jul 14, 2026Add release-notes agent skill (mirror of #408 for review loop) — yeelam-gordon/intelligent-terminal0 reactions
- Jun 17, 2026New version: Microsoft.IntelligentTerminal version 0.1.1681.0 — microsoft/winget-pkgs0 reactions · 8 comments
- May 29, 2026jun 2026 — kimtth/azure-openai-llm-notes0 reactions · 1 comment
On Bluesky · 1
- Sep 16, 2026"Intelligent Terminal is an experimental fork of Windows Terminal with native agent integration." Microsoft is forking its own Windows… — @awakecoding.com2 likes and reposts
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- tools/wta/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- add-acp-agent-supportSkill
- copilot-pr-review-loopSkill
- pr-integration-testSkill
- release-notesSkill
- store-listing-localizerSkill
- upstream-syncSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 13 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this shared procedure for customer-facing localization.
- Distinctive: line 13
Keep terminology consistent within each locale and across RESW and localization YAML for the same product.
- Distinctive: line 46
Do not edit source-authority files just to make translations pass.
- Distinctive: line 50
Add translator context when wording is ambiguous or depends on UI usage, such as a noun versus a command.
- Very specific: line 53
Use {Locked} when the whole value must remain literal, and {Locked="token"} for invariant parts such as product names, protocol names, …
- Very specific: line 57
Put guidance in the resource's <comment> for RESW or its associated YAML comment.
- Distinctive: line 59
When source edits are not permitted, report missing or contradictory source guidance instead of silently changing source files or inventing …
- Distinctive: line 96
When a caller specifies a final checker report path, collect bundles from actual checker execution.
- Distinctive: line 100
After repairs and any required independent review, write only the final rerun bundles using the caller's exact envelope and path.
- Very specific: line 120
Use scoped RequiredKeys only for source-present additions or updates.
- Very specific: line 209
Read the exact original localization patch content against the caller-supplied immutable endpoints before choosing keys or counterpart …
- Very specific: line 234
Before translating changed terms, inspect existing translations in the same locale across both .resw files and tools/wta/locales/*.yml.
- Very specific: line 240
Use -Keys only for native PowerShell function calls, or -KeysJson when invoking the checker script from the CLI.
- Very specific: line 245
Run Test-ResourceSyntax and Test-ResourceEncoding on every file you actually inspect.
- Very specific: line 251
If a scoped key is missing on either side, keep the Test-RequiredKeys finding and do not force the dependent checks across that absent …
- Distinctive: line 263
Do not swap in a different guessed key set or reuse a stale pre-edit comparable subset after a missing key has been added.
- Distinctive: line 265
Read-only review or fork guidance: stay read-only.
- Very specific: line 289
When batching in one process, carry forward genuine pre-edit snapshot paths for existing files.
- Very specific: line 292
When the caller scopes keys, do not automatically reuse that same list for Test-PlaceholderParity, Test-LockedContent, or Test-PseudoLocale.
- Very specific: line 297
Do not put source-removed names into scoped -Keys just to chase stale target entries.
- Distinctive: line 301
If the entire scoped source/target file pair was removed and no current file remains to feed the checker, materialize immutable …
- Distinctive: line 304
Treat the resulting bundles as historical evidence only, and separately use git inspection to confirm that the live tree really removed the …
- Distinctive: line 306
After repairing a previously missing scoped key, recompute that comparable-only subset from the final on-disk files before the final rerun.
- Distinctive: line 311
If your tool output truncates the original patch, keep reading until every localization hunk has been seen.
- Very specific: line 317
When you invoke localization_checks.ps1 from pwsh -File, use -KeysJson for scoped keys.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Ensure Localization
Use this shared procedure for customer-facing localization. The caller supplies the goal, scope, and permitted edits; PR or workflow context is not required.
Product consistency
Keep terminology consistent within each locale and across RESW and localization YAML for the same product. Grammar may vary with context, but established product keywords should not alternate between unrelated translations.
Language-quality acceptance
For every scoped customer-facing value in a real non-English locale, the final text must actually be in that locale's target language. Copying the English source or leaving a provisional English fallback is not a repair, even when all six checks pass. English locales, source-authoritative locks, and legitimate identical names or technical terms are allowed exceptions; translate the unlocked surrounding words.
Caller context
The caller owns repository or PR context, trusted revisions, skip policy, automation allowlists, and safe-output rules. This skill owns only the reusable file-based localization procedure.
Resources
- File checker:
./scripts/localization_checks.ps1
Supported files
The skill applies to localization resources regardless of their location. The
checker supports .resw and flat locale .yml files; other YAML structures need
an appropriate parser, not conversion merely to satisfy this checker.
Discover source and target files using the caller's context and existing layout.
In this repository, en-US files and direct resource files are common source
authorities; these are conventions, not mandatory checker paths.
Do not edit source-authority files just to make translations pass.
Source-authoring guidance
- Add translator context when wording is ambiguous or depends on UI usage, such as a noun versus a command. Explain the meaning and placeholder roles; avoid boilerplate comments for obvious strings.
- Use
{Locked}when the whole value must remain literal, and{Locked="token"}for invariant parts such as product names, protocol names, commands, or paths. Use locale-scoped locks only when the exception genuinely applies to those locales; do not exempt entire pseudo-locales by default. - Put guidance in the resource's
<comment>for RESW or its associated YAML comment. Preserve annotations in target files where the format requires them. - When source edits are not permitted, report missing or contradictory source guidance instead of silently changing source files or inventing meaning. Mechanical checks preserve declared locks; they cannot decide which annotations a new string needs.
Six checks
| Check | Required args | Purpose |
Test-ResourceSyntax | -File | Parse supported XML or flat locale YAML shape |
Test-ResourceEncoding | -File (-OriginalFile optional) | Enforce UTF-8 and expected BOM behavior |
Test-RequiredKeys | -SourceFile -TargetFile (-Keys optional for PowerShell callers; CLI uses -KeysJson when scoping) | Missing and stale key parity |
Test-PlaceholderParity | -SourceFile -TargetFile (-Keys optional for PowerShell callers; CLI uses -KeysJson when scoping) | Placeholder identity and count parity |
Test-LockedContent | -SourceFile -TargetFile (-Locale sometimes required, -Keys optional for PowerShell callers; CLI uses -KeysJson when scoping) | Preserve locked values and tokens |
Test-PseudoLocale | -SourceFile -TargetFile -Locale (-Keys optional for PowerShell callers; CLI uses -KeysJson when scoping) | Catch English fallback and pseudo-style mistakes |
Example commands:
pwsh .github/skills/ensure-localization/scripts/localization_checks.ps1 -Check Test-ResourceSyntax -File <file>
pwsh .github/skills/ensure-localization/scripts/localization_checks.ps1 -Check Test-ResourceEncoding -File <file> [-OriginalFile <original-file>]
pwsh .github/skills/ensure-localization/scripts/localization_checks.ps1 -Check Test-RequiredKeys -SourceFile <source-file> -TargetFile <target-file> [-KeysJson '["key1","key2"]']
pwsh .github/skills/ensure-localization/scripts/localization_checks.ps1 -Check Test-PlaceholderParity -SourceFile <source-file> -TargetFile <target-file> [-KeysJson '["key1","key2"]']
pwsh .github/skills/ensure-localization/scripts/localization_checks.ps1 -Check Test-LockedContent -SourceFile <source-file> -TargetFile <target-file> [-Locale <locale>] [-KeysJson '["key1","key2"]']
pwsh .github/skills/ensure-localization/scripts/localization_checks.ps1 -Check Test-PseudoLocale -SourceFile <source-file> -TargetFile <target-file> -Locale <pseudo-locale> [-KeysJson '["key1","key2"]']The script writes one JSON bundle to stdout and exits with the actual status mapping:
0→PASS20→FIXABLE30→BLOCKED64→INVALID_INPUT
Native final-report handoff
When a caller specifies a final checker report path, collect bundles from actual checker execution; never fabricate bundle fields or convert human conclusions into checker JSON. Keep initial failing attempts out of the final report. The root agent owns repository discovery, the final rerun, and writing the report. After repairs and any required independent review, write only the final rerun bundles using the caller's exact envelope and path. The caller's native post-step owns structural validation and write gating.
For initial checks and the final rerun, use one pwsh process per batch that dot-sources
localization_checks.ps1 once and calls the public functions directly. Each
completed check returns one bundle object with check, status, exitCode,
summary, and results. Invalid required arguments can throw; let the batch
fail rather than write a partial report. Collect those actual bundle objects and write the
caller-selected JSON envelope with PowerShell file operations only. Do not
delegate report ownership to a reviewer and do not rely on rm, touch,
jq, or hand-authored bundle JSON.
Example final rerun in one PowerShell process. This example intentionally shows
scoped batch rows only: each row must be a PowerShell hashtable with an explicit non-empty
RequiredKeys array and an explicit ComparableKeys array, which may be
empty until the key exists on both sides. For whole-file checks outside this
scoped batch pattern, omit -Keys when calling the public checker functions as
shown in the API table above. Assume the caller already resolved the report
path, mode, and scoped source/target/locale rows to inspect.
Use scoped RequiredKeys only for source-present additions or updates. Handle
source removals and target stale-entry cleanup with the explicit git/file
review from reusable procedure step 1 instead of forcing source-absent names
through scoped -Keys. Pass only already-comparable keys to
Test-PlaceholderParity, Test-LockedContent, and Test-PseudoLocale;
those dependent checks intentionally return BLOCKED when the scoped key is
missing from either side:
. (Join-Path $PWD '.github/skills/ensure-localization/scripts/localization_checks.ps1')
$reportPath = $CallerSuppliedReportPath
$mode = $CallerSuppliedMode
$targets = $CallerSuppliedTargets
$bundles = [System.Collections.Generic.List[object]]::new()
foreach ($target in $targets) {
if ($target -isnot [hashtable]) {
throw 'Batch rows must be hash tables; use ConvertFrom-Json -AsHashtable for JSON input.'
}
if ($null -eq $target.RequiredKeys -or @($target.RequiredKeys).Count -eq 0) {
throw 'Each scoped batch row must define a non-empty RequiredKeys array.'
}
if ($null -eq $target.ComparableKeys) {
throw 'Each scoped batch row must define a ComparableKeys array, even when it is empty.'
}
$requiredKeys = @($target.RequiredKeys)
$comparableKeys = @($target.ComparableKeys)
if (@($requiredKeys | Where-Object { [string]::IsNullOrWhiteSpace($_) }).Count -gt 0) {
throw 'RequiredKeys must contain only non-blank key names.'
}
if (@($comparableKeys | Where-Object { [string]::IsNullOrWhiteSpace($_) }).Count -gt 0) {
throw 'ComparableKeys must contain only non-blank key names.'
}
$sourceEncodingArgs = @{ File = $target.SourcePath }
if (-not [string]::IsNullOrWhiteSpace($target['SourceOriginalPath'])) {
$sourceEncodingArgs['OriginalFile'] = $target['SourceOriginalPath']
}
$targetEncodingArgs = @{ File = $target.TargetPath }
if (-not [string]::IsNullOrWhiteSpace($target['TargetOriginalPath'])) {
$targetEncodingArgs['OriginalFile'] = $target['TargetOriginalPath']
}
$requiredKeysArgs = @{
SourceFile = $target.SourcePath
TargetFile = $target.TargetPath
Keys = $requiredKeys
}
$dependentArgs = @{
SourceFile = $target.SourcePath
TargetFile = $target.TargetPath
}
if ($comparableKeys.Count -gt 0) {
$dependentArgs['Keys'] = $comparableKeys
}
$bundles.Add((Test-ResourceSyntax -File $target.SourcePath))
$bundles.Add((Test-ResourceEncoding @sourceEncodingArgs))
$bundles.Add((Test-ResourceSyntax -File $target.TargetPath))
$bundles.Add((Test-ResourceEncoding @targetEncodingArgs))
$bundles.Add((Test-RequiredKeys @requiredKeysArgs))
if ($comparableKeys.Count -gt 0) {
$bundles.Add((Test-PlaceholderParity @dependentArgs))
$bundles.Add((Test-LockedContent @dependentArgs -Locale $target.Locale))
if ($target.Locale -in @('qps-ploc', 'qps-ploca', 'qps-plocm')) {
$bundles.Add((Test-PseudoLocale @dependentArgs -Locale $target.Locale))
}
}
}
$report = [ordered]@{
version = 1
mode = $mode
bundles = @($bundles.ToArray())
}
$utf8NoBom = [System.Text.UTF8Encoding]::new($false)
[System.IO.File]::WriteAllText(
$reportPath,
($report | ConvertTo-Json -Compress -Depth 8),
$utf8NoBom)Reusable procedure
- Read the exact original localization patch content against the
caller-supplied immutable endpoints before choosing keys or counterpart
files. Use:
git diff --no-ext-diff --unified=3 <comparison-base> <immutable-head> -- <resource paths>. Supporting summaries such asgit diff --stat,--name-only,--name-status,--numstat,git status, or a worktree-onlygit diff -- <file>are useful for discovery but are not sufficient to derive scoped keys, values, or review coverage. If the diff output is truncated, continue fetching the remaining hunks until you have read the full patch for every relevant resource file. Derive the precise added or updated source keys, values, and surrounding context from that exact patch; do not infer scope from file prefixes, neighboring samples, unchanged source lines, or PR summaries.- Source-authority add or update: expand to every shipped localized counterpart that should carry the affected file or keys, even when those target files are unchanged in the git diff.
- Target-only edit: inspect that localized target against its source authority.
- Source key or file removal: inspect obsolete shipped counterparts with
ordinary git and file review. Handle removal or cleanup explicitly instead
of claiming
PASSbecause no file-pair check ran.
- Map each localized target to its source-authority file. In this repository,
.reswtargets map to.../Resources/en-US/*.reswor direct.../Resources/*.resw, and WTA locale targets map totools/wta/locales/en-US.yml. - Before translating changed terms, inspect existing translations in the same
locale across both
.reswfiles andtools/wta/locales/*.yml. Reuse established product terminology when the meaning and UI context match. If no repository precedent exists, prefer Microsoft localized terms and flag conflicting existing translations instead of inventing synonyms or rewriting unrelated strings. - Use
-Keysonly for native PowerShell function calls, or-KeysJsonwhen invoking the checker script from the CLI. Optional key scoping exists to avoid fixing unrelated old debt, not to hide source additions that the procedure already put in scope. Omit the scope parameter entirely for a whole-file check. - Run
Test-ResourceSyntaxandTest-ResourceEncodingon every file you actually inspect. - For each localized target, run
Test-RequiredKeysagainst the full scoped source-present change list, then runTest-PlaceholderParity,Test-LockedContent, and, for pseudo-locales,Test-PseudoLocaleonly for keys that are present in both the source-authority file and that target. If a scoped key is missing on either side, keep theTest-RequiredKeysfinding and do not force the dependent checks across that absent entry. If the source key or file was removed, handle that cleanup with step 1's explicit review instead of treating the deleted source name as a scoped-Keysitem. If no comparable keys remain for a scoped target pair, skip those dependent checks for that pair. - Same-repo repair: run the checks before editing, repair only localized
targets, preserve the original patch-derived scope through the final rerun,
recompute each row's
ComparableKeysfrom the final on-disk source/target files after every edit, include any newly translated source-added keys in that rebuilt comparable set, rerun the same relevant checks, then finish with one independent read-only review before requesting any branch write. Do not swap in a different guessed key set or reuse a stale pre-edit comparable subset after a missing key has been added. - Read-only review or fork guidance: stay read-only; cover every scoped target,
including real locales, not only pseudo-locales. Assess actual target-language
content rather than only key parity, parent-key lists, or checker bundles;
reject obvious English sentences, stubs, and provisional fallbacks unless a
declared exception applies. Report only the actual
PASS,FIXABLE,BLOCKED, orINVALID_INPUToutcomes plus concise human review.
Gotchas
- The public checker API is file-only. Do not pass PR numbers, SHAs, repo
names, comparison-base discovery, or workflow
Modevalues. Test-RequiredKeyscan report missing entries and stale keys for a provided source/target file pair, but it does not discover which untouched locale files or deleted source-file counterparts must be inspected. The caller or agent must do that repository discovery.- A clean working tree or a bare
git diff -- <file>can hide the authored base-to-head change set you are supposed to review. Always inspect the full<comparison-base> <immutable-head>patch when deriving scope. Test-SourceUnchanged,Gate, andValidateare intentionally gone. Skip decisions such as “formatting-only, do not spend AI” belong to the caller/workflow.Test-ResourceEncodingis the only check that reasons about BOM preservation. Keep source-preservation and safe-write policy in the caller, and supply-OriginalFilewhenever a comparison snapshot exists.- When batching in one process, carry forward genuine pre-edit snapshot paths
for existing files. If a file has no snapshot, omit
OriginalFilerather than pointing it at the rewritten file. - When the caller scopes keys, do not automatically reuse that same list for
Test-PlaceholderParity,Test-LockedContent, orTest-PseudoLocale. Those APIs deliberately returnBLOCKEDwhen a scoped key is absent from the source or target file. Use the full scoped list forTest-RequiredKeys, then derive a comparable-only subset for the dependent checks. - Do not put source-removed names into scoped
-Keysjust to chase stale target entries. That is explicit review-and-cleanup work from step 1. A source-absent scoped key is a genuineBLOCKEDinput, not a fixable stale entry. - If the entire scoped source/target file pair was removed and no current file remains to feed the checker, materialize immutable pre-deletion snapshots for those exact files and run syntax and encoding checks on the snapshots. Treat the resulting bundles as historical evidence only, and separately use git inspection to confirm that the live tree really removed the files.
- After repairing a previously missing scoped key, recompute that
comparable-only subset from the final on-disk files before the final rerun.
A stale pre-edit empty
ComparableKeysarray can incorrectly skip placeholder, lock, or pseudo-locale validation for the new translated source-added entry. - If your tool output truncates the original patch, keep reading until every localization hunk has been seen. Never guess key scope from file names, prefixes, or partial excerpts.
- For in-process batching, use the dot-sourced public functions with a real
PowerShell key array such as
@('key1', 'key2').-KeysJsonis only forpwsh -FileCLI calls. - When you invoke
localization_checks.ps1frompwsh -File, use-KeysJsonfor scoped keys.-Keys key1,key2is ambiguous at the CLI layer and is not the supported script interface. - A source-only, blocked, or excluded-file result is not a successful repair.
Comment or fail honestly instead of pretending
PASS.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

