npx claudepluginhub jamesprial/prial-plugins --plugin golang-workflowThis skill uses the workspace's default tool permissions.
Advanced static analyzer with comprehensive checks.
Reviews 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 for quality, idiomatic patterns, error handling, naming, package structure, and test coverage. Use for PRs, code reviews, and pre-merge checks.
Share bugs, ideas, or general feedback.
Advanced static analyzer with comprehensive checks.
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck ./...
staticcheck -checks=all ./...
// Bad
ioutil.ReadFile("file.txt")
// Good
os.ReadFile("file.txt")
// Bad
value := compute()
value = other()
// Good
_ = compute()
value := other()
// Bad
if err != nil {
// TODO
}
// Good - remove or implement
if err != nil {
return err
}
// Bad
if x == true {
return true
}
// Good
return x
// Bad
func GetHTTPSUrl() string
// Good
func GetHTTPSURL() string
// Bad
fmt.Printf("error: %v\n", err)
// Good
fmt.Fprintf(os.Stderr, "error: %v\n", err)
// Bad
append(slice, item)
// Good
slice = append(slice, item)
# .staticcheck.conf
checks = ["all", "-ST1000"]