Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
gopls is the official Go language server, providing code intelligence for .go files via the LSP protocol. It handles autocomplete, go-to-definition, find references, real-time error diagnostics, and refactoring like symbol renaming and import organization.
As the official Go language server maintained by the Go team, it stays current with new language features and provides more accurate analysis than third-party alternatives.
When to use it
- Navigating to a function definition in a large Go codebase
- Renaming a struct field across all files in a module
- Catching type errors before running go build
- Automatically organizing imports while editing a file
- Finding all callers of an interface method
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: rename the UserID field in the User struct to ID across the entire project
- 1gopls locates all references to UserID across .go files in the module
- 2Checks for naming conflicts the rename would introduce
- 3Applies the rename atomically across all affected files
- 4Reports the count of files and occurrences updated
All references to UserID replaced with ID across the project, no conflicts introduced
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.