AGENT SKILL

商店上架信息本地化

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

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 playwright in ~/.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 subfolder store-listing-localizer/<YYYY-MM-DD>/… (pass that as the filename subpath). 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, and apply.mjs defaults 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.

  1. Export the listing CSV from Partner Center — partner-center-mcp-workflow.md#export. Copy the downloaded listingData-9NMQC2SSJX24-*.csv into a clean working dir.

  2. 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
    
  3. Translate each changed field into every target locale, following localization-rules.md (locked tokens, .resw terminology alignment, RTL handling). Use per-language sub-agents for breadth + a reviewer pass. Emit translations.json keyed { "<locale>": { "<Field>": "<text>" } }.

  4. Merge (--appnames defaults to the bundled references/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
    
  5. Verify the output (cols/rows unchanged, spot-check locales), then import <stem>-localized.csv — partner-center-mcp-workflow.md#import.

  6. 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.mjs has an automatic version-drift safety net: for any field whose en-US value carries a v<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 kept v0.1.1531 while en-US moved to v0.1.1600 is 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/Type columns or split the CSV on raw newlines — ReleaseNotes/Description contain embedded newlines. Use csvlib.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.mjs replaces "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 (the github.com/microsoft/intelligent-terminal URL 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.mjs now 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

04 同仓库更多 Skills

microsoft
microsoft/intelligent-terminal

上游代码同步

upstream-sync

定期将 microsoft/terminal 的新提交同步到这个手动 fork 的 intelligent-terminal 仓库,方式是逐个 cherry-pick 提交到带日期的同步分支,自动跳过 revert 对和空提交,自动解决已知的 take-upstream 文件,并在遇到真正的冲突时干净地停止。agent(即你,阅读本文件时)是编排者——PowerShell 脚本是由你一次调用一个的原子操作。当用户要求“同步上游”、“从 microsoft/terminal 拉取”、“运行上游同步”、“跟上上游”,或将其接入调度器(每周/每日)时使用。设计上可在重复无人值守运行时保持安全。

软件开发工程师代码仓库协作管理
★ 2.2k
microsoft
microsoft/intelligent-terminal

发布说明自动生成

release-notes

为 Intelligent Terminal 生成面向用户的发布说明。当被要求撰写发布说明、变更日志、新特性摘要或准备发布时使用。比较各版本之间的 git 提交,查找与 PR 关联的 issue 和社区贡献者,然后输出格式化的发布说明,包含“动词 + 影响 + 场景”风格的要点、issue 引用和贡献者致谢。

技术文档工程师部署与发布管理
★ 2.2k
microsoft
microsoft/intelligent-terminal

智能终端集成测试设计与验证

pr-integration-test

为指定的拉取请求或回归问题设计、实现并验证智能终端集成测试。当被要求添加 PR 集成测试、将 Bug 修复转化为 E2E 覆盖、证明现有行为仍然有效、将测试映射到发布清单,或核验 E2E 报告已将清单用例标记为完成时。

测试工程师测试与质量保障
★ 2.2k
microsoft
microsoft/intelligent-terminal

Windows 界面无障碍审查修复

pr-accessibility

审查并修复原生 Windows WinUI、XAML、C++、UI Automation、键盘、焦点、屏幕阅读器、高对比度、缩放、设置、标签、窗格和 agent-card 的无障碍变更。用于智能终端 UI 拉取请求的无障碍分析以及针对性的本地无障碍检查。

软件开发工程师无障碍合规检查
★ 2.2k
microsoft
microsoft/intelligent-terminal

智能终端性能变更审查

performance-review

审查本地工作区、提交范围、分支或 PR 中的智能终端性能变更。适用于渲染器、文本缓冲区、VT、UI 线程、标签/窗格、WTA、异步、会话、日志、内存分配、事件放大、基准测试、性能分析(profiling)、响应性、内存以及 CI 成本相关的变更。

软件开发工程师调试与故障排查
★ 2.2k
microsoft
microsoft/intelligent-terminal

智能终端 PR 安全审查

ghaw-pr-security

审查智能终端(Intelligent Terminal)的 pull request,涵盖 C++/WinRT、COM、WTA、ACP、session MCP、hooks、终端变更、路径、诊断、打包和 GitHub Actions 的安全回归。用于基于证据的不可变 diff 审查和结构化 HIGH/medium/low 分级发现。

安全工程师安全检测工程
★ 2.2k