test-write-go

Generate idiomatic Go table-driven tests from function signatures and comments.

Updated Mar 14, 2026
One-click install
npx skills add https://github.com/CaptainPhantasy/floyd-v5 --skill test-write-go
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-write-go
Source: https://github.com/CaptainPhantasy/floyd-v5/tree/main/extensibility/skills/testing/test-write-go
Command: npx skills add https://github.com/CaptainPhantasy/floyd-v5 --skill test-write-go

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates idiomatic Go table-driven tests to accelerate robust unit testing and improve maintainability.

Core Features & Use Cases

  • Table-driven test scaffolding for Go functions to ensure consistent test structure
  • Enforces explicit error handling and 100% path coverage in generated tests
  • Supports testify's require/assert assertions when available
  • Use Case: Quickly generate tests for Go packages with multiple branches to CI-ready coverage

Quick Start

Provide a Go function signature to generate a table-driven test scaffold.

Frequently Asked Questions about test-write-go

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate table-driven tests for a Go function?▼

To generate table-driven tests, provide a Go function signature to automatically scaffold idiomatic unit tests, including inputs and expected outputs, covering both standard paths and boundary conditions.

What is the best way to ensure 100% path coverage in Go unit tests?▼

Ensuring 100% path coverage in Go unit tests involves generating explicit error handling and boundary condition test cases from function signatures to satisfy CI-ready coverage requirements.

Does the generated Go test code work with testify require and assert?▼

Yes, the generated Go test code supports optional integration with testify's require and assert assertions to enforce explicit error handling within the table-driven test structure.

Can I automatically generate error path tests for Go packages?▼

Yes, you can automatically generate error path tests for Go packages by analyzing function signatures and comments to create consistent, idiomatic table-driven test scaffolds for multiple branches.

What do I need to start scaffolding Go unit tests?▼

You need to provide a Go function signature and its associated comments to start scaffolding idiomatic table-driven tests, accelerating robust unit testing without requiring external dependencies.