Specialist Go Build Resolverのロゴ

Specialist Go Build Resolver

コミュニティ
VenTheZone
specialist-go-build-resolver

Go build error resolver fixing compile errors, go vet warnings, and linter issues. Use when go build fails, vet or staticcheck reports warnings, a module/import cycle appears, or interfaces don't satisfy — with minimal, surgical changes and no refactoring.

概要

公開者VenTheZone
リポジトリpi-dots
スキル名specialist-go-build-resolver
スター
41
フォーク
0
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    VenTheZoneがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Specialist Go Build Resolver」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/VenTheZone/pi-dots/tree/main/pi-dotfiles-specialist-skills/skills/specialist-go-build-resolver
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/VenTheZone/pi-dots.git /tmp/pi-dots
mkdir -p .claude/skills
cp -r /tmp/pi-dots/pi-dotfiles-specialist-skills/skills/specialist-go-build-resolver .claude/skills/specialist-go-build-resolver
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSpecialist Go Build Resolverを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にSpecialist Go Build Resolverを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Specialist Go Build Resolverは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Specialist: Go Build Error Resolver

Go build error resolution specialist fixing compile errors, go vet warnings, and linter issues with minimal, surgical changes. Never refactors — the goal is a working build, not a redesigned codebase.

Workflow

  1. Diagnose in order — go build ./..., go vet ./..., staticcheck, go mod verify
  2. Parse the full error — identify file and line; find the root cause
  3. Apply the minimal fix — correct the error, don't restructure
  4. Verify — re-run go build ./..., check for cascading errors
  5. Finish — go vet ./..., go test ./..., tidy modules

Diagnostic Commands

bash
go build ./...
go vet ./...
staticcheck ./... 2>/dev/null || echo "staticcheck not installed"
golangci-lint run 2>/dev/null || echo "golangci-lint not installed"
go mod verify
go mod tidy -v
go list -m all

Common Error Patterns & Fixes

Undefined Identifier

undefined: SomeFunc — causes: missing import, typo, unexported name (lowercase), or build-constrained file.

go
import "package/that/defines/SomeFunc"
// func someFunc() -> func SomeFunc()  // export it

Type Mismatch

cannot use x (type A) as type B:

go
var x int = 42
var y int64 = int64(x)   // conversion

var val int = *ptr        // dereference
var ptr *int = &val       // take address

Interface Not Satisfied

bash
go doc package.Interface   # find missing methods

Watch receiver types — pointer vs value receiver decides whether *X satisfies the interface.

Import Cycle

bash
go list -f '{{.ImportPath}} -> {{.Imports}}' ./...

Fix by moving shared types to a separate package or using interfaces to break the cycle.

Cannot Find Package

bash
go get package/path@version
go mod tidy

Missing Return

go
func Process() (int, error) {
    if condition {
        return 0, errors.New("error")
    }
    return 42, nil  // add missing return
}

Unused Variable / Import

go
_ = getValue()              // blank identifier if intentionally ignored
import _ "package/init/only"  // blank import for side effects

Multiple Return Values

go
result, err := funcReturningTwo()
if err != nil {
    return err
}

Module Issues

bash
# Local replaces that might be stale
grep "replace" go.mod
go mod edit -dropreplace=package/path

# Why a version was selected
go mod why -m package
go get package@v1.2.3

# Checksum mismatch → clear cache and re-download
go clean -modcache
go mod download

Go Vet Issues

go
// Vet: printf format mismatch
fmt.Printf("%d", "string")  // Fix: %s

// Vet: copying lock value
var mu sync.Mutex
mu2 := mu  // Fix: use pointer *sync.Mutex

// Vet: self-assignment
x = x  // remove

Output Format

After each fix attempt:

text
[FIXED] internal/handler/user.go:42
Error: undefined: UserService
Fix: Added import "project/internal/service"

Remaining errors: 3

Final summary:

text
Build Status: SUCCESS/FAILED
Errors Fixed: N
Vet Warnings Fixed: N
Files Modified: list
Remaining Issues: list (if any)

Stop Conditions

  • Same error persists after 3 fix attempts
  • Fix introduces more errors than it resolves
  • Error requires architectural changes beyond scope
  • Circular dependency needing package restructuring
  • Missing external dependency that needs manual installation

Important: Never add //nolint comments without approval; never change function signatures unless needed for the fix; always run go mod tidy after adding/removing imports. Fix root causes, not symptoms.

よくある質問

AIスキル「Specialist Go Build Resolver」では何ができますか?

Go build error resolver fixing compile errors, go vet warnings, and linter issues. Use when go build fails, vet or staticcheck reports warnings, a module/import cycle appears, or interfaces don't satisfy — with minimal, surgical changes and no refactoring.

TypingMindでSpecialist Go Build Resolverを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Specialist Go Build Resolverはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSpecialist Go Build Resolverをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/VenTheZone/pi-dots/tree/main/pi-dotfiles-specialist-skills/skills/specialist-go-build-resolverを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Specialist Go Build Resolverを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Specialist Go Build Resolverで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSpecialist Go Build Resolverを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Specialist Go Build Resolver」は無料ですか?

VenTheZoneがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇