# Go architecture review

> Go architecture review is an open-source agent skill for developer tools. Reviews Go project structure, dependency direction and module boundaries. 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/(architecture)/go-architecture-review
- **Repository:** https://github.com/eduardo-sl/go-agent-skills
- **GitHub stars:** 90
- **License:** MIT
- **Skill name:** go-architecture-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 gives the agent a checklist-driven way to assess how a Go codebase is organized: package layout, which packages may import which, layering between transport, service and storage code, domain modeling, and how modules are split. It supports three modes: a severity-ranked layout review, an ordered refactor plan that starts with the smallest safe steps, and prescriptive guidance for designing a new service.

The skill asks the agent to judge structure against the problem size rather than the most elaborate pattern, flagging both over-engineering such as one-implementation interfaces and under-structuring such as SQL inside handlers. For large repositories it describes mapping the module with go list and import tracing, then checking layout, dependency direction, wiring and package design, citing package paths and file line numbers in findings.

It is read-only: it reports findings and does not edit code. It expects a Go project and the Go toolchain, and it uses gofmt and go commands for inspection. Code-level style and endpoint design are handled by separate skills.

## When your agent uses it

> Review Go project architecture: package structure, dependency direction, layering, separation of concerns, domain modeling, and module boundaries. Use when reviewing architecture, designing package layout, evaluating dependency graphs, or refactoring monoliths into modules. Trigger examples: "review architecture", "package structure", "project layout", "dependency direction", "clean architecture Go", "module boundaries". Not for: code-level style (go-coding-standards), endpoint design (go-api-design).

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

## Features

- **Layout and package review:** Checks the project tree against a standard cmd, internal and pkg arrangement and flags grab-bag packages.
- **Dependency direction checks:** Verifies that domain code stays free of project dependencies and that imports flow inward.
- **Refactor migration plans:** Turns review findings into an ordered list of small, safe migration steps.
- **New service structuring advice:** Gives prescriptive guidance on package layout and interfaces when starting a new service.
- **Composition root and config review:** Assesses main.go wiring, environment-based configuration and removal of init side effects.
- **Severity-ranked checklist:** Grades architecture issues as blockers, warnings or suggestions with file-level citations.

## Good for

- Review the package structure of my Go service for dependency problems
- Plan how to split this monolith into Go modules step by step
- Check whether my domain package depends on infrastructure code
- Suggest a project layout for a new Go API with a database
- Find init functions with side effects in my Go project

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

### Does Go architecture review change my code?

No. It is read-only and reports findings rather than editing files.

### What does Go architecture review need to run?

It requires the Go toolchain and works on Go projects with AI coding agents such as Claude Code.

### Which tasks should use a different skill?

Code-level style is covered by go-coding-standards and endpoint design by go-api-design.

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

The closest alternatives to Go architecture review are Go code review, Improve architecture, Go project layout, Go coding standards and Arch review.

## Where this comes from

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

## Alternatives

- [Go code review](https://ai-powered.com/skills/go-code-review): Go code review is an open-source agent skill for developer tools.
- [Improve architecture](https://ai-powered.com/skills/improve-architecture): Improve architecture is an open-source agent skill for developer tools.
- [Go project layout](https://ai-powered.com/skills/go-project-layout): Go project layout is an open-source agent skill for developer tools.
- [Go coding standards](https://ai-powered.com/skills/go-coding-standards): Go coding standards is an open-source agent skill for developer tools.
- [Arch review](https://ai-powered.com/skills/arch-review-ramboz): Arch review is an open-source agent skill for developer tools.
- [Go refactoring](https://ai-powered.com/skills/go-refactoring): Go refactoring is an open-source agent skill for developer tools.
- [Go dependency audit](https://ai-powered.com/skills/go-dependency-audit): Go dependency audit is an open-source agent skill for security.
- [Go semantic tools](https://ai-powered.com/skills/go-semantic-tools): Go semantic tools is an open-source agent skill for developer tools.

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