---
name: "goreleaser-cross-platform-binaries"
description: "Deliver multi-platform Go binaries, Debian/RPM packages, Docker images, and Homebrew taps."
metadata:
  author: "GoReleaser"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "build cross platform binaries goreleaser"
  - "publish homebrew tap goreleaser"
  - "sign binaries cosign goreleaser"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# GoReleaser Cross-Platform Binary Releases & Homebrew

Configures GoReleaser: writing .goreleaser.yaml, cross-compiling for Linux, macOS, and Windows (amd64, arm64), generating sha256 checksums, signing with Cosign, and publishing to Homebrew tap repositories.

## When to Invoke
Invoke this skill whenever you need to:
- build cross platform binaries goreleaser
- publish homebrew tap goreleaser
- sign binaries cosign goreleaser

## Execution SOP & Rules
1. Create .goreleaser.yaml configuring builds: goos: [linux, darwin, windows] and goarch: [amd64, arm64].
2. Configure brews block defining tap repository, description, and test commands.
3. Test release locally without publishing: goreleaser release --snapshot --clean.
4. Run in CI on Git tag push events: goreleaser release --clean with GITHUB_TOKEN.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
