sync-changelog
Use after a release succeeds, when maintainers need to sync apps/kimi-code/CHANGELOG.md into docs/en/release-notes/changelog.md and…
от P-A-N-52★ 47 звёзд на GitHub
Установить sync-changelog в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Sync Changelog
Overview
kimi-code uses changesets for versioning. Each package gets its own CHANGELOG.md. The user-facing CLI package, @moonshot-ai/kimi-code, writes its changelog here:
apps/kimi-code/CHANGELOG.md
This file is the only upstream source for the documentation-site changelog. Internal package changelogs such as packages/*/CHANGELOG.md do not go into the documentation site.
After the release flow finishes (Release PR merged → Version Packages completed → npm publish succeeded), maintainers manually run this skill to copy the new CLI changelog entries into the docs site, translate the English increment into Chinese, wait for an optional human review, then commit on a dedicated branch and open a PR.
When To Use
- A new version has been published to npm.
- The top of
apps/kimi-code/CHANGELOG.mdcontains version blocks that are not yet indocs/en/release-notes/changelog.md. - The
gen-docsflow does not run this automatically; maintainers must explicitly do it after release.
Do not run this before the Release PR is merged. At that point, changesets has not yet written the new version into apps/kimi-code/CHANGELOG.md.
Source And Targets
| File | Role | Edited by |
|---|---|---|
apps/kimi-code/CHANGELOG.md |
Only upstream source, generated by changesets | Never edit manually |
docs/en/release-notes/changelog.md |
English docs changelog; source of truth for docs | This skill |
docs/zh/release-notes/changelog.md |
Chinese docs changelog, translated from English | This skill, following translate-docs |
Core rule: the English docs changelog is the source of truth, and Chinese is translated from English. This matches translate-docs.
Preconditions
Before editing, confirm:
- The released version exists on npm (
npm view @moonshot-ai/kimi-code versions --json) or has a matching GitHub Release tag. - The top of
apps/kimi-code/CHANGELOG.mdis that new version.
If any condition is not true, stop and confirm with the user.
Do not edit or commit directly on main. All sync work happens on a dedicated branch created in step 1.
Workflow
1. Prepare Branch
Start from an up-to-date default branch:
git fetch origin
git checkout main
git pull --ff-only origin main
Before creating the branch, peek at the version range so the branch name matches the newest version being synced:
rg '^## ' apps/kimi-code/CHANGELOG.md | head -5
rg '^## ' docs/en/release-notes/changelog.md | head -5
Name the branch after the newest upstream version that is not yet in the English docs page:
docs/changelog-sync-<newest-version>
Example: syncing 0.2.1 only → docs/changelog-sync-0.2.1.
git checkout -b docs/changelog-sync-<newest-version>
If the branch already exists locally or on the remote, stop and confirm with the user instead of reusing it.
2. Find The Version Range
Use the same version lists from step 1. Confirm:
- First sync: copy all upstream version blocks into the English page.
- Incremental sync: copy every upstream version block above the latest version already present in the English page.
Use upstream order: newest version first.
3. Strip Decorations And Extract Entry Text
Upstream entries look like this:
- [#317](https://github.com/...) [`2f51db4`](https://github.com/...) Thanks [@user](https://github.com/...)! - Clean up lint warnings ...
Changesets may add a Thanks ...! credit, but it must be removed every time. Keep:
- Version headings such as
## 0.2.0. - Only the body text of each entry, after the PR/hash decoration and any
Thanks ...!credit have been removed.
Remove:
- The upstream H1
# @moonshot-ai/kimi-codebecause the docs page already has# Changelog. - Changesets subheadings such as
### Patch Changes,### Minor Changes, and### Major Changes. - PR links such as
[#317](...). - Commit hash links such as
[`2f51db4`](...). - The
Thanks [@user](...)!credit, including the multi-author formThanks [@a](...), [@b](...)!. Drop the wholeThanks ...!segment every time, regardless of whether the feature is enabled.
After stripping, each entry is - <body text>.
Drop SDK-only and provider-internal detail. This changelog serves @moonshot-ai/kimi-code CLI and web users. Within an entry, keep only what CLI/web users can perceive, and remove sentences that document internals instead of user-visible behavior. Apply this on both the English and Chinese pages:
- Drop sentences about how the SDK maps a capability, builds model aliases, or exposes a flag through an API such as
getExperimentalFeatures()— that belongs in the SDK changelog, not here. - Drop provider / wire-format implementation mechanics (XML markers like
<tools_added>, protocol field explanations, "the wire protocol is unchanged", cache-hit mechanics) unless they are the behavior a user perceives. - Drop hook/event payload mechanics — clauses a
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sync-changelog?
Use after a release succeeds, when maintainers need to sync apps/kimi-code/CHANGELOG.md into docs/en/release-notes/changelog.md and docs/zh/release-notes/changelog.md, then open a PR on a dedicated branch.
Как установить скилл sync-changelog?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sync-changelog запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…