Changelog Generator
Draft and update CHANGELOG.md files for releases with git-cliff.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/changelog-ratel-ai/— the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Update per-package CHANGELOG.md files for a Ratel release. Drafts entries with git-cliff (scoped per package), lets you curate, then writes the CHANGELOGs. Handles both RC entries and GA-graduation collapse (merging X.Y.Z-rc.* sections into a single X.Y.Z section). Invoke before tagging a release.
What this skill does
/changelog
Updates a release unit's CHANGELOG.md in preparation for tagging it. Ratel releases
per unit (ADR-0008): each unit ships on its own tag (<prefix>-v*) at its own version.
The CI gate in .github/workflows/release.yml rejects any tag whose unit CHANGELOG doesn't
contain the version being released, so this skill must run before git tag.
Run it once per unit you're releasing.
Release units it touches
The units and their manifests/CHANGELOGs live in one registry —
scripts/release-units.mjs — which every release tool reads. Run node scripts/release-units.mjs --list
for the authoritative set; the current units are:
| Unit | Registry | CHANGELOG path |
|---|---|---|
core | ratel-ai-core (crates.io) | src/core/CHANGELOG.md |
sdk-ts | @ratel-ai/sdk (npm) | src/sdk/ts/CHANGELOG.md |
sdk-py | ratel-ai (PyPI) | src/sdk/python/CHANGELOG.md |
telemetry-core | ratel-ai-telemetry (crates.io) | src/telemetry/core/CHANGELOG.md |
telemetry-ts | @ratel-ai/telemetry (npm) | src/telemetry/ts/CHANGELOG.md |
telemetry-py | ratel-ai-telemetry (PyPI) | src/telemetry/python/CHANGELOG.md |
telemetry-ts-otlp | @ratel-ai/telemetry-otlp (npm) | src/telemetry/ts-otlp/CHANGELOG.md |
@ratel-ai/mcp-server lives in ratel-ai/ratel-mcp and maintains its own CHANGELOG there.
Procedure
1. Pick the unit and read its version
If the user hasn't named the unit, run node scripts/releasable.mjs — it lists which
units have commits since their last release tag. Pick the unit $UNIT being released.
Read its canonical version:
node scripts/release-units.mjs --version "$UNIT" # -> $TARGET
If the user supplies a different version explicitly, prefer that and warn them the working tree disagrees.
2. Determine the diff range
The range is from the unit's own last release tag to HEAD:
prefix=$(node scripts/release-units.mjs --tag-prefix "$UNIT")
FROM=$(git describe --tags --match "${prefix}*" --abbrev=0 2>/dev/null || true)
If $FROM is empty the unit has never shipped; the whole history is in range.
3. Generate the draft
bash .claude/skills/changelog/draft.sh --unit "$UNIT"
It emits a single ### <package-name> block for the unit, containing either
Keep-a-Changelog sections (### Added, ### Fixed, ### Changed) or the sentinel
_No user-facing changes._. (Omit --unit to draft every unit at once.) With no
<from-ref> argument the script ranges each unit from its own last tag automatically.
If draft.sh exits 127, git-cliff is missing. Tell the user how to install it (the
script's stderr already does), and stop.
4. Branch on RC vs GA
Inspect $TARGET, and edit only this unit's CHANGELOG:
-
RC (
X.Y.Z-rc.N): prepend a new section above the most recent versioned section:## [X.Y.Z-rc.N] - YYYY-MM-DD <draft content for the unit, or the sentinel>Use today's date in
YYYY-MM-DD(UTC). -
GA (no
-rcsuffix): enter GA-collapse mode:- Find every
## [X.Y.Z-rc.*]section already present that matches the sameMAJOR.MINOR.PATCHas$TARGET. - Union their bullet entries (per subsection:
### Added,### Changed,### Fixed) with the new draft entries from step 3 (commits since the last RC tag). - Deduplicate bullets within each subsection (case-insensitive, whitespace-normalised).
- Drop the
_No user-facing changes._sentinel if any real entries exist; keep it only if the unioned set is empty. - Replace all the matched RC sections with a single
## [X.Y.Z] - YYYY-MM-DDsection containing the merged content. - Leave non-matching prior versions (e.g.
## [0.1.4]) untouched.
- Find every
5. Curate with the user
Show the unit's CHANGELOG pending changes in the conversation. Ask the user to confirm or edit. Common curation moves:
- Rephrase bullets for user-facing clarity (the draft uses commit subjects verbatim).
- Drop bullets that are not user-visible (internal refactors that slipped past
cliff.toml's skip rules). - Merge duplicates that survived deduplication.
- Promote / demote between Added / Changed / Fixed if the commit prefix was wrong.
6. Write the file
Once approved, write only this unit's CHANGELOG using the Edit tool. Do not commit.
The release commit is the user's responsibility — they typically include the CHANGELOG
alongside the version bump in a single release: <unit>-vX.Y.Z commit.
If releasing more than one unit, repeat from step 1 for each.
7. Remind
Tell the user:
- The CHANGELOG is staged in the working tree (unstaged).
- Next step is the release commit +
<unit>-v<version>tag + push. - The
release.ymltag-version-checkjob verifies the unit's CHANGELOG contains the tag version; if it doesn't, the release is blocked.
Conventions
- Date format:
YYYY-MM-DDin UTC. - Subsection order:
### Added,### Changed,### Fixed,### Removed,### Deprecated,### Security. Omit empty subsections. - Sentinel:
_No user-facing changes._for a unit with no in-scope commits. - Keep
## [Unreleased]at the top — it stays empty between releases.
Why this exists
ADR 0008 (docs/adr/0008-release-engineering.md) records the per-unit tag/version split, the
CHANGELOG mechanism, and the rationale. Read it if you're unsure why something is structured
the way it is.
Related skills
Claude API Helper
anthropics
Build, debug, and optimize Claude API applications with caching and model migration support.
Documentation Co-Authoring
anthropics
Guide structured workflows for writing docs, proposals, and technical specs collaboratively.
PPTX Text Extractor
axoviq-ai
Extract text and speaker notes from PowerPoint presentations.
Memory Search
davila7
Search conversation history and recall previous discussions, decisions, and context.