Skip to content
Back to skills

Release

ASecurity

Cut a release of the notes package. Use when asked to release, to bump the version, or to tag a new version.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 22, 2026
ai-agentspythongogit

Security analysis

A100/100

Scanned November 22, 2026

npx -y skills add schubergphilis/ai-training --skill release --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Release?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Release
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/schubergphilis-release-09c3fe66/badge)](https://www.skillsdirectory.com/skills/schubergphilis-release-09c3fe66)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: release
description: Cut a release of the notes package. Use when asked to release, to bump the version, or to tag a new version.
---

# Release the notes package

Use this when the user asks for a release of this package. A release is a
version bump, a changelog entry, passing tests, and a tag. Ask for the new
version if the user did not give one. Bump the last number for a fix, the
middle one for a feature.

## Before you start

Run these checks in order. If one fails, stop, and report the command, what
it printed and what the user has to do. Don't fix the repository yourself.

1. `git --version` and `python3 --version` each print a version. If one
   prints an error, that tool is missing. Name it and stop.
2. `git status --porcelain` prints nothing, or only `?? __pycache__/`.
   An error means this directory is not a git repository. Any other line
   is an uncommitted change. Say which, and stop.
3. `git describe --tags --abbrev=0` prints the tag of the previous
   release, `v` and the `__version__` in `notes.py`. If it fails, there is
   no release tag. Ask the user to tag the commit of the previous release,
   and stop. Don't work that commit out from the changelog.
4. `git log --format=%s <tag>..HEAD` prints at least one line. If it
   prints nothing, there is nothing to release. Say so and stop.

## Steps

1. Run `python3 -m unittest -q`. The last line must be `OK`. If it is
   not, stop and report the failure. Never release with a failing test.
2. In `notes.py`, change the `__version__` line to the new version.
3. In `CHANGELOG.md`, add a `## <version>` heading under the title, above
   the previous release, with one bullet per user-visible change in the
   log from check 4. Leave out a commit a user would not notice. Never
   write a bullet that no commit in that log supports.
4. Run `python3 release_check.py`. It must print `release <version>: ok`.
   If it prints a `FAIL` line, fix what the line names and run it again.
   Don't edit `release_check.py`.
5. Stage `notes.py` and `CHANGELOG.md` only, and commit with the message
   `release: <version>`. Step 1 leaves a `__pycache__` directory behind.
   Don't commit it. Then tag the commit with `git tag v<version>`.

## When a release goes wrong

Use this section only when the user asks you to undo a release, or when a
check after the tag shows that the release is wrong. Undo nothing else.

1. Run `git describe --tags`, `git log --format='%h %s' -n 3` and
   `git status --porcelain`. The newest commit must be
   `release: <version>`, `git describe --tags` must print exactly
   `v<version>`, and `git status --porcelain` must print nothing, or only
   `?? __pycache__/`. If any of them is different, stop and report what
   the three commands printed.
2. Ask the user whether the tag or the release commit has been pushed.
   Don't decide this from the remote yourself, because a colleague may
   have fetched the tag already.
3. If nothing was pushed:
   1. Delete the tag with `git tag -d v<version>`.
   2. Remove the release commit with `git reset --hard HEAD~1`. This also
      removes the version change and the changelog entry, and it drops
      uncommitted changes. Run it only after step 1 above showed that the
      release commit is the newest commit and the working tree is clean.
   3. Run `python3 release_check.py`. It must print
      `release <previous version>: ok`. If it prints a `FAIL` line, stop
      and report it. Don't edit `release_check.py`.
4. If the tag or the release commit was pushed:
   1. Don't delete the tag on the remote, don't reset, and never force a
      push. Other people may already have the tag.
   2. Fix the problem in a new commit, and release again with the
      skill's Steps section, with the last number of the version one
      higher.
   3. In the changelog entry of the new release, add the bullet
      `Replaces <version>, which <what was wrong>.`
5. Report what you undid, each command you ran, and what
   `git describe --tags` and `git status --porcelain` print now.

## Done when

`python3 release_check.py` prints `release <version>: ok`,
`git describe --tags` prints exactly `v<version>`, and
`git status --porcelain` prints nothing, or only `?? __pycache__/`.
Don't push.
Report the version, the tag and the changelog entry, with the commit
each bullet came from.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.