# Go ci

> Go ci is an open-source agent skill for developer tools. Sets up Go CI pipelines: GitHub Actions, linting, coverage gates and vulnerability scans. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/eduardo-sl/go-agent-skills/tree/main/skills/(workflow)/go-ci
- **Repository:** https://github.com/eduardo-sl/go-agent-skills
- **GitHub stars:** 90
- **License:** MIT
- **Skill name:** go-ci
- **Collection:** https://github.com/eduardo-sl/go-agent-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill guides an agent through building continuous integration for a Go project, centred on a GitHub Actions workflow. It covers the four core gates a Go pipeline needs (build, vet and lint, tests with the race detector, and a govulncheck scan), plus caching through setup-go, a curated golangci-lint configuration, and a coverage floor that ratchets upward.

The skill also explains how to keep local and CI runs identical with a Makefile whose targets CI calls, how to isolate integration tests behind build tags so they do not slow every push, and how to add build matrices only when a project really ships on several Go versions or operating systems. Security guidance includes SARIF uploads from CodeQL and gosec, Dependabot for modules and actions, pinning third-party actions by commit SHA, and per-job permissions.

The agent works with Go files, workflow YAML and Makefiles, and uses the Go toolchain, golangci-lint and git. A reference file on security and automation is loaded only when the main guidance falls short.

## When your agent uses it

> Continuous integration for Go projects: GitHub Actions pipelines, caching, golangci-lint setup, test/coverage gates, vulnerability scanning, SAST (CodeQL, gosec), Dependabot, action pinning, build matrices, Makefile targets. Use when: "set up CI", "GitHub Actions for Go", "add lint to the pipeline", "CI is slow", "coverage gate", "build matrix", "write a Makefile", "run govulncheck in CI". Not for: commit conventions (git-commit), choosing or auditing dependencies (go-dependency-audit), writing the tests themselves (go-test-quality), releases and signing (go-build-release).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/eduardo-sl/go-agent-skills/tree/HEAD/skills/(workflow)/go-ci)
- [Asks for: Read, Edit, Write, Glob, Grep, Bash(go:*), Bash(gofmt:*), Bash(golangci-lint:*)…](https://github.com/eduardo-sl/go-agent-skills/blob/HEAD/skills/(workflow)/go-ci/SKILL.md)
- [License: MIT](https://github.com/eduardo-sl/go-agent-skills/tree/HEAD/skills/(workflow)/go-ci)

## Features

- **GitHub Actions baseline:** A starter workflow with separate test, lint and vulnerability jobs, least-privilege permissions and Go version read from go.mod.
- **golangci-lint setup:** A v2 configuration with a small linter set, path-based exclusions and rules for documenting nolint directives.
- **Coverage floor gate:** A shell step that reads the total coverage from a profile and fails the build when it drops below a threshold.
- **Makefile mirror of CI:** Make targets for build, lint, test and vulnerability checks so developers run the same steps as the pipeline.
- **Security scanning setup:** Guidance on CodeQL and gosec SARIF uploads, Trivy for container images, and a baseline-then-enforce approach for gosec.
- **Dependency and action updates:** Dependabot configuration for Go modules and GitHub Actions, with grouped minor updates and SHA-pinned third-party actions.
- **Pipeline speed tips:** Advice on parallel jobs, build cache keys and moving integration tests to a separate job or schedule.

## Good for

- Set up a GitHub Actions pipeline for a Go repository
- Add golangci-lint to an existing CI workflow
- Enforce a test coverage minimum in CI
- Write a Makefile that matches the CI pipeline
- Run govulncheck on every pull request
- Speed up a slow Go CI pipeline

## Install

### Any agent

Download the skill folder from https://github.com/eduardo-sl/go-agent-skills and copy it into your agent's skills folder.

## FAQ

### Which tools does the skill need?

It requires the Go toolchain and targets GitHub Actions. Its allowed tools include go, gofmt, golangci-lint and git commands.

### Does Go ci add a build matrix by default?

No. It recommends a build matrix only when a library needs testing across supported Go releases or a project ships on several operating systems.

### Which Go version does the workflow use?

It reads the version from go.mod through setup-go's go-version-file option, so the version is not hardcoded in the workflow.

### Is Go ci limited to Claude Code?

Its compatibility note mentions Claude Code and similar AI coding agents working on Go projects.

### Does Go ci run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Go ci?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Go ci?

The closest alternatives to Go ci are Ci cd, Cicd pipeline skill, Go code review, GitHub workflow and Ci.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Ci cd](https://ai-powered.com/skills/ci-cd): Ci cd is an open-source agent skill for developer tools.
- [Cicd pipeline skill](https://ai-powered.com/skills/cicd-pipeline-skill): Cicd pipeline skill is an open-source agent skill for developer tools.
- [Go code review](https://ai-powered.com/skills/go-code-review): Go code review is an open-source agent skill for developer tools.
- [GitHub workflow](https://ai-powered.com/skills/github-workflow): GitHub workflow is an open-source agent skill for developer tools.
- [Ci](https://ai-powered.com/skills/ci-chachamaru127): Ci is an open-source agent skill for developer tools.
- [Deployment patterns](https://ai-powered.com/skills/deployment-patterns): Deployment patterns is an open-source agent skill for cloud and infrastructure.
- [Fix ci](https://ai-powered.com/skills/fix-ci): Fix ci is an open-source agent skill for developer tools.
- [Verification loop](https://ai-powered.com/skills/verification-loop-nabwinsaud): Verification loop is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/go-ci
