# Go code review

> Go code review is an open-source agent skill for developer tools. Gives your agent a structured checklist for reviewing Go code, PRs and changes. 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/(code-quality)/go-code-review
- **Repository:** https://github.com/eduardo-sl/go-agent-skills
- **GitHub stars:** 90
- **License:** MIT
- **Skill name:** go-code-review
- **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 a read-only review of Go code, covering diffs, individual files or packages, and full codebase audits. It starts by running the Go toolchain (build, vet, golangci-lint if configured, and race-enabled tests) so mechanical issues are caught before manual reading begins. Each finding is classified as a blocker, warning or suggestion and must cite the principle behind it.

The review follows a fixed set of sections: correctness and safety (errors, nil handling, concurrency), API design, idiomatic Go, package structure, testing, documentation and dependencies. The skill also asks the agent to check callers and callees of changed code before reporting a bug, to lower severity when upstream code already guarantees a precondition, and to propose a linter, vet analyzer or test that could catch the issue later. For large repositories it suggests splitting the work into per-concern passes, optionally delegated to parallel sub-agents, and ends with a summary template that includes a section on what was done well.

It expects a Go toolchain installed and a Go project to review. It is limited to reading and searching files plus running go, gofmt and golangci-lint commands, and it reports findings without editing code. Security audits and performance analysis are handled by separate skills.

## When your agent uses it

> Comprehensive code review checklist for Go projects. Evaluates code quality, idiomatic patterns, error handling, naming, package structure, and test coverage. Use when reviewing Go code, PRs, or before merging changes. Trigger examples: "review this code", "check this PR", "code review", "review Go file". Not for: security audits (go-security-audit), performance analysis (go-performance-review).

## 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/(code-quality)/go-code-review)
- [Asks for: Read, Glob, Grep, Bash(go:*), Bash(gofmt:*), Bash(golangci-lint:*)](https://github.com/eduardo-sl/go-agent-skills/blob/HEAD/skills/(code-quality)/go-code-review/SKILL.md)
- [License: MIT](https://github.com/eduardo-sl/go-agent-skills/tree/HEAD/skills/(code-quality)/go-code-review)

## Features

- **Toolchain-first checks:** Runs build, vet, lint and race-enabled tests before manual reading so mechanical problems are caught first.
- **Correctness and safety review:** Checks error handling, nil safety and concurrency patterns such as goroutine lifecycles and context propagation.
- **Idiomatic Go guidance:** Reviews naming, control flow, defer placement, interface design and API conventions against Go idioms.
- **Testing and structure review:** Looks at test naming, table-driven tests, helper usage, package layout and separation of concerns.
- **Severity-classified report:** Produces a review summary with blocker, warning and suggestion findings that cite file and line.
- **Large codebase audit strategy:** Splits full audits into independent passes by concern and layer so findings can be aggregated.

## Good for

- Review my Go pull request before I merge it
- Check this Go file for error handling and naming problems
- Audit the whole Go repository and summarize issues by severity
- Look over recent working-tree changes in my Go service
- Check whether my Go package structure and tests follow common conventions

## 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

### What does the skill need to run?

It requires the Go toolchain. It can also use golangci-lint if the repository has a config, and it skips tools that are not installed.

### Does Go code review change my code?

No. The skill is read-only and reports findings without editing code.

### Does Go code review cover security or performance?

No. Its description points security audits to a separate go-security-audit skill and performance analysis to go-performance-review.

### What kinds of review does Go code review support?

Diff review of changed lines by default, review of named files or packages including tests, and full codebase audits.

### Does Go code review 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 code review?

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 code review?

The closest alternatives to Go code review are Code review expert, Go architecture review, Project review, Code review and Code review.

## Where this comes from

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

## Alternatives

- [Code review expert](https://ai-powered.com/skills/code-review-expert): Code review expert is an open-source agent skill for developer tools.
- [Go architecture review](https://ai-powered.com/skills/go-architecture-review): Go architecture review is an open-source agent skill for developer tools.
- [Project review](https://ai-powered.com/skills/project-review): Project review is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-getsentry): Code review is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-kripu77): Code review is an open-source agent skill for developer tools.
- [PR review](https://ai-powered.com/skills/pr-review): PR review is an open-source agent skill for developer tools.
- [Code review edho ferdian](https://ai-powered.com/skills/code-review-edho-ferdian): Code review edho ferdian is an open-source agent skill for developer tools.
- [Code review checklist](https://ai-powered.com/skills/code-review-checklist): Code review checklist is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/go-code-review
