跳到主要内容

docs-changelog 精选

Generates and formats changelog files for a new release based on provided version and raw changelog data.

在 GitHub 打开

安装方式

cp -r .gemini/skills/docs-changelog ~/.claude/skills/docs-changelog

把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/

整仓一次性获取:git clone --depth 1 https://github.com/google-gemini/gemini-cli.git

依赖与权限

  • 无需 API Key
  • 需要联网访问外部服务
  • 依赖外部命令:npm convert
  • 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。

SKILL.md 正文

来源 google-gemini/gemini-cli@9b6e026 · 许可 Apache-2.0 · 内容未修改

Procedure: Updating Changelog for New Releases

Objective

To standardize the process of updating changelog files (latest.md,

preview.md, index.md) based on automated release information.

Inputs

  • version: The release version string (e.g., v0.28.0,

v0.29.0-preview.2).

  • TIME: The release timestamp (e.g., 2026-02-12T20:33:15Z).
  • BODY: The raw markdown release notes, containing a "What's Changed"

section and a "Full Changelog" link.

Guidelines for latest.md and preview.md Highlights

  • Aim for 3-5 key highlight points.
  • Each highlight point must start with a bold-typed title that summarizes the

change (e.g., New Feature: A brief description...).

  • Prioritize summarizing new features over other changes like bug fixes or

chores.

  • Avoid mentioning features that are "experimental" or "in preview" in

Stable Releases.

  • DO NOT include PR numbers, links, or author names in these highlights.
  • Refer to .gemini/skills/docs-changelog/references/highlights_examples.md

for the correct style and tone.

Initial Processing

  1. Analyze Version: Determine the release path based on the version

string.

  • If version contains "nightly", STOP. No changes are made.
  • If version ends in .0, follow the Path A: New Minor Version

procedure.

  • If version does not end in .0, follow the Path B: Patch Version

procedure.

  1. Process Time: Convert the TIME input into two formats for later use:

yyyy-mm-dd and Month dd, yyyy.

  1. Process Body:
  • Save the incoming BODY content to a temporary file for processing.
  • In the "What's Changed" section of the temporary file, reformat all pull

request URLs to be markdown links with the PR number as the text (e.g.,

[#12345](URL)).

  • If a "New Contributors" section exists, delete it.
  • Preserve the "Full Changelog" link. The processed content of this

temporary file will be used in subsequent steps.


Path A: New Minor Version

Use this path if the version number ends in .0.

Important: Based on the version, you must choose to follow either section

A.1 for stable releases or A.2 for preview releases. Do not follow the

instructions for the other section.

A.1: Stable Release (e.g., v0.28.0)

For a stable release, you will generate two distinct summaries from the

changelog: a concise announcement for the main changelog page, and a more

detailed highlights section for the release-specific page.

  1. Create the Announcement for index.md:
  • Generate a concise announcement summarizing the most important changes.

Each announcement entry must start with a bold-typed title that

summarizes the change.

  • Important: The format for this announcement is unique. You must

use the existing announcements in docs/changelogs/index.md and the

example within

.gemini/skills/docs-changelog/references/index_template.md as your

guide. This format includes PR links and authors. Stick to 1 or 2 PR

links and authors.

  • Add this new announcement to the top of docs/changelogs/index.md.
  1. Create Highlights and Update latest.md:
  • Generate a comprehensive "Highlights" section, following the guidelines

in the "Guidelines for latest.md and preview.md Highlights" section

above.

  • Take the content from

.gemini/skills/docs-changelog/references/latest_template.md.

  • Populate the template with the version, release_date, generated

highlights, and the processed content from the temporary file.

  • Completely replace the contents of docs/changelogs/latest.md with

the populated template.

A.2: Preview Release (e.g., v0.29.0-preview.0)

  1. Update preview.md:
  • Generate a comprehensive "Highlights" section, following the highlight

guidelines.

  • Take the content from

.gemini/skills/docs-changelog/references/preview_template.md.

  • Populate the template with the version, release_date, generated

highlights, and the processed content from the temporary file.

  • Completely replace the contents of docs/changelogs/preview.md

with the populated template.


Path B: Patch Version

Use this path if the version number does not end in .0.

Important: Based on the version, you must choose to follow either section

B.1 for stable patches or B.2 for preview patches. Do not follow the

instructions for the other section.

B.1: Stable Patch (e.g., v0.28.1)

  • Target File: docs/changelogs/latest.md
  • Perform the following edits on the target file:
  1. Update the version in the main header. The line should read,

# Latest stable release: {{version}}

  1. Update the rease date. The line should read,

Released: {{release_date_month_dd_yyyy}}

  1. Determine if a "What's Changed" section exists in the temporary file

If so, continue to step 4. Otherwise, skip to step 5.

  1. Prepend the processed "What's Changed" list from the temporary file

to the existing "What's Changed" list in latest.md. Do not change or

replace the existing list, only add to the beginning of it.

  1. In the "Full Changelog", edit only the end of the URL. Identify the

last part of the URL that looks like ...{previous_version} and update

it to be ...{version}.

Example: assume the patch version is v0.29.1. Change

Full Changelog: https://github.com/google-gemini/gemini-cli/compare/v0.28.2…v0.29.0

to

Full Changelog: https://github.com/google-gemini/gemini-cli/compare/v0.28.2…v0.29.1

B.2: Preview Patch (e.g., v0.29.0-preview.3)

  • Target File: docs/changelogs/preview.md
  • Perform the following edits on the target file:
  1. Update the version in the main header. The line should read,

# Preview release: {{version}}

  1. Update the rease date. The line should read,

Released: {{release_date_month_dd_yyyy}}

  1. Determine if a "What's Changed" section exists in the temporary file

If so, continue to step 4. Otherwise, skip to step 5.

  1. Prepend the processed "What's Changed" list from the temporary file

to the existing "What's Changed" list in preview.md. Do not change or

replace the existing list, only add to the beginning of it.

  1. In the "Full Changelog", edit only the end of the URL. Identify the

last part of the URL that looks like ...{previous_version} and update

it to be ...{version}.

Example: assume the patch version is v0.29.0-preview.1. Change

Full Changelog: https://github.com/google-gemini/gemini-cli/compare/v0.28.2…v0.29.0-preview.0

to

Full Changelog: https://github.com/google-gemini/gemini-cli/compare/v0.28.2…v0.29.0-preview.1


Finalize

  • After making changes, if npm run format fails, it may be necessary to run

npm install first to ensure all formatting dependencies are available.

Then, run npm run format to ensure consistency.

  • Delete any temporary files created during the process.

质量与来源

所属仓库
google-gemini/gemini-cli
仓库星标
11 万
最近更新
今天
采集时间
今天
commit
9b6e0265d16b
内容指纹
sha256:accc09bf6dede29
文件路径
.gemini/skills/docs-changelog/SKILL.md

同仓库其它 Skill

查看全部 25 个
agent-tui
Main Agents: Do NOT use this skill directly. If you need to test the TUI, invoke the `tui_tester` subagent. Drive terminal UI (TUI) applications programmatically for testing, automation, and inspection. Use when: automating CLI/TUI interactions, regression testing terminal apps, or verifying interactive behavior. Also use when: user asks "what is agent-tui", "what does agent-tui do", "demo agent-tui", "show me agent-tui", "how does agent-tui work", or wants to see it in action.
精选 google-gemini/gemini-cli 11 万 原文
Codex CLIGemini CLIMCP 客户端
async-pr-review
Trigger this skill when the user wants to start an asynchronous PR review, run background checks on a PR, or check the status of a previously started async PR review.
精选 google-gemini/gemini-cli 11 万 原文
Codex CLIGemini CLIMCP 客户端
behavioral-evals
Guidance for creating, running, fixing, and promoting behavioral evaluations. Use when verifying agent decision logic, debugging failures, debugging prompt steering, or adding workspace regression tests.
精选 google-gemini/gemini-cli 11 万 原文
Codex CLIGemini CLIMCP 客户端
ci
A specialized skill for Gemini CLI that provides high-performance, fail-fast monitoring of GitHub Actions workflows and automated local verification of CI failures. It handles run discovery automatically—simply provide the branch name.
精选 google-gemini/gemini-cli 11 万 原文
Codex CLIGemini CLIMCP 客户端
code-reviewer
Use this skill to review code. It supports both local changes (staged or working tree) and remote Pull Requests (by ID or URL). It focuses on correctness, maintainability, and adherence to project standards.
精选 google-gemini/gemini-cli 11 万 原文
Codex CLIGemini CLIMCP 客户端
docs-writer
Always use this skill when the task involves writing, reviewing, or editing files in the `/docs` directory or any `.md` files in the repository.
精选 google-gemini/gemini-cli 11 万 原文
Codex CLIGemini CLIMCP 客户端

相似 Skill

更多「编码」
access
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how do I set this up" or "who can reach me," or wants to check channel status.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
access
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the iMessage channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Check iMessage channel setup and review access policy. Use when the user asks to configure iMessage, asks "how do I set this up" or "who can reach me," or wants to know why texts aren't reaching the assistant.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
access
Manage Telegram channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Telegram channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Set up the Telegram channel — save the bot token and review access policy. Use when the user pastes a Telegram bot token, asks to configure Telegram, asks "how do I set this up" or "who can reach me," or wants to check channel status.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端