发布说明自动生成
release-notes
为 Intelligent Terminal 生成面向用户的发布说明。当被要求撰写发布说明、变更日志、新特性摘要或准备发布时使用。比较各版本之间的 git 提交,查找与 PR 关联的 issue 和社区贡献者,然后输出格式化的发布说明,包含“动词 + 影响 + 场景”风格的要点、issue 引用和贡献者致谢。
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 2.2k
- Forks
- 179
01 前言 Front Matter
- name
- release-notes
- description
- Generate user-facing release notes for Intelligent Terminal. Use when asked to write release notes, changelog, what-is-new summary, or prepare a release. Compares git commits between releases, looks up PR-linked issues and community contributors, then outputs formatted notes with "Verbed + Impact + Scenario" style bullets, issue references, and contributor thanks.
02 资源文件 4
- 参考文档references/core-team.md589 B
- 参考文档references/example-release-notes.md5.3 KB
- 脚本scripts/Get-PrMetadata.ps15.3 KB
- 参考文档templates/release-notes-template.md1.7 KB
03 SKILL.md 正文
Release Notes Generator
Generate polished, user-facing release notes for Intelligent Terminal releases by analyzing git history, PR metadata, and issue links.
When to Use This Skill
- User asks to write release notes or changelog
- User asks "what's new since last release"
- User asks to prepare a release
- User asks to summarize recent commits for end-users
Step-by-Step Workflow
Phase 1: Identify the Commit Range
The base is the latest release tag (the vX.Y.Z sequence, e.g. v0.1.18) and the head is main. The range is everything between them.
- Find the latest release tag — the newest 3-part
vX.Y.Ztag that is merged intomain. The filter is what keeps this reliable: it excludes upstream Windows Terminalv1.xtags (not on this fork's history) and the legacy four-partv0.1.NNNN.0tags (stale, some point at ancient upstream commits). Do not anchor onstable— it is a cherry-picked subset that lags the release tag.git tag --list 'v*' --merged main --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -1
(The user may override with a specific base commit/tag; if the plaingit tag --list 'v*' --merged main | Where-Object { $_ -match '^v\d+\.\d+\.\d+$' } | Sort-Object { [version]($_ -replace '^v','') } | Select-Object -Last 1git taglist looks nothing like the above — e.g. onlyv1.xshows up — the--merged mainfilter is being skipped.) - List all commits from the base tag to
main(replace$BASE_TAGwith the tag from step 1):git log --oneline --reverse "$BASE_TAG"..main - Extract PR numbers from commit messages (pattern:
(#NNN)).
The
0.1.xxxx.0build number is injected by CI at release time; the human-facing version is thevX.Y.Ztag sequence.
Phase 2: Enrich with PR Metadata
For each PR number, look up linked issues and author info (replace PR_NUMBER and OWNER/REPO):
gh pr view PR_NUMBER --repo OWNER/REPO --json number,title,body,author,closingIssuesReferences
Use
OWNER/REPO=microsoft/intelligent-terminalfor this repo's own PRs — they live on the canonical repo even when you're working from a fork/clone — ormicrosoft/terminalfor upstream#20xxxPRs.
To batch this lookup across many PRs at once, run scripts/Get-PrMetadata.ps1 with a list of PR numbers — it reports linked issues and flags community contributors (authors not in references/core-team.md).
Collect:
- PR → Issue mapping: Which PRs fix/close GitHub issues
- Community contributors: Authors NOT in the core team list
Core Team (do NOT thank as community contributors)
See core-team.md for the current list.
Phase 3: Write Release Notes
Use the release notes template and follow these rules:
Formatting Rules
-
Use numbered lists (
1.,2.,3.) within every section — matches the house style shown inreferences/example-release-notes.md, not bullet points. -
Every item uses "Verbed + Impact + Scenario" — a human must understand what changed and why it matters to them
- ✅
**Press F5 to refresh the session list.** Re-scans history on demand so sessions that appeared after launch show up without restarting. #344 - ❌
Fixed bug #344(no impact or scenario) - ❌
emit connection_state:closed on UI-initiated pane/tab close(developer jargon)
- ✅
-
Every item ends with its PR number(s) — a space then
#PRafter the trailing period (e.g.… without restarting. #344or… in strict-mode shells. #340).- Use the PR number as the primary reference (the shipped notes are PR-centric).
- In the ? Community section you may add the linked issue too, e.g.
(#366, closes #351). - Group related items that share user impact into one entry with multiple numbers (e.g.
#305, #365).
-
Open with a metadata blockquote header, as shown in
references/example-release-notes.md: the base release tag + commit + build, the headmaincommit, the new-PR count, the CI-injects-build-number note, and the "base is the tag, notstable" note. -
Frame the notes with a one-paragraph plain-language intro (the release's headline theme) after the header, and a closing call-to-action inviting users to file issues.
-
Omit purely internal changes — CI fixes, code refactors, dev docs, test-only changes, localization bot updates — unless they have direct user-visible impact. (Prior releases sometimes collect these under a
## Developmentsection instead of omitting them; follow the maintainer's preference for the release at hand.) -
Avoid detailed security disclosures in public release notes — fold security-related stability fixes into the Bug Fixes section rather than calling them out as security issues, and coordinate any security-sensitive wording with maintainers per SECURITY.md
-
Thank community contributors in a ? Community section with GitHub profile links:
1. [@username](https://github.com/username) (Display Name) — what they contributed. (#PR, closes #issue)
Section Structure
Open with the metadata blockquote header and the intro paragraph, then use these sections in order:
## ✨ New Features— new capabilities users can use## ? Improvements— enhancements to existing features## ? Bug Fixes— things that were broken and are now fixed## ? Community— external contributor thanks## ? Top 5 Elevator-Pitch Points— the most compelling highlights for social media / announcements
Close with the call-to-action paragraph.
Phase 4: Output
- Draft into
Generated Files/release-notes-vX.Y.Z.md— this folder is gitignored, so the working draft stays untracked while you iterate and get user sign-off. - Present the full notes to the user for review.
- Also list the top 5 elevator-pitch points separately.
- Publish (only once approved). Copy the finalized notes to
doc/release-notes/vX.Y.Z.mdand commit them (create thedoc/release-notes/folder if it doesn't exist yet — this is the intended home for published release notes). Follow the format inreferences/example-release-notes.md. This committed file is the source of truth for the version — do not commit theGenerated Files/draft.
Gotchas
- Avoid a dedicated ? Security section — prefer folding security-related stability improvements into Bug Fixes rather than publicly detailing security issues; see SECURITY.md for vulnerability handling and coordinate sensitive wording with maintainers.
- Upstream Windows Terminal PRs (#20xxx numbers) should be looked up on
microsoft/terminal, notmicrosoft/intelligent-terminal. - The "Verbed + Impact + Scenario" format is non-negotiable — every single bullet must follow it. "Fixed X" alone is not enough; you must explain the user impact.
- Some commits are cherry-picks from upstream — check both repos when looking up PRs.
- Group related commits — if 3 PRs all improve the FRE, combine into one bullet with multiple issue numbers rather than 3 separate bullets.
References
04 同仓库更多 Skills
商店上架信息本地化
store-listing-localizer
自动化 Microsoft Store(Partner Center)上 Intelligent Terminal(Store ID 9NMQC2SSJX24)的应用上架信息本地化。当被要求导出/导入商店上架信息、将发布说明/描述/字幕/功能本地化为 80 多种语言、更新 listingData CSV,或推送商店上架信息翻译而无需在 Partner Center 中手动点击操作时使用。通过 Playwright MCP 驱动 Partner Center 的导出/导入,并将各语言的翻译合并到 listingData CSV 中。
上游代码同步
upstream-sync
定期将 microsoft/terminal 的新提交同步到这个手动 fork 的 intelligent-terminal 仓库,方式是逐个 cherry-pick 提交到带日期的同步分支,自动跳过 revert 对和空提交,自动解决已知的 take-upstream 文件,并在遇到真正的冲突时干净地停止。agent(即你,阅读本文件时)是编排者——PowerShell 脚本是由你一次调用一个的原子操作。当用户要求“同步上游”、“从 microsoft/terminal 拉取”、“运行上游同步”、“跟上上游”,或将其接入调度器(每周/每日)时使用。设计上可在重复无人值守运行时保持安全。
智能终端集成测试设计与验证
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 分级发现。