[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DFDYVJ0KY3R8MMDH1Y4GZP":3,"skill-same:01M7DFDYVJ0KY3R8MMDH1Y4GZP":145},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":14,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":54,"updatedAt":55,"install":56,"resources":68},"01M7DFDYVJ0KY3R8MMDH1Y4GZP","golang-continuous-integration",null,"GitHub Actions CI\u002FCD pipeline configuration for Golang projects — workflow files for test, lint, SAST, coverage and vulnerability-scan jobs, Dependabot and Renovate config files, GoReleaser release pipelines, Docker build\u002Fpush, repository security settings, and AI-driven PR review. Use when setting up or improving Go project CI, writing or fixing `.github\u002Fworkflows\u002F*.yml`, adding a linter or security scanner as a pipeline job, wiring automated dependency-update bots, or adding quality gates. Covers wiring tools into a pipeline, not the analysis they perform: do NOT use for choosing or interpreting security findings (→ See `samber\u002Fcc-skills-golang@golang-security` skill) or for choosing, upgrading, or auditing dependency versions (→ See `samber\u002Fcc-skills-golang@golang-dependency-management` skill).","heynemann\u002Fomp-marketplace","heynemann","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F60965?v=4","01M7DFBD9ZDB2J2QE7R4AR0PES","Bernardo Heynemann","01M7DFBDAM3NXF540P210W3NYT",0,"MIT","https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: golang-continuous-integration\ndescription: \"GitHub Actions CI\u002FCD pipeline configuration for Golang projects — workflow files for test, lint, SAST, coverage and vulnerability-scan jobs, Dependabot and Renovate config files, GoReleaser release pipelines, Docker build\u002Fpush, repository security settings, and AI-driven PR review. Use when setting up or improving Go project CI, writing or fixing `.github\u002Fworkflows\u002F*.yml`, adding a linter or security scanner as a pipeline job, wiring automated dependency-update bots, or adding quality gates. Covers wiring tools into a pipeline, not the analysis they perform: do NOT use for choosing or interpreting security findings (→ See `samber\u002Fcc-skills-golang@golang-security` skill) or for choosing, upgrading, or auditing dependency versions (→ See `samber\u002Fcc-skills-golang@golang-dependency-management` skill).\"\nuser-invocable: true\nlicense: MIT\ncompatibility: Designed for Claude Code, Codex or similar harness, and for projects using Golang.\nmetadata:\n  author: samber\n  version: \"1.4.2\"\n  openclaw:\n    emoji: \"🚀\"\n    homepage: https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang\n    requires:\n      bins:\n        - go\n        - goreleaser\n        - gh\n    install:\n      - kind: brew\n        formula: goreleaser\n        bins: [goreleaser]\n      - kind: brew\n        formula: gh\n        bins: [gh]\n      - kind: npm\n        package: skills\n        bins: [skills]\nallowed-tools: Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch Bash(goreleaser:*) Bash(gh:*) AskUserQuestion\n---\n\n**Persona:** You are a Go DevOps engineer. You treat CI as a quality gate — every pipeline decision is weighed against build speed, signal reliability, and security posture.\n\n**Modes:**\n\n- **Setup** — adding CI to a project for the first time: start with the Quick Reference table, then generate workflows in this order: test → lint → security → release. Prefer the latest stable major version for each GitHub Action.\n- **Improve** — auditing or extending an existing pipeline: read current workflow files first, identify gaps against the Quick Reference table, then propose targeted additions without duplicating existing steps.\n\n**Dependencies:**\n\n- goreleaser: `go install github.com\u002Fgoreleaser\u002Fgoreleaser\u002Fv2@latest`\n- gh: `brew install gh`\n\n# Go Continuous Integration\n\nSet up production-grade CI\u002FCD pipelines for Go projects using GitHub Actions.\n\n## Action Versions\n\nThe versions in the examples below are reference versions that may be outdated. GitHub Actions release frequently — the current major version for each action (`actions\u002Fcheckout`, `actions\u002Fsetup-go`, `golangci\u002Fgolangci-lint-action`, `codecov\u002Fcodecov-action`, `goreleaser\u002Fgoreleaser-action`, etc.) may differ from what is shown here.\n\n## Quick Reference\n\n| Stage         | Tool                        | Purpose                       |\n| ------------- | --------------------------- | ----------------------------- |\n| **Test**      | `go test -race`             | Unit + race detection         |\n| **Coverage**  | `codecov\u002Fcodecov-action`    | Coverage reporting            |\n| **Lint**      | `golangci-lint`             | Comprehensive linting         |\n| **Vet**       | `go vet`                    | Built-in static analysis      |\n| **SAST**      | `gosec`, `CodeQL`, `Bearer` | Security static analysis      |\n| **Vuln scan** | `govulncheck`               | Known vulnerability detection |\n| **Docker**    | `docker\u002Fbuild-push-action`  | Multi-platform image builds   |\n| **Deps**      | Dependabot \u002F Renovate       | Automated dependency updates  |\n| **Release**   | GoReleaser                  | Automated binary releases     |\n| **AI Review** | Claude Code \u002F Copilot       | AI-powered PR review          |\n\n---\n\n## Testing\n\n`.github\u002Fworkflows\u002Ftest.yml` — see [test.yml](.\u002Fassets\u002Ftest.yml)\n\nAdapt the Go version matrix to match `go.mod`:\n\n```\ngo 1.23   → matrix: [\"1.23\", \"1.24\", \"1.25\", \"1.26\", \"1.27\", \"stable\"]\ngo 1.24   → matrix: [\"1.24\", \"1.25\", \"1.26\", \"1.27\", \"stable\"]\ngo 1.25   → matrix: [\"1.25\", \"1.26\", \"1.27\", \"stable\"]\ngo 1.26   → matrix: [\"1.26\", \"1.27\", \"stable\"]\ngo 1.27   → matrix: [\"1.27\", \"stable\"]\n```\n\nUse `fail-fast: false` so a failure on one Go version doesn't cancel the others.\n\nGo 1.27 raises the Darwin floor to macOS 13 (Ventura). `macos-latest`\u002F`macos-14`+ runners are unaffected; only pin an older `macos-12` runner if a project still needs it, and note it can no longer build with a Go 1.27 toolchain.\n\nTest flags:\n\n- `-race`: CI MUST run tests with the `-race` flag (catches data races — undefined behavior in Go)\n- `-shuffle=on`: Randomize test order to catch inter-test dependencies\n- `-coverprofile`: Generate coverage data\n- `git diff --exit-code`: Fails if `go mod tidy` changes anything\n\n### Coverage Configuration\n\nCI SHOULD enforce code coverage thresholds. Configure thresholds in `codecov.yml` at the repo root — see [codecov.yml](.\u002Fassets\u002Fcodecov.yml)\n\n---\n\n## Integration Tests\n\n`.github\u002Fworkflows\u002Fintegration.yml` — see [integration.yml](.\u002Fassets\u002Fintegration.yml)\n\nUse `-count=1` to disable test caching — cached results can hide flaky service interactions.\n\n---\n\n## Linting\n\n`golangci-lint` MUST be run in CI on every PR. `.github\u002Fworkflows\u002Flint.yml` — see [lint.yml](.\u002Fassets\u002Flint.yml)\n\n### golangci-lint Configuration\n\nCreate `.golangci.yml` at the root of the project. See the `samber\u002Fcc-skills-golang@golang-lint` skill for the recommended configuration.\n\n---\n\n## Security & SAST\n\n`.github\u002Fworkflows\u002Fsecurity.yml` — see [security.yml](.\u002Fassets\u002Fsecurity.yml)\n\nCI MUST run `govulncheck` — it only reports vulnerabilities in code paths your project actually calls, unlike generic CVE scanners.\n\n- CodeQL results appear in the repository's Security tab.\n- Bearer is good at detecting sensitive data flow issues.\n\n### CodeQL Configuration\n\nCreate `.github\u002Fcodeql\u002Fcodeql-config.yml` to use the extended security query suite — see [codeql-config.yml](.\u002Fassets\u002Fcodeql-config.yml)\n\nAvailable query suites:\n\n- **default**: Standard security queries\n- **security-extended**: Extra security queries with slightly lower precision\n- **security-and-quality**: Security queries plus maintainability and reliability checks\n\n### Container Image Scanning\n\nIf the project produces Docker images, Trivy container scanning is included in the Docker workflow — see [docker.yml](.\u002Fassets\u002Fdocker.yml)\n\n---\n\n## Dependency Management\n\n### Dependabot\n\n`.github\u002Fdependabot.yml` — see [dependabot.yml](.\u002Fassets\u002Fdependabot.yml)\n\nMinor\u002Fpatch updates are grouped into a single PR. Major updates get individual PRs since they may have breaking changes.\n\n#### Auto-Merge for Dependabot\n\n`.github\u002Fworkflows\u002Fdependabot-auto-merge.yml` — see [dependabot-auto-merge.yml](.\u002Fassets\u002Fdependabot-auto-merge.yml)\n\n> **Security warning:** This workflow requires `contents: write` and `pull-requests: write` — these are elevated permissions that allow merging PRs and modifying repository content. The `if: github.actor == 'dependabot[bot]'` guard restricts execution to Dependabot only. Do not remove this guard. Note that `github.actor` checks are not fully spoof-proof — **branch protection rules are the real safety net**. Ensure branch protection is configured (see [Repository Security Settings](#repository-security-settings)) with required status checks and required approvals so that auto-merge only succeeds after all checks pass, regardless of who triggered the workflow.\n\n### Renovate (alternative)\n\nRenovate is a more mature and configurable alternative to Dependabot. It supports automerge natively, grouping, scheduling, regex managers, and monorepo-aware updates. If Dependabot feels too limited, Renovate is the go-to choice.\n\nInstall the [Renovate GitHub App](https:\u002F\u002Fgithub.com\u002Fapps\u002Frenovate), then create `renovate.json` at the repo root — see [renovate.json](.\u002Fassets\u002Frenovate.json)\n\nKey advantages over Dependabot:\n\n- **`gomodTidy`**: Automatically runs `go mod tidy` after updates\n- **Native automerge**: No separate workflow needed\n- **Better grouping**: More flexible rules for grouping PRs\n- **Regex managers**: Can update versions in Dockerfiles, Makefiles, etc.\n- **Monorepo support**: Handles Go workspaces and multi-module repos\n\n---\n\n## Release Automation\n\nGoReleaser automates binary builds, checksums, and GitHub Releases. The configuration varies significantly depending on the project type.\n\n### Release Workflow\n\n`.github\u002Fworkflows\u002Frelease.yml` — see [release.yml](.\u002Fassets\u002Frelease.yml)\n\n> **Security warning:** This workflow requires `contents: write` to create GitHub Releases. It is restricted to tag pushes (`tags: [\"v*\"]`) so it cannot be triggered by pull requests or branch pushes. Only users with push access to the repository can create tags.\n\n### GoReleaser for CLI\u002FPrograms\n\nPrograms need cross-compiled binaries, archives, and optionally Docker images.\n\n`.goreleaser.yml` — see [goreleaser-cli.yml](.\u002Fassets\u002Fgoreleaser-cli.yml)\n\n### GoReleaser for Libraries\n\nLibraries don't produce binaries — they only need a GitHub Release with a changelog. Use a minimal config that skips the build.\n\n`.goreleaser.yml` — see [goreleaser-lib.yml](.\u002Fassets\u002Fgoreleaser-lib.yml)\n\nFor libraries, you may not even need GoReleaser — a simple GitHub Release created via the UI or `gh release create` is often sufficient.\n\n### GoReleaser for Monorepos \u002F Multi-Binary\n\nWhen a repository contains multiple commands (e.g., `cmd\u002Fapi\u002F`, `cmd\u002Fworker\u002F`).\n\n`.goreleaser.yml` — see [goreleaser-monorepo.yml](.\u002Fassets\u002Fgoreleaser-monorepo.yml)\n\n### Docker Build & Push\n\nFor projects that produce Docker images. This workflow builds multi-platform images, generates SBOM and provenance attestations, pushes to both GitHub Container Registry (GHCR) and Docker Hub, and includes Trivy container scanning.\n\n`.github\u002Fworkflows\u002Fdocker.yml` — see [docker.yml](.\u002Fassets\u002Fdocker.yml)\n\n> **Security warning:** Permissions are scoped per job: the `container-scan` job only gets `contents: read` + `security-events: write`, while the `docker` job gets `packages: write` (to push to GHCR) and `attestations: write` + `id-token: write` (for provenance\u002FSBOM signing). This ensures the scan job cannot push images even if compromised. The `push` flag is set to `false` on pull requests so untrusted code cannot publish images. The `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN` secrets must be configured in the repository secrets settings — never hardcode credentials.\n\nKey details:\n\n- **QEMU + Buildx**: Required for multi-platform builds (`linux\u002Famd64,linux\u002Farm64`). Remove platforms you don't need.\n- **`push: false` on PRs**: Images are built but never pushed on pull requests — this validates the Dockerfile without publishing untrusted code.\n- **Metadata action**: Automatically generates semver tags (`v1.2.3` → `1.2.3`, `1.2`, `1`), branch tags (`main`), and SHA tags.\n- **Provenance + SBOM**: `provenance: mode=max` and `sbom: true` generate supply chain attestations. These require `attestations: write` and `id-token: write` permissions.\n- **Dual registry**: Pushes to both GHCR (using `GITHUB_TOKEN`, no extra secret needed) and Docker Hub (requires `DOCKERHUB_USERNAME` + `DOCKERHUB_TOKEN` secrets). Remove the Docker Hub login and image line if not needed.\n- **Trivy**: Scans the built image for CRITICAL and HIGH vulnerabilities and uploads results to the Security tab.\n- Adapt the image names and registries to your project. For GHCR-only, remove the Docker Hub login step and the `docker.io\u002F` line from `images:`.\n\n---\n\n## Repository Security Settings\n\nRepository security settings (branch protection, workflow permissions, secrets, environments) form the security foundation for the CI pipeline — these are documented in [repo-security.md](.\u002Freferences\u002Frepo-security.md).\n\n---\n\n## AI-Driven Code Review\n\nAdd AI agents as PR reviewers alongside traditional static analysis. When loaded with this skill plugin, the agent applies the relevant Go skills per review area — catching architectural drift, logic bugs, missing error context, and concurrency hazards that linters cannot detect.\n\n> **Cost note:** AI review agents run concurrently per PR. For cost control, remove jobs you don't need or raise the PR trigger filter to specific branches only.\n\nEach subsection below is a generated artifact targeting one specific reviewer — the linked asset file runs on a CI runner, not the developer's local harness, so its tool names and permission flags are deliberately literal rather than capability prose.\n\n### Claude Code\n\n`.github\u002Fworkflows\u002Fai-review.yml` — see [claude-code-review.yml](.\u002Fassets\u002Fclaude-code-review.yml)\n\nThe workflow runs parallel jobs, each scoped to a set of review areas and priority level:\n\n| Job | Areas | Priority |\n| --- | --- | --- |\n| `quality` | Code style, Naming, Documentation, Design patterns | Suggestion-first |\n| `correctness` | Error handling, Code safety, Concurrency | Blocking-first |\n| `security` | Security, Dependencies | Blocking-first |\n| `quality-depth` | Tests, Performance, Observability, Modernize | Mixed |\n\nAdditional skills that may be relevant depending on the project: `golang-cli`, `golang-context`, `golang-data-structures`, `golang-database`, `golang-dependency-injection`, or any library-specific skill.\n\nThe Claude Code GitHub App integration is configured via the `\u002Finstall-github-app` command, which sets up the required API secrets.\n\n### GitHub Copilot\n\nCopy skills into your repo, then append [copilot-review-instructions.md](.\u002Fassets\u002Fcopilot-review-instructions.md) to `.github\u002Fcopilot-instructions.md`:\n\n```bash\nnpx skills add https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang --agent github-copilot --skill '*' -y --copy\nln -s .agents .copilot\n```\n\n---\n\n## Common Mistakes\n\n| Mistake | Fix |\n| --- | --- |\n| Missing `-race` in CI tests | Always use `go test -race` |\n| No `-shuffle=on` | Randomize test order to catch inter-test dependencies |\n| Caching integration test results | Use `-count=1` to disable caching |\n| `go mod tidy` not checked | Add `go mod tidy && git diff --exit-code` step |\n| Missing `fail-fast: false` | One Go version failing shouldn't cancel other jobs |\n| Not pinning action versions | GitHub Actions MUST use pinned major versions (e.g. `@vN`, not `@master`) |\n| No `permissions` block | Follow least-privilege per job |\n| Ignoring govulncheck findings | Fix or suppress with justification |\n| No AI review in CI | Add Claude Code or Copilot review — catches logic, security, and architectural issues that static analysis misses |\n\n## Related Skills\n\nSee `samber\u002Fcc-skills-golang@golang-lint`, `samber\u002Fcc-skills-golang@golang-security`, `samber\u002Fcc-skills-golang@golang-testing`, `samber\u002Fcc-skills-golang@golang-dependency-management`, `samber\u002Fcc-skills-golang@golang-modernize` skills.\n","**Persona:** You are a Go DevOps engineer. You treat CI as a quality gate — every pipeline decision is weighed against build speed, signal reliability, and security posture.\n\n**Modes:**\n\n- **Setup** — adding CI to a project for the first time: start with the Quick Reference table, then generate workflows in this order: test → lint → security → release. Prefer the latest stable major version for each GitHub Action.\n- **Improve** — auditing or extending an existing pipeline: read current workflow files first, identify gaps against the Quick Reference table, then propose targeted additions without duplicating existing steps.\n\n**Dependencies:**\n\n- goreleaser: `go install github.com\u002Fgoreleaser\u002Fgoreleaser\u002Fv2@latest`\n- gh: `brew install gh`\n\n# Go Continuous Integration\n\nSet up production-grade CI\u002FCD pipelines for Go projects using GitHub Actions.\n\n## Action Versions\n\nThe versions in the examples below are reference versions that may be outdated. GitHub Actions release frequently — the current major version for each action (`actions\u002Fcheckout`, `actions\u002Fsetup-go`, `golangci\u002Fgolangci-lint-action`, `codecov\u002Fcodecov-action`, `goreleaser\u002Fgoreleaser-action`, etc.) may differ from what is shown here.\n\n## Quick Reference\n\n| Stage         | Tool                        | Purpose                       |\n| ------------- | --------------------------- | ----------------------------- |\n| **Test**      | `go test -race`             | Unit + race detection         |\n| **Coverage**  | `codecov\u002Fcodecov-action`    | Coverage reporting            |\n| **Lint**      | `golangci-lint`             | Comprehensive linting         |\n| **Vet**       | `go vet`                    | Built-in static analysis      |\n| **SAST**      | `gosec`, `CodeQL`, `Bearer` | Security static analysis      |\n| **Vuln scan** | `govulncheck`               | Known vulnerability detection |\n| **Docker**    | `docker\u002Fbuild-push-action`  | Multi-platform image builds   |\n| **Deps**      | Dependabot \u002F Renovate       | Automated dependency updates  |\n| **Release**   | GoReleaser                  | Automated binary releases     |\n| **AI Review** | Claude Code \u002F Copilot       | AI-powered PR review          |\n\n---\n\n## Testing\n\n`.github\u002Fworkflows\u002Ftest.yml` — see [test.yml](.\u002Fassets\u002Ftest.yml)\n\nAdapt the Go version matrix to match `go.mod`:\n\n```\ngo 1.23   → matrix: [\"1.23\", \"1.24\", \"1.25\", \"1.26\", \"1.27\", \"stable\"]\ngo 1.24   → matrix: [\"1.24\", \"1.25\", \"1.26\", \"1.27\", \"stable\"]\ngo 1.25   → matrix: [\"1.25\", \"1.26\", \"1.27\", \"stable\"]\ngo 1.26   → matrix: [\"1.26\", \"1.27\", \"stable\"]\ngo 1.27   → matrix: [\"1.27\", \"stable\"]\n```\n\nUse `fail-fast: false` so a failure on one Go version doesn't cancel the others.\n\nGo 1.27 raises the Darwin floor to macOS 13 (Ventura). `macos-latest`\u002F`macos-14`+ runners are unaffected; only pin an older `macos-12` runner if a project still needs it, and note it can no longer build with a Go 1.27 toolchain.\n\nTest flags:\n\n- `-race`: CI MUST run tests with the `-race` flag (catches data races — undefined behavior in Go)\n- `-shuffle=on`: Randomize test order to catch inter-test dependencies\n- `-coverprofile`: Generate coverage data\n- `git diff --exit-code`: Fails if `go mod tidy` changes anything\n\n### Coverage Configuration\n\nCI SHOULD enforce code coverage thresholds. Configure thresholds in `codecov.yml` at the repo root — see [codecov.yml](.\u002Fassets\u002Fcodecov.yml)\n\n---\n\n## Integration Tests\n\n`.github\u002Fworkflows\u002Fintegration.yml` — see [integration.yml](.\u002Fassets\u002Fintegration.yml)\n\nUse `-count=1` to disable test caching — cached results can hide flaky service interactions.\n\n---\n\n## Linting\n\n`golangci-lint` MUST be run in CI on every PR. `.github\u002Fworkflows\u002Flint.yml` — see [lint.yml](.\u002Fassets\u002Flint.yml)\n\n### golangci-lint Configuration\n\nCreate `.golangci.yml` at the root of the project. See the `samber\u002Fcc-skills-golang@golang-lint` skill for the recommended configuration.\n\n---\n\n## Security & SAST\n\n`.github\u002Fworkflows\u002Fsecurity.yml` — see [security.yml](.\u002Fassets\u002Fsecurity.yml)\n\nCI MUST run `govulncheck` — it only reports vulnerabilities in code paths your project actually calls, unlike generic CVE scanners.\n\n- CodeQL results appear in the repository's Security tab.\n- Bearer is good at detecting sensitive data flow issues.\n\n### CodeQL Configuration\n\nCreate `.github\u002Fcodeql\u002Fcodeql-config.yml` to use the extended security query suite — see [codeql-config.yml](.\u002Fassets\u002Fcodeql-config.yml)\n\nAvailable query suites:\n\n- **default**: Standard security queries\n- **security-extended**: Extra security queries with slightly lower precision\n- **security-and-quality**: Security queries plus maintainability and reliability checks\n\n### Container Image Scanning\n\nIf the project produces Docker images, Trivy container scanning is included in the Docker workflow — see [docker.yml](.\u002Fassets\u002Fdocker.yml)\n\n---\n\n## Dependency Management\n\n### Dependabot\n\n`.github\u002Fdependabot.yml` — see [dependabot.yml](.\u002Fassets\u002Fdependabot.yml)\n\nMinor\u002Fpatch updates are grouped into a single PR. Major updates get individual PRs since they may have breaking changes.\n\n#### Auto-Merge for Dependabot\n\n`.github\u002Fworkflows\u002Fdependabot-auto-merge.yml` — see [dependabot-auto-merge.yml](.\u002Fassets\u002Fdependabot-auto-merge.yml)\n\n> **Security warning:** This workflow requires `contents: write` and `pull-requests: write` — these are elevated permissions that allow merging PRs and modifying repository content. The `if: github.actor == 'dependabot[bot]'` guard restricts execution to Dependabot only. Do not remove this guard. Note that `github.actor` checks are not fully spoof-proof — **branch protection rules are the real safety net**. Ensure branch protection is configured (see [Repository Security Settings](#repository-security-settings)) with required status checks and required approvals so that auto-merge only succeeds after all checks pass, regardless of who triggered the workflow.\n\n### Renovate (alternative)\n\nRenovate is a more mature and configurable alternative to Dependabot. It supports automerge natively, grouping, scheduling, regex managers, and monorepo-aware updates. If Dependabot feels too limited, Renovate is the go-to choice.\n\nInstall the [Renovate GitHub App](https:\u002F\u002Fgithub.com\u002Fapps\u002Frenovate), then create `renovate.json` at the repo root — see [renovate.json](.\u002Fassets\u002Frenovate.json)\n\nKey advantages over Dependabot:\n\n- **`gomodTidy`**: Automatically runs `go mod tidy` after updates\n- **Native automerge**: No separate workflow needed\n- **Better grouping**: More flexible rules for grouping PRs\n- **Regex managers**: Can update versions in Dockerfiles, Makefiles, etc.\n- **Monorepo support**: Handles Go workspaces and multi-module repos\n\n---\n\n## Release Automation\n\nGoReleaser automates binary builds, checksums, and GitHub Releases. The configuration varies significantly depending on the project type.\n\n### Release Workflow\n\n`.github\u002Fworkflows\u002Frelease.yml` — see [release.yml](.\u002Fassets\u002Frelease.yml)\n\n> **Security warning:** This workflow requires `contents: write` to create GitHub Releases. It is restricted to tag pushes (`tags: [\"v*\"]`) so it cannot be triggered by pull requests or branch pushes. Only users with push access to the repository can create tags.\n\n### GoReleaser for CLI\u002FPrograms\n\nPrograms need cross-compiled binaries, archives, and optionally Docker images.\n\n`.goreleaser.yml` — see [goreleaser-cli.yml](.\u002Fassets\u002Fgoreleaser-cli.yml)\n\n### GoReleaser for Libraries\n\nLibraries don't produce binaries — they only need a GitHub Release with a changelog. Use a minimal config that skips the build.\n\n`.goreleaser.yml` — see [goreleaser-lib.yml](.\u002Fassets\u002Fgoreleaser-lib.yml)\n\nFor libraries, you may not even need GoReleaser — a simple GitHub Release created via the UI or `gh release create` is often sufficient.\n\n### GoReleaser for Monorepos \u002F Multi-Binary\n\nWhen a repository contains multiple commands (e.g., `cmd\u002Fapi\u002F`, `cmd\u002Fworker\u002F`).\n\n`.goreleaser.yml` — see [goreleaser-monorepo.yml](.\u002Fassets\u002Fgoreleaser-monorepo.yml)\n\n### Docker Build & Push\n\nFor projects that produce Docker images. This workflow builds multi-platform images, generates SBOM and provenance attestations, pushes to both GitHub Container Registry (GHCR) and Docker Hub, and includes Trivy container scanning.\n\n`.github\u002Fworkflows\u002Fdocker.yml` — see [docker.yml](.\u002Fassets\u002Fdocker.yml)\n\n> **Security warning:** Permissions are scoped per job: the `container-scan` job only gets `contents: read` + `security-events: write`, while the `docker` job gets `packages: write` (to push to GHCR) and `attestations: write` + `id-token: write` (for provenance\u002FSBOM signing). This ensures the scan job cannot push images even if compromised. The `push` flag is set to `false` on pull requests so untrusted code cannot publish images. The `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN` secrets must be configured in the repository secrets settings — never hardcode credentials.\n\nKey details:\n\n- **QEMU + Buildx**: Required for multi-platform builds (`linux\u002Famd64,linux\u002Farm64`). Remove platforms you don't need.\n- **`push: false` on PRs**: Images are built but never pushed on pull requests — this validates the Dockerfile without publishing untrusted code.\n- **Metadata action**: Automatically generates semver tags (`v1.2.3` → `1.2.3`, `1.2`, `1`), branch tags (`main`), and SHA tags.\n- **Provenance + SBOM**: `provenance: mode=max` and `sbom: true` generate supply chain attestations. These require `attestations: write` and `id-token: write` permissions.\n- **Dual registry**: Pushes to both GHCR (using `GITHUB_TOKEN`, no extra secret needed) and Docker Hub (requires `DOCKERHUB_USERNAME` + `DOCKERHUB_TOKEN` secrets). Remove the Docker Hub login and image line if not needed.\n- **Trivy**: Scans the built image for CRITICAL and HIGH vulnerabilities and uploads results to the Security tab.\n- Adapt the image names and registries to your project. For GHCR-only, remove the Docker Hub login step and the `docker.io\u002F` line from `images:`.\n\n---\n\n## Repository Security Settings\n\nRepository security settings (branch protection, workflow permissions, secrets, environments) form the security foundation for the CI pipeline — these are documented in [repo-security.md](.\u002Freferences\u002Frepo-security.md).\n\n---\n\n## AI-Driven Code Review\n\nAdd AI agents as PR reviewers alongside traditional static analysis. When loaded with this skill plugin, the agent applies the relevant Go skills per review area — catching architectural drift, logic bugs, missing error context, and concurrency hazards that linters cannot detect.\n\n> **Cost note:** AI review agents run concurrently per PR. For cost control, remove jobs you don't need or raise the PR trigger filter to specific branches only.\n\nEach subsection below is a generated artifact targeting one specific reviewer — the linked asset file runs on a CI runner, not the developer's local harness, so its tool names and permission flags are deliberately literal rather than capability prose.\n\n### Claude Code\n\n`.github\u002Fworkflows\u002Fai-review.yml` — see [claude-code-review.yml](.\u002Fassets\u002Fclaude-code-review.yml)\n\nThe workflow runs parallel jobs, each scoped to a set of review areas and priority level:\n\n| Job | Areas | Priority |\n| --- | --- | --- |\n| `quality` | Code style, Naming, Documentation, Design patterns | Suggestion-first |\n| `correctness` | Error handling, Code safety, Concurrency | Blocking-first |\n| `security` | Security, Dependencies | Blocking-first |\n| `quality-depth` | Tests, Performance, Observability, Modernize | Mixed |\n\nAdditional skills that may be relevant depending on the project: `golang-cli`, `golang-context`, `golang-data-structures`, `golang-database`, `golang-dependency-injection`, or any library-specific skill.\n\nThe Claude Code GitHub App integration is configured via the `\u002Finstall-github-app` command, which sets up the required API secrets.\n\n### GitHub Copilot\n\nCopy skills into your repo, then append [copilot-review-instructions.md](.\u002Fassets\u002Fcopilot-review-instructions.md) to `.github\u002Fcopilot-instructions.md`:\n\n```bash\nnpx skills add https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang --agent github-copilot --skill '*' -y --copy\nln -s .agents .copilot\n```\n\n---\n\n## Common Mistakes\n\n| Mistake | Fix |\n| --- | --- |\n| Missing `-race` in CI tests | Always use `go test -race` |\n| No `-shuffle=on` | Randomize test order to catch inter-test dependencies |\n| Caching integration test results | Use `-count=1` to disable caching |\n| `go mod tidy` not checked | Add `go mod tidy && git diff --exit-code` step |\n| Missing `fail-fast: false` | One Go version failing shouldn't cancel other jobs |\n| Not pinning action versions | GitHub Actions MUST use pinned major versions (e.g. `@vN`, not `@master`) |\n| No `permissions` block | Follow least-privilege per job |\n| Ignoring govulncheck findings | Fix or suppress with justification |\n| No AI review in CI | Add Claude Code or Copilot review — catches logic, security, and architectural issues that static analysis misses |\n\n## Related Skills\n\nSee `samber\u002Fcc-skills-golang@golang-lint`, `samber\u002Fcc-skills-golang@golang-security`, `samber\u002Fcc-skills-golang@golang-testing`, `samber\u002Fcc-skills-golang@golang-dependency-management`, `samber\u002Fcc-skills-golang@golang-modernize` skills.\n",{"name":5,"license":15,"metadata":24,"description":7,"allowed-tools":45,"compatibility":46,"user-invocable":47},{"author":25,"version":26,"openclaw":27},"samber","1.4.2",{"emoji":28,"install":29,"homepage":41,"requires":42},"🚀",[30,34,37],{"bins":31,"kind":33,"formula":32},[32],"goreleaser","brew",{"bins":35,"kind":33,"formula":36},[36],"gh",{"bins":38,"kind":40,"package":39},[39],"skills","npm","https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang",{"bins":43},[44,32,36],"go","Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch Bash(goreleaser:*) Bash(gh:*) AskUserQuestion","Designed for Claude Code, Codex or similar harness, and for projects using Golang.",true,"main","2147d79c9cd764770418b462c29634bcdc710096","plugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration","https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace","https:\u002F\u002Fgithub.com\u002Fheynemann","http:\u002F\u002Fwww.thumbor.org","CTO @ Flutter Brazil | Former Meta & Coinbase","2026-09-29 21:26:05",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":47},[58,61,64],{"tool":59,"command":60},"npx","npx skills add heynemann\u002Fomp-marketplace --skill golang-continuous-integration",{"tool":62,"command":63},"bunx","bunx skills add heynemann\u002Fomp-marketplace --skill golang-continuous-integration",{"tool":65,"command":66},"pnpm","pnpm dlx skills add heynemann\u002Fomp-marketplace --skill golang-continuous-integration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002FSKILL.md",[69,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,141],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"assets\u002Fclaude-code-review.yml","ASSET","资产文件",21547,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fassets\u002Fclaude-code-review.yml",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"assets\u002Fcodecov.yml",136,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fassets\u002Fcodecov.yml",{"path":80,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":81,"sourceHtmlUrl":82},"assets\u002Fcodeql-config.yml",119,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fassets\u002Fcodeql-config.yml",{"path":84,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":85,"sourceHtmlUrl":86},"assets\u002Fcopilot-review-instructions.md",3697,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fassets\u002Fcopilot-review-instructions.md",{"path":88,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":89,"sourceHtmlUrl":90},"assets\u002Fdependabot-auto-merge.yml",699,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fassets\u002Fdependabot-auto-merge.yml",{"path":92,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":93,"sourceHtmlUrl":94},"assets\u002Fdependabot.yml",624,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fassets\u002Fdependabot.yml",{"path":96,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":97,"sourceHtmlUrl":98},"assets\u002Fdocker.yml",2440,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fassets\u002Fdocker.yml",{"path":100,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":101,"sourceHtmlUrl":102},"assets\u002Fgoreleaser-cli.yml",552,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fassets\u002Fgoreleaser-cli.yml",{"path":104,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":105,"sourceHtmlUrl":106},"assets\u002Fgoreleaser-lib.yml",123,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fassets\u002Fgoreleaser-lib.yml",{"path":108,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":109,"sourceHtmlUrl":110},"assets\u002Fgoreleaser-monorepo.yml",453,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fassets\u002Fgoreleaser-monorepo.yml",{"path":112,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":113,"sourceHtmlUrl":114},"assets\u002Fintegration.yml",1156,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fassets\u002Fintegration.yml",{"path":116,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":117,"sourceHtmlUrl":118},"assets\u002Flint.yml",494,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fassets\u002Flint.yml",{"path":120,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":121,"sourceHtmlUrl":122},"assets\u002Frelease.yml",540,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fassets\u002Frelease.yml",{"path":124,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":125,"sourceHtmlUrl":126},"assets\u002Frenovate.json",467,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fassets\u002Frenovate.json",{"path":128,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":129,"sourceHtmlUrl":130},"assets\u002Fsecurity.yml",1670,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fassets\u002Fsecurity.yml",{"path":132,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":133,"sourceHtmlUrl":134},"assets\u002Ftest.yml",1047,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fassets\u002Ftest.yml",{"path":136,"resourceType":137,"resourceTypeDesc":138,"sizeBytes":139,"sourceHtmlUrl":140},"evals\u002Fevals.json","REFERENCE","参考文档",18081,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Fevals\u002Fevals.json",{"path":142,"resourceType":137,"resourceTypeDesc":138,"sizeBytes":143,"sourceHtmlUrl":144},"references\u002Frepo-security.md",3935,"https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fgolang-continuous-integration\u002Freferences\u002Frepo-security.md",[146,153,160,167,174,181],{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":19},"01M7DFXDYP0N6P8KR0AF7C0TDK","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":19},"01M7DFX9C5B0T1T0AVDCWNR5P2","write-skill","Use when creating, designing, or fixing an agent skill (SKILL.md pack) — triggers include \"write a skill\", \"make me a skill\", \"create a skill\", skill directories, and skills that fail to trigger or fire on the wrong tasks.","https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fwrite-skill\u002FSKILL.md",[],[],{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":19},"01M7DFX64VSTQV0CSGYR76MPZF","write-agent","Use when creating, designing, or fixing an omp subagent (task agent) — triggers include \"write an agent\", \"make me an agent\", \"create a subagent\", agent `.md` definitions, and agents that misbehave when spawned via task.","https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fwrite-agent\u002FSKILL.md",[],[],{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":19},"01M7DFX22JEY7ZN9EDESM732K5","wizard","Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.","https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fwizard\u002FSKILL.md",[],[],{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":180,"publishedAt":19},"01M7DFWYXR5V2CY2BPDAAS19R1","wayfinder","Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[],{"skillNo":182,"name":183,"nameZh":6,"description":184,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":19},"01M7DFWXFFMBKV294WS66S475V","wait-what","Stop. That last message did not land: re-pitch it.","https:\u002F\u002Fgithub.com\u002Fheynemann\u002Fomp-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fbase\u002Fskills\u002Fwait-what\u002FSKILL.md",[],[]]