# Go semantic tools

> Go semantic tools is an open-source agent skill for developer tools. Lets an agent navigate Go code by types using gopls, go list and go doc. 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-semantic-tools
- **Repository:** https://github.com/eduardo-sl/go-agent-skills
- **GitHub stars:** 90
- **License:** MIT
- **Skill name:** go-semantic-tools
- **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 steers an AI coding agent away from plain text search when exploring Go code and toward the Go toolchain's type-aware tools. It covers finding references, implementations and call hierarchies with gopls, both through its MCP server and its command-line interface, and it explains which command fits which question.

The skill sets out a workflow for changes to shared code: enumerate call sites and interface implementations before editing, rename symbols with gopls rather than find-and-replace, and check diagnostics after each edit. It also shows how to map the dependency graph with go list and read exported APIs with go doc, so claims about package layering can be verified from import data instead of directory names.

It expects a Go module with the Go toolchain installed and gopls available, with v0.20 or later for the MCP server. Its allowed tools are limited to file reads and edits plus go, gofmt and gopls commands. It is not meant for carrying out refactors, judging architecture or writing documentation, which it points to separate skills for.

## When your agent uses it

> Navigate and analyze Go codebases semantically with the toolchain instead of text search: gopls via its MCP server or CLI (references, implementations, call hierarchy, rename, extract/inline code actions, diagnostics), go list for the dependency graph, go doc for APIs. Use when: "find all callers", "who implements this interface", "where is this used", "trace the dependency graph", "explore this codebase", "find usages before changing", "map the module". Not for: performing the refactor (go-refactoring), judging the architecture (go-architecture-review), writing documentation (go-documentation).

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

## Features

- **Type-aware reference search:** Finds every call site and usage of a symbol through gopls instead of matching identical names across types.
- **Interface implementation mapping:** Lists which types implement an interface and which interfaces a concrete type satisfies before changes.
- **Dependency graph inspection:** Uses go list to show package imports and what a binary pulls in, to verify layering claims.
- **Go API exploration:** Uses go doc to show a package's exported contract without reading implementation code.
- **Semantic rename and code actions:** Describes gopls rename and extract, inline and similar refactoring actions shown as previews before writing.
- **Diagnostics checklist:** Provides a verification checklist covering gopls check, go vet and post-edit diagnostics.

## Good for

- Find all callers of a Go function before changing its signature
- Show which types implement a given interface in a Go module
- Map the package dependency graph of a Go service
- Explore the exported API of an unfamiliar Go package
- Rename a Go identifier safely across the whole module

## 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 and gopls installed with go install golang.org/x/tools/gopls@latest, and v0.20 or later for the MCP server.

### Which tools is Go semantic tools allowed to use?

Read, Edit, Write, Glob, Grep, and Bash limited to go, gofmt and gopls commands.

### Does Go semantic tools perform refactors itself?

No. The skill says refactoring belongs to the go-refactoring skill and architecture review to go-architecture-review.

### What license does Go semantic tools use?

It is released under the MIT license.

### Does Go semantic tools 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 semantic tools?

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 semantic tools?

The closest alternatives to Go semantic tools are Go refactoring, Go documentation, Go code review, Roslyn codelens and Go coding standards.

## Where this comes from

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

## Alternatives

- [Go refactoring](https://ai-powered.com/skills/go-refactoring): Go refactoring is an open-source agent skill for developer tools.
- [Go documentation](https://ai-powered.com/skills/go-documentation): Go documentation 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.
- [Roslyn codelens](https://ai-powered.com/skills/roslyn-codelens-marcelroozekrans): Roslyn codelens 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.
- [Go architecture review](https://ai-powered.com/skills/go-architecture-review): Go architecture review 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 backend](https://ai-powered.com/skills/go-backend): Go backend is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/go-semantic-tools
