Skip to content
Back to skills

Release

ASecurity

Prepare a numbered release of the project on the trunk (the version `cardinal run release` proposes, its `CHANGELOG.md` section reread and reviewed, the release commit, the local tag), the push left to the user. Use when the user asks to release, cut or tag a version, when a milestone awaits its release, or when a session starts with `/release`.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 27, 2026
developmentgocode-reviewgit

Security analysis

A100/100

Scanned November 27, 2026

npx -y skills add Electron-libre/cardinal --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/electron-libre-release/badge)](https://www.skillsdirectory.com/skills/electron-libre-release)

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: Prepare a numbered release of the project on the trunk (the version `cardinal run release` proposes, its `CHANGELOG.md` section reread and reviewed, the release commit, the local tag), the push left to the user. Use when the user asks to release, cut or tag a version, when a milestone awaits its release, or when a session starts with `/release`.
---

# Release a version

`cardinal run release` writes the release; this skill is the order of its steps and the stops
between them. Its writes ask for a permission whatever the mode (the managed `ask` rules): never work around one.

## 1. Check where it runs

The release is prepared in the main worktree, on the trunk: the tag lands on the commit the trunk holds. Stop and tell
the user what fails when:

- the session runs in a linked worktree (the two lines of `git rev-parse --path-format=absolute --git-dir
  --git-common-dir` differ): the release is prepared by a session started in the main worktree; never enter it, nor
  redirect a command to it;
- `HEAD` is detached;
- the work tree has uncommitted changes or untracked files (`git status --porcelain` prints a line), unless they are
  only those of an interrupted `release <version>` (`CHANGELOG.md`, the `roadmap` documents and their archive, the
  files of the `release_version_command`): then go to step 4 with the version of the section it wrote.

## 2. Read the proposal

Run `cardinal run release --json` (one object on one line):

- `proposed` is `null`: nothing awaits a release (no commit since the last tag `last`, or its tag exists); say so and
  stop.
- `prepared` is `true`: the section of `proposed` is already in `CHANGELOG.md`, committed (step 1 found a clean
  tree): go to step 5.
- `CHANGELOG.md` has a section for a version above `last` other than `proposed` and its tag `v<version>` does not
  exist: a release the user numbered higher, committed and not tagged yet; go to step 5 with that version.
- Otherwise show the user one table: the version proposed, the last tag, the number of commits since it, the
  milestones it will mark released (`milestones`), plus the warnings printed on stderr.

**Stop**: the version is the user's to validate; they may pick a higher one (`release` refuses a lower one).

## 3. Write the section

On their go, run `cardinal run release <version>` with the version they validated. It writes the section of
`CHANGELOG.md`, the `Released:` lines of the milestones (and moves them to the `roadmap_archive` when one is set),
then runs the `release_version_command` when the project names one; it commits nothing.

**Stop**: give the user the link to `CHANGELOG.md` and the documents it changed to reread. Apply the edits they ask for.

## 4. Review and commit

Run `cardinal run review-target`; when it refuses the files `release` created (a first `CHANGELOG.md` or
`roadmap_archive`), mark them intent-to-add with the `git add -N` it prints and run it again. Invoke `/code-review low <target>` with the Skill tool, `<target>` the line it
prints (the commit gate refuses the commit of files no review saw). Fix the findings on the section, or say why not.
Then commit the files `release` changed, with the message `skill:commit-message` validates (in a Conventional Commits
project: `chore: release v<version>`).

## 5. Tag

Run `cardinal run release <version> --tag`: it creates the annotated tag `v<version>` on `HEAD` and prints the command
that pushes it. Report the commit, the tag and that command: never push, the push is the user's.

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 development →

Comments

Loading comments…

Newsletter

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