release-cut
Cut a versioned release for shipctl — bump the version, generate a changelog from conventional commits, create and push the git tag, and draft a GitHub release with cross-compiled binaries attached. Use when preparing a new release, when asked to "cut a release", or when the version needs bumping after a sprint.
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 18
- Forks
- 1
01 前言 Front Matter
- name
- release-cut
- metadata
- { "forged-by": "codex-agent", "last-used": "2026-05-30", "forged-from": "session-2026-03-04", "usage-count": "14", "forged-reason": "Ran the same 8-step release sequence manually for v0.5.0, v0.6.0, and v0.7.0 — time to encode it" }
- description
- Cut a versioned release for shipctl — bump the version, generate a changelog from conventional commits, create and push the git tag, and draft a GitHub release with cross-compiled binaries attached. Use when preparing a new release, when asked to "cut a release", or when the version needs bumping after a sprint.
02 资源文件 1
- 脚本scripts/release-cut.sh2.4 KB
03 SKILL.md 正文
Release Cut
Bump the version, generate a changelog, tag, and publish a GitHub release for shipctl.
Inputs
- Target version (semver, e.g.
1.2.0orpatch/minor/major) - Release channel (defaults to
stable;prefor release candidates) - Skip binary attach? (boolean, defaults to
false)
Steps
-
Verify the working tree is clean
git status --porcelainIf dirty, commit or stash before proceeding.
-
Run the full test suite
cargo test --workspaceAbort if any test fails.
-
Run the breaking-change audit (invoke the
breaking-change-auditskill) Confirms no accidental public-interface regressions before tagging. -
Bump the version
# For Rust: cargo set-version {version} # or edit Cargo.toml manually # For Go: # Update version constant in cmd/root.goCommit the version bump:
git commit -am "chore(release): bump version to {version}" -
Generate the changelog
scripts/release-cut.sh --changelog-only {version}Review
CHANGELOG.md— edit entries if the generated text is unclear. Commit:git commit -am "docs(changelog): {version} release notes" -
Create and push the tag
git tag -a "v{version}" -m "Release v{version}" git push origin "v{version}" -
Trigger cross-compile and attach binaries The CI matrix builds all registered target triples (see
cross-compile-matrixskill). Wait for thereleaseworkflow to complete:gh run watch --exit-status -
Draft the GitHub release
gh release create "v{version}" \ --title "v{version}" \ --notes-file CHANGELOG.md \ --draftReview the draft, then publish:
gh release edit "v{version}" --draft=false -
Announce (if applicable) Post in the team channel: title, key changes, install command:
cargo install shipctl --version {version}
Conventions
- Version tags always use the
vprefix:v1.2.0, not1.2.0 - Changelog entries follow the Keep a Changelog format (Added / Changed / Deprecated / Removed / Fixed / Security)
- Release candidates are tagged
v1.2.0-rc.1 - Binary naming:
shipctl-{version}-{target}.tar.gz - Dry-run:
scripts/release-cut.sh --dry-run {version}prints the plan without side effects
Edge Cases
- Tag already exists: Delete the local tag, investigate what was released, never force-push a tag that CI has already processed.
- Changelog is empty: Check that commits follow conventional format (
feat:,fix:, etc.); if the log is legitimately empty, write a manual entry. - Binary attach fails: Re-run
gh release upload "v{version}" dist/*.tar.gz; check that the CI artifact paths match what the release workflow uploads. - Yanked release: Use
gh release delete "v{version}"+git push origin --delete "v{version}"; never publish a replacement under the same tag.
04 同仓库更多 Skills
skillforge
Create or update a reusable agent skill. Use when you notice a repeated pattern, when a workflow should be persisted for future sessions, or when asked to forge/create/scaffold a new skill.
skillforge
Create or update a reusable agent skill. Use when you notice a repeated pattern, when a workflow should be persisted for future sessions, or when asked to forge/create/scaffold a new skill.
deploy-preview
Deploy a preview branch to the staging environment for review. Use when a feature branch is ready for visual review, when someone asks to "deploy this for review", or before opening a PR.
component-scaffold
Create a new React component with co-located test, story, and styles. Use when creating new UI components, when asked to scaffold/generate a component, or when building new pages.
bug-triage
Triage a bug report into an actionable GitHub issue with severity, reproduction steps, and assignment. Use when a bug is reported, when error logs need investigation, or when asked to file/triage an issue.
api-endpoint
Scaffold a REST API endpoint with route, controller, validation, and tests. Use when creating new API endpoints, adding resources, or when asked to build a new backend route.