商店上架信息本地化
store-listing-localizer
自动化 Microsoft Store(Partner Center)上 Intelligent Terminal(Store ID 9NMQC2SSJX24)的应用上架信息本地化。当被要求导出/导入商店上架信息、将发布说明/描述/字幕/功能本地化为 80 多种语言、更新 listingData CSV,或推送商店上架信息翻译而无需在 Partner Center 中手动点击操作时使用。通过 Playwright MCP 驱动 Partner Center 的导出/导入,并将各语言的翻译合并到 listingData CSV 中。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 2.2k
- Forks
- 179
01 前言 Front Matter
- name
- store-listing-localizer
- license
- Complete terms in LICENSE.txt
- description
- Automate Microsoft Store (Partner Center) listing localization for Intelligent Terminal (Store ID 9NMQC2SSJX24). Use when asked to export/import Store listings, localize release notes / descriptions / captions / features into 80+ languages, update listingData CSV, or push Store listing translations without manually clicking through Partner Center. Drives Partner Center export/import via the Playwright MCP and merges per-locale translations into the listingData CSV.
02 资源文件 10
- 许可证LICENSE.txt11.3 KB
- 参考文档references/intelligent-terminal-translations.md3.8 KB
- 参考文档references/listing-csv-format.md4.0 KB
- 参考文档references/localization-rules.md4.2 KB
- 参考文档references/partner-center-mcp-workflow.md4.8 KB
- 脚本scripts/apply.mjs11.6 KB
- 脚本scripts/csvlib.mjs5.3 KB
- 脚本scripts/extract.mjs4.5 KB
- 脚本scripts/fields.mjs2.5 KB
- 脚本scripts/package.json196 B
03 SKILL.md 正文
Store Listing Localizer
End-to-end automation for localizing the Intelligent Terminal Microsoft Store
listing: export the listingData CSV from Partner Center, localize the
changed fields (release notes, description, captions, features) into all 80+
Store locales using the repo's terminology rules, then import the result —
without manually logging into and clicking through the Partner Center web UI.
- Store ID:
9NMQC2SSJX24· Overview:https://partner.microsoft.com/en-us/dashboard/products/9NMQC2SSJX24/overview - The CSV has 89 locale columns × ~450 field rows. See listing-csv-format.md.
When to Use This Skill
- "Export the Store listings and localize the release notes to all languages."
- "The en-US release note changed — update every locale and re-import."
- Updating Store description / screenshot captions / features across locales.
- Any Partner Center listing export → translate → import round trip.
- The new en-US text may come from the export CSV or be given in the prompt (handled via en-US overrides — see below).
Prerequisites
- Playwright MCP registered as
playwrightin~/.copilot/mcp-config.json(@playwright/mcp,--browser msedge, dedicated--user-data-dir,--output-dir <repo>\Generated Files\playwright-mcp). Write browser outputs to a per-run subfolderstore-listing-localizer/<YYYY-MM-DD>/…(pass that as thefilenamesubpath). Restart Copilot CLI after enabling it, then sign into Partner Center once in the launched Edge window. Full setup + gotchas: partner-center-mcp-workflow.md. - Node.js (uses only built-ins;
scripts/has no npm dependencies). - AppName table — the per-locale product names ship with the skill at
references/intelligent-terminal-translations.md, andapply.mjsdefaults to it. Override with--appnames <path>only if you maintain a newer copy elsewhere.
Workflow
Track progress with a TODO list; each step links to its reference.
-
Export the listing CSV from Partner Center — partner-center-mcp-workflow.md#export. Copy the downloaded
listingData-9NMQC2SSJX24-*.csvinto a clean working dir. -
Build the work order — lists every translatable field with its en-US source and which locales are stale:
node scripts/extract.mjs --csv <export.csv> [--enus <overrides.json>] --out work-order.json -
Translate each changed field into every target locale, following localization-rules.md (locked tokens,
.reswterminology alignment, RTL handling). Use per-language sub-agents for breadth + a reviewer pass. Emittranslations.jsonkeyed{ "<locale>": { "<Field>": "<text>" } }. -
Merge (
--appnamesdefaults to the bundledreferences/intelligent-terminal-translations.md):node scripts/apply.mjs --csv <export.csv> [--appnames <translations.md>] \ --translations translations.json [--enus overrides.json] \ [--changed-fields ReleaseNotes] --out <stem>-localized.csv -
Verify the output (cols/rows unchanged, spot-check locales), then import
<stem>-localized.csv— partner-center-mcp-workflow.md#import. -
Review in the UI and publish the submission separately (import only stages the listing).
en-US supplied in the prompt (not from the CSV)
When the new en-US text is given in the prompt, write it to an overrides file and pass it to both scripts:
// enus.json
{ "ReleaseNotes": "Version v0.1.1600\n\n- New: ...\n- Fixed: ..." }
--enus updates the en-US column and marks the field as changed, so stale
per-locale values are never preserved (see Gotchas).
Scripts
| Script | Purpose |
|---|---|
scripts/extract.mjs |
Build a translation work order (what to translate, into which locales). |
scripts/apply.mjs |
Merge translations + AppName table into the export → *-localized.csv. |
scripts/fields.mjs |
Field classification (appname / translate / verbatim) + AppName-table parser. |
scripts/csvlib.mjs |
Quote-aware CSV parse/serialize (UTF-8 BOM + CRLF, embedded newlines). |
Run any script with --help for its options.
Gotchas
- Stale translations are the #1 risk. When an en-US field changes, every
locale still holds the previous version's text.
apply.mjshas an automatic version-drift safety net: for any field whose en-US value carries av<x.y.z>token (e.g. ReleaseNotes), a locale whose existing text has a different token is treated as stale and refreshed to the new en-US — even if you forget--changed-fields. Still pass--enus(or--changed-fields) for changed fields to be explicit; the guard is a backstop. Verified: without any flag, a German release note that keptv0.1.1531while en-US moved tov0.1.1600is now auto-refreshed. - The Playwright MCP needs a CLI restart to load, and a dedicated Edge
profile dir (never the live
Edge\User Data, which is locked while Edge runs). - Import ≠ publish. Importing stages the draft listing; the submission must be published separately.
- Never edit the
Field/ID/Typecolumns or split the CSV on raw newlines — ReleaseNotes/Description contain embedded newlines. Usecsvlib.mjs. - Locale codes are lowercase in the CSV (
zh-cn), mixed-case in.resw(zh-CN). Match case-insensitively when borrowing terminology. - Version string is locked (
Version v0.1.1600) — copy verbatim per locale; only translate the bullet text. Keep brand/tech tokens (Copilot,CLI,Agent pane,PowerShell) in English. - Product name IS localized in body text.
apply.mjsreplaces "Intelligent Terminal" inside Description/ReleaseNotes/Features with the locale's AppName (matching the Title), e.g. de-DE "Intelligentes Terminal", zh-CN "智能终端". This is URL-safe (thegithub.com/microsoft/intelligent-terminalURL is untouched). Don't hand-keep the English name in translated bullets. - ReleaseNotes has a hard 1500-character limit PER LOCALE (Description
10000, ShortDescription 1000). Translations expand vs. English by up to
~1.3–1.4×, so a 1280-char en-US ReleaseNotes produced 1680-char translations
that failed the whole import mid-run ("Processing failed" → View errors →
"ReleaseNotes is too long"). Keep en-US ReleaseNotes ≤ ~1100 chars and tell
the translation sub-agents the ≤1400 target explicitly.
apply.mjsnow runs the length guard before writing and refuses to emit an over-limit CSV (exits non-zero, no output file) — so a known-bad file can't be imported.
Troubleshooting
| Issue | Solution |
|---|---|
Playwright (playwright/*) MCP tools not available |
The Playwright MCP didn't load — restart Copilot CLI; confirm the playwright entry in ~/.copilot/mcp-config.json. |
| Export lands on a login page | Corp SSO session expired — complete the interactive Microsoft login + MFA in the Edge window, then retry. |
| Profile-lock / "browser in use" error | --user-data-dir points at the live Edge profile; use the dedicated msstore-playwright-profile dir. |
| Import rejected / mojibake | Output must be UTF-8 BOM + CRLF with unchanged col/row counts — apply.mjs does this; don't re-save the CSV in another editor. |
| A locale shows the old version number | The field wasn't marked changed — re-run apply.mjs with --enus/--changed-fields. |
References
- partner-center-mcp-workflow.md — Playwright MCP export/import steps, auth, selectors.
- listing-csv-format.md — CSV schema and field handling.
- localization-rules.md — terminology, locked tokens,
.reswalignment.
04 同仓库更多 Skills
上游代码同步
upstream-sync
定期将 microsoft/terminal 的新提交同步到这个手动 fork 的 intelligent-terminal 仓库,方式是逐个 cherry-pick 提交到带日期的同步分支,自动跳过 revert 对和空提交,自动解决已知的 take-upstream 文件,并在遇到真正的冲突时干净地停止。agent(即你,阅读本文件时)是编排者——PowerShell 脚本是由你一次调用一个的原子操作。当用户要求“同步上游”、“从 microsoft/terminal 拉取”、“运行上游同步”、“跟上上游”,或将其接入调度器(每周/每日)时使用。设计上可在重复无人值守运行时保持安全。
发布说明自动生成
release-notes
为 Intelligent Terminal 生成面向用户的发布说明。当被要求撰写发布说明、变更日志、新特性摘要或准备发布时使用。比较各版本之间的 git 提交,查找与 PR 关联的 issue 和社区贡献者,然后输出格式化的发布说明,包含“动词 + 影响 + 场景”风格的要点、issue 引用和贡献者致谢。
智能终端集成测试设计与验证
pr-integration-test
为指定的拉取请求或回归问题设计、实现并验证智能终端集成测试。当被要求添加 PR 集成测试、将 Bug 修复转化为 E2E 覆盖、证明现有行为仍然有效、将测试映射到发布清单,或核验 E2E 报告已将清单用例标记为完成时。
Windows 界面无障碍审查修复
pr-accessibility
审查并修复原生 Windows WinUI、XAML、C++、UI Automation、键盘、焦点、屏幕阅读器、高对比度、缩放、设置、标签、窗格和 agent-card 的无障碍变更。用于智能终端 UI 拉取请求的无障碍分析以及针对性的本地无障碍检查。
智能终端性能变更审查
performance-review
审查本地工作区、提交范围、分支或 PR 中的智能终端性能变更。适用于渲染器、文本缓冲区、VT、UI 线程、标签/窗格、WTA、异步、会话、日志、内存分配、事件放大、基准测试、性能分析(profiling)、响应性、内存以及 CI 成本相关的变更。
智能终端 PR 安全审查
ghaw-pr-security
审查智能终端(Intelligent Terminal)的 pull request,涵盖 C++/WinRT、COM、WTA、ACP、session MCP、hooks、终端变更、路径、诊断、打包和 GitHub Actions 的安全回归。用于基于证据的不可变 diff 审查和结构化 HIGH/medium/low 分级发现。