changelog-refreshlisted
Install: claude install-skill tony/ai-workflow-plugins
# Refresh Changelog Entries
Bring the changelog entries **this branch introduced** back in sync
with what the branch currently does. With `--commit`, the correction
lands as a **new commit stacked on top**; otherwise the edit is left
uncommitted for the user to commit, like `/changelog`. History is
never rewritten — for that, use the `changelog-recut` skill.
Hard scope rule: this command only ever edits changelog content the
branch itself added. Entries that came from the base branch — earlier
releases, or unreleased entries from other work — are read-only. If a
correction would require touching a line the branch didn't add, stop
and ask.
Additional context from user: $ARGUMENTS
---
## Phase 1: Establish scope
1. **Detect the base.** If the branch has a PR
(`gh pr view --json baseRefName`), the base is its `baseRefName` —
stack-aware. Otherwise detect trunk via
`git symbolic-ref refs/remotes/origin/HEAD` (fall back to `master`).
If currently on the base/trunk itself, report and stop.
2. **Find the changelog file** the same way `/changelog` does (scan for
`CHANGES`, `CHANGES.md`, `CHANGELOG.md`, `HISTORY.md`, `NEWS.md`,
…). No changelog changes on this branch and no changelog file →
suggest `/changelog` instead and stop.
3. **Extract the branch's changelog footprint**:
```
git diff origin/<base>...HEAD -- <changelog-file>
```
The added lines are the branch-owned entries — the only region this
command may edit. Also list the branch co