/spwf:changelogfrom spwf
Generates a human-readable changelog section from conventional commits. Determines the commit range automatically (since last tag, or between two tags), classifies commits into Breaking Changes / Added / Fixed / Security / Performance / Changed, and writes or proposes a new section in CHANGELOG.md following the Keep a Changelog format. Use before cutting a release, or call from the retrospective orchestrator as Part 7. Skips non-user-facing types (docs, test, chore, build, ci, refactor) by default. Called as a step by /spwf:retrospective (Part 7), which is why Claude may invoke it. Do not start it unprompted: run it standalone only when the user asks.
Ships in spwf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate a human-readable changelog section from conventional commits and write it to CHANGELOG.md.
/spwf:changelog [ref]
v1.2.0 — range from that tag to HEADv1.1.0..v1.2.0 — explicit range between two tags--all — include internal commit types (docs, test, chore, refactor, build, ci)# Last tag
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
# All tags (for context)
git tag --sort=-version:refname 2>/dev/null | head -10
# Commits since last tag (or last 30 if no tags)
if [ -n "$LAST_TAG" ]; then
git log "${LAST_TAG}..HEAD" --oneline
else
git log --oneline -30
fi
If an explicit ref was passed as $ARGUMENTS, use that instead. Announce the detected range before proceeding:
Range: v1.1.0..HEAD (47 commits)
If the range yields zero commits, report that and stop.
# Full conventional commit log with hash, date, author
git log "${RANGE}" \
--format="%H%x09%as%x09%an%x09%s%x09%b" \
--no-merges
Flags used:
--no-merges — skip merge commits (they duplicate content from the commits they merged)%H — full hash (for linking)%as — author date (short YYYY-MM-DD)%an — author name%s — subject line (the conventional commit line)%b — body (checked for BREAKING CHANGE: footer)Also capture any commits with BREAKING CHANGE in the body:
git log "${RANGE}" --no-merges --grep="BREAKING CHANGE" --format="%H%x09%s%x09%b"
<type>[optional scope]: <description> [optional #issue]
[optional body]
[optional footer: BREAKING CHANGE: <detail>]
Breaking change markers: ! suffix on type (feat!:, fix!:) OR BREAKING CHANGE: in the footer.
| Commit type | Changelog section | Include by default |
|---|---|---|
feat | Added | Yes |
fix | Fixed | Yes |
security | Security | Yes |
perf | Performance | Yes |
BREAKING CHANGE / ! | Breaking Changes | Yes — always first |
refactor | Changed | Only with --all |
docs | — | Skipped |
test | — | Skipped |
chore | — | Skipped |
build | — | Skipped |
ci | — | Skipped |
type, optional scope, and description from the subject using the pattern: ^(\w+)(\(\w[\w/-]*\))?(!)?:\s+(.+)$feat(auth): → auth: description(#123), fixes #456, (!42), closes !42) from the description for the main line; convert to a link if a forge remote is detectable per _shared/forge-dispatch.md (GitHub: #N → /issues/N; GitLab: !N → /-/merge_requests/N, #N → /-/issues/N).! in the type: feat!: or fix!:BREAKING CHANGE: line in the commit bodyIf two or more commits describe the same logical change (common when a branch was not squash-merged), surface both hashes but suggest collapsing to a single entry. Do not silently deduplicate — the user should decide.
# Proposed version
NEXT_VERSION="${ARGUMENTS:-Unreleased}"
# Today's date
RELEASE_DATE=$(date -u +%Y-%m-%d)
If no version argument was given, use [Unreleased]. If the user passed a version like v1.2.0, use that as the heading.
Check for an existing CHANGELOG.md:
[ -f CHANGELOG.md ] && head -20 CHANGELOG.md || echo "CHANGELOG.md not found — will create"
Use Keep a Changelog format (keepachangelog.com):
## [1.2.0] — 2026-05-05
### Breaking Changes
- **auth**: JWT tokens now expire after 1 hour — update clients to handle 401 and refresh (#123)
### Added
- **dashboard**: Multi-language support for all labels (#145)
- Export to CSV from the reports page (#138)
### Fixed
- Pagination resets to page 1 when a filter changes (#142)
- Memory leak in WebSocket reconnection loop (#139)
### Security
- Upgraded axios to 1.7.4 (CVE-2021-3749) (#147)
### Performance
- Avatar images now served from CDN with 30-day cache headers (#136)
- **scope**: descriptionfeat:, fix:) in the entry text — the section heading carries that meaning.### Other section at the end for the user to review and reclassify manually.# Changelog
All notable changes to this project will be documented in this file.
This project follows [Keep a Changelog](https://keepachangelog.com/) and [Semantic Versioning](https://semver.org/).
## [Unreleased]
## [1.2.0] — 2026-05-05
...
When the file already exists, prepend the new section immediately after the ## [Unreleased] heading (or after the # Changelog header if no Unreleased section exists). Do not overwrite previous sections.
Present the draft changelog section to the user before writing:
## Draft changelog — v1.2.0 (47 commits, 2026-04-01..HEAD)
[full formatted section here]
---
Non-conventional commits requiring manual review (N):
- abc1234: "wip stuff" — classify or skip?
- def5678: "Merge pull request #133 from feature/auth" — already captured via constituent commits
---
Write to CHANGELOG.md? (yes to apply, or give feedback)
Wait for explicit approval. On approval, prepend the section to CHANGELOG.md (creating the file if it doesn't exist). On feedback, revise and re-present.
## Changelog updated
**File**: CHANGELOG.md
**Section**: v1.2.0 — 2026-05-05
**Commits processed**: 47
**Entries written**: 12 (Breaking: 1, Added: 5, Fixed: 4, Security: 1, Performance: 1)
**Skipped**: 31 (docs: 8, test: 6, chore: 12, non-conventional: 5)
**Manual review needed**: 2 non-conventional commits listed above
Next step: tag the release
git tag -a v1.2.0 -m "Release v1.2.0"
git push origin v1.2.0
git describe --tags fails if no tags exist. The fallback is the last 30 commits. Tell the user explicitly: "No tags found — showing last 30 commits. Tag your first release after this to anchor future changelogs."[Unreleased] section. Some projects keep a running [Unreleased] section in CHANGELOG.md. If one exists, insert new entries into it rather than creating a new versioned heading. Only create a versioned heading when a version argument is explicitly passed.feat(auth/jwt): is valid. Preserve the full scope string in bold, do not truncate.BREAKING CHANGE: footer body (not the subject) often contains the migration detail. Use that body text in the changelog entry, not just the subject line.--no-merges hides squash-merge commits on some workflows. If the repo uses squash merges to main, merge commits ARE the only commits. In that case, drop --no-merges and filter manually by checking if the subject matches a conventional pattern.%as), not today's date, for each entry. Use today's date only for the section heading (the release date).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub simon-potter/spwf --plugin spwf38 skills in this plugin
/address-reviewPhase 6.5 — Address Review. Turn review feedback into action. Sources feedback from either a local report file (e.g. {branch}-review.md from /spwf:pr-review or {branch}-self-review.md from /spwf:simplify) or fetched human comments on an open PR/MR. For each item runs READ → VERIFY → EVALUATE → implement-or-push-back, in priority order (blocking → important → nit). Forbids performative agreement ("you're absolutely right"). Use after pr-review, or whenever a reviewer leaves comments./agent-optimiseCross-cutting — Audit both the project .claude/ and personal ~/.claude/ for quality issues. Covers CLAUDE.md scope and length, agent descriptions, skill frontmatter, and settings.json conflicts. Always audits both scopes. Produces a prioritised P1/P2/P3 fix list./