Agent skill

release-cch

CCH release workflow automation. Use when asked to "release CCH", "create a release", "prepare release", "tag version", "hotfix release", or "publish CCH". Covers version management from Cargo.toml, changelog generation from conventional commits, PR creation, tagging, hotfix workflows, and GitHub Actions release monitoring.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/release-cch

Metadata

Additional technical details for this skill

project
cch
version
1.0.0
source of truth
Cargo.toml

SKILL.md

release-cch

Contents

  • Overview
  • Decision Tree
  • Phase 1: Prepare Release
  • Phase 2: Execute Release
  • Phase 3: Verify Release
  • Phase 4: Hotfix Release
  • Scripts Reference
  • References

Overview

Single Source of Truth: Version is stored in Cargo.toml (workspace root):

toml
[workspace.package]
version = "1.0.0"

Release Trigger: Pushing a tag like v1.0.0 triggers .github/workflows/release.yml

Build Targets:

Platform Target Asset
Linux x86_64 x86_64-unknown-linux-gnu cch-linux-x86_64.tar.gz
Linux ARM64 aarch64-unknown-linux-gnu cch-linux-aarch64.tar.gz
macOS Intel x86_64-apple-darwin cch-macos-x86_64.tar.gz
macOS Apple Silicon aarch64-apple-darwin cch-macos-aarch64.tar.gz
Windows x86_64-pc-windows-msvc cch-windows-x86_64.exe.zip

Repository: SpillwaveSolutions/code_agent_context_hooks

Decision Tree

What do you need?
|
+-- Starting a new release? --> Phase 1: Prepare Release
|
+-- PR merged, ready to tag? --> Phase 2: Execute Release
|
+-- Tag pushed, checking status? --> Phase 3: Verify Release
|
+-- Need to patch an existing release? --> Phase 4: Hotfix Release
|
+-- Something went wrong? --> references/troubleshooting.md

Phase 1: Prepare Release

1.1 Read Current Version

bash
# Run from repo root
.claude/skills/release-cch/scripts/read-version.sh
# Output: 1.0.0

1.2 Determine New Version

Follow semantic versioning:

  • MAJOR (X.0.0): Breaking changes
  • MINOR (x.Y.0): New features, backwards compatible
  • PATCH (x.y.Z): Bug fixes only

Update Cargo.toml (manual step):

toml
[workspace.package]
version = "1.1.0"  # <- Update this

1.3 Create Release Branch

bash
VERSION=$(.claude/skills/release-cch/scripts/read-version.sh)
git checkout -b release/v${VERSION}

1.4 Run Pre-flight Checks

bash
.claude/skills/release-cch/scripts/preflight-check.sh

This validates:

  • Clean working directory (or only release files modified)
  • All unit tests pass (cargo test)
  • All integration tests pass (task integration-test)
  • Clippy has no warnings
  • Format check passes

IMPORTANT: Integration tests are REQUIRED before any release.

1.5 Generate Changelog

bash
VERSION=$(.claude/skills/release-cch/scripts/read-version.sh)
.claude/skills/release-cch/scripts/generate-changelog.sh ${VERSION}

1.6 Commit and Push

bash
VERSION=$(.claude/skills/release-cch/scripts/read-version.sh)
git add CHANGELOG.md Cargo.toml
git commit -m "chore: prepare v${VERSION} release"
git push -u origin release/v${VERSION}

1.7 Create Release PR

bash
VERSION=$(.claude/skills/release-cch/scripts/read-version.sh)
gh pr create --title "chore: prepare v${VERSION} release" --body "..."

1.8 Wait for CI

bash
gh pr checks <PR_NUMBER> --watch

Phase 2: Execute Release

2.1 Merge the Release PR

bash
gh pr merge <PR_NUMBER> --merge --delete-branch

2.2 Sync Local Main

bash
git checkout main
git pull

2.3 Create and Push Tag

bash
VERSION=$(.claude/skills/release-cch/scripts/read-version.sh)
git tag v${VERSION}
git push origin v${VERSION}

Phase 3: Verify Release

3.1 Monitor Workflow

bash
.claude/skills/release-cch/scripts/verify-release.sh

3.2 Verify Release Assets

bash
VERSION=$(.claude/skills/release-cch/scripts/read-version.sh)
gh release view v${VERSION}

Phase 4: Hotfix Release

See hotfix-workflow.md for detailed steps.


Scripts Reference

Script Purpose Usage
read-version.sh Extract version from Cargo.toml ./scripts/read-version.sh
generate-changelog.sh Generate changelog from commits ./scripts/generate-changelog.sh [version]
preflight-check.sh Run all pre-release checks ./scripts/preflight-check.sh [--json]
verify-release.sh Monitor release workflow status ./scripts/verify-release.sh [version]

All scripts are located in .claude/skills/release-cch/scripts/.


References

  • release-workflow.md - Standard release workflow diagram
  • hotfix-workflow.md - Hotfix release workflow diagram
  • troubleshooting.md - Common issues and solutions

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results