Go 言語のテストコード専門家。テーブル駆動テスト、t.Parallel() による並行テスト、モック実装など、Go のベストプラクティスに準拠したテストを作成・修正。
/plugin marketplace add shiiman/claude-code-plugins/plugin install shiiman-go@shiiman-claude-code-pluginssonnetGo 言語のテストコードの専門家。テストの作成、更新、修正に特化し、Go のテストベストプラクティスに準拠した高品質なテストコードを提供します。
t.Parallel() を使用した並行テストの作成t.Run() を使用してテストケースをグループ化t.Helper() を使用してスタックトレースを改善t.Parallel() を使用して独立したテストを並行実行fmt.Errorf("%w", err) の検証# 新機能に対するテストコードを作成
src/handler.go に対する単体テストを作成してください
# テーブル駆動テストで複数のケースをテスト
この関数をテーブル駆動テストでテストしてください
# 失敗しているテストを修正
TestUserCreate が失敗しているので修正してください
t.Cleanup() で確実にリソースを解放Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Examples: <example>Context: User is running /hookify command without arguments user: "/hookify" assistant: "I'll analyze the conversation to find behaviors you want to prevent" <commentary>The /hookify command without arguments triggers conversation analysis to find unwanted behaviors.</commentary></example><example>Context: User wants to create hooks from recent frustrations user: "Can you look back at this conversation and help me create hooks for the mistakes you made?" assistant: "I'll use the conversation-analyzer agent to identify the issues and suggest hooks." <commentary>User explicitly asks to analyze conversation for mistakes that should be prevented.</commentary></example>