Wraps the official Go language server with three access patterns: gopls's own MCP server (preferred, agent-friendly tools that take names and paths instead of cursor positions), Claude Code's native LSP integration (automatic diagnostics after every edit), and the CLI as a fallback. Use it for go-to-definition, find references, call hierarchies, workspace symbol search, safe renames, and the full refactor.rewrite suite (extract/inline/fill struct/invert if). The skill is opinionated about workflow: always run diagnostics after edits, check references before touching a definition, and run vulncheck after go.mod changes. It only sees your local build as resolved by go.mod and go.sum, so for anything about the broader ecosystem (versions, importers, licenses) you need a different tool.

skills.sh installs
12.5K
GitHub stars
3.8K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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:

Sponsors

Details

Repository
github.com/samber/cc-skills-golang
Categories
Backend & APIs, Security, Code Review & Quality, AI & Agent Building, Sales & Marketing, Go, CLI & Terminal
First seen
Jul 14, 2026

More from samber/cc-skills-golang

All 47
1google avatargcloudgoogle/skillsProvides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure. Us12.4Kskills.sh installs
2czlonkowski avatarn8n-workflow-patternsczlonkowski/n8n-skillsProven workflow architectural patterns from real n8n workflows. Use when building new workflows, designing workflow structure, choosing workflow patterns, plann12Kskills.sh installs
3nomadamas avatarfine-dust-locationnomadamas/k-skill에어코리아 기반 미세먼지/초미세먼지를 지역명 또는 위치 힌트로 조회한다. 기본 경로는 k-skill-proxy의 report endpoint다.11.6Kskills.sh installs
4rohitg00 avataragentmemory-configrohitg00/agentmemoryagentmemory configuration, environment variables, ports, and feature flags. Use when enabling a feature, changing ports, setting an API key, configuring auth, o11.5Kskills.sh installs
5nomadamas avatarkorean-stock-searchnomadamas/k-skillUse k-skill-proxy to search Korean listed stocks, inspect KRX base information, and fetch daily trade snapshots without asking the user to issue a KRX API key.11.3Kskills.sh installs
6shopify avatarshopify-use-shopify-clishopify/shopify-ai-toolkitChoose when the user needs **Shopify CLI** to run or fix something now: validate app or extension config on disk (`shopify.app.toml`, `shopify.app.<name>.toml`,11.2Kskills.sh installs