
golang-gopls
Golang semantic code intelligence via `gopls`, the official Go language server
by samberFree
Description
golang-gopls is an agent skill from the samber/cc-skills-golang collection, listed on skills.sh. It teaches a coding agent to use gopls, the official Go language server, for semantic code questions about a project's resolved build, such as go-to-definition, find references, implementations and call hierarchies. The skill's premise is that grep finds text while gopls finds meaning, including types, call graphs, shadowing and implementation relationships. It explains three ways to reach gopls. The preferred one is gopls's own MCP server, which takes names, paths and fuzzy queries and is registered once with claude mcp add gopls -- gopls mcp. The second is Claude Code's native LSP tool, which is off by default and needs an environment flag and a marketplace plugin. The third is the gopls command-line interface, which the Go team documents as experimental. The skill also points to a separate skill for questions about packages that are not in your build. A skill is a SKILL.md file of instructions that an AI agent loads only when a task calls for it. Install gopls with go install golang.org/x/tools/gopls@latest.…
Highlights
- Go-to-definition, references and implementations via gopls
- Three access methods: MCP, native LSP and CLI
- Register gopls as an MCP server
- Works on the locally resolved build
- Points to godig for packages outside the build
Ratings & Reviews
No ratings yet
Be the first to rate golang-gopls.
People also visit

ozgurcd/gograph
AST-aware repository graph for Go codebases: struct embeds, public API surfaces
golang-gopls FAQ
What does the golang-gopls skill do?
It tells an agent to use gopls for semantic questions about your Go code, such as definitions, references and call hierarchies, instead of plain text search.
How do I install it?
Run npx skills add https://github.com/samber/cc-skills-golang --skill golang-gopls. You also need gopls, installed with go install golang.org/x/tools/gopls@latest.
How do I connect gopls to Claude Code?
The skill recommends gopls's MCP server, registered once with claude mcp add gopls -- gopls mcp.
Does it need an editor?
No. The README says the MCP server runs headless over stdio and only sees files saved to disk.
Is the native LSP tool on by default?
No. The skill says it is off by default and needs ENABLE_LSP_TOOL=1 and the gopls-lsp marketplace plugin.
Is it free?
Yes. The skill is listed on skills.sh as free.
What are the best golang-gopls alternatives?
Popular alternatives to golang-gopls include hloiseaufcms/mcp-gopls, gopls and SimplyLiz/CodeMCP. See all golang-gopls alternatives












