write-tech-changelog
Writes or revises a repository changelog entry for a user-visible change, following the repository's existing changelog style or creating a new CHANGELOG.md with the Keep a Changelog structure.
Synopsis
User-invoked. Name this skill when you want the agent to apply it. disable-model-invocation is true.
Source file: skills/write-tech-changelog/SKILL.md.
Front matter
- name
write-tech-changelog- description
- Writes or revises a repository changelog entry for a user-visible change, following the repository's existing changelog style or creating a new CHANGELOG.md with the Keep a Changelog structure.
- disable-model-invocation
true
Full contents
---
name: write-tech-changelog
description: Writes or revises a repository changelog entry for a user-visible change, following the repository's existing changelog style or creating a new CHANGELOG.md with the Keep a Changelog structure.
disable-model-invocation: true
---
# Write a changelog entry
Read [write-tech-core](../write-tech-core/SKILL.md) first.
A changelog is a curated record for the people who use the software. It is not
a commit log, a diff summary, or a release announcement. One entry answers one
question: what changed for a reader who upgrades from the previous version?
## Choose the file first
Use the changelog the repository already has. A second changelog splits the
record and is worse than a slightly imperfect existing one.
1. Look for an existing changelog: root `CHANGELOG.md`, `CHANGELOG`,
`CHANGELOG.rst`, `docs/CHANGELOG.md`, `docs/changelog.md`, `HISTORY.md`,
`NEWS.md`, a `CHANGELOG/` directory, or a release-notes page the README or
contributing guide names.
2. If exactly one exists, use it. Match its existing structure, heading names,
group order, date format, link style, tense, and tone. Add the entry where
that file already puts unreleased work. Do not rename it, do not convert it
to the template below, and do not create a second file.
3. If several exist, follow the one the repository's contributing or release
docs name. If none is named, report the ambiguity and stop; do not pick one
silently.
4. If the file is generated (changesets, conventional commits, a release tool),
do not hand-edit it. Add the source entry in the format its generator
expects, or report that the generated file needs a different workflow.
5. If no changelog exists, create root `CHANGELOG.md` with the fixed structure
below.
The template is a starting point for a repository that has no changelog. An
existing file's style wins, even when it is flatter, older, or less strict
than this skill. Preserve it.
## Decide whether the change belongs
Record a change only when a person using the released software can observe it:
new behaviour, changed behaviour, a deprecation, a removal, a fix, or a
security fix. Take the fact from the diff, tests, documentation, or release
notes. A commit title is a lead, not a finished entry.
| Observed change | Group |
| --- | --- |
| New capability the reader can use | `Added` |
| Existing behaviour that now works differently | `Changed` |
| Behaviour that still works but will be removed later | `Deprecated` |
| Capability that no longer exists | `Removed` |
| Incorrect behaviour that now behaves correctly | `Fixed` |
| Vulnerability or exposure that is closed | `Security` |
Omit changes with no reader-visible effect: internal refactors, test-only and
CI-only changes, formatting, comment edits, and development-only dependency
bumps. A dependency bump belongs only when it changes behaviour, supported
runtimes, or security, and then it is described by that effect.
Do not record work that was reverted before a release. Do not record code that
only ever existed on an unreleased branch and then disappeared; there is no
difference for the reader to upgrade across.
Deprecation is not removal. `Deprecated` keeps the behaviour and says when it
will go. `Removed` says it is gone now. A breaking removal also needs a
`Migration` block, described below.
## New changelog: fixed structure
Use this layout only when the repository has no changelog. If one exists, stop
reading this section and follow that file's style instead. For a new file, the
blank lines are part of the shape.
```markdown
# Changelog
All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added
- <One past-tense sentence naming the reader-visible effect.>
## [x.y.z] - YYYY-MM-DD
### Added
- <One past-tense sentence naming the reader-visible effect.>
### Changed
- <One past-tense sentence naming the reader-visible effect.>
### Migration
- <What the reader must do, and what happens if they do not.>
### Deprecated
- <What still works, and the version that will remove it.>
### Removed
- <What no longer works, and what replaces it.>
### Fixed
- <The incorrect behaviour and the corrected result.>
### Security
- <The affected surface and the exposure that is closed.>
[Unreleased]: <repository-url>/-/compare/<latest-tag>...HEAD
[x.y.z]: <repository-url>/-/compare/<previous-tag>...<tag>
```
Rules for a new file:
- `# Changelog` is the first line.
- The intro is one line and names both Keep a Changelog and Semantic
Versioning. Keep a repository-specific intro only when it already names both.
- `## [Unreleased]` is always present, directly after the intro. Leave it
without groups when nothing is unreleased.
- Released sections are newest first by semantic version, not by the order the
tags were pushed.
- A released heading is exactly `## [x.y.z] - YYYY-MM-DD`, with no `v` prefix
and an ISO 8601 calendar date. Add ` [YANKED]` only when the release was
withdrawn.
- Under each version, use only these groups, in this order: `Added`,
`Changed`, `Migration`, `Deprecated`, `Removed`, `Fixed`, `Security`.
Delete a group with no entries.
- When an entry needs a group that is not there yet, create the group in its
fixed position.
- `Migration` appears only for a breaking change, immediately after `Changed`.
When there is no `Changed` group, it is the first group in that version.
- Do not add other headings, prose between groups, tables, or nested lists.
## Write one bullet per change
Each change bullet is one line, starts with the past-tense verb for its group,
names the reader-visible result, and ends with a period. A `Migration` bullet
is the exception: it states the required action in the imperative, because it
tells the reader what to do rather than what changed.
```markdown
- Added `acorn sync --dry-run`, which lists the files a sync would write without changing the destination.
- Changed the default sync concurrency to the number of available CPU cores.
- Fixed `acorn login` rejecting tokens that contain a `+` character.
```
- Merge related commits into one bullet. A feature delivered over five commits
is one `Added` entry, not five.
- Name what the reader can now do, see, or no longer do. "Added timeouts to
`acorn sync`" is weak; "Added a `--timeout` flag that stops a sync after the
given number of seconds" gives the effect.
- Keep product and interface nouns exact: command names, flag names, option
keys, file formats, and error text. A name that appears in the user interface
is allowed in the bullet. An internal function, class, table, or source path
is not.
- Do not include commit hashes, merge-request numbers, file paths, or a list of
changed files. The changelog is not a pointer to the diff.
- Do not promote the change, estimate severity, or describe the implementation.
State the difference, not the effort.
- A `Security` entry names the affected surface and the exposure that is
closed. Link an advisory only when the URL exists and you opened it. Do not
publish exploit steps that the advisory withholds.
- A `Migration` bullet tells the reader what to do now. The breaking change
still appears under `Changed` or `Removed`; `Migration` is the instruction,
not a second list of changes.
## Version, date, and links
For a new changelog, use the rules in this section. For an existing changelog,
follow its version, date, and link conventions even when they differ from the
example.
Do not invent a version or a date. Leave the work under `## [Unreleased]`
unless the release process supplies the exact version and release date. When
it does, add the released heading above the older versions, move the bullets
into it, and leave `Unreleased` empty.
Keep released sections stable once published. Correct an error when the text
is wrong, but do not add a change that shipped in an earlier version.
Every heading label needs a link definition at the bottom of the file, in the
same order as the headings:
```markdown
[Unreleased]: https://gitlab.example.com/acme/acorn/-/compare/v2.0.0...HEAD
[2.0.0]: https://gitlab.example.com/acme/acorn/-/compare/v1.4.0...v2.0.0
[1.4.0]: https://gitlab.example.com/acme/acorn/-/tags/v1.4.0
```
- Use the repository's real tag names in URLs, including a `v` prefix when the
tags have one. The heading never carries the prefix; the URL does.
- Compare from the previous release to the current tag. Link the oldest
release to its tag.
- Until the first tag exists, point `[Unreleased]` at the repository's commits
page for the default branch. Replace it with a compare URL at the first
release.
- On GitHub, drop the `/-/` segment: `/compare/<a>...<b>` and
`/releases/tag/<tag>`. Follow the host the repository actually uses.
- Open the URLs, or report that you did not. Never write that links were
checked when only the Markdown was written.
## Worked example (new changelog)
This example shows the fixed structure for a repository that had no changelog.
It is not a target for an existing file.
```markdown
# Changelog
All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added
- Added `acorn sync --dry-run`, which lists the files a sync would write without changing the destination.
### Deprecated
- Deprecated `acorn login --token` in favour of the interactive login, which stores the credential outside the shell history. `--token` will be removed in 3.0.0.
### Fixed
- Fixed a crash when a sync source path ended with a trailing slash.
## [2.0.0] - 2026-09-18
### Changed
- Changed `acorn sync` to stop and list untracked destination files instead of overwriting them. Pass `--force` to overwrite.
### Migration
- Add `--force` to scripts that sync into a directory containing files Acorn did not create, or remove those files before the first sync. Without either, the sync exits with status 3.
### Removed
- Removed the `acorn publish --legacy` flag. Use `acorn publish` instead.
### Fixed
- Fixed `acorn status` reporting a stale remote after a failed sync.
### Security
- Fixed a path traversal in `acorn sync` that allowed an archive entry to write outside the destination directory.
## [1.4.0] - 2026-08-27
### Added
- Added support for `.acornignore` files, so generated directories can stay out of a sync.
### Changed
- Changed the default sync concurrency from four workers to the number of available CPU cores.
### Fixed
- Fixed `acorn login` rejecting tokens that contain a `+` character.
[Unreleased]: https://gitlab.example.com/acme/acorn/-/compare/v2.0.0...HEAD
[2.0.0]: https://gitlab.example.com/acme/acorn/-/compare/v1.4.0...v2.0.0
[1.4.0]: https://gitlab.example.com/acme/acorn/-/tags/v1.4.0
```
## Before handoff
- [ ] If the repository already had a changelog, the entry is in that file and
its structure, headings, dates, links, tense, and tone are preserved. It
was not renamed, converted to this template, or duplicated.
- [ ] If no changelog existed, the new file is the repository-root
`CHANGELOG.md` with the fixed structure above.
- [ ] The entry is under the file's unreleased/next-release area, or in the
place its existing pattern uses for incoming changes.
- [ ] Every change bullet is one line, names a user-visible effect, and ends
with a period (or matches the file's existing bullet convention). Every
`Migration` bullet states the required action.
- [ ] No bullet contains a commit hash, merge-request number, file path,
internal symbol, or implementation narration.
- [ ] For a new file, groups follow the fixed order, empty groups are deleted,
and `Migration` appears only for a breaking change.
- [ ] No version or date was invented. Released work came from the release
process; everything else stayed under `Unreleased` or the file's
equivalent.
- [ ] Link definitions, when the file uses them, follow its existing style and
the repository's real tags.
- [ ] Any check you report, including a link check, was actually run.
Return only the changelog file or the edited section unless the user asks for
commentary.
For the research behind these rules, read [SOURCES.md](SOURCES.md).