Skip to content
FunCoding

release

Cuts a phi release — promotes the CHANGELOG section, bumps version.go, tags vX.Y.Z, then tags each changed ext/ SDK module. Use when asked to cut a release, 发版, or tag a version.

Star
1,014
License
MIT
Last commit
Dec 1, 2026

.agents/skills/release/SKILL.md

View on GitHub

phi Release

A release is one promoted CHANGELOG section, one version bump, one binary tag, and one tag per changed ext/ module. Start from a clean main that matches origin/main.

Choose the version first: breaking config, CLI, or extension ABI → major; user-visible feature → minor; fixes only → patch; -rc1 for a preview.

1. Update CHANGELOG.md and internal/version/version.go

CHANGELOG.md — promote the ## [Unreleased] body into a new section inside <!-- Released section -->, directly above the previous newest one:

## [X.Y.Z] - YYYY-MM-DD

Leave ## [Unreleased] in place with its headings emptied. In the footer, [Unreleased] now compares from vX.Y.Z to HEAD, and [X.Y.Z]: …/releases/tag/vX.Y.Z becomes the first version link.

internal/version/version.go — var Version = "vX.Y.Z". Root go.mod's require github.com/pulseaiclub/phi/ext/go carries the same version.

Done when scripts/changelog-extract.sh vX.Y.Z prints the new section. Commit, then merge to main — the tag belongs on the merge commit, not on the release branch.

2. Tag the binary

git tag -a vX.Y.Z -m "Release vX.Y.Z"
git push origin HEAD --follow-tags

release.yml runs the tests and GoReleaser, then rewrites the release body from the extracted section. Done when the release page body matches step 1's output and the archives and checksums are attached.

3. Tag changed ext/ modules

Each module owns a tag namespace and releases independently. List what has landed since each one's last tag:

for m in ext/go ext/rust ext/ts; do
  last=$(git tag --list "$m/v*" --sort=-v:refname | head -1)
  echo "== $m (last: $last)"
  git log --oneline "$last"..HEAD -- "$m"
done

A module with nothing behind its last tag gets no tag. For the rest, bump the manifest, commit, then tag and push that module's tag alone:

ModuleManifest versionTag
ext/gonone — tag onlyext/go/vX.Y.Z
ext/rustext/rust/Cargo.tomlext/rust/vX.Y.Z
ext/tsext/ts/package.jsonext/ts/vX.Y.Z
git tag -a ext/rust/vX.Y.Z -m "Release ext/rust/vX.Y.Z"
git push origin ext/rust/vX.Y.Z

Done when every module with commits behind its last tag has a new tag equal to its manifest version. That equality is load-bearing: the publish jobs fail on a mismatch, and a version a registry has already accepted is burned, so the fix is a new version rather than a retagged one.

Similar Skills

rea-ci-tests-audit

MOmorluto/rea485k7,690 new stars in the last 7 days

rea-changelog-update

MOmorluto/rea485k7,690 new stars in the last 7 days

wizard

MAmattpocock/skills336k4,217 new stars in the last 7 days

pr

MAmattpocock/skills336k4,217 new stars in the last 7 days

triage

MAmattpocock/skills336k4,217 new stars in the last 7 days

Featured

git-guardrails-claude-code

Block dangerous git commands like push and reset --hard before they execute.

MAmattpocock/skills336k4,217 new stars in the last 7 days