Changelog Design
Purpose
Create structured changelog entries and migration guides that enable consumers to understand changes, assess impact, and upgrade safely. Produces versioned changelogs following Keep a Changelog format with step-by-step migration instructions for breaking changes.
Inputs
- List of changes (commits, PRs, or feature descriptions)
- Current version number
- Consumer types (library users, API consumers, internal teams)
- Previous changelog entries (for format consistency)
Process
Step 1: Categorize All Changes
Classify each change by impact:
- Breaking: Requires consumer action to upgrade — API changes, removed features, changed behavior
- Feature: New capability with no impact on existing behavior — additive APIs, new options
- Fix: Bug resolution — corrected behavior, error handling improvements
- Deprecation: Future removal warning — still works but will be removed in a future version
- Internal: No consumer impact — refactoring, dependency updates, test improvements
- Flag any change where the category is ambiguous and err toward higher impact classification
Step 2: Describe Each Change with Full Context
Write each changelog entry with:
- What changed: Precise description of the change (not the PR title — the user-facing impact)
- Why: Motivation for the change — what problem it solves or what improvement it brings
- Who is affected: Which consumers or use cases are impacted
- Before/After: For behavior changes, show what the old behavior was and what the new behavior is
- Link to relevant PR, issue, or discussion for additional context
Step 3: Write Migration Steps for Breaking Changes
For each breaking change, provide a complete migration guide:
- Step-by-step instructions: Numbered steps from old code to new code
- Before/after code examples: Show the exact code change needed (not just description)
- Automated migration: Codemod or find-and-replace pattern if applicable
- Partial migration support: Can consumers upgrade incrementally, or is it all-or-nothing?
- Testing the migration: How to verify the upgrade was successful
- Estimated effort: Time estimate for migrating (minutes, hours, or days)
Step 4: Define Version Strategy
Determine version bump based on changes:
- Major (X.0.0): Breaking changes present — any consumer code may need modification
- Minor (0.X.0): New features, no breaking changes — upgrade is safe, new capabilities available
- Patch (0.0.X): Bug fixes only — upgrade is safe, existing behavior corrected
- If multiple change categories exist, the highest impact category determines the version bump
- Consider pre-release versions (alpha, beta, rc) for high-risk changes needing early feedback
Step 5: Plan Communication
Design the release communication:
- Changelog entry: Formatted entry for CHANGELOG.md (Keep a Changelog format)
- Migration guide: Standalone document for breaking changes (linked from changelog)
- Upgrade notification: How consumers are informed — release notes, email, in-app notification
- Deprecation timeline: For deprecated features, when will they be removed? (Minimum 1 major version)
- Support period: How long will the previous version receive bug fixes?
Step 6: Validate Migration Path
Verify the upgrade experience:
- Incremental upgrade: Can consumers upgrade from any previous version, or only from N-1?
- Breaking change clusters: Are multiple breaking changes better released together or separately?
- Dependency conflicts: Does this upgrade force consumers to update other dependencies?
- Rollback safety: Can consumers downgrade if the upgrade causes issues?
- CI verification: Run consumer-perspective tests against the new version to catch missed breaking changes
Output Format
# Changelog: v[X.Y.Z]
**Release date**: [YYYY-MM-DD]
**Version bump**: [Major | Minor | Patch] — [one-line reason]
## Breaking Changes
### [Change title]
[Description of what changed and why]
**Who is affected**: [which consumers/use cases]
**Before**:
```[language]
// old code
After:
// new code
Migration steps:
- [Step 1]
- [Step 2]
- [Verify by running ...]
Features
- [Feature name]: [Description] (#PR)
Fixes
- [Fix description]: [What was wrong, what's corrected] (#PR)
Deprecations
- [Deprecated item]: Use [replacement] instead. Will be removed in v[X+1].0.0. (#PR)
Migration Guide
Prerequisites
- [Required version of dependencies]
- [Backup/snapshot recommendation]
Step-by-Step Upgrade
- Update dependency:
[package manager command]
- [Breaking change 1 migration steps with code]
- [Breaking change 2 migration steps with code]
- Run tests:
[test command]
- Verify: [smoke test or manual check]
Estimated Migration Effort
- Small projects: [time estimate]
- Large projects: [time estimate]
Communication Plan
| Channel |
Content |
Timing |
| CHANGELOG.md |
Full changelog |
On release |
| GitHub Release |
Highlights + migration link |
On release |
| [notification channel] |
Breaking change summary |
1 week before release |
## Quality Checks
- [ ] Every change is categorized (breaking, feature, fix, deprecation, internal)
- [ ] Breaking changes have before/after code examples
- [ ] Migration guide provides step-by-step instructions with verification
- [ ] Version bump follows semver correctly based on change categories
- [ ] Deprecations include replacement guidance and removal timeline
- [ ] Communication plan covers all consumer notification channels
- [ ] Migration path is validated — consumers can upgrade incrementally
- [ ] Changelog follows Keep a Changelog format consistently
## Evolution Notes
<!-- Observations appended after each use -->
1---2name: changelog-design3description: Changelog entries and migration guides for breaking changes with version strategy4---56# Changelog Design78## Purpose910Create structured changelog entries and migration guides that enable consumers to understand changes, assess impact, and upgrade safely. Produces versioned changelogs following Keep a Changelog format with step-by-step migration instructions for breaking changes.1112## Inputs1314- List of changes (commits, PRs, or feature descriptions)15- Current version number16- Consumer types (library users, API consumers, internal teams)17- Previous changelog entries (for format consistency)1819## Process2021### Step 1: Categorize All Changes2223Classify each change by impact:24- **Breaking**: Requires consumer action to upgrade — API changes, removed features, changed behavior25- **Feature**: New capability with no impact on existing behavior — additive APIs, new options26- **Fix**: Bug resolution — corrected behavior, error handling improvements27- **Deprecation**: Future removal warning — still works but will be removed in a future version28- **Internal**: No consumer impact — refactoring, dependency updates, test improvements29- Flag any change where the category is ambiguous and err toward higher impact classification3031### Step 2: Describe Each Change with Full Context3233Write each changelog entry with:34- **What changed**: Precise description of the change (not the PR title — the user-facing impact)35- **Why**: Motivation for the change — what problem it solves or what improvement it brings36- **Who is affected**: Which consumers or use cases are impacted37- **Before/After**: For behavior changes, show what the old behavior was and what the new behavior is38- Link to relevant PR, issue, or discussion for additional context3940### Step 3: Write Migration Steps for Breaking Changes4142For each breaking change, provide a complete migration guide:43- **Step-by-step instructions**: Numbered steps from old code to new code44- **Before/after code examples**: Show the exact code change needed (not just description)45- **Automated migration**: Codemod or find-and-replace pattern if applicable46- **Partial migration support**: Can consumers upgrade incrementally, or is it all-or-nothing?47- **Testing the migration**: How to verify the upgrade was successful48- **Estimated effort**: Time estimate for migrating (minutes, hours, or days)4950### Step 4: Define Version Strategy5152Determine version bump based on changes:53- **Major (X.0.0)**: Breaking changes present — any consumer code may need modification54- **Minor (0.X.0)**: New features, no breaking changes — upgrade is safe, new capabilities available55- **Patch (0.0.X)**: Bug fixes only — upgrade is safe, existing behavior corrected56- If multiple change categories exist, the highest impact category determines the version bump57- Consider pre-release versions (alpha, beta, rc) for high-risk changes needing early feedback5859### Step 5: Plan Communication6061Design the release communication:62- **Changelog entry**: Formatted entry for CHANGELOG.md (Keep a Changelog format)63- **Migration guide**: Standalone document for breaking changes (linked from changelog)64- **Upgrade notification**: How consumers are informed — release notes, email, in-app notification65- **Deprecation timeline**: For deprecated features, when will they be removed? (Minimum 1 major version)66- **Support period**: How long will the previous version receive bug fixes?6768### Step 6: Validate Migration Path6970Verify the upgrade experience:71- **Incremental upgrade**: Can consumers upgrade from any previous version, or only from N-1?72- **Breaking change clusters**: Are multiple breaking changes better released together or separately?73- **Dependency conflicts**: Does this upgrade force consumers to update other dependencies?74- **Rollback safety**: Can consumers downgrade if the upgrade causes issues?75- **CI verification**: Run consumer-perspective tests against the new version to catch missed breaking changes7677## Output Format7879```markdown80# Changelog: v[X.Y.Z]8182**Release date**: [YYYY-MM-DD]83**Version bump**: [Major | Minor | Patch] — [one-line reason]8485## Breaking Changes8687### [Change title]8889[Description of what changed and why]9091**Who is affected**: [which consumers/use cases]9293**Before**:94```[language]95// old code96```9798**After**:99```[language]100// new code101```102103**Migration steps**:1041. [Step 1]1052. [Step 2]1063. [Verify by running ...]107108---109110## Features111112- **[Feature name]**: [Description] ([#PR](link))113114## Fixes115116- **[Fix description]**: [What was wrong, what's corrected] ([#PR](link))117118## Deprecations119120- **[Deprecated item]**: Use [replacement] instead. Will be removed in v[X+1].0.0. ([#PR](link))121122---123124## Migration Guide125126### Prerequisites127- [Required version of dependencies]128- [Backup/snapshot recommendation]129130### Step-by-Step Upgrade1311321. Update dependency: `[package manager command]`1332. [Breaking change 1 migration steps with code]1343. [Breaking change 2 migration steps with code]1354. Run tests: `[test command]`1365. Verify: [smoke test or manual check]137138### Estimated Migration Effort139- **Small projects**: [time estimate]140- **Large projects**: [time estimate]141142## Communication Plan143144| Channel | Content | Timing |145|---------|---------|--------|146| CHANGELOG.md | Full changelog | On release |147| GitHub Release | Highlights + migration link | On release |148| [notification channel] | Breaking change summary | 1 week before release |149```150151## Quality Checks152153- [ ] Every change is categorized (breaking, feature, fix, deprecation, internal)154- [ ] Breaking changes have before/after code examples155- [ ] Migration guide provides step-by-step instructions with verification156- [ ] Version bump follows semver correctly based on change categories157- [ ] Deprecations include replacement guidance and removal timeline158- [ ] Communication plan covers all consumer notification channels159- [ ] Migration path is validated — consumers can upgrade incrementally160- [ ] Changelog follows Keep a Changelog format consistently161162## Evolution Notes163<!-- Observations appended after each use -->