Our review
Diagnoses and fixes errors in Go projects, including compilation, test, and lint errors.
Strengths
- Automated error message analysis
- Supports multiple error types (compile, runtime, lint)
- Fast fixes with automatic verification
- Integrates with standard Go tools
Limitations
- Limited to errors well understood by code analysis
- May not resolve complex contextual errors
- Requires the project to use Go and related tools
When you have a Go error (build, test, or lint) that you want to diagnose and fix quickly.
When the issue is architectural or requires major refactoring, or when the error is not reproducible via go build/test/lint.
Security analysis
CautionThe skill runs standard Go development commands and modifies source files, which is powerful but intended for legitimate error fixing. No destructive or exfiltration commands are present, but the ability to run arbitrary bash and edit files warrants caution.
- •Uses Bash to execute Go toolchain commands (go build, go test, golangci-lint), which can modify files and network access via module downloads.
- •Uses Write and Edit tools to modify source code automatically based on error analysis.
Examples
Fix the build error in this Go project.My Go tests are failing. Can you fix them?Fix all lint errors in the current Go module.name: fix-error description: Go のエラーを診断し修正する。「エラーを直して」「ビルドエラー修正」「コンパイルエラー」「Go のエラー修正」「ビルドが通らない」「テストが失敗」「lint エラー修正」などで起動。 allowed-tools: [Read, Write, Edit, Bash, Glob, Grep] context: fork agent: shiiman-go:error-analyzer
Fix Error
Go のエラーを診断し修正するスキル。
トリガー
- 「エラーを直して」「ビルドエラー修正」「コンパイルエラー」
- 「Go のエラー修正」「ビルドが通らない」「テストが失敗」「lint エラー修正」
実行内容
- エラーメッセージの解析
- 原因の特定
- 修正の実施
- 修正確認
Claude への指示
実行手順
-
エラー情報の収集
ユーザーがエラーメッセージを提供していない場合:
# ビルドエラー確認 go build ./... 2>&1 # テストエラー確認 go test ./... 2>&1 # lint エラー確認 golangci-lint run ./... 2>&1 -
エラー解析
エラーメッセージから以下を特定:
- ファイル名と行番号
- エラータイプ(コンパイル/ランタイム/lint)
- 具体的なエラー内容
-
原因特定
# 該当ファイルを読み込み Read ツールで該当箇所を確認 # 関連コードを検索 Grep ツールで定義や使用箇所を検索 -
修正実施
error-analyzer エージェントの知識を活用:
- コンパイルエラー: 型エラー、未定義、インポート
- ランタイムエラー: nil ポインタ、範囲外アクセス
- lint エラー: errcheck、staticcheck、gosimple
-
修正確認
go build ./... go test ./... golangci-lint run ./...
出力形式
## エラー修正完了
### 検出されたエラー
- 種類: {コンパイル/ランタイム/lint}
- 箇所: {ファイル名}:{行番号}
- 内容: {エラーメッセージ}
### 原因
{原因の説明}
### 修正内容
{修正した内容の説明}
### 確認結果
- ビルド: ✅ 成功
- テスト: ✅ 成功
Next.js App Router Expert
Development
A skill that turns Claude into a Next.js App Router expert.
README Generator
Development
Creates professional and comprehensive README.md files for your projects.
API Documentation Writer
Development
Generates comprehensive API documentation in OpenAPI/Swagger format.