release-setup
Set up automated cross-platform binary releases for a Go project
Skill by joewalnes
Chalk Labs
Need help deploying release-setup?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/joewalnes-release-setup
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/release-setup
What's inside
- Skill name
release-setup- Description
- Set up automated cross-platform binary releases for a Go project
- License
- MIT
- Instructions
- 223 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (1)
- SKILL.md
SKILL.md (first lines)
# Release Setup
Set up automated binary releases for a Go CLI project. Every push to main builds and publishes cross-platform binaries. No tags, no manual release steps.
## Prerequisites
Before starting, read the project to determine:
- **Binary name**: from Makefile, go.mod module path, or main package
- **GitHub owner/repo**: from `git remote get-url origin`
- **License**: from LICENSE file
- **Description**: from README.md first line or go.mod comment
Ask the user which platforms to target. Default: macOS ARM, Linux x86_64, Linux ARM. Optional: Windows x86_64.
## Steps
Work through each step, implementing immediately. Show what you're creating and why.
---
### 1. Version variable
The version string format is: `YYYY-MM-DD HH:MM <branch> <short-sha> <dev|release>`
Examples:
- Local build: `2026-04-10 14:22 main fa431a dev`
- CI release: `2026-04-10 14:22 main fa431a release`
**In the source code**, find where the version is defined. Replace any hardcoded version string with a `var` that defaults to `"dev"` and is set at build time via ldflags:
For Go:
```go
// version is set at build time via -ldflags "-X main.version=..."
var version = "dev"
```
For Rust (in build.rs + env!):
```rust
let version = option_env!("BUILD_VERSION").unwrap_or("dev");
```
**In the Makefile** (or equivalent build config), set VERSION and pass it via ldflags:
For Go:
```makefile
VERSION = $(shell date -u +'%Y-%m-%d %H:%M') $(shell git rev-parse --abbrev-ref HEAD) $(shell git rev-parse --short HEAD) dev
GOFLAGS = -trimpath -ldflags="-s -w -X 'main.version=$(VERSION)'"
```
If the project has an existing hardcoded version constant, remove it. If there's a `make release` target that manages tags, remove it.
---
### 2. GitHub Actions workflow
Create `.github/workflows/release.yml`:
```yaml
name: Release
on:
push:
branches:
- main
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build binaries
run: |
SHA=$(git rev-parse --short HEAD)
DATE=$(TZ=UTC date +'%Y-%m-%d %H:%M')
VERSION="${DATE} main ${SHA} release"
LDFLAGS="-s -w -X 'main.version=${VERSION}'"
GOOS=darwin GOARCH=arm64 go build -trimpath -ldflags="$LDFLAGS" -o dist/<BINARY>-darwin-arm64 .
GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="$LDFLAGS" -o dist/<BINARY>-linux-amd64 .
GOOS=linux GOARCH=arm64 go build -trimpath -ldflags="$LDFLAGS" -o dist/<BINARY>-linux-arm64 .
- name: Create or update release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release delete latest --yes 2>/dev/null || true
git push origin :refs/tags/latest 2>/dev/null || true
gh release create latest \
dist/<BINARY>-darwin-arm64 \
dist/<BINARY>-linux-amd64 \
dist/<BINARY>-linux-arm64 \
--title "Latest" \
--notes "Built from main at $(git rev-parse --short HEAD)" \
--latest
```
Replace `<BINARY>` with the actual binary name. If Windows is requested, add:
```yaml
GOOS=windows GOARCH=amd64 go build -trimpath -ldflags="$LDFLAGS" -o dist/<BINARY>-windows-amd64.exe .
```
and include it in the `gh release create` assets list.
Adapt the setup step for non-Go projects (e.g. `actions/setup-node`, `rustup`, etc.).
---
### 3. Homebrew formula
Check if the user has a homebrew tap repo. Look for `../homebrew-tap` or ask. If they have one, create a formula.
Create `Formula/<binary>.rb` in the tap repo:From joewalnes/skills, MIT.
More from joewalnes/skills
- 0.569score
docs
joewalnes
Plan and write user documentation — Diátaxis structure, audience first, a reader test before merge.
SkillBFreshness: B★ 3Claude Code +9 - 0.568score
request
joewalnes
Ask another project's agents for a change instead of editing their repo.
SkillBFreshness: B★ 3Claude Code +9 - 0.566score
delegate-image
joewalnes
Generate a visual — SVG via text models (Astra) for logos and diagrams, a raster panel for photos — judged by two independent models.
SkillBFreshness: B★ 3Claude Code +9 - 0.566score
slop
joewalnes
Find unchosen code — surface area growing without leverage.
SkillBFreshness: B★ 3Claude Code +9 - 0.564score
delegate-review
joewalnes
Independent code review of Claude's own work by a different model lineage (Kimi) via pi.
SkillBFreshness: B★ 3Claude Code +9 - 0.564score
fleets
joewalnes
Which go-team fleets are alive, across every project — leases, last landing, session state.
SkillBFreshness: B★ 3Claude Code +9 - 0.563score
sitrep
joewalnes
Where were we?
SkillBFreshness: B★ 3Claude Code +9 - 0.563score
project-setup
joewalnes
Walk through project setup improvements for efficient AI-assisted development
SkillBFreshness: B★ 3Claude Code +9 - 0.558score
delegate-private
joewalnes
Run a task on a local Ollama model so data never leaves the device.
SkillBFreshness: B★ 3Claude Code +9 - 0.558score
bug-bash
joewalnes
Work through a project's bug list autonomously, fixing bugs in priority order
SkillBFreshness: B★ 3Claude Code +9 - 0.525score
bug
joewalnes
Alias for /todo — add a bug to the tracker.
SkillBFreshness: B★ 3Claude Code +9 - 0.443score
import-skill
joewalnes
Discover and import Claude Code skills into this shared repo
SkillDFreshness: D★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 3
- Open issues
- 0
- Last commit (this folder)
- Apr 10, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/joewalnes/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from joewalnes
- 0.569score
docs
joewalnes
Plan and write user documentation — Diátaxis structure, audience first, a reader test before merge.
SkillBFreshness: B★ 3Claude Code +9 - 0.568score
request
joewalnes
Ask another project's agents for a change instead of editing their repo.
SkillBFreshness: B★ 3Claude Code +9 - 0.566score
slop
joewalnes
Find unchosen code — surface area growing without leverage.
SkillBFreshness: B★ 3Claude Code +9 - 0.566score
delegate-image
joewalnes
Generate a visual — SVG via text models (Astra) for logos and diagrams, a raster panel for photos — judged by two independent models.
SkillBFreshness: B★ 3Claude Code +9 - 0.564score
fleets
joewalnes
Which go-team fleets are alive, across every project — leases, last landing, session state.
SkillBFreshness: B★ 3Claude Code +9 - 0.564score
delegate-review
joewalnes
Independent code review of Claude's own work by a different model lineage (Kimi) via pi.
SkillBFreshness: B★ 3Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get release-setup running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
release-setup skill. Agent Mart. https://agentmart.dev/skills/joewalnes-release-setup (last updated 2026-10-24)