agentleFS
aws-solutions-library-samplesaws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws/.claude/skills/cut-release-changelog/SKILL.md

cut-release-changelog

Skill329 starsChanged 8 days agoMIT-0View on GitHub

Use at tag time to cut the release section of CHANGELOG.md: relabel [Unreleased] to the VERSION number and append the version-pinned template URLs.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill at tag time, to turn the ## [Unreleased] heading into a numbered release section and append that release's published …

    line 8
  2. Distinctive:

    If the user asks for both in one go, do the prune, show it, then cut.

    line 27
  3. Very specific:

    No date: Every section in this file is a bare ## [x.y.z] — do not add - 2026-08-14 or any Keep-a-Changelog date suffix, even though the …

    line 60
  4. Very specific:

    Do not add a fresh empty ## [Unreleased] above it.

    line 64
  5. Distinctive:

    No block in the file carries trailing spaces.

    line 108
  6. Distinctive:

    Tagging or pushing: Do not git tag, commit, or push unless the user asks.

    line 142

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cut the release CHANGELOG section — GenAI IDP Accelerator

Use this skill at tag time, to turn the ## [Unreleased] heading into a numbered release section and append that release's published template URLs. This is the step prepare-changelog deliberately stops short of.

Trigger phrases: "label the Unreleased section to the current VERSION", "cut the release changelog", "add the Templates block for this release".

Order of operations

  1. prepare-changelog first — prune [Unreleased] to net-since-release content in three subsections. Do not cut the release section over an unpruned body.
  2. Then this skill: rename the heading, append the Templates block.
  3. Then update-solution-profile: review the solution profile against the section you just cut, add its changes.yaml entry and set reviewed_for_version. With VERSION final, make solution-profile-check stays red until that is done.

If the user asks for both in one go, do the prune, show it, then cut.

Step 1 — Read the version from VERSION

VERSION is the single source of truth. Do not infer the version from git describe, from the branch name, or from the previous section + 1.

cat VERSION                    # e.g. 0.6.4
git describe --tags --abbrev=0  # sanity check: must be the PREVIOUS release

Two checks before proceeding:

  • The version must be final, not a dev/rc build. A VERSION of 0.6.4.dev4, 0.6.4rc1, 0.6.4a1 means the release has not been stamped yet. Stop and tell the user to run make version V=0.6.4 first (that target rewrites VERSION plus the nine package version files — see the ##@ Version Management block in the Makefile). Never hand-edit VERSION as part of this skill, and never strip the suffix yourself to guess the release number.
    • Note that git status may show VERSION already modified from x.y.z.devN → x.y.z. That is the expected state at tag time; use the working-tree value.
  • The version must not already have a section. grep -n "^## \[" CHANGELOG.md — if ## [x.y.z] exists, this release was already cut. Stop and ask.

Step 2 — Rename the heading

## [Unreleased]     →     ## [0.6.4]

No date. Every section in this file is a bare ## [x.y.z] — do not add - 2026-08-14 or any Keep-a-Changelog date suffix, even though the format otherwise resembles it.

Do not add a fresh empty ## [Unreleased] above it. The next cycle's first changelog-worthy commit re-creates that heading; an empty one just accumulates.

Step 3 — Append the Templates block

Immediately after the last entry of the new section (i.e. the last ### Fixed bullet) and before the next ## [x.y.z] heading, add:

## Templates
   - us-west-2: `https://s3.us-west-2.amazonaws.com/aws-ml-blog-us-west-2/artifacts/genai-idp/idp-main_<x.y.z>.yaml`
   - us-east-1: `https://s3.us-east-1.amazonaws.com/aws-ml-blog-us-east-1/artifacts/genai-idp/idp-main_<x.y.z>.yaml`
   - eu-central-1: `https://s3.eu-central-1.amazonaws.com/aws-ml-blog-eu-central-1/artifacts/genai-idp/idp-main_<x.y.z>.yaml`
   - ca-central-1: `https://s3.ca-central-1.amazonaws.com/aws-bigdata-blog-replica-ca-central-1/artifacts/genai-idp/idp-main_<x.y.z>.yaml`

The version is written out as <x.y.z> above rather than shown on a real release, because every release through 0.6.11 has a three-region block and a four-region example carrying one of those versions would be an instance of the back-filling the warning below forbids.

Conventions to match exactly — copy the previous release's block and change the version numbers rather than retyping it. ⚠️ The first four-region cut adds a line as well: 0.6.11's block has three URLs, so copying it and editing versions alone yields three and silently drops Canada.

  • ## Templates is an h2, deliberately not nested under the release heading; that is the existing file's shape.
  • Each URL line is indented three spaces before the -.
  • Four regions only, in this order: us-west-2, us-east-1, eu-central-1, ca-central-1. The bucket name embeds the region and the host does too — a copy-paste that updates one but not the other is the classic error here. ⚠️ ca-central-1's bucket basename differs: three regions use aws-ml-blog-<region>, Canada uses aws-bigdata-blog-replica-ca-central-1. aws-ml-blog-ca-central-1 does not exist, so a Canada line written to the pattern of the three above it is a URL that never resolves. scripts/aws-release.sh is the authority for which basename goes with which region. ⚠️ Releases up to and including 0.6.11 carry three regions, because ca-central-1 was added afterwards (scripts/aws-release.sh publishes it from 0.6.12 on). Do not back-fill the older blocks: a URL for an artifact that was never published to that bucket is worse than its absence.
  • No trailing whitespace on any line — the ca-central-1 line ends at the closing backtick — then exactly one blank line before the next ## [x.y.z]. No block in the file carries trailing spaces; don't add them.
  • The filename is idp-main_<version>.yaml — the version-pinned artifact, not the idp-main.yaml floating pointer used by the README launch buttons.

Step 4 — Verify

# Exactly one section for the new version, no Unreleased left behind
grep -n "^## \[" CHANGELOG.md | head -5
# All four URLs carry the new version, and no stale one slipped in
grep -n "idp-main_$(cat VERSION).yaml" CHANGELOG.md
# No trailing whitespace crept into the new block
grep -nE " +$" CHANGELOG.md
# Only the top of the file moved
git diff --stat CHANGELOG.md
git diff CHANGELOG.md | grep -E "^@@" | tail -3

The diff must not touch any previously released section. If it does, you rewrote history — revert and redo.

What this skill does NOT do

Deliberately out of scope; mention them to the user, don't do them unasked:

  • Bumping VERSION / package versions — that is make version V=x.y.z.
  • Publishing the artifacts — python3 publish.py <bucket-basename> <prefix> <region>. The Templates URLs are a record of where the release will be / was published; writing them does not publish anything, and they 404 until the publish lands.
  • Touching README.md / docs/deployment.md. Their launch-stack buttons point at the unversioned idp-main.yaml, which always resolves to the newest release — there is no per-release edit to make there. CHANGELOG.md is the only file in the repo with version-pinned template URLs.
  • Tagging or pushing. Do not git tag, commit, or push unless the user asks.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.