Command Palette

Search for a command to run...

Назад к скиллам
скилл № 24248

go-build-fix

Go build, vet, and compilation error resolution specialist. Fixes build errors, go vet issues, and linter warnings with minimal changes. Use when Go builds…

БесплатноБез исполняемых скриптов
Luohaothuот Luohaothu★ 24 звезды на GitHub

Установить go-build-fix в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

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

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл go-build-fix?

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.

Как установить скилл go-build-fix?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл go-build-fix запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить go-build-fix с