matdev83/golang-curated-agent-skills/golang-continuous-integration

Claude Code and agent skill by matdev83/golang-curated-agent-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Go CI/CD guidance for tests, lint, security scans, dependency updates, containers, and releases.

Install

npx vskill@latest install matdev83/golang-curated-agent-skills/golang-continuous-integration

SKILL.md

The same SKILL.md was published earlier as matdev83/golang-curated-agent-skills/golang-continuous-integration.

Go continuous integration

Design CI around the repository's supported Go versions, platforms, and release policy. Read existing workflows before adding jobs. A useful pipeline gives fast deterministic feedback on pull requests and reserves privileged publishing for trusted refs and protected environments.

Baseline checks

Start with the commands the repository already uses. A typical baseline is:

sh
go test ./...
go vet ./...
go test -race ./... # on supported race-detector platforms
go test -coverprofile=coverage.out ./...
go mod tidy
git diff --exit-code -- go.mod go.sum

The race detector is a dynamic test, not proof that all races are absent. Run it on a supported, adequately sized runner and choose package filters or a platform matrix when it is too expensive. Use -shuffle=on when tests are order-sensitive, and -count=1 for tests whose result depends on external services or time. Do not impose a universal coverage percentage or latency target; establish thresholds from the project and workload.

Run integration tests in a separate job with pinned service versions, health checks, bounded startup/readiness polling, and explicit cleanup. Keep credentials and production endpoints out of pull-request jobs.

Lint and static analysis

Run the repository's configured linter, formatter, and go vet analyzers. golangci-lint configuration is optional and may be .golangci.yml, .golangci.yaml, .golangci.toml, or .golangci.json depending on the tool version. Never run an autofix concurrently with implementation or another mutating job; make fixes in a reviewed working tree and rerun the checks. See the local golang-lint skill.

Security and dependency checks

Use the smallest useful set for the project:

  • govulncheck ./... for reachable vulnerabilities in the module's build graph.
  • gosec ./... or CodeQL for complementary source-analysis coverage.
  • Container scanning for images, if the project publishes images.
  • License and secret scanning when required by project policy.

Keep scanners and actions at reviewed versions. A vulnerability scan is not a substitute for patch review or a threat model. Dependabot and Renovate should open reviewable updates; auto-merge requires protected branches, required checks, least-privilege permissions, and an explicit policy for indirect or major upgrades. See repo-security.

GitHub Actions supply chain

Pin third-party actions to immutable full commit SHAs and retain a comment with the human-readable release. Major tags are mutable and are not pins. Update SHAs through a reviewed dependency-update process. Use permissions: contents: read as the default and grant write, package, attestations, or security-event permissions only to the job that needs them. Do not run untrusted pull-request code with write credentials or use pull_request_target to execute it.

Use a cache only when its key includes the relevant Go/module/tool inputs. Make jobs fail clearly, upload logs and coverage on failure where safe, and avoid masking a failed command with a later successful command.

Containers and multi-platform builds

Build multi-platform images with native builders, cross-compilation, or emulation as appropriate; QEMU is one option, not a requirement. Build pull requests without pushing. Publish only from a protected tag or release environment, with registry credentials supplied as secrets. Scope image-push, provenance, SBOM, and vulnerability-scan permissions to separate jobs where practical.

Releases

Use GoReleaser or a small explicit release job according to the artifact shape. Validate the exact archive names and checksums generated by the configuration; do not invent download URLs. Trigger publishing from version tags, make the release environment require approval when appropriate, and record the Go/toolchain and source revision used. Libraries may need no binary build at all.

Workflow sequence

  1. Inspect go.mod, existing workflows, supported platforms, and branch protection.
  2. Add a fast format/build/unit-test job.
  3. Add lint, vet, race, integration, vulnerability, and coverage jobs where justified.
  4. Add dependency-update configuration with review and permission boundaries.
  5. Add container/release jobs only after artifact and credential paths are tested.
  6. Validate YAML, action SHAs, permissions, cache keys, and failure behavior; run each important command locally.

Templates in assets are starting points, not drop-in policy. Replace placeholder image names, module paths, secrets, versions, and action SHAs before use.

Related local skills: golang-lint, golang-security, golang-dependency-management, golang-testing, golang-benchmark, and golang-documentation.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/matdev83/golang-curated-agent-skills/golang-continuous-integration/badge)](https://verified-skill.com/skills/matdev83/golang-curated-agent-skills/golang-continuous-integration)

Something wrong with this skill or its page? Tell us.