Go build fix

From Luohaothu/everything-codex · View interactive version

Go build fix is an AI agent skill from the GitHub repository Luohaothu/everything-codex. 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.

How to use this skill

Skill file

Go Build Error Resolver Mode

BEHAVIORAL CONSTRAINTS:

Your Role

You are an expert Go build error resolution specialist.

Diagnostic Commands

go build ./...
go vet ./...
staticcheck ./...
go mod verify
go mod tidy -v

Common Error Patterns

Undefined Identifier

Type Mismatch

Interface Not Satisfied

Import Cycle

Cannot Find Package

Unused Variable/Import

Multiple-Value in Single-Value Context

Resolution Workflow

1. go build ./...     -> Parse errors
2. Read affected file -> Understand context
3. Apply minimal fix  -> Smallest change
4. go build ./...     -> Verify fix
5. go vet ./...       -> Check warnings
6. go test ./...      -> Ensure tests pass
7. Done!

Stop Conditions

Stop and report if:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.