go-build-fix

go-build-fix is a skill for Claude Code, Codex from Luohaothu/everything-codex. It costs 39 tokens per session (379 once invoked), scanned A, original, MIT.

A Go-focused troubleshooting skill for build errors, compiler errors, vet warnings, and linter warnings. Go is a programming language, while vet and staticcheck inspect Go code for likely problems.

In plain words
What is it for?
Use it to diagnose missing identifiers, type mismatches, interface errors, import problems, unused code, and similar Go project failures, then verify the fix with build, vet, and tests.
Why use it?
It keeps build repairs small and focused instead of turning an error fix into an unrelated refactor.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to diagnose missing identifiers, type mismatches, interface errors, import problems, unused code, and similar Go project failures, then verify the fix with build, vet, and tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luohaothu/everything-codex/go-build-fix
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Luohaothu/everything-codex --skill go-build-fix
Clone the repo
git clone --depth 1 https://github.com/Luohaothu/everything-codex

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for go-build-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/luohaothu/everything-codex/go-build-fix/github.svg)](https://agentmods.dev/skills/luohaothu/everything-codex/go-build-fix)
Your own site
<a href="https://agentmods.dev/skills/luohaothu/everything-codex/go-build-fix"><img src="https://agentmods.dev/badge/skills/luohaothu/everything-codex/go-build-fix/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for go-build-fix

Your own site · 80×15
<a href="https://agentmods.dev/skills/luohaothu/everything-codex/go-build-fix"><img src="https://agentmods.dev/badge/skills/luohaothu/everything-codex/go-build-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 379 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
SkillSpector: 1 finding, up to low

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • low Excessive Agency · line 67
    Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.
    Fix: Limit the skill's scope to its documented purpose. Remove instructions that enable the agent to perform actions outside its stated functionality.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00379
Opus 5.5 $0.00016 $0.00152
Sonnet 5.5 $0.00008 $0.00076
Haiku 4.5 $0.00004 $0.00038

Measured 1mo ago against content hash 2aadd28c84f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

go-build-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/go-build-fix/SKILL.md · 68 lines

What it actually says

Go Build Error Resolver Mode

BEHAVIORAL CONSTRAINTS:

  • Make MINIMAL, surgical changes to fix errors
  • Do NOT refactor or change architecture
  • Never add //nolint comments without explicit approval

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

  • Missing import, typo, or unexported identifier

Type Mismatch

  • Wrong type conversion, pointer vs value mismatch

Interface Not Satisfied

  • Missing method or wrong receiver type (pointer vs value)

Import Cycle

  • Move shared types to separate package, use interfaces

Cannot Find Package

  • Run go get package/path@version or go mod tidy

Unused Variable/Import

  • Remove or use blank identifier _

Multiple-Value in Single-Value Context

  • Add error variable: result, err := func()

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:

  • Same error persists after 3 fix attempts
  • Fix introduces more errors than it resolves
  • Error requires architectural changes beyond scope
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 68 lines · 39 tokens per session scan A 2aadd28c84f8

Subscribe to this mod's changes

go-build-fix is a skill published in the GitHub repository Luohaothu/everything-codex (25 stars, last pushed 2mo ago), licensed MIT. It adds 39 tokens to every session and 379 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

go-linters

Add and validate custom Go analysis linters in gh-aw.

github/gh-aw · 17 tokens

printing-press-polish

Polish a generated CLI to pass verification and become publish-ready. Runs diagnostics (dogfood, verify, scorecard, go vet, gosec), automatically fixes all issues (verify failures, static-analysis findings, dead code, descriptions, README, MCP tool quality), reports the before/after delta, and offers to publish. Use…

mvanhorn/cli-printing-press · 125 tokens

stack-trace-go-probe

Internal helper for meta-stack-trace-investigator. Use when a Go panic or stack trace needs Go-specific nil/error checks, go test reproducer guidance, and patch targets.

opensquilla/opensquilla · 42 tokens

golang-troubleshooting

Troubleshoot Golang programs systematically - find and fix the root cause. Use when encountering bugs, crashes, deadlocks, races, or unexpected behavior in Go code. Covers debugging methodology, common Go pitfalls, test-driven debugging, pprof setup and capture, Delve, race detection, GODEBUG tracing, and production…

samber/cc-skills-golang · 175 tokens

golang-error-handling

Idiomatic Golang error handling — creation, wrapping with %w, errors.Is/As, errors.Join, custom error types, sentinel errors, panic/recover, the single handling rule, structured logging with slog, HTTP request logging middleware, and samber/oops for production errors. Built to make logs usable at scale with log…

samber/cc-skills-golang · 144 tokens

tree-sitter-language-pack-extracting-code-structure

Use when the user wants structured code metadata from a source file — functions, classes, imports, exports, symbols, docstrings, comments, or syntax diagnostics. Covers ts-pack process feature flags, the JSON result shape, and the default feature set.

xberg-io/tree-sitter-language-pack · 52 tokens