gopls-lsp
Go language server (gopls) providing code intelligence, refactoring, and analysis for .go files. Use when working with Go code that needs autocomplete, go-to-definition, find references, error detection, or refactoring support.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bowen31337/gopls-lspWhat This Skill Does
The gopls-lsp skill provides a sophisticated interface for the official Go language server (gopls), enabling deep code intelligence directly within the OpenClaw environment. By integrating this skill, the agent gains the ability to parse Go source code, providing context-aware autocomplete, accurate go-to-definition navigation, and precise symbol references. It acts as the backbone for maintaining high-quality Go codebases, offering real-time diagnostics that identify compilation errors, syntax issues, and potential bugs before they reach the execution phase. Beyond basic navigation, this skill facilitates advanced code refactoring, such as renaming symbols across a workspace, organizing imports, and detecting unused code blocks, significantly accelerating development workflows for Go developers.
Installation
To integrate this skill, first ensure the Go toolchain is installed on your system. Run the command go install golang.org/x/tools/gopls@latest to fetch the latest binary. Verify that your system's $PATH includes the directory where the binary was installed, typically $GOPATH/bin or $HOME/go/bin. Once installed, you can register the skill by executing clawhub install openclaw/skills/skills/bowen31337/gopls-lsp. Finally, verify the installation by running gopls version in your terminal to ensure the agent can communicate with the server.
Use Cases
This skill is indispensable for managing large Go modules where manual code tracking becomes error-prone. Use it for: 1. Refactoring large structs or function signatures across multiple packages. 2. Debugging complex dependency trees using go mod commands through the agent. 3. Automatically identifying and fixing formatting issues using gofmt. 4. Running static analysis via go vet to identify suspicious constructs that might pass compilation but exhibit undefined behavior. 5. Generating boilerplate code for new project modules using go mod init.
Example Prompts
- "OpenClaw, find all references to the
UserServicestruct and rename it toAccountManageracross the entire project." - "Review the current directory for any unused imports or variables in my Go code and provide a fix plan."
- "Run the static analysis suite on this project and explain any errors found in
main.gothat might prevent a successful build."
Tips & Limitations
For optimal performance, always maintain a clean go.mod file in your project root. If the agent struggles with autocomplete, ensure the project is initialized as a Go module. Note that gopls performs better when the workspace root matches the directory containing go.mod. For highly complex or heavily generated codebases, consider adding a gopls.yaml file to configure specific analyses flags to prevent excessive memory usage or false positives. This skill requires file access to scan your repository effectively, so ensure the agent has the appropriate read/write permissions for the target directory.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bowen31337-gopls-lsp": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, code-execution
Related Skills
Terse
Skill by bowen31337
Identity Resolver
Skill by bowen31337
whalecli
Agent-native whale wallet tracker for ETH and BTC chains. Track large crypto wallet movements, score whale activity, detect accumulation/distribution patterns, and stream real-time alerts. Integrates with FearHarvester and Simmer prediction markets for closed-loop signal→bet workflows. Use when: user asks about whale activity, on-chain signals, large wallet movements, smart money flows, or when pre-validating crypto trades/bets with on-chain data.
agent-self-governance
Self-governance protocol for autonomous agents: WAL (Write-Ahead Log), VBR (Verify Before Reporting), ADL (Anti-Divergence Limit), VFM (Value-For-Money), and IKL (Infrastructure Knowledge Logging). Use when: (1) receiving a user correction — log it before responding, (2) making an important decision or analysis — log it before continuing, (3) pre-compaction memory flush — flush the working buffer to WAL, (4) session start — replay unapplied WAL entries to restore lost context, (5) any time you want to ensure something survives compaction, (6) before claiming a task is done — verify it, (7) periodic self-check — am I drifting from my persona? (8) cost tracking — was that expensive operation worth it? (9) discovering infrastructure — log hardware/service specs immediately.
pyright-lsp
Python language server (Pyright) providing static type checking, code intelligence, and LSP diagnostics for .py and .pyi files. Use when working with Python code that needs type checking, autocomplete suggestions, error detection, or code navigation.