aio-golang-masterylisted
Install: claude install-skill aiocean/claude-plugins
# Go Mastery
## Environment
- go: !`go version 2>/dev/null || echo "NOT INSTALLED"`
- golangci-lint: !`golangci-lint version --short 2>/dev/null || echo "NOT INSTALLED"`
- govulncheck: !`which govulncheck 2>/dev/null || echo "NOT INSTALLED"`
## Lint Mode (when user has Go code to review)
Use this mode to systematically lint and fix a Go codebase using the full tooling chain.
### Step 1: RUN
Execute the 7-step tooling chain in order. Capture all output:
```bash
go build ./... # 1. Compilation errors
go vet ./... # 2. Suspicious constructs
golangci-lint run ./... # 3. Style, bugs, performance, security
govulncheck ./... # 4. Known CVEs in deps
nilaway ./... # 5. Nil pointer dereference detection
deadcode ./... # 6. Unreachable functions
go test -race -count=1 ./... # 7. Data races
```
Skip any tool that is not installed (check Environment above) and note it in the report.
### Step 2: ANALYZE
Parse all tool output and group findings:
| Severity | Source | Examples |
|----------|--------|----------|
| **Critical** | govulncheck, race detection | Known CVEs, data races |
| **High** | go vet, nilaway | Nil derefs, printf mismatches, suspicious constructs |
| **Medium** | golangci-lint | Style violations, inefficient code, unchecked errors |
| **Low** | deadcode | Unused functions (safe to remove) |
### Step 3: FIX
For each finding, apply the idiomatic Go fix using the