go-build-resolver

go-build-resolver is an agent for Claude Code from majiayu000/vibeguard. It costs 28 tokens per session (297 once invoked), scanned A, original, MIT.

A specialized coding agent for repairing Go build failures, including compilation errors, module dependency problems, and CGO issues. CGO is Go's feature for calling code written in C.

In plain words
What is it for?
It helps fix Go type errors, unused imports, missing methods, inconsistent dependencies, local module paths, and missing C headers or library paths, then runs build, vet, and test checks.
Why use it?
It helps locate the underlying cause of build failures and check that repairs do not merely hide the problem.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit It helps fix Go type errors, unused imports, missing methods, inconsistent dependencies, local module paths, and missing C headers or library paths, then runs build, vet, and test checks.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/majiayu000/vibeguard/go-build-resolver
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.

Clone the repo
git clone --depth 1 https://github.com/majiayu000/vibeguard

Made for: Claude Code.

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-resolver

README.md
[![agentmods](https://agentmods.dev/badge/agents/majiayu000/vibeguard/go-build-resolver/github.svg)](https://agentmods.dev/agents/majiayu000/vibeguard/go-build-resolver)
Your own site
<a href="https://agentmods.dev/agents/majiayu000/vibeguard/go-build-resolver"><img src="https://agentmods.dev/badge/agents/majiayu000/vibeguard/go-build-resolver/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-resolver

Your own site · 80×15
<a href="https://agentmods.dev/agents/majiayu000/vibeguard/go-build-resolver"><img src="https://agentmods.dev/badge/agents/majiayu000/vibeguard/go-build-resolver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 297 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.
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.00028 $0.00297
Opus 5 $0.00014 $0.00148
Sonnet 5 $0.00006 $0.00059
Haiku 4.5 $0.00003 $0.00030

Measured 9d ago against content hash 55dc34e7bc40, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

go-build-resolver 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 9d 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.

agents/go-build-resolver.md · 43 lines

What it actually says

Go Build Resolver Agent

Responsibilities

Quickly fix build/compile errors for Go projects.

Common error types

Compilation error

  • Type mismatch → Fix type declaration
  • Unused imports/variables → Remove (Go mandatory)
  • Missing method implementation → Complete interface method

Module error

  • go.sum inconsistent → go mod tidy
  • version conflicts → align versions in go.mod
  • replace command issue → check local path

CGO Error

  • Missing C library → prompt to install system dependencies
  • Header file path → check CGO_CFLAGS / CGO_LDFLAGS

Workflow

  1. Run go build ./... to catch errors
  2. Parsing errors, grouped by files
  3. Start repairing from the root cause (one repair may solve multiple errors)
  4. Re-verify go build after each repair
  5. Finally run go vet ./... + go test ./...

VibeGuard Constraints

  • Do not use //nolint to bypass the problem
  • Solve problems that the standard library can solve without introducing new dependencies (U-06)
  • Repair scope minimized (L5)
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. 9d ago First seen · 43 lines · 28 tokens per session scan A 55dc34e7bc40

Subscribe to this mod's changes

go-build-resolver is an agent published in the GitHub repository majiayu000/vibeguard (41 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 297 once invoked, about $0.0001 per session on Opus 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-08-30.

Related

Other agents, from other repositories