agentleFS
SID-SURANGESID-SURANGE/cursor-team-ops/skills/core/write-changelog/SKILL.md

write-changelog

Skill0 starsChanged 4 months agoMITView on GitHub

Generate a CHANGELOG.md entry from recent commits or a PR range, following Keep-a-Changelog format. Triggered by "update changelog", "add changelog entry", "write-changelog", "what changed since last release".

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep CHANGELOG.md honest and current.

    line 9
  2. Distinctive:

    Ask the user for the new version number if it is not clear from a VERSION file.

    line 34
  3. Distinctive:

    Use past tense: "Added", "Fixed", "Removed" — not "Adds", "Fixes".

    line 72
  4. Very specific:

    If CHANGELOG.md does not exist, create it with the standard header first:

    line 97
  5. Distinctive:

    If commits don't follow Conventional Commits, infer categories from the diff or ask the user to classify ambiguous entries.

    line 104
  6. Very specific:

    Never include [Unreleased] sections — write the version and date directly.

    line 105
  7. Distinctive:

    Never infer the version number from the diff or commit messages — take it from a version file or ask the user.

    line 109

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

📋 Skill: write-changelog

Purpose

Keep CHANGELOG.md honest and current. Teams universally let changelogs rot — this skill drafts the entry from commit history so the human only needs to review and confirm, not write from scratch.

Trigger phrases

  • "update changelog"
  • "add changelog entry"
  • "write-changelog"
  • "what changed since last release"
  • "generate a changelog entry"
  • "write the changelog for this release"

Steps

1. Determine the range

# What version are we releasing?
cat VERSION   # or package.json version, pyproject.toml, etc.

# Commits since the last tag
git log $(git describe --tags --abbrev=0)..HEAD --oneline

# If no tags exist
git log --oneline -30

Ask the user for the new version number if it is not clear from a VERSION file.

2. Categorise commits

Map each commit to a Keep-a-Changelog section:

Commit typeSection
feat:Added
fix:Fixed
refactor:, perf:Changed
docs:Changed (if user-visible) or skip
Removal of a featureRemoved
BREAKING CHANGE: in bodyChanged with a ⚠️ Breaking prefix
chore:, style:, test:, ci:Skip — internal, not user-facing

Omit commits that are invisible to users (tooling, CI, test-only changes).

3. Draft the entry

## [VERSION] — YYYY-MM-DD

### Added
- Short description of new capability. (#PR or commit ref)

### Changed
- Short description of changed behaviour. (#PR or commit ref)

### Fixed
- Short description of bug fixed. (#PR or commit ref)

### Removed
- Short description of removed feature. (#PR or commit ref)

Rules:

  • Each bullet describes the user-visible effect, not the implementation detail.
  • Use past tense: "Added", "Fixed", "Removed" — not "Adds", "Fixes".
  • Include a PR or commit reference in parentheses when available.
  • Omit empty sections entirely.
  • Date format: ISO 8601 (YYYY-MM-DD).

4. Read the existing CHANGELOG.md

head -40 CHANGELOG.md    # PowerShell: Get-Content CHANGELOG.md -TotalCount 40

Confirm the existing format and insert the new entry at the top, below the # Changelog heading and above the previous release.

5. Present and confirm

Show the drafted entry in a code block. Say: "Ready to prepend this to CHANGELOG.md?" Do not write the file until the user confirms.

6. Write on confirmation

Prepend the entry to CHANGELOG.md. Do not touch any other section.

Output

A single Keep-a-Changelog section, ready to prepend to CHANGELOG.md.

Notes

  • If CHANGELOG.md does not exist, create it with the standard header first:
    # Changelog
    
    All notable changes to this project will be documented in this file.
    The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
  • If commits don't follow Conventional Commits, infer categories from the diff or ask the user to classify ambiguous entries.
  • Never include [Unreleased] sections — write the version and date directly.

Gotchas

  • git describe --tags --abbrev=0 exits non-zero when no tags exist at all — always run the --oneline -30 fallback rather than treating the error as "no commits since last release."
  • Never infer the version number from the diff or commit messages — take it from a version file or ask the user. A wrong guessed version silently corrupts the changelog's version history.
  • A commit categorized by its Conventional Commits prefix can still be user-invisible in substance (a feat: that's actually internal tooling mislabeled) — sanity-check against the diff, not just the prefix, before including it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.