go-testing
Trigger: Go tests, go test coverage, Bubbletea teatest, golden files.
Skill by gentleman-programming
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/j0k3r-dev-rgl-go-testing
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
go-testing- Description
- Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.
- License
- Apache-2.0
- Metadata
- author: gentleman-programming · version: 1.0
- Instructions
- 44 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- examples.md · references/
SKILL.md (first lines)
## Activation Contract Load this skill when writing or reviewing Go tests, adding coverage, testing Bubbletea/TUI flows, using `teatest`, or updating golden files. ## Hard Rules - Prefer table-driven tests for multiple cases; use `t.Run(tt.name, ...)`. - Test behavior and state transitions, not implementation trivia. - Use `t.TempDir()` for filesystem tests; never rely on a real home directory. - Keep integration tests skippable with `testing.Short()` when they run external commands or slow flows. - For Bubbletea, test `Model.Update()` directly for state changes; use `teatest` only for interactive flows. - Golden files must be deterministic; update only through the repo's `-update` path and rerun tests without `-update`. - Use small mocks/interfaces around system or command execution boundaries. ## Decision Gates | Target | Test pattern | |---|---| | Pure function or parser | Table-driven unit test. | | Error behavior | Explicit success and failure cases. | | File operations | `t.TempDir()` plus focused assertions. | | TUI state transition | Direct `Model.Update()` call with `tea.Msg`. | | Full TUI interaction | `teatest.NewTestModel()`. | | Rendered output | Golden file test. | | Real external command | Integration test; skip in `-short`. | ## Execution Steps 1. Identify behavior under test and the smallest public boundary that proves it. 2. Choose the test pattern from the decision gate. 3. Name cases by scenario, not input mechanics. 4. Assert outputs, errors, state, and side effects explicitly. 5. Run the narrow package test first, then the relevant broader suite. 6. For golden updates: run with `-update`, inspect diff, then rerun without `-update`. ## Output Contract Report test files changed, scenarios covered, commands executed, golden files updated, and any skipped integration scope. ## References - [references/examples.md](references/examples.md) — compact table-driven, Bubbletea, teatest, golden, and command examples.
From j0k3r-dev-rgl/open-code-config-public, Apache-2.0.
More from j0k3r-dev-rgl/open-code-config-public
- 0.499score
navigation-mcp
j0k3r-dev-rgl
MCP navigation, code discovery, symbol lookup, trace_flow, trace_callers, endpoints.
SkillCFreshness: C★ 1Claude Code +9 - 0.426score
engram-pending-tasks
gentleman-programming
user mentions pending, tech-debt, TODO, pendiente, deuda técnica, or asks about pending tasks.
SkillCFreshness: C★ 1Claude Code +9 - 0.419score
branch-pr
gentleman-programming
Create Gentle AI pull requests with issue-first checks.
SkillCFreshness: C★ 1Claude Code +9 - 0.419score
issue-creation
gentleman-programming
Create Gentle AI issues with issue-first checks.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 18, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0
- License
- Apache-2.0
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.546score
go-testing
AlexCas
Trigger: Go tests, go test coverage, Bubbletea teatest, golden files.
SkillBFreshness: B★ 1Claude Code +9 - 0.268score
go-testing
gentleman-programming
Trigger: Go tests, go test coverage, Bubbletea teatest, golden files.
SkillBFreshness: BClaude Code +9 - 0.243score
go-testing
gentleman-programming
Trigger: Go tests, go test coverage, Bubbletea teatest, golden files.
SkillCFreshness: CClaude Code +9
More from gentleman-programming
- 0.724score
gentleman-bubbletea
gentleman-programming
Bubbletea TUI patterns for Gentleman.Dots installer.
SkillAFreshness: A★ 7.6KClaude Code +9 - 0.723score
engram-backlog-triage
gentleman-programming
Backlog triage protocol for Engram: audit open issues and PRs, classify each item, infer maintainer ideology from comments, and produce an actionable…
SkillAFreshness: A★ 7.6KClaude Code +9 - 0.720score
engram-commit-hygiene
gentleman-programming
Commit and branch naming standards for Engram contributors, enforced by GitHub rulesets.
SkillAFreshness: A★ 7.6KClaude Code +9 - 0.720score
engram-architecture-guardrails
gentleman-programming
Architecture guardrails for Engram across local store, cloud sync, dashboard, and plugins.
SkillAFreshness: A★ 7.6KClaude Code +9 - 0.720score
engram-branch-pr
gentleman-programming
PR creation workflow for Engram following the issue-first enforcement system.
SkillAFreshness: A★ 7.6KClaude Code +9 - 0.720score
engram-business-rules
gentleman-programming
Product and business-rule guardrails for Engram.
SkillAFreshness: A★ 7.6KClaude Code +9
Cite this page
go-testing skill. Agent Mart. https://agentmart.dev/skills/j0k3r-dev-rgl-go-testing (last updated 2026-10-24)