← Back to list

go-vet
by JamesPrial
WIP - collection of various Claude stuff i make/use/have_Claude_hallucinate
⭐ 2🍴 0📅 Jan 23, 2026
SKILL.md
name: go-vet description: Fix go vet warnings
go vet
Built-in static analyzer that catches common mistakes.
Usage
go vet ./...
go vet ./pkg/...
Common Warnings
Printf Format Mismatch
// Bad
fmt.Printf("%d", "string")
// Good
fmt.Printf("%s", "string")
Unreachable Code
// Bad
return value
fmt.Println("never runs")
// Good
fmt.Println("runs")
return value
Composite Literal Uses Unkeyed Fields
// Bad
Person{"Alice", 30}
// Good
Person{Name: "Alice", Age: 30}
Nil Dereference
// Bad
var p *int
fmt.Println(*p)
// Good
if p != nil {
fmt.Println(*p)
}
Suspicious Mutex Usage
// Bad - mutex copied
func process(mu sync.Mutex) {
mu.Lock()
}
// Good - pass pointer
func process(mu *sync.Mutex) {
mu.Lock()
}
Lost Context
// Bad
ctx := context.TODO()
// Good
ctx := context.Background()
// or accept ctx as parameter
Fix All Issues
go vet ./... 2>&1 | tee vet.log
Score
Total Score
65/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon
