skills/golang/golang-tooling/SKILL.md
Go developer toolchain — gopls LSP diagnostics, linting, formatting, and vet. Use when setting up Go tooling, running linters, or integrating gopls with Claude Code.
npx skillsauth add hoangnguyen0403/agent-skills-standard golang-toolingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
After writing or modifying Go code, run in order:
mcp__ide__getDiagnostics — gopls real-time errors and type warnings (requires gopls-lsp plugin)go vet ./... — catch printf mismatches, unreachable code, shadowed variablesgoimports -w . — organize imports and format in one passgolangci-lint run ./... — run full linter suite (if .golangci.yml present)| Tool | Purpose | When to Use |
|------|---------|------------|
| gopls | LSP: diagnostics, completion, hover | Always (IDE integration) |
| go vet | Static analysis — correctness bugs | After every edit |
| goimports | Import sorting + gofmt | Before commit |
| golangci-lint | Aggregated linters (errcheck, staticcheck, etc.) | CI / pre-commit |
| staticcheck | Advanced static analysis | Large codebases |
Configure via .golangci.yml at repo root. Recommended linters:
errcheck — enforce error handlingstaticcheck — bug detection beyond go vetgovet — shadow, compositesrevive — style enforcementgosec — security issuesSee golangci.yml example.
gopls powers mcp__ide__getDiagnostics. Install:
go install golang.org/x/tools/gopls@latest
gofmt alone: Use goimports — it formatting AND imports.goimports manage order.gofmt misses.//nolint comments.development
Summarizes GitHub PR, GitLab MR, or Azure DevOps PR metadata, review threads, changed files, and template completeness. Use during review-ticket or code-review workflows when PR/MR context exists.
tools
Development tools, linting, and build config for TypeScript. Use when configuring ESLint, Prettier, Jest, Vitest, tsconfig, or any TS build tooling.
development
Validate input, secure auth tokens, and prevent injection attacks in TypeScript. Use when validating input, handling auth tokens, sanitizing data, or managing secrets and sensitive configuration.
development
Apply modern TypeScript standards for type safety and maintainability. Use when working with types, interfaces, generics, enums, unions, or tsconfig settings.