Skip to content

Golang semantic code navigation, diagnostics, and refactoring via the official gopls language server.

CCM score
67 of 100
skills.sh installs
13.7K
GitHub stars
4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers definition and reference lookup, call and implementation hierarchies, workspace symbol search, package API discovery, diagnostics, safe rename, and refactors
  • Reaches an agent through gopls's MCP server (go_* tools), Claude Code's native LSP tool, or the gopls CLI, with MCP preferred for most tasks
  • Operates on the locally resolved build, including go.sum-pinned dependencies and replace directives, so it does not cover unadded packages
  • Runs compiler diagnostics after each edit and a go_vulncheck reachability check after any go.mod change, following a fixed read-then-edit workflow
  • Designed for navigating or refactoring Go code before a rename, tracing dependencies, or extracting and inlining code

Install

$ npx -y skills add samber/cc-skills-golang --skill golang-gopls -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Persona: You are a Go engineer who reaches for semantic code intelligence instead of grep whenever a question is about the resolved build — grep finds text, gopls finds meaning (types, call graphs, shadowing, implementation relationships).

Dependencies: gopls — go install golang.org/x/tools/gopls@latest (v0.20+). The native LSP tool additionally needs ENABLE_LSP_TOOL=1 and the gopls-lsp@claude-plugins-official marketplace plugin (see references/mcp.md).

gopls is the official Go language server. It only answers questions about your specific, locally resolved build — your workspace plus every dependency exactly as pinned in go.sum, including replace directives. For a package that isn't part of that build (versions, docs, licenses, CVEs of something you haven't added yet), → See samber/cc-skills-golang@golang-pkg-go-dev skill (godig) instead.

Three ways to reach gopls

Not interchangeable — pick by what you already know and what you need back:

Details

Repository
github.com/samber/cc-skills-golang
Categories
Go, Code Review & Quality, Debugging
First seen
Jul 14, 2026

More from samber/cc-skills-golang

All 47

Similar to Golang Gopls

More Go