go-test

Automate Go test execution with race detection and coverage reporting.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/kengou/go-guardian --skill go-test-kengou
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-test
Source: https://github.com/kengou/go-guardian/tree/main/skills/go-test
Command: npx skills add https://github.com/kengou/go-guardian --skill go-test-kengou

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Go tests are often slow, flaky, and require manual effort to run and audit. This Skill automates running, writing, analyzing, and debugging Go tests with race detection and coverage reporting to streamline Go test workflows.

Core Features & Use Cases

  • Auto-run tests with race detection and coverage reporting across packages to detect issues early.
  • Analyze test outputs to identify flaky tests, missing assertions, and coverage gaps.
  • Guide test authors on writing new tests and improving overall test quality using prior session findings.

Quick Start

Run go test with -race and -cover on the target package to validate test health.

Frequently Asked Questions about go-test

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

FAQPage Schema
How do I detect flaky Go tests and data races in my project?

You can identify flaky Go tests by running them with the race detection flag and analyzing the test outputs. This process detects data races, missing assertions, and coverage gaps across packages to improve reliability.

What are common Go test anti-patterns I should look out for?

Common Go test anti-patterns include using time.Sleep for synchronization, which leads to flaky tests. Automated anti-pattern detection scans test suites to identify these issues and enforce deterministic execution.

How do I measure and improve Go test coverage across multiple packages?

Measure Go test coverage by running tests with coverage reporting enabled across packages. Analyzing the generated coverage reports identifies coverage gaps and guides writing new tests to improve overall test quality.

Can I integrate prior session findings when writing new Go tests?

Yes, prior session findings can be integrated via query_knowledge when writing new Go tests. This leverages historical analysis data to guide test authors in improving overall test quality and reliability.

What is the best way to ensure deterministic execution in Go test suites?

The best way to ensure deterministic execution in Go test suites is by enabling race detection and anti-pattern detection. This identifies and guides the removal of non-deterministic behaviors like time.Sleep in tests.