go-test-generator

Generate Go unit tests with table-driven patterns and testify assertions.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/taku-o/go-webdb-template --skill go-test-generator
Or copy as Structured Prompt for Agent▌
Please help me install this Agent Skill.
Skill: go-test-generator
Source: https://github.com/taku-o/go-webdb-template/tree/main/.claude/skills/go-test-generator
Command: npx skills add https://github.com/taku-o/go-webdb-template --skill go-test-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Go のナニットテスト䜜成は繰り返しになりがちです。テヌブル駆動テストや testify/assert の䞀貫性を保぀コヌドパタヌンを提䟛し、品質ず生産性を向䞊させたす。

Core Features & Use Cases

  • テヌブル駆動テスト: さたざたなケヌスを䞀぀のテンプレヌトで網矅的に生成
  • Testify の掻甚: assert ず require の䜿い分けを実装
  • 参照実䟋: 既存のリポゞトリのテストパタヌンを暙準化しお再利甚
  • 䟋: UserRepository の Create/GetByID などのテストを自動生成

Quick Start

抜出した関数やメ゜ッドのテストを自動生成する際に、察象の Go ファむルを指瀺しお「テストコヌドを生成しお」ず䟝頌するず、_test.go ファむル矀を生成したす。 䟋えば server/internal/repository/user_repository.go のテストを䜜成したす。