Install
$ agentstack add skill-jakerains-agentskills-update-changelog ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Version Changelog
Dual-mode skill for changelog lifecycle management. Detects existing systems and adapts.
Quick Reference
| Task | Mode | Details | |------|------|---------| | First-time setup | Setup | Read [setup-workflow.md](references/setup-workflow.md) | | Update existing changelog | Update | Inline below (the hot path) | | CHANGELOG.md format | Reference | Read [changelog-format-spec.md](references/changelog-format-spec.md) | | UI components | Reference | Read [ui-component-guide.md](references/ui-component-guide.md) | | Detection algorithm | Reference | Read [detection-logic.md](references/detection-logic.md) | | Parse CHANGELOG.md → JSON | Script | Run [parse-changelog.sh](scripts/parse-changelog.sh) | | Explicit tags and GitHub Releases | Publish | Available only when the user asks to tag/publish |
Detection Phase
Run these checks BEFORE choosing a mode. All are read-only.
1. Version source
Check in order, use the first match:
package.json→ read"version"field (Node/JS projects)pyproject.toml→ readversionunder[project]or[tool.poetry]Cargo.toml→ readversionunder[package]VERSIONfile at project root (plain text)- If none found: will create during setup
2. Changelog files
Check for existing changelog data:
CHANGELOG.mdat project rootdocs/CHANGELOG.mdlib/changelog-data.tsxorlib/changelog-data.tslib/changelog-data.jsonorchangelog.json- Any file matching glob
**/changelog-data.*
3. Framework detection (for UI setup)
next.config.*orpackage.jsoncontaining"next"→ Next.jspackage.jsoncontaining"react"→ React (non-Next)package.jsoncontaining"vue"ornuxt.config.*→ Vue/Nuxtpackage.jsoncontaining"svelte"→ SvelteKit- None of the above → CLI/backend project (skip UI components)
4. Existing UI components
- Grep for
changelogincomponents/,src/components/,app/ - Check for version display patterns: grep for
getCurrentVersion,packageJson.version,APP_VERSION
Mode Selection
IF no CHANGELOG.md found AND no structured data file found:
→ SETUP MODE (read references/setup-workflow.md)
ELSE:
→ UPDATE MODE (continue below)
Setup Mode (Summary)
Read [references/setup-workflow.md](references/setup-workflow.md) for the complete setup workflow.
High-level steps:
- Create
CHANGELOG.mdat project root using Keep a Changelog format. Populate with initial entry using detected version (or1.0.0). - Create structured data file (web projects only):
lib/changelog-data.tswith typed entries. Use the template from [assets/changelog-data-template.ts](assets/changelog-data-template.ts). - Create UI components (React/Next.js only):
- Changelog modal — adapt [assets/changelog-modal.tsx](assets/changelog-modal.tsx)
- Version trigger — adapt [assets/changelog-trigger.tsx](assets/changelog-trigger.tsx)
- Changelog page route (optional)
- Wire version helper:
getCurrentVersion()reads frompackage.json. - Ask user where to place the version trigger (footer, sidebar, header, settings).
- Commit:
chore: set up changelog system (vX.Y.Z)— stage only the new files.
After setup, immediately offer to run Update Mode if there are existing changes to document.
Update Mode
This is the primary workflow. Follow every step in order.
Step 1: Read current state
# Current version
cat package.json | jq -r '.version'
# Recent commits (adjust depth as needed)
git log --oneline -20
# What's changed since last entry
git diff --stat
git status
# Branch context
git branch --show-current
Read the existing changelog file(s) to find the last documented version and its date.
If a structured data file exists (e.g., lib/changelog-data.tsx), read it to understand the entry format:
- Does it use JSX/ReactNode for
content? (e.g.,...) - Does it use markdown strings for
content? - Does it use a different structure entirely?
Store the detected format. New entries MUST match the existing format exactly.
Check branch workflow context before drafting:
- Branch: Keep ordinary changelog/version bumps on the branch that contains the code being documented. If the user explicitly asks for an official stable release, recommend
main. If the intent is unclear and writing on the current branch could be surprising, ask before writing. - Deploy coupling: Only when the user asks for an official stable release, look for
.github/workflows/,vercel.json,netlify.toml,fly.toml,render.yaml,railway.json, or package scripts that imply deploy onmain. Ifmainauto-deploys, warn during approval: "Committing this release on main may ship vX.Y.Z to production."
Do not inspect, mention, offer, or prepare git tags, pushed tags, or GitHub Releases unless the user explicitly asks to tag, publish, create a GitHub Release, or work on a prerelease track.
If the user explicitly asks for a prerelease track, inspect existing tags only to find the next alpha/beta/rc number:
git tag --list --sort=-v:refname | head -40
If the user explicitly asks to tag, push tags, publish, or create a GitHub Release, run the publish checks:
git tag --list --sort=-v:refname | head -40
git remote -v
command -v gh >/dev/null && gh auth status
For explicit publish/tag requests, detect tag style with git tag --list: use vX.Y.Z if existing tags use a v prefix, X.Y.Z if they do not, and ask/recommend vX.Y.Z if there are no tags.
Step 2: Assess scope
Analyze ALL changes since the last changelog entry. This includes:
- Commits since the last entry's date
- Any uncommitted/staged changes in the working tree
- Any populated
[Unreleased]section - Files changed, features added, bugs fixed
Categorize. Default to patch. Only escalate to minor when there is clearly a new, user-facing capability worth announcing. When torn between patch and minor, choose patch.
- Patch (x.x.+1) — the default, and most releases land here. Use for:
- Bug fixes, typo fixes, copy tweaks
- Dependency updates, config adjustments, build tooling changes
- Refactors, cleanup, internal code changes with no user-visible behavior change
- Small UI tweaks, style/layout polish, accessibility fixes
- Performance improvements that don't change behavior
- New internal helpers, small extensions of existing features
- Docs, tests, CI changes
- Minor (x.+1.0) — reserved for genuinely notable new capability. Requires ALL of:
- A new user-facing feature, page, workflow, integration, or public API surface
- Something a user would reasonably see in release notes and say "oh, that's new"
- Not just an extension or polish of an existing feature
- Examples that qualify: a brand-new page/route, a new integration with a third-party service, a new public API endpoint, a new major UI surface (modal/panel/tool) that didn't exist before
- Examples that do NOT qualify (these are patches): adding a button to an existing page, new config option, new CLI flag, new variant of an existing component, extending an existing feature, small new helper function
- Major (+1.0.0) — breaking changes, API redesigns, major rewrites. Rare. Never pick this without explicit user direction.
Tiebreaker: If the change feels "meh, it's just more of what we already do" → patch. If you find yourself justifying why it's minor → it's probably patch.
Step 3: Determine new version
Calculate the new version number based on the scope assessment. Remember: patch is the default. Only pick minor if the Step 2 criteria for minor are clearly met.
Pre-release handling:
- Stable releases are the default. Do not create
-alpha,-beta, or-rcversions unless the user asks or the current version is already a pre-release. - For feature branches, use prerelease versions when the user wants to version a track before merging to
mainwithout bumping the official stable line. - If current version is stable and the user asks for an alpha/beta/rc track, choose the next base version from the normal patch/minor/major assessment, then append the requested label and
.1. Example:1.4.2+ patch beta track →1.4.3-beta.1;1.4.2+ minor beta track →1.5.0-beta.1. - If a matching prerelease already exists for the same base and label, increment the numeric suffix:
1.5.0-beta.1→1.5.0-beta.2. - If switching labels on the same base, start the new label at
.1unless matching tags or changelog entries show a higher number:1.5.0-alpha.3→1.5.0-beta.1. - If current version is
1.2.0-rc.1and the user says it is ready for the official release, recommend finalizing to1.2.0. - For
0.xprojects, still use semver shape: patch for fixes, minor for new user-facing capability, major only by explicit direction.
Present your recommendation with rationale. If you picked minor, explicitly justify which Step 2 minor-criterion the change meets — if you can't point to one cleanly, downgrade to patch before presenting.
Current version: 1.15.7
Recommended bump: patch → 1.15.8
Reason: Bug fixes and small UI tweaks, no new user-facing capability
Or, for a minor bump:
Current version: 1.15.7
Recommended bump: minor → 1.16.0
Reason: Adds new /reports page (new user-facing surface) — qualifies as minor under Step 2 criteria
Or, for an explicit feature-branch beta track:
Current version: 1.15.7
Recommended bump: patch prerelease → 1.15.8-beta.1
Reason: User requested a beta track on the feature branch before merging to main; base bump is patch because the changes extend existing behavior
The user may override your recommendation. Accept their choice.
Step 4: Draft the changelog entry
Draft entries for ALL detected changelog targets:
A. CHANGELOG.md entry (always):
## [X.Y.Z] - Month DD, YYYY
### Added
- Add new feature description
### Changed
- Update changed behavior description
### Fixed
- Fix bug description
Use only the categories that apply: Added, Changed, Deprecated, Removed, Fixed, Security.
If CHANGELOG.md has populated [Unreleased] items, promote relevant items into the new version entry and leave a fresh empty ## [Unreleased] above it.
Add traceability only when it helps:
- Prefer issue/PR refs when available:
Fix login redirect (#142). - Use short commit refs only for hard-to-trace changes or when no PR/issue exists:
Fix migration ordering (a1b2c3d). - Do not clutter every line with hashes if the release commit already groups the work clearly.
B. Structured data file entry (if one exists):
Match the EXACT format of existing entries. Examples:
For TSX with JSX content (like LemonNotes lib/changelog-data.tsx):
{
version: "X.Y.Z",
title: "vX.Y.Z: Brief Title",
date: "Month DD, YYYY",
excerpt: "One-sentence summary.",
content: (
Section
Change description
),
},
For TS with markdown strings:
{
version: "X.Y.Z",
title: "vX.Y.Z: Brief Title",
date: "Month DD, YYYY",
excerpt: "One-sentence summary.",
content: "### Added\n- Feature description\n\n### Fixed\n- Bug fix",
},
Step 5: Present for approval
CRITICAL: This is a hard stop. Do NOT proceed without explicit user approval.
Show the user:
- Version bump:
current → proposed(with bump type) - CHANGELOG.md entry: full formatted text
- Structured data entry: full formatted entry (if applicable)
- Files to be modified: list every file that will change
- Branch/deploy context: branch note and any main auto-deploy warning, only when relevant
- Publish context: only if the user explicitly asked for tags, pushed tags, or GitHub Releases
Use this friendly approval shape:
I found changes since vX.Y.Z and recommend a patch bump to vX.Y.Z.
Branch context:
- Branch: feature/example
Proposed changelog:
## [X.Y.Z] - Month DD, YYYY
### Fixed
- Fix ...
Files I will modify:
- package.json
- CHANGELOG.md
Reply "approved" to write and commit this release, or tell me what to change.
Keep it compact. Omit sections that do not apply, like structured data when there is no structured data file. Do not include tag style, GitHub Release readiness, or publish options unless the user explicitly asked for them.
Wait for the user to explicitly approve (e.g., "looks good", "approved", "go", "yes", "do it").
If the user requests changes, revise and present again. Loop until approved.
Step 6: Write changes
After approval, execute ALL writes:
A. Bump version in version source file:
package.json: update the"version"field- Other files: update the version string in the appropriate location
B. Prepend to CHANGELOG.md:
- Add the new entry immediately after the
# Changelogheader (or after any intro text) - If
[Unreleased]exists, keep it above the new version entry and make it empty after promoting released items - Preserve all existing entries unchanged
C. Update structured data file (if exists):
- Add the new entry to the TOP of the releases array
- Match exact formatting and indentation of existing entries
- Do not modify any existing entries
Step 7: Commit
# Stage only the modified files — be explicit
git add package.json CHANGELOG.md
# Commit with version in message
git commit -m "release: vX.Y.Z — "
Include any source code files that were part of the changes being documented (i.e., if this is a "commit and push" workflow where you also wrote code, stage those files too).
Step 8: Finish or handle explicit publish request
Report what was written:
- Version bumped:
old → new - Files modified: list
- Commit hash: show it
If the user did not explicitly ask for tags, pushed tags, or a GitHub Release, stop here. Do not mention publish actions.
If the user explicitly asked for publish actions, offer only the publish actions that are actually available:
- Annotated local tag:
git tag -a -m "" - Push tag:
git push origin - GitHub Release:
gh release create --notes-file
Use the detected tag style. If there are no existing tags and the user has not chosen a style yet, ask before tagging and recommend vX.Y.Z. For prerelease versions, include the prerelease identifier in the tag, such as v1.15.8-beta.1.
For GitHub Releases, first verify the tag exists on the remote; create and push the annotated tag after approval if needed. Then write release notes from the new changelog entry to a temporary file and pass it with --notes-file. Use --notes-from-tag only when the tag message is intentionally the release notes.
Use this post-commit shape:
Release commit created: abc1234
Available publish actions:
- Create annotated local tag vX.Y.Z
- Push tag vX.Y.Z to origin
- Create GitHub Release from the changelog notes
I will not publish anything unless you explicitly approve those actions.
If some actions are unavailable, say why in the same list: Create GitHub Release: unavailable because gh is not authenticated.
Hard stop: Do not create tags, push tags, or create GitHub Releases until the user explicitly approves those publish actions after the commit.
Step 9: Done
After finishing the release commit, and after any explicitly requested and approved publish actions, report:
- Tag created/pushed, if any
- GitHub Release URL, if created
- Anything skipped because tooling/auth was unavailable
Execution Rules
These rules are non-negotiable. Follow them exactly.
Publish only on explicit request and approval
- Do NOT push commits as part of this skill
- Do NOT mention, create, or offer git tags unless the user explicitly asks for tagging/publishing
- Do NOT mention, push, or offer pushed tags unless the user explicitly asks for tagging/publishing
- Do NOT mention, create, or offe
…
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: jakerains
- Source: jakerains/AgentSkills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.