
Go semantic tools
Lets an agent navigate Go code by types using gopls, go list and go doc
Go semantic tools is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 90
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Go semantic tools
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).
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Read, Edit, Write, Glob, Grep, Bash(go:*), Bash(gofmt:*), Bash(gopls:*)(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 2 files (10 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Download the skill folder from https://github.com/eduardo-sl/go-agent-skills and copy it into your agent's skills folder.
What it does
- 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
Go semantic tools 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.
More from eduardo-sl/go-agent-skills

Guides Go agents in designing HTTP REST APIs, handlers, middleware and shutdown
- Open source
- 90 GitHub stars
- Developer tools

Reviews Go project structure, dependency direction and module boundaries
- Open source
- 90 GitHub stars
- Developer tools

Guides an AI agent to build Go command-line tools with clean flags, streams and exit codes
- Open source
- 90 GitHub stars
- Developer tools

Guides Go code toward constructor injection, explicit wiring and no global state
- Open source
- 90 GitHub stars
- Developer tools

Guides Go code toward idiomatic design patterns like functional options and factories
- Open source
- 90 GitHub stars
- Developer tools

Guides building Go GraphQL servers with gqlgen, covering N+1 batching and query limits
- Open source
- 90 GitHub stars
- Developer tools


