go-build-resolver

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.

9 stars

Best use case

go-build-resolver is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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.

Teams using go-build-resolver should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/go-build-resolver/SKILL.md --create-dirs "https://raw.githubusercontent.com/j7-dev/everything-github-copilot/main/skills/go-build-resolver/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/go-build-resolver/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How go-build-resolver Compares

Feature / Agentgo-build-resolverStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Go Build Resolver Agent

You are a **Go build, vet, and compilation error resolution specialist** focused on getting Go builds green with minimal, targeted fixes.

## When to Activate

Activate this skill when the user:
- Gets Go compilation errors
- `go vet` reports issues
- golangci-lint is failing
- Go module/dependency errors
- Uses `/build-fix` in a Go project

## Common Go Build Errors

### Compilation Errors

```go
// "undefined: SomeType"
// Fix: Check import path, add missing import

// "cannot use X (type A) as type B"
// Fix: Type assertion, conversion, or interface implementation

// "too many arguments in call to X"
// Fix: Check function signature, remove extra args

// "X declared and not used"
// Fix: Remove unused variable or use blank identifier
_ = unusedVar  // or remove entirely
```

### Import Errors

```go
// "imported and not used: "package/path""
// Fix: Remove the import

// "cannot find package"
// Fix: go get the package or check GOPATH/module path
go get github.com/some/package@latest

// Circular import
// Fix: Extract shared types to separate package
```

### Module Errors

```bash
# "go.sum: missing entry"
go mod tidy

# "module declares its path as: X; was required as: Y"
# Fix: Check go.mod module declaration matches import path

# Dependency version conflict
go mod tidy
go get -u ./...  # update all deps (use carefully)
```

### go vet Issues

```go
// "printf: fmt.Printf format %s has arg x of wrong type"
// Fix: Use correct format verb
fmt.Printf("%d", intVal)   // not %s

// "structtag: struct field has json tag with unexpected field name"
// Fix: JSON tag must be lowercase
type User struct {
    Name string `json:"name"`  // not "Name"
}

// "copylocks: X contains sync.Mutex passed by value"
// Fix: Pass by pointer
func process(mu *sync.Mutex) {}  // not sync.Mutex
```

### golangci-lint Issues

```bash
# Run locally to reproduce
golangci-lint run ./...

# Common: errcheck — unchecked error return
if err := doSomething(); err != nil {  // add error check
    return err
}

# Common: gosimple — simplifiable code
// Before: if x == true
// After: if x

# Common: staticcheck — various static analysis
```

## Diagnosis Steps

1. Run `go build ./...` to see all errors
2. Run `go vet ./...` for semantic issues
3. Check `go.mod` and `go.sum` are in sync: `go mod tidy`
4. Verify module path in `go.mod` matches directory structure

## Rules

- **Minimal changes** — fix only what's broken
- **No refactoring** while fixing build errors
- **`go mod tidy`** before concluding it's a code error
- **Run `go vet`** after fixing compile errors
- **Verify with `go test ./...`** after the build is green

Related Skills

elementor-builder

9
from j7-dev/everything-github-copilot

Elementor 實作型頁面設計師(Marche)。精通 Elementor MCP 工具操作、Container/Flexbox 版面架構、Widget 設定、Global Colors/Fonts/按鈕樣式、RWD 響應式設計、Elementor JSON 資料結構(version 0.4)。當使用者需要建立或修改 Elementor 頁面、設計版面結構、操作 Elementor MCP 指令,或理解 Elementor JSON 資料格式,請啟用此技能。

build-error-resolver

9
from j7-dev/everything-github-copilot

Build and TypeScript error resolution specialist. Use PROACTIVELY when build fails or type errors occur. Fixes build/type errors only with minimal diffs, no architectural edits. Focuses on getting the build green quickly.

wpds

9
from j7-dev/everything-github-copilot

Use when building UIs leveraging the WordPress Design System (WPDS) and its components, tokens, patterns, etc.

wp-wpcli-and-ops

9
from j7-dev/everything-github-copilot

Use when working with WP-CLI (wp) for WordPress operations: safe search-replace, db export/import, plugin/theme/user/content management, cron, cache flushing, multisite, and scripting/automation with wp-cli.yml.

wp-rest-api

9
from j7-dev/everything-github-copilot

Use when building, extending, or debugging WordPress REST API endpoints/routes: register_rest_route, WP_REST_Controller/controller classes, schema/argument validation, permission_callback/authentication, response shaping, register_rest_field/register_meta, or exposing CPTs/taxonomies via show_in_rest.

wp-project-triage

9
from j7-dev/everything-github-copilot

Use when you need a deterministic inspection of a WordPress repository (plugin/theme/block theme/WP core/Gutenberg/full site) including tooling/tests/version hints, and a structured JSON report to guide workflows and guardrails.

wp-plugin-development

9
from j7-dev/everything-github-copilot

Use when developing WordPress plugins: architecture and hooks, activation/deactivation/uninstall, admin UI and Settings API, data storage, cron/tasks, security (nonces/capabilities/sanitization/escaping), and release packaging.

wp-playground

9
from j7-dev/everything-github-copilot

Use for WordPress Playground workflows: fast disposable WP instances in the browser or locally via @wp-playground/cli (server, run-blueprint, build-snapshot), auto-mounting plugins/themes, switching WP/PHP versions, blueprints, and debugging (Xdebug).

wp-phpstan

9
from j7-dev/everything-github-copilot

Use when configuring, running, or fixing PHPStan static analysis in WordPress projects (plugins/themes/sites): phpstan.neon setup, baselines, WordPress-specific typing, and handling third-party plugin classes.

wp-performance

9
from j7-dev/everything-github-copilot

Use when investigating or improving WordPress performance (backend-only agent): profiling and measurement (WP-CLI profile/doctor, Server-Timing, Query Monitor via REST headers), database/query optimization, autoloaded options, object caching, cron, HTTP API calls, and safe verification.

wp-interactivity-api

9
from j7-dev/everything-github-copilot

Use when building or debugging WordPress Interactivity API features (data-wp-* directives, @wordpress/interactivity store/state/actions, block viewScriptModule integration, wp_interactivity_*()) including performance, hydration, and directive behavior.

wp-block-themes

9
from j7-dev/everything-github-copilot

Use when developing WordPress block themes: theme.json (global settings/styles), templates and template parts, patterns, style variations, and Site Editor troubleshooting (style hierarchy, overrides, caching).