AGENT SKILL

发布说明自动生成

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

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.

  1. Find the latest release tag — the newest 3-part vX.Y.Z tag that is merged into main. The filter is what keeps this reliable: it excludes upstream Windows Terminal v1.x tags (not on this fork's history) and the legacy four-part v0.1.NNNN.0 tags (stale, some point at ancient upstream commits). Do not anchor on stable — 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
    
    git tag --list 'v*' --merged main | Where-Object { $_ -match '^v\d+\.\d+\.\d+$' } | Sort-Object { [version]($_ -replace '^v','') } | Select-Object -Last 1
    
    (The user may override with a specific base commit/tag; if the plain git tag list looks nothing like the above — e.g. only v1.x shows up — the --merged main filter is being skipped.)
  2. List all commits from the base tag to main (replace $BASE_TAG with the tag from step 1):
    git log --oneline --reverse "$BASE_TAG"..main
    
  3. Extract PR numbers from commit messages (pattern: (#NNN)).

The 0.1.xxxx.0 build number is injected by CI at release time; the human-facing version is the vX.Y.Z tag 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-terminal for this repo's own PRs — they live on the canonical repo even when you're working from a fork/clone — or microsoft/terminal for upstream #20xxx PRs.

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

  1. Use numbered lists (1., 2., 3.) within every section — matches the house style shown in references/example-release-notes.md, not bullet points.

  2. 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)
  3. Every item ends with its PR number(s) — a space then #PR after the trailing period (e.g. … without restarting. #344 or … 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).
  4. Open with a metadata blockquote header, as shown in references/example-release-notes.md: the base release tag + commit + build, the head main commit, the new-PR count, the CI-injects-build-number note, and the "base is the tag, not stable" note.

  5. 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.

  6. 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 ## Development section instead of omitting them; follow the maintainer's preference for the release at hand.)

  7. 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

  8. 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

  1. 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.
  2. Present the full notes to the user for review.
  3. Also list the top 5 elevator-pitch points separately.
  4. Publish (only once approved). Copy the finalized notes to doc/release-notes/vX.Y.Z.md and commit them (create the doc/release-notes/ folder if it doesn't exist yet — this is the intended home for published release notes). Follow the format in references/example-release-notes.md. This committed file is the source of truth for the version — do not commit the Generated 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, not microsoft/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

microsoft
microsoft/intelligent-terminal

商店上架信息本地化

store-listing-localizer

自动化 Microsoft Store(Partner Center)上 Intelligent Terminal(Store ID 9NMQC2SSJX24)的应用上架信息本地化。当被要求导出/导入商店上架信息、将发布说明/描述/字幕/功能本地化为 80 多种语言、更新 listingData CSV,或推送商店上架信息翻译而无需在 Partner Center 中手动点击操作时使用。通过 Playwright MCP 驱动 Partner Center 的导出/导入,并将各语言的翻译合并到 listingData CSV 中。

翻译语言翻译与本地化
★ 2.2k
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

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

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