Skip to content
Agentmart
Submit a tool

golang-gopls

Use gopls through an available host LSP integration, MCP surface, or CLI for semantic Go navigation, references, implementations, call hierarchy, diagnostics…

Skill by reagin

IndexedMIT
Write a review

Chalk Labs

Need help deploying golang-gopls?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/reagin-golang-gopls

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use gopls through an available host LSP integration, MCP surface, or CLI for semantic Go navigation, references, implementations, call hierarchy, diagnostics, formatting, imports, and safe refactoring. Use when text search cannot reliably answer a workspace symbol question or when gopls itself needs troubleshooting.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/golang-gopls

What's inside

Skill name
golang-gopls
Description
Use gopls through an available host LSP integration, MCP surface, or CLI for semantic Go navigation, references, implementations, call hierarchy, diagnostics, formatting, imports, and safe refactoring. Use when text search cannot reliably answer a workspace symbol question or when gopls itself needs troubleshooting.
License
MIT
Instructions
67 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • capability-matrix.md · references/

SKILL.md (first lines)

# Working with gopls

Use gopls for semantic Go information that text search cannot reliably provide. Treat its command line and settings as versioned interfaces: inspect the installed version and built-in help before relying on a particular command or option.

## Diagnose workspace context first

Read go.mod, go.work, build tags, generated-code instructions, editor settings, and the relevant package layout. Then determine:

- which directory is the intended workspace root;
- whether the file belongs to a loaded module;
- the active Go toolchain, GOOS, GOARCH, and build tags;
- whether generated files or missing private modules prevent loading;
- whether the host already exposes gopls-backed definition, reference, diagnostic, or rename operations.

Many apparent language-server failures are module-loading failures. Reproduce with the repository's ordinary Go commands before changing gopls configuration.

## Choose the narrowest semantic operation

Use the semantic surface already exposed by the host. If more than one is available, choose by input and result shape:

- host LSP operations fit questions that already have a file position;
- gopls MCP operations, when exposed, fit name-, package-, or file-oriented queries;
- the gopls CLI is useful for one-shot checks and scripted fallbacks.

Read [references/capability-matrix.md](references/capability-matrix.md) for concrete mappings. Inspect `gopls version`, `gopls help`, and the host's actual tool list before relying on a command or MCP operation.

Use text search for literal strings, generated artifacts, configuration, and non-Go files. Do not interpret text matches as semantic references when shadowing, aliases, build tags, or generated code matter.

Before a rename or other edit-producing refactor:

1. Confirm the target symbol and package.
2. Inspect exported API and cross-module impact.
3. Exclude generated or vendored files from direct edits while accounting for their API impact.
4. Preview the workspace edit or diff when supported.
5. Apply the returned workspace edit and inspect the resulting diff.
6. Run formatting, compilation, and focused tests.

Do not manually reproduce a semantic rename with global search-and-replace.

## Troubleshoot diagnostics

When editor and command-line results differ, compare:

- workspace folder and module selection;
- installed gopls and Go versions;
- environment inherited by the editor;
- build tags and test variants;
- unsaved overlays;
- private-module access;
- generated files;
- stale processes or caches.

Prefer fixing project or environment facts over suppressing diagnostics. Change a gopls setting only when it is documented for the installed version and reflects the intended workspace build; avoid committing machine-specific editor state as a project fix.

## Report evidence clearly

For navigation or diagnosis, report:

- the symbol or file queried;
- the workspace and build assumptions;
- the relevant definitions, callers, implementations, or diagnostics;
- whether results may exclude inactive build variants;
- the smallest next action.

A successful gopls response does not replace compilation or tests. After an edit, run the repository's normal Go verification. If gopls is absent or incompatible, explain which semantic guarantees are missing and continue with the safest available navigation method.

From reagin/agent-skills, MIT.

More from reagin/agent-skills

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 25, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from reagin

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get golang-gopls running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying golang-gopls?

CallGet help
Cite this page

golang-gopls skill. Agent Mart. https://agentmart.dev/skills/reagin-golang-gopls (last updated 2026-10-24)