Automate changelog and release notes with Claude Code (2026 tutorial)
Tutorial · Intermediate

Automate changelog and release notes with Claude Code

Generate meaningful release notes from git history — with the specific pattern that produces useful notes rather than a wall of commit messages. Ships as a workflow that runs on every release.

30 minIntermediateUpdated Aug 2026

Prerequisites

  • A project that does releases (any cadence)
  • Git history with reasonable commit messages
  • A place to publish release notes (GitHub Releases, docs site, etc.)
  • Willingness to review AI-drafted notes before publishing

What you'll learn

  • Why raw commit messages aren't release notes
  • The template that turns commits into user-facing notes
  • How to categorize changes (features, fixes, breaking) automatically
  • The human review step that's essential, not optional
  • How to integrate into your existing release process

Release notes are one of those things every team says they should do better. The reality: someone runs git log v1.2.0..v1.3.0 five minutes before the release, hastily categorizes commits, and publishes something that reads like a git log with headers. Users get confused about what actually changed.

This tutorial builds a workflow that produces useful release notes — categorized, user-facing language, breaking-changes flagged, with a human review step. Not "AI replaces release notes writer" but "AI drafts, human polishes and ships." Total time per release: 15 minutes instead of an hour.

1
Understand what release notes should be (vs what they usually are)

A release note is not "what commits happened." It's "what changed for users, and what they need to know."

The difference:

Bad (raw commit style):

- refactor(auth): extract token validation
- fix(auth): handle expired tokens correctly
- feat: add rate limit config
- chore: bump lodash to 4.17.21

Good (user-facing style):

## New

- **Configurable rate limiting.** You can now set per-endpoint rate 
  limits in `config.yaml`. See docs/rate-limiting.md for details.

## Fixed

- **Expired auth tokens.** Sessions with expired tokens now redirect 
  to login instead of showing a cryptic error. (Fixes #892)

## Behind the scenes

- Internal auth refactoring for maintainability. No user-visible impact.

## Dependencies

- lodash upgraded to 4.17.21 (security patch)

The good version is what users need. It categorizes by user impact, uses user-facing language, includes links to more info. A commit-log-style release note is technically true but practically useless for the people reading it.

The transformation

The workflow's job is turning raw commits into user-facing notes. This transformation requires understanding what each change means to users — some commits get bundled together, some get elevated, some get dropped from the notes entirely.

2
Design the release-notes subagent
.claude/agents/release-notes-drafter.md
---
description: Draft release notes from a git commit range
model: claude-sonnet-4-6
allowed-tools:
  - Read
  - Bash(git:*)
---

# Release Notes Drafter

You draft release notes for a commit range. Your output is a first 
draft for human review — never a final version.

## Process

1. Get the commit range from the invocation (e.g., v1.2.0..HEAD)
2. For each commit, understand:
   - What area of the code changed
   - Whether the change is user-visible
   - Whether it's a breaking change
   - Whether it fixes a bug or adds a feature
3. Group related commits together (e.g., multiple commits on the same feature)
4. Categorize into sections
5. Write user-facing descriptions

## Sections (in order)

### Breaking changes ⚠️
For each: what changed, migration path, why we did it.

### New features
User-facing new capability. Describe what the user can now do.

### Fixed
User-facing bug fixes. Describe what was broken and how the user 
would notice the fix.

### Deprecated
Things that still work but are on their way out. Include the timeline 
for removal.

### Security
Security fixes (even if minor).

### Behind the scenes
Refactoring, internal cleanup — brief mention, no detail needed.

### Dependencies
Version bumps of notable dependencies.

## What to bundle vs separate

- Multiple commits on one feature → one bullet
- Multiple related fixes → one bullet if same root cause, separate 
  if different causes
- Refactoring commits → group into "Behind the scenes"

## What NOT to include

- Purely internal renaming
- Test-only changes
- Documentation-only changes (unless significant)
- CI/build config tweaks
- Commit-message-style content ("fixes commit abc123")

## What to flag for human attention

- Any change you're unsure how to describe → mark as `[HUMAN: describe]`
- Any breaking change → mark clearly for human verification
- Any change with unclear intent → note it, don't guess
- Dependencies you're not sure are user-visible → flag

## Output format

Standard markdown for a release notes section. Include:

- Version number
- Release date
- Sections as above
- `[HUMAN: X]` markers where human review is needed

Notice the [HUMAN: ...] pattern. This is essential — the subagent explicitly flags what needs human review rather than fabricating confidence. Same pattern as the postmortem drafter.

3
Wire up the release-notes command
.claude/commands/release-notes.md
---
description: Generate release notes for a version range
allowed-tools:
  - Read
  - Write
  - Bash(git:*)
---

# /release-notes $FROM..$TO

Generate draft release notes for the commit range.

## Process

1. Verify the commit range is valid
2. If $TO is omitted, use HEAD
3. If $FROM is omitted, find the previous tag automatically
4. Invoke @release-notes-drafter with the range
5. Save draft to `RELEASE_NOTES_DRAFT.md`
6. Display to user with count of [HUMAN: ...] items needing attention
7. Suggest next step: open in editor, review flagged items, publish

## Example invocations

- `/release-notes v1.2.0..HEAD` — since last release to current
- `/release-notes v1.1.0..v1.2.0` — for a completed release
- `/release-notes` — auto-detect from last tag to HEAD

Now the workflow is: run /release-notes, get a draft, address the [HUMAN: ...] flags, polish, publish. Total time about 15 minutes vs the hour it takes to write from scratch.

4
The essential human review step

AI-generated release notes never ship as-is. Human review isn't optional; it's the safety net that prevents user confusion.

The review takes 10-15 minutes and checks:

  1. Address every [HUMAN: ...] flag. These are the parts the subagent flagged as uncertain. Answer or expand each.
  2. Check breaking changes especially carefully. Wrong labeling here damages user trust. If in doubt, mark as breaking.
  3. Verify links. The draft may include links to issues, docs, migration guides. Make sure they resolve.
  4. Add context the AI missed. "This fixes the issue @alice reported last week" — kind of context that requires knowing your team.
  5. Cut what doesn't add value. Especially in "Behind the scenes" — if there's nothing worth mentioning, delete the section.
5
Integrate into your release process

Once the workflow is working, wire it into your release process. Two integration patterns:

Pattern 1: Manual step in checklist. Add "run /release-notes and review draft" to your release checklist. Simple, no automation, works fine for small teams.

Pattern 2: CI action. Auto-run on release tag creation, save draft to PR. Reviewer approves and publishes.

.github/workflows/draft-release-notes.yml
name: Draft release notes on tag
on:
  push:
    tags:
      - 'v*'

jobs:
  draft:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      
      - name: Find previous tag
        id: prev
        run: |
          PREV=$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))
          echo "prev_tag=$PREV" >> $GITHUB_OUTPUT
      
      - name: Generate release notes
        run: |
          cctk run release-notes ${{ steps.prev.outputs.prev_tag }}..${{ github.ref_name }}
        env:
          ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
      
      - name: Create draft release
        uses: softprops/action-gh-release@v2
        with:
          body_path: RELEASE_NOTES_DRAFT.md
          draft: true
          tag_name: ${{ github.ref_name }}

This creates a draft GitHub release. A team member reviews it, addresses flags, publishes. The mechanical work is automated; the judgment stays human.

🧪 Try it now

Run /release-notes against your last two version tags — you already know what should be in there, so compare. What did the AI catch that you wrote about? What did it miss? What did it include that shouldn't have been there? This calibrates your expectations.

6
Iterate based on what your users need

Different products need different release-notes patterns. The subagent as configured is a starting point; iterate.

For an API used by developers: emphasize breaking changes, migration paths, deprecation timelines. Cut consumer-friendly softening.

For a consumer app: emphasize user-visible features, hide internal details entirely, use marketing-friendly language.

For an infrastructure tool: emphasize operational impact, breaking changes, security fixes. Downplay features that don't affect operators.

Update the subagent prompt based on what your specific users need. If your notes consistently need edits in a specific direction, that's a prompt tuning signal.

Recap

You built an automated release-notes workflow — a subagent that transforms commits into user-facing notes, a command that runs it, and integration into your release process.

The pattern that works: AI drafts based on commits, human reviews and adds context, both parts are essential. AI handles categorization and mechanical transformation; humans handle judgment and shipping.

This one workflow saves ~45 minutes per release. For teams doing weekly releases, that's 30+ hours per year of tedious work eliminated. Small optimization; real time.

Common gotchas

  • Draft includes internal-only changes users don't care about: The "what NOT to include" section of the prompt needs to be more explicit. Add examples of specific commit types to skip. Iterate based on what keeps appearing.
  • Breaking changes get labeled as non-breaking: Sharpen the definition. Include specific patterns that indicate breaking: API signature changes, removed features, schema changes. When uncertain, subagent should mark as breaking and let humans downgrade if wrong.
  • Notes are too terse or too verbose: Add length guidance in the prompt: "Each bullet is 1-3 sentences. Don't over-explain; users can click the linked issue for details." Or "Include enough context that users don't have to click through to understand the change." Match your product's style.
  • Commit messages are so bad the notes are useless: The root problem is commit messages, not the notes workflow. Consider adding a hook or CI check that requires conventional-commits format. Then release notes can extract structured info reliably.
  • Team stops reviewing drafts and just publishes: Bad user experience follows. Reintroduce the review step, ideally with a checklist. If reviewers are pressed for time, the AI draft should be shorter, not review-less.

Get cctk to skip the boilerplate

Everything in this tutorial is already scaffolded in cctk — commands, subagents, hooks, MCP configs. Install and customize instead of starting from scratch.

npx cctk@latest init Get cctk v1.5.2 →