release-runbook
Universal release workflow: detect project type, init versioning if needed, run tests, bump version, tag, push, and create GitHub release. Works with Python, Go, Node.js, Rust, Java, .NET, Ruby, PHP, and multi-language projects.
What this skill does
# Release Runbook
A universal release workflow that adapts to any project type. Supports single-language projects (Python, Go, Node.js, Rust, Java, .NET, Ruby, PHP) and multi-language polyglot projects.
## Quick Start
```bash
# Fully automated release with specific version
~/.claude/skills/release-runbook/scripts/release.sh --version 1.2.3
# Interactive mode (prompts for version and type)
~/.claude/skills/release-runbook/scripts/release.sh --interactive
# Dry run to see what would happen
~/.claude/skills/release-runbook/scripts/release.sh --dry-run --version 1.2.3
# Just detect project type and version files
~/.claude/skills/release-runbook/scripts/detect-project.sh
# Initialize versioning for a project that lacks it
~/.claude/skills/release-runbook/scripts/init-versioning.sh --version 0.1.0
```
## Preflight Checklist
Before releasing, ensure:
- [ ] **Clean git state**: No uncommitted changes (or stash them)
- [ ] **On correct branch**: Usually `main` or `master`
- [ ] **GitHub CLI installed**: `gh` authenticated with `gh auth status`
- [ ] **Remote configured**: `git remote -v` shows the origin
- [ ] **Build tools installed**: Language-specific toolchains (python, go, node, cargo, etc.)
- [ ] **Tests passing**: Run tests manually first or let the script do it
## Workflow Steps
### 1. Detect Project
The skill automatically detects:
- **Languages**: Python, Go, Node.js, Rust, Java, .NET, Ruby, PHP
- **Version files**: `package.json`, `pyproject.toml`, `Cargo.toml`, `go.mod`, `VERSION`, etc.
- **Build system**: Makefile, npm scripts, Go build, Cargo, Maven, Gradle, etc.
- **Test commands**: pytest, go test, npm test, cargo test, etc.
- **Package managers**: pip, npm, cargo, brew, etc.
```bash
~/.claude/skills/release-runbook/scripts/detect-project.sh
```
Outputs JSON-like:
```
PROJECT_TYPE=multi
LANGUAGES=python,go
VERSION_FILES=pyproject.toml,VERSION,go.mod
TEST_COMMAND=make test
BUILD_COMMAND=make build
```
### 2. Initialize Versioning (If Needed)
If the project has no versioning:
```bash
~/.claude/skills/release-runbook/scripts/init-versioning.sh --version 0.1.0
```
This will:
- Detect the project type
- Create appropriate version file(s)
- Set up SemVer-compliant version format
- Add `--version` flag handling if missing
### 3. Bump Version
Version bumping strategies by ecosystem:
| Ecosystem | Files to Update | Method |
|-----------|----------------|--------|
| Python | `pyproject.toml`, `__version__.py`, `setup.py` | Manual or `bump2version` |
| Node.js | `package.json` | `npm version` or manual |
| Go | `VERSION` file, go.mod comment | Manual |
| Rust | `Cargo.toml` | `cargo bump` or manual |
| Java | `pom.xml`, `build.gradle` | Manual or plugin |
| .NET | `.csproj`, `Directory.Build.props` | Manual |
| Ruby | `version.rb`, `gemspec` | Manual |
| PHP | `composer.json` | Manual |
| Multi | All applicable files | Coordinated manual |
**SemVer Guidelines** (https://semver.org/):
- **MAJOR** (`1.0.0` → `2.0.0`): Incompatible API changes
- **MINOR** (`1.0.0` → `1.1.0`): New features, backward compatible
- **PATCH** (`1.0.0` → `1.0.1`): Bug fixes, backward compatible
### 4. Run Tests
The script auto-discovers and runs tests:
```bash
# Priority order:
1. Makefile `test` target
2. package.json `test` script
3. pytest (Python)
4. go test ./... (Go)
5. npm test (Node)
6. cargo test (Rust)
7. mvn test (Java)
8. dotnet test (.NET)
9. rake test (Ruby)
```
Skip tests with `--skip-tests` (not recommended).
### 5. Commit & Tag
Creates a release commit and annotated tag:
```bash
git commit -m "chore: release v1.2.3"
git tag -a v1.2.3 -m "Release v1.2.3"
```
The tag format is always `v{VERSION}`.
### 6. Push
Pushes commit and tag to remote:
```bash
git push origin main
git push origin v1.2.3
```
### 7. Build Binaries (If Applicable)
For projects that produce binary artifacts (Go, Rust, .NET, etc.):
```bash
# Build for common platforms
make build # or: go build, cargo build --release, dotnet publish
# Check output directory
ls -la dist/ bin/
```
Common binary locations by ecosystem:
- **Go**: `dist/`, `bin/`, or `build/`
- **Rust**: `target/release/`
- **Node**: `dist/` or `out/`
- **.NET**: `bin/Release/`
### 8. GitHub Release
Creates a GitHub release with binaries and auto-generated notes:
```bash
# Basic release (no binaries)
gh release create v1.2.3 \
--title "v1.2.3" \
--notes "Release notes here..."
# Release with binaries
gh release create v1.2.3 \
--title "v1.2.3" \
--notes "Release notes here..." \
dist/binary-linux-amd64 \
dist/binary-darwin-amd64 \
dist/binary-windows-amd64.exe
```
The release notes include:
- Version number
- Git commit reference
- Links to commits since last tag
- Installation instructions (if detectable)
- Binary download links (if binaries attached)
### 9. Downstream Artifacts
Updates package registries when applicable:
- **npm**: `npm publish` (if package.json has publishConfig)
- **Homebrew**: Formula update (if detected)
- **PyPI**: `twine upload` (if pyproject.toml has configured)
- **crates.io**: `cargo publish` (if Cargo.toml has configured)
## Advanced Usage
### Multi-Language Projects
For projects with multiple languages, the script:
1. Detects all language ecosystems present
2. Updates all version files in coordination
3. Runs tests for each language
4. Builds all artifacts
5. Creates a unified release tag
Example (Curator: Python + Go):
- Updates `pyproject.toml` and `VERSION` file
- Runs `pytest` and `go test`
- Builds Python wheel and Go binary
- Single GitHub release with both artifacts
### Custom Test Commands
Override auto-detected tests:
```bash
~/.claude/skills/release-runbook/scripts/release.sh \
--test-command "make test-integration" \
--version 1.2.3
```
### Release Notes Templates
Place a `.release-notes-template.md` in your project root:
```markdown
## What's Changed
* Full changelog at https://github.com/user/repo/compare/v{{OLD}}...v{{NEW}}
## Installation
\`\`\`bash
pip install mypackage=={{NEW}}
\`\`\`
```
### Signing Releases
For GPG signing:
```bash
git config --local commit.gpgsign true
git config --local tag.gpgsign true
~/.claude/skills/release-runbook/scripts/release.sh --version 1.2.3
```
## Troubleshooting
### Tests Failing
Run tests manually first to debug:
```bash
# Auto-detected test command
~/.claude/skills/release-runbook/scripts/detect-project.sh | grep TEST_COMMAND
# Run manually
pytest # or go test, npm test, etc.
```
### GitHub Release Creation Fails
Check authentication:
```bash
gh auth status
gh auth login
```
### Version File Not Detected
Manually specify or add to `project-types.md`:
```bash
~/.claude/skills/release-runbook/scripts/release.sh \
--version-file VERSION \
--version 1.2.3
```
### Multi-Language Project Issues
For complex projects, run release steps manually:
```bash
# Detect project
~/.claude/skills/release-runbook/scripts/detect-project.sh
# Bump versions manually in all files
# Run tests for each language
pytest
go test ./...
# Commit all version changes
git commit -m "chore: bump version to 1.2.3"
# Create tag
git tag v1.2.3
# Push
git push origin main && git push origin v1.2.3
# Create release
gh release create v1.2.3 --generate-notes
```
## Reference Materials
- **`references/project-types.md`**: Detailed version file patterns by ecosystem
- **`references/test-commands.md`**: Common test commands and discovery patterns
## Examples
### Python Package
```bash
$ ~/.claude/skills/release-runbook/scripts/detect-project.sh
PROJECT_TYPE=python
LANGUAGES=python
VERSION_FILES=pyproject.toml
TEST_COMMAND=pytest
BUILD_COMMAND=python -m build
$ ~/.claude/skills/release-runbook/scripts/release.sh --version 2.0.0
[✓] Detected Python project
[✓] Tests passed
[✓] Version bumped in pyproject.toml
[✓] Tagged v2.0.0
[✓] Pushed to origin
[✓] GitHub release created
```
### Go CLI Tool
```bash
$ ~/.claude/skills/release-runbook/scripts/detect-project.sh
PROJECT_TYPE=go
LANGUAGERelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.