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
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.
rsi-loop
Recursive Self-Improvement (RSI) loop for EvoClaw agents. Provides a structured observe→analyze→synthesize→deploy pipeline that enables agents to detect their own failure patterns and generate concrete improvement proposals (new skills, routing fixes, SOUL.md updates, memory improvements). Use when: (1) logging a task outcome (success/fail/quality), (2) running periodic self-improvement analysis, (3) reviewing or deploying improvement proposals, (4) integrating RSI into EvoClaw hub/edge agents via MQTT, (5) checking agent health score, (6) any mention of "self-improvement", "recursive improvement", "fix my own mistakes", "improvement loop", or "agent evolution". Core EvoClaw primitive.
clawchain
ClawChain RPC client for EvoClaw agents. Connects to Substrate-based blockchain, queries on-chain agent data, submits transactions, and enables agents to participate in on-chain governance and reputation tracking. Use when working with ClawChain L1 blockchain, agent DIDs, token economics, or agent reputation systems.