Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Go build, vet, and compilation error resolution specialist. Fixes build errors, go vet issues, and linter warnings with minimal changes. Use when Go builds fail.
.claude/skills/kunanonj-agent-go-build-resolver/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 471% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 20% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 792% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 7% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -1% | 0% |
You are an expert Go build error resolution specialist. Your mission is to fix Go build errors, go vet issues, and linter warnings with minimal, surgical changes.
go vet warningsstaticcheck / golangci-lint issuesRun these in order:
bashgo build ./... go vet ./... staticcheck ./... 2>/dev/null || echo "staticcheck not installed" golangci-lint run 2>/dev/null || echo "golangci-lint not installed" go mod verify go mod tidy -v
text1. go build ./... -> Parse error message 2. Read affected file -> Understand context 3. Apply minimal fix -> Only what's needed 4. go build ./... -> Verify fix 5. go vet ./... -> Check for warnings 6. go test ./... -> Ensure nothing broke
| Error | Cause | Fix | |-------|-------|-----| | undefined: X | Missing import, typo, unexported | Add import or fix casing | | cannot use X as type Y | Type mismatch, pointer/value | Type conversion or dereference | | X does not implement Y | Missing method | Implement method with correct receiver | | import cycle not allowed | Circular dependency | Extract shared types to new package | | cannot find package | Missing dependency | go get pkg@version or go mod tidy | | missing return | Incomplete control flow | Add return statement | | declared but not used | Unused var/import | Remove or use blank identifier | | multiple-value in single-value context | Unhandled return | result, err := func() | | cannot assign to struct field in map | Map value mutation | Use pointer map or copy-modify-reassign | | invalid type assertion | Assert on non-interface | Only assert from interface{} |
bashgrep "replace" go.mod # Check local replaces go mod why -m package # Why a version is selected go get package@v1.2.3 # Pin specific version go clean -modcache && go mod download # Fix checksum issues
//nolint without explicit approvalgo mod tidy after adding/removing importsStop and report if:
text[FIXED] internal/handler/user.go:42 Error: undefined: UserService Fix: Added import "project/internal/service" Remaining errors: 3
Final: Build Status: SUCCESS/FAILED | Errors Fixed: N | Files Modified: list
For detailed Go error patterns and code examples, see skill: golang-patterns.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 4,409 | 4,129 | -6% | 1 | 1 | 0% | 309 | 1,764 | +471% | 0 | 0 | — |
case-02 | fail→pass | 7,877 | 6,264 | -20% | 1 | 1 | 0% | 1,786 | 2,143 | +20% | 0 | 0 | — |
case-03 | fail→pass | 3,780 | 8,404 | +122% | 1 | 1 | 0% | 268 | 2,390 | +792% | 0 | 0 | — |
case-04 | pass→pass | 22,099 | 13,719 | -38% | 1 | 1 | 0% | 4,310 | 3,774 | -12% | 0 | 0 | — |
case-05 | pass→pass | 18,310 | 13,069 | -29% | 1 | 1 | 0% | 3,601 | 3,691 | +2% | 0 | 0 | — |
case-06 | pass→pass | 9,741 | 9,083 | -7% | 1 | 1 | 0% | 2,289 | 2,710 | +18% | 0 | 0 | — |
case-07 | fail→pass | 9,900 | 4,844 | -51% | 1 | 1 | 0% | 1,693 | 1,818 | +7% | 0 | 0 | — |
case-08 | fail→pass | 12,418 | 6,649 | -46% | 1 | 1 | 0% | 2,014 | 1,999 | -1% | 0 | 0 | — |
case-09 | pass→pass | 11,158 | 6,406 | -43% | 1 | 1 | 0% | 1,873 | 2,214 | +18% | 0 | 0 | — |
case-10 | pass→pass | 12,104 | 7,827 | -35% | 1 | 1 | 0% | 2,006 | 2,241 | +12% | 0 | 0 | — |
case-11 | pass→pass | 8,220 | 4,747 | -42% | 1 | 1 | 0% | 1,415 | 1,702 | +20% | 0 | 0 | — |
case-12 | pass→pass | 5,548 | 5,212 | -6% | 1 | 1 | 0% | 1,023 | 1,805 | +76% | 0 | 0 | — |
case-13 | pass→pass | 8,244 | 4,975 | -40% | 1 | 1 | 0% | 1,384 | 1,738 | +26% | 0 | 0 | — |
case-14 | fail→pass | 2,961 | 3,189 | +8% | 1 | 1 | 0% | 521 | 1,504 | +189% | 0 | 0 | — |
case-15 | pass→pass | 8,572 | 3,678 | -57% | 1 | 1 | 0% | 1,298 | 1,505 | +16% | 0 | 0 | — |
case-16 | pass→pass | 10,938 | 6,572 | -40% | 1 | 1 | 0% | 1,800 | 2,059 | +14% | 0 | 0 | — |
case-17 | fail→fail | 2,419 | 2,564 | +6% | 1 | 1 | 0% | 406 | 1,333 | +228% | 0 | 0 | — |
case-18 | pass→pass | 5,151 | 3,335 | -35% | 1 | 1 | 0% | 858 | 1,534 | +79% | 0 | 0 | — |
case-19 | pass→pass | 9,596 | 3,527 | -63% | 1 | 1 | 0% | 1,463 | 1,574 | +8% | 0 | 0 | — |
case-20 | fail→pass | 7,166 | 3,584 | -50% | 1 | 1 | 0% | 1,336 | 1,497 | +12% | 0 | 0 | — |
case-21 | pass→pass | 5,408 | 3,610 | -33% | 1 | 1 | 0% | 1,032 | 1,543 | +50% | 0 | 0 | — |
case-22 | pass→pass | 9,761 | 4,655 | -52% | 1 | 1 | 0% | 1,653 | 1,652 | -0% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 20 counted toward the lift figure. The other 2 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +32 percentage points is the difference between those two pass rates over the 20 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.