Dev & Engineering go-testingtable-driven-testsgolden-filesbubbleteateatesttest-coverageintegration-testing

Go Testing Skill

Focused, practical testing patterns for Go, Bubbletea TUI, and golden files.

FollowSkills review · FSRS-2.0
Not recommended
59/ 100 5-point scale 3.0 / 5
1 2 3 4 5 6
1Trust20 / 25 · 4.0/5

The skill is a purely instructional guide with no code execution, external network calls, or sensitive data handling. It instructs using t.TempDir() and skippable integration tests, reflecting least privilege and isolation. It defines golden file update flow and test scope clearly, providing clear data flow. Deductions: lacks explicit user confirmation mechanism, permissions for external commands like go test not detailed, and publisher identity unverified with limited attribution.

2Reliability9 / 20 · 2.3/5

Instructions are self-consistent, decision gates and steps are clear, specific code examples provided. Dependencies like bubbletea and teatest listed in go.mod, mainstream. But static review cannot execute tests, no explicit failure feedback for abnormal input like invalid test parameters. Deductions: no failure handling guidance and key paths unverified.

3Adaptability11 / 15 · 3.7/5

Clearly targeted at Go testing, bubbletea TUI, and golden files scenarios, trigger conditions precise, decision gates and steps clear. Limited Chinese support but skill doesn't depend on overseas services. Deductions: boundaries not explicit (e.g., not for non-Go projects), no Chinese docs potentially affecting Chinese users.

4Convention10 / 15 · 3.3/5

Documentation well structured, includes sections and steps, examples and FAQ (not provided but referenced), declares Apache-2.0 license and version 1.0, author clear. Lacks changelog, maintenance responsibility, and known limitations. Deductions: version and license present, but no version history or maintenance path, examples file incomplete.

5Effectiveness6 / 15 · 2.0/5

Skill clearly accomplishes test writing and review tasks, decision gates and output contract clear, command line examples provided, marginal value evident. But no execution evidence to validate output quality, no cost-benefit analysis of different test methods. Deductions: no execution evidence, direct usability unverified.

6Verifiability3 / 10 · 1.5/5

Content is plain text, no executable tests, CI evidence, or third-party execution records. Code examples provided but key paths like specific teatest integration not covered. Deductions: no verifiable test results or independent validation, low credibility.

Evidence confidence:Low Reviewed Aug 07, 2026 Reviewed revision 1eb4b2602105
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
Before you use it
  • The skill is safe but users should be cautious that recommended go test commands may execute external commands; run in controlled environments.
  • The skill lacks user confirmation mechanisms; confirm test scope before running.
  • Dependencies on charmbracelet may fetch from overseas, potentially affecting use under network restrictions.
Review evidence [1][2][3][4][5][6][7][8]
See the full review method →

What does this skill do, and when should you use it?

This skill provides a structured approach to writing or reviewing Go tests, with a strong emphasis on table-driven tests, behavior verification, and state transition testing for Bubbletea/TUI apps. It covers unit, integration, and golden file tests, and offers a clear decision gate for when to use which pattern. The skill emphasizes pragmatic best practices like using t.TempDir() for filesystem isolation and testing.Short() to make integration tests skippable. It is part of the larger Gentle-AI ecosystem, installed via the same installer.

The skill guides testing practice by prescribing patterns and rules contained in its SKILL.md. It advises on approaches when writing or reviewing tests, including table-driven tests, direct Model.Update() testing for TUI state, teatest for full TUI interaction, and golden files for rendered output. It also specifies execution steps, such as running the narrowest test first, updating golden files only via the -update path, and rerunning tests without -update to verify.

  1. A developer adding test coverage to a Go project, wanting to follow recognized patterns.
  2. An engineer reviewing test code, checking whether the tests cover the right scenarios.
  3. A developer writing tests for a Bubbletea app, deciding between direct model testing and teatest.
  4. A tester maintaining golden files for a CLI tool, needing deterministic output and a safe update flow.
  5. A team wanting to keep integration tests skippable in short mode for CI quick checks.

What are this skill's strengths and limitations?

Pros
  • Provides a clear decision gate for common testing scenarios.
  • Enforces practical best practices like t.TempDir() and testing.Short() skips.
  • Handles TUI testing elegantly via direct Model.Update() testing.
  • Integrates well with golden file update workflow.
  • Part of a larger ecosystem, benefiting from centralized installation and updates.
Limitations
  • No ready-made scripts or templates; it's advisory, requiring the agent to execute.
  • Doesn't mention support for specific assertion libraries like testify, which may be too limiting.
  • Golden file update path is not detailed; requires user familiarity with Go testing conventions.
  • Compatibility is only text-based; no Windows-specific issues mentioned.

How do you install this skill?

This skill is part of the larger Gentle-AI monorepo. To install:

  1. Clone or download the Gentle-AI repository: git clone https://github.com/Gentleman-Programming/gentle-ai
  2. Copy the internal/assets/skills/go-testing/ folder into your agent skills directory (e.g., ~/.claude/skills/ for Claude Code, or a project .claude/skills/).
  3. Alternatively, run the official install script (macOS/Linux: curl -fsSL https://raw.githubusercontent.com/Gentleman-Programming/gentle-ai/main/scripts/install.sh | bash; Windows PowerShell: irm https://raw.githubusercontent.com/Gentleman-Programming/gentle-ai/main/scripts/install.ps1 | iex) and select this skill when prompted.

How do you use this skill?

When writing or reviewing Go tests, invoke the skill with a natural language prompt, e.g., "Use the go-testing skill to write tests for this function" or "Review these tests using the go-testing skill." The agent will follow the skill's guidance to choose the appropriate pattern, execute the tests, and report results. For golden files, run go test -update when updates are needed, review the diff, then run go test again to confirm.

FAQ

Does this skill replace my existing test libraries like testify?
No. It doesn't mandate any specific library. It focuses on structuring tests and scenarios through table-driven tests and standard library practices.
Can I use this skill for non-Go projects?
No, it is specifically about Go testing, including Bubbletea TUI.
Is this skill still useful if my project doesn't use Bubbletea?
Yes. The core table-driven testing, t.TempDir(), and golden file patterns apply to any Go project.
Are golden file updates automatic?
No, you need to explicitly run `go test -update` to update outputs, then rerun tests to verify.

More skills from this repository

All from Gentleman-Programming/gentle-ai

Related skills