[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M758YMSSAFRWNN9EYMJSJR10":3,"skill-same:01M758YMSSAFRWNN9EYMJSJR10":79},{"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":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":54,"updatedAt":55,"install":56,"resources":68},"01M758YMSSAFRWNN9EYMJSJR10","golang-continuous-integration",null,"CI\u002FCD pipeline configuration using GitHub Actions for Golang projects — testing, linting, SAST, security scanning, code coverage, Dependabot, Renovate, GoReleaser, code review automation, and release pipelines. Use when setting up or improving Go project CI, configuring GitHub Actions workflows, adding linters or security scanners, automating dependency updates, or adding quality gates.","davidcoachdev\u002Fdcfiles","davidcoachdev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F69812733?v=4","01M758C4BR16TAV1N47W319E9V","David H. Caycedo Blum.","01M758C4CCZA2ZYGA0BGMXCDRH",1,"MIT","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fgolang-continuous-integration\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: golang-continuous-integration\ndescription: \"CI\u002FCD pipeline configuration using GitHub Actions for Golang projects — testing, linting, SAST, security scanning, code coverage, Dependabot, Renovate, GoReleaser, code review automation, and release pipelines. Use when setting up or improving Go project CI, configuring GitHub Actions workflows, adding linters or security scanners, automating dependency updates, or adding quality gates.\"\nuser-invocable: true\nlicense: MIT\ncompatibility: Designed for OpenCode or similar AI coding agents, and for projects using Golang.\nmetadata:\n  author: gentleman-programming\n  version: \"1.3.1\"\n  openclaw:\n    emoji: \"🚀\"\n    homepage: https:\u002F\u002Fgithub.com\u002Fgentleman-programming\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\", \"stable\"]\ngo 1.24   → matrix: [\"1.24\", \"1.25\", \"1.26\", \"stable\"]\ngo 1.25   → matrix: [\"1.25\", \"1.26\", \"stable\"]\ngo 1.26   → matrix: [\"1.26\", \"stable\"]\n```\n\nUse `fail-fast: false` so a failure on one Go version doesn't cancel the others.\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 `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. CodeQL results appear in the repository's Security tab. 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\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\u002Fgentleman-programming --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 `golang-lint`, `golang-security`, `golang-testing`, `golang-dependency-management`, `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\", \"stable\"]\ngo 1.24   → matrix: [\"1.24\", \"1.25\", \"1.26\", \"stable\"]\ngo 1.25   → matrix: [\"1.25\", \"1.26\", \"stable\"]\ngo 1.26   → matrix: [\"1.26\", \"stable\"]\n```\n\nUse `fail-fast: false` so a failure on one Go version doesn't cancel the others.\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 `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. CodeQL results appear in the repository's Security tab. 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\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\u002Fgentleman-programming --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 `golang-lint`, `golang-security`, `golang-testing`, `golang-dependency-management`, `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},"gentleman-programming","1.3.1",{"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\u002Fgentleman-programming",{"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 OpenCode or similar AI coding agents, and for projects using Golang.",true,"main","5dc86f90a5cbe45db3acd917825461b3ed6937fb","config\u002F.config\u002Fopencode\u002Fskills\u002Fgolang-continuous-integration",0,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev","🌐 Apasionado por crear soluciones web escalables y eficientes. \r\n🧑‍🏫 Coach Dev.\r\n💻 Frontend Dev. \r\n🎚️Backend Dev.\r\n📊 Agile\u002FScrum.\r\n🚀100% remoto.","2026-08-26 07:28:05",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":47},[58,61,64],{"tool":59,"command":60},"npx","npx skills add davidcoachdev\u002Fdcfiles --skill golang-continuous-integration",{"tool":62,"command":63},"bunx","bunx skills add davidcoachdev\u002Fdcfiles --skill golang-continuous-integration",{"tool":65,"command":66},"pnpm","pnpm dlx skills add davidcoachdev\u002Fdcfiles --skill golang-continuous-integration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fgolang-continuous-integration\u002FSKILL.md",[69,75],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fevals.json","REFERENCE","参考文档",18081,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fgolang-continuous-integration\u002Fevals\u002Fevals.json",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Frepo-security.md",3935,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fgolang-continuous-integration\u002Freferences\u002Frepo-security.md",[80,88,95,102,109,116],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7740FETMZY1VTYAEFY1TWY7","zustand-5","Zustand 5 state management patterns. Trigger: When managing React state with Zustand.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fzustand-5\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M773ZZM9V68SA1AKP4WF4J29","zod-4","Zod 4 schema validation patterns. Trigger: When using Zod for validation - breaking changes from v3.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fzod-4\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M773ZJFR90CQAY0N9QR40QVP","x-bookmark-quote-posts","Workflow para revisar bookmarks de X\u002FTwitter y convertirlos en drafts de quote posts. Accede a la sección de bookmarks vía browser headless, extrae posts recientes, y genera drafts con voz personal del usuario. No publica ni muta X — solo genera contenido para revisión. Trigger: X bookmarks, Twitter bookmarks, quote posts, bookmark automation, crear quote posts, revisar bookmarks, growth content X.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fx-bookmark-quote-posts\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M773Z2RGV3786FV310SDB0YD","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M773YJH3KDSW467CSS63CSRJ","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":19},"01M773Y3S3H2CPRK5S8YFHWB5C","work-unit-commits","Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fwork-unit-commits\u002FSKILL.md",[],[]]