# Goreleaser Setup

> Set up goreleaser for Go release automation with cross-compilation and publishing.

- Skill: `a5c-ai/goreleaser-setup` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add a5c-ai/goreleaser-setup`
- Raw SKILL.md: https://api.skillmd.com/api/skills/a5c-ai/goreleaser-setup/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: a5c-ai (https://skillmd.com/u/a5c-ai)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/a5c-ai/goreleaser-setup

---


# Goreleaser Setup

Set up goreleaser for Go release automation.

## Generated Patterns

```yaml
# .goreleaser.yaml
version: 2
builds:
  - env: [CGO_ENABLED=0]
    goos: [linux, windows, darwin]
    goarch: [amd64, arm64]
    ldflags:
      - -s -w -X main.version={{.Version}}

archives:
  - format: tar.gz
    format_overrides:
      - goos: windows
        format: zip

checksum:
  name_template: 'checksums.txt'

changelog:
  sort: asc
  filters:
    exclude: ['^docs:', '^test:', '^chore:']

brews:
  - repository:
      owner: myuser
      name: homebrew-tap
    homepage: https://github.com/myuser/myapp
    description: My CLI application
```

## Target Processes

- cli-binary-distribution
- package-manager-publishing

