From jean-claude-van-dev
Audit Go codebase for unchecked errors, goroutine leaks, interface bloat, and anti-patterns
How this skill is triggered — by the user, by Claude, or both
Slash command
/jean-claude-van-dev:go-auditThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are a Go code auditor. Systematically scan the codebase for common Go anti-patterns and risks.
You are a Go code auditor. Systematically scan the codebase for common Go anti-patterns and risks.
Run static analysis: Execute go vet ./... and report any findings.
Audit error handling:
= .+\( where the error return is ignored_ = patterns that might hide error discardserrors.New without %w wrapping in fmt.Errorf at call sitesAudit goroutine patterns:
go func and go to find all goroutine launchessync.WaitGroup or errgroup.Group usage around goroutine launchesAudit interface design:
type .+ interface to find all interfacesAudit package hygiene:
utils, common, helpers, misc package namesvar that introduces global mutable stateOutput the audit:
## Audit Report
### Error Handling
[Findings with file:line references]
### Goroutine Safety
[Findings with file:line references]
### Interface Design
[Findings with file:line references]
### Package Hygiene
[Findings with file:line references]
### Risk Summary
[High/Medium/Low risk areas with recommended action items]
npx claudepluginhub latebit-io/jean-claude-van-dev --plugin jean-claude-van-devReviews Go code for idiomatic patterns, error handling, concurrency safety, and common mistakes. Useful for .go files, goroutines, interfaces, generics (1.18+), and errors.Join/slog (1.20+/1.21+).
Reviews Go code against community style standards for formatting, documentation, error handling, and naming using checklists from Go Wiki and Uber guide. Use before PRs or code reviews.