Agent SkillsMoonshotAI/kimi-code › gen-changesets

gen-changesets

GitHub

指导生成 Changeset,判断变更是否需记录、确定包名及版本号(patch/minor),并规范用户可见的变更描述文案。

.agents/skills/gen-changesets/SKILL.md MoonshotAI/kimi-code

Trigger Scenarios

需要为代码变更生成 Changeset 决定变更是否需要发布说明 确定版本升级级别

Install

npx skills add MoonshotAI/kimi-code --skill gen-changesets -g -y
More Options

Non-standard path

npx skills add https://github.com/MoonshotAI/kimi-code/tree/main/.agents/skills/gen-changesets -g -y

Use without installing

npx skills use MoonshotAI/kimi-code@gen-changesets

指定 Agent (Claude Code)

npx skills add MoonshotAI/kimi-code --skill gen-changesets -a claude-code -g -y

安装 repo 全部 skill

npx skills add MoonshotAI/kimi-code --all -g -y

预览 repo 内 skill

npx skills add MoonshotAI/kimi-code --list

SKILL.md

Frontmatter
{
    "name": "gen-changesets",
    "description": "Use when generating changesets in the kimi-code repository — deciding whether to write one, which package to list, the bump level, the wording, and the confirmation workflow."
}

Generate Changesets

The only user-facing published package is the CLI: @moonshot-ai/kimi-code. All other @moonshot-ai/* packages (sdk, agent-core, kosong, kaos, oauth, telemetry, and so on) are internal.

1. Whether to Write

Rule of thumb: if users cannot perceive the change, write no changeset. A changeset is a user-facing changelog entry, not a shipping gate — internal changes merged to main ship with the next release anyway, so skipping loses nothing.

Do not write:

  • Docs-only or tests-only changes that never enter the shipped artifact.
  • Changes internal to core/server packages — architecture, protocols, refactors, config/journal/wire mechanics — unless they fix a bug users care about.
  • When you are unsure whether users can perceive a change, ask first.

Do write: user-perceivable new features or behavior changes, and internal-package changes that fix a user-useful bug or change CLI output/behavior (list @moonshot-ai/kimi-code for those).

2. What to Write

Create a short kebab-case file under .changeset/:

---
"@moonshot-ai/kimi-code": patch
---

Fix occasional loss of tool call results in long conversations.

Wording:

  • One short, user-facing English sentence that states only what changed. Drop trailing clauses that explain the cause, the benefit, or the mechanism.
  • New features: say plainly what it is plus one line on how to use it, e.g. Add the /foo slash command to list active sessions. Run /foo to see them.
  • Experimental features: also state how to enable them (the flag, config key, or env var).
  • No file, class, or function names, and no PR numbers. No vague words like refactor, optimize, or improve. No real internal identifiers — use neutral placeholders such as example.com or YOUR_API_KEY.
  • Internal packages' own changelogs (such as the sdk) are not curated for end users — write those entries honestly and technically.
  • One logical change per changeset; split unrelated changes into separate files.

3. Bump Level

  • patch: bug fixes, small improvements, configuration additions to existing features — when in doubt, use this.
  • minor: a real new capability users could not do before (a new slash command, a new subcommand, a new mode).
  • major: never write it. If you think a change qualifies, stop and ask the user; without explicit approval fall back to minor, or to patch if minor is also unclear.

4. Which Package

  • An internal change enters the CLI bundle and is user-perceivable → list @moonshot-ai/kimi-code.
  • An internal change does not enter the CLI or is not user-perceivable → write nothing; if it is written, list only that internal package.
  • Never mix packages ignored in .changeset/config.json with non-ignored packages in one frontmatter.
  • pi-tui exception: pi-tui-only changes list @moonshot-ai/pi-tui; if the same change is also visible to CLI users, write a separate CLI changeset (two files, never mixed).
  • kimi-inspect and the vis packages never appear in a changeset.

5. Workflow

  1. Run git status / git diff --name-only to see which packages actually changed.
  2. Apply section 1; if no changeset is needed, stop.
  3. Pick the package and the bump, and write the one sentence.
  4. Show the changeset text to whoever requested the work and get their confirmation before committing.
  5. Do not guess at changes you do not understand: finish the parts that are clear, then list what is unclear and ask whether you may dig into the code.

Before a release, review the accumulated .changeset/ entries and delete the non-user-facing ones — the release PR regenerates from .changeset/ on main, so deleting a file removes its changelog entry without touching shipped code.

Version History

  • 2ea2ef6 Current 2026-08-19 17:53

    简化技能逻辑,强调仅陈述变更事实,移除解释性从句,并在 AGENTS.md 中要求严格遵循规则。

  • 7cd6476 2026-08-07 09:28

    重构用户可见日志的策展规则,细化兜底描述并增加审查者备注;新增折叠条目在同步审查节点的展示逻辑。

  • e22479a 2026-08-01 14:17

    新增核心规则6:明确跳过用户无法感知的内部变更(如agent-core-v2架构调整、kap-server协议变更)的changeset;将MCP超时和web服务环境变量添加从minor降级为patch;文档化用户可见性标准及预发布修剪流程。

  • 5240b5c 2026-07-23 11:34
  • 4963c90 2026-07-06 00:01

Same Skill Collection

.agents/skills/agent-core-review/slop/SKILL.md
.agents/skills/agent-core-review/test/SKILL.md
.agents/skills/gen-docs/SKILL.md
.agents/skills/pre-changelog/SKILL.md
.agents/skills/sync-changelog/SKILL.md
.agents/skills/translate-docs/SKILL.md
.agents/skills/write-tui/SKILL.md
.agents/skills/agent-core-dev/SKILL.md
.agents/skills/agent-core-review/SKILL.md
plugins/official/kimi-datasource/SKILL.md
plugins/official/kimi-webbridge/skills/kimi-webbridge/SKILL.md

Metadata

Files
0
Version
2ea2ef6
Hash
4de78087
Indexed
2026-07-06 00:01

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-27 00:19
浙ICP备14020137号-1 $Carte des visiteurs$