Ai changelog

From sammcj/agentic-coding · View interactive version

Ai changelog is an AI agent skill from the GitHub repository sammcj/agentic-coding. Set up an AI-driven changelog system in any project, code or not. Suitable for both software projects and for non-code projects. Creates a CHANGELOG.md and instructions for agents to log changes. Use when the user wants to add or improve automated changelog management, AI-friendly changelog workflow

How to use this skill

Skill file

AI-Driven Changelog

Set up a changelog system AI agents maintain during development. Two shapes, chosen by project type:

Setup workflow

  1. Detect the build system: Check for Makefile, Justfile, package.json, Cargo.toml, pyproject.toml, go.mod. Note which config files contain a "version" field.
  1. Check whether this is a software project at all. If there's no build system from step 1 and no version convention (a docs repo, writing or notes vault, content site, research or config collection), use Dated mode: date-based changelog headings, no version script, no build integration. Skip straight to references/dated.md and ignore the script/build steps below. Otherwise, detect the versioning scheme by inspecting (highest confidence first):

If signals are absent or contradictory, ask the user. Suggest SemVer for projects with established version history (existing tags, manifest versions, prior changelog entries) and CalVer for greenfield projects where automatic versioning is preferable. Each scheme has trade-offs documented in its reference file.

  1. Read the scheme reference that matches the chosen scheme. It contains the build integration recipes, CLAUDE.md snippet, GitHub Actions pattern, and scheme-specific gotchas:
  1. Ask the user about optional features (CalVer/SemVer only; skip for Dated mode):
  1. Generate or update CHANGELOG.md. For CalVer/SemVer use references/changelog-template.md; for Dated use the template in references/dated.md. If a CHANGELOG.md already exists, do NOT overwrite it; insert the HTML comment and the appropriate structure (## [Unreleased] for CalVer/SemVer, today's date heading for Dated) above existing entries.
  1. Copy scripts/version.py from this skill into the target project's scripts/ directory. Make it executable (chmod +x). _Skip in Dated mode - there is no script._
  1. Apply the scheme reference: follow the build-integration recipe from the chosen reference file. Add targets to the existing build system, or create a minimal Makefile if none exists. _Skip in Dated mode - there is no build integration._
  1. Update CLAUDE.md with the snippet from the chosen scheme reference. Insert into the project's development workflow section, or create one. In Dated mode this is the only mechanism that keeps the changelog current, so make sure the snippet lands. Add "Squash changes within the same day/version (do not add changes to changes)." Keep the snippet's what-to-log and entry-length rules intact - they are what stops agents logging trivia and writing paragraphs for simple changes.
  1. Verify:

Project detection

Indicator, then what to stamp and how to integrate:

How the script works

scripts/version.py subcommands:

Flags: --version X.Y.Z (required for SemVer; optional override for CalVer), --dry-run, --changelog-only, --no-changelog.

The script is scheme-agnostic. With no --version, it auto-computes CalVer; with --version, it stamps whatever string you give it. Validation lives in the build system, so SemVer recipes always pass --version and reject malformed input before invoking the script. See references/semver.md for why this split matters.

Run via uv run scripts/version.py stamp (stdlib only). uv supplies the Python 3.12+ its inline metadata requires.

Gotchas

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.