This skill generates Keep a Changelog style entries by analyzing commits since last entry and categorizing changes for a user-friendly release note.
npx playbooks add skill petekp/agent-skills --skill docs-changelog
Write a new changelog entry by reviewing commits since the last documented entry, categorizing changes, and appending a well-written entry in Keep a Changelog format.
Search for the changelog in common locations:
CHANGELOG.md
changelog.md
docs/changelog.md
docs/CHANGELOG.md
src/pages/changelog.md
src/content/changelog.mdx
content/changelog.md
Use glob with patterns like /changelog.{md,mdx} and /CHANGELOG.{md,mdx} if not found in standard locations. If multiple candidates exist, ask the user which one to use.
Read the changelog file and extract the most recent version header. The header format is:
## [X.Y.Z] - YYYY-MM-DD
Extract:
1.2.0) — for determining the next version2025-01-15) — for scoping the git logIf the changelog is empty or has only an [Unreleased] header, use the repo's earliest tag or first commit as the boundary.
Run:
git log --oneline --no-merges --after="YYYY-MM-DD" HEAD
Where YYYY-MM-DD is the date from the last changelog entry. Also check tags:
git tag -l --sort=-creatordate | head -5
If there's a tag newer than the last changelog entry, use that as the new version number. Otherwise, ask the user what version this entry should be.
Review each commit and assign it to one Keep a Changelog category:
| Category | What belongs here |
|---|---|
| Added | New features, new pages, new API endpoints |
| Changed | Updates to existing functionality, behavior changes, dependency updates |
| Deprecated | Features marked for future removal |
| Removed | Deleted features, removed pages, dropped support |
| Fixed | Bug fixes, typo corrections, broken link repairs |
| Security | Vulnerability patches, security improvements |
Categorization rules:
Insert the new entry directly below the # Changelog header (or below ## [Unreleased] if present). Use this exact structure — omit any category section that has no items:
## [X.Y.Z] - YYYY-MM-DD
### Added
- Brief, human-readable description of what was added
### Changed
- Brief description of what changed
### Fixed
- Brief description of what was fixed
Writing rules:
Fixed broken link on [Getting Started](/docs/getting-started) pageAfter writing the entry:
[1.3.0]: https://github.com/org/repo/compare/v1.2.0...v1.3.0)Present the new entry to the user for review before considering the task complete.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.