go-testing
Go testing patterns for Gentleman.Dots, including Bubbletea TUI testing.
Skill by gentleman-programming
Chalk Labs
Need help deploying go-testing?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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/crozzbite-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, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/go-testing
What's inside
- Skill name
go-testing- Description
- Go testing patterns for Gentleman.Dots, including Bubbletea TUI testing. Trigger: When writing Go tests, using teatest, or adding test coverage.
- License
- Apache-2.0
- Metadata
- author: gentleman-programming · version: 1.0
- Instructions
- 346 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
## When to Use
Use this skill when:
- Writing Go unit tests
- Testing Bubbletea TUI components
- Creating table-driven tests
- Adding integration tests
- Using golden file testing
---
## Critical Patterns
### Pattern 1: Table-Driven Tests
Standard Go pattern for multiple test cases:
```go
func TestSomething(t *testing.T) {
tests := []struct {
name string
input string
expected string
wantErr bool
}{
{
name: "valid input",
input: "hello",
expected: "HELLO",
wantErr: false,
},
{
name: "empty input",
input: "",
expected: "",
wantErr: true,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
result, err := ProcessInput(tt.input)
if (err != nil) != tt.wantErr {
t.Errorf("error = %v, wantErr %v", err, tt.wantErr)
return
}
if result != tt.expected {
t.Errorf("got %q, want %q", result, tt.expected)
}
})
}
}
```
### Pattern 2: Bubbletea Model Testing
Test Model state transitions directly:
```go
func TestModelUpdate(t *testing.T) {
m := NewModel()
// Simulate key press
newModel, _ := m.Update(tea.KeyMsg{Type: tea.KeyEnter})
m = newModel.(Model)
if m.Screen != ScreenMainMenu {
t.Errorf("expected ScreenMainMenu, got %v", m.Screen)
}
}
```
### Pattern 3: Teatest Integration Tests
Use Charmbracelet's teatest for TUI testing:
```go
func TestInteractiveFlow(t *testing.T) {
m := NewModel()
tm := teatest.NewTestModel(t, m)
// Send keys
tm.Send(tea.KeyMsg{Type: tea.KeyEnter})
tm.Send(tea.KeyMsg{Type: tea.KeyDown})
tm.Send(tea.KeyMsg{Type: tea.KeyEnter})
// Wait for model to update
tm.WaitFinished(t, teatest.WithDuration(time.Second))
// Get final model
finalModel := tm.FinalModel(t).(Model)
if finalModel.Screen != ExpectedScreen {
t.Errorf("wrong screen: got %v", finalModel.Screen)
}
}
```
### Pattern 4: Golden File Testing
Compare output against saved "golden" files:
```go
func TestOSSelectGolden(t *testing.T) {
m := NewModel()
m.Screen = ScreenOSSelect
m.Width = 80
m.Height = 24
output := m.View()
golden := filepath.Join("testdata", "TestOSSelectGolden.golden")
if *update {
os.WriteFile(golden, []byte(output), 0644)
}From crozzbite/skullrender-mcp-skills, Apache-2.0.
More from crozzbite/skullrender-mcp-skills
- 0.465score
issue-creation
gentleman-programming
Issue creation workflow for Agent Teams Lite following the issue-first enforcement system.
SkillBFreshness: B★ 1Claude Code +9 - 0.424score
github-pr
SkullRender (Antigravity)
Rules for Git, Pull Requests, and Conventional Commits.
SkillDFreshness: D★ 1Claude Code +9 - 0.424score
impresion-3d
SkullRender
Optimización de modelos, parámetros de impresión y resolución de problemas para impresión 3D (FDM y Resina).
SkillDFreshness: D★ 1Claude Code +9 - 0.424score
gdpr-compliance
SkullRender (Antigravity)
GDPR and CCPA data privacy compliance for applications.
SkillDFreshness: D★ 1Claude Code +9 - 0.424score
elixir-antipatterns
tsardinasGitHub
Core catalog of 8 critical Elixir/Phoenix anti-patterns covering error handling, separation of concerns, Ecto queries, and testing.
SkillDFreshness: D★ 1Claude Code +9 - 0.424score
app-security
SkullRender (Antigravity)
Security hub skill orchestrating all security standards (OWASP ASVS, LLM Top 10, GDPR, PCI DSS).
SkillDFreshness: D★ 1Claude Code +9 - 0.424score
arte-digital
SkullRender
Feedback artístico, teoría del color, composición y flujo de trabajo para ilustración y diseño digital.
SkillDFreshness: D★ 1Claude Code +9 - 0.421score
business-ethics
SkullRender (USER)
Ethical framework for SaaS, focusing on Data Privacy (LFPDPPP), Dark Patterns, and Sustainability.
SkillDFreshness: D★ 1Claude Code +9 - 0.421score
clean-code
crozzbite
Standard for Sanitization and Strict Typing (SkullRender Proof)
SkillDFreshness: D★ 1Claude Code +9 - 0.418score
angular
SkullRender AI
Official SkullRender Angular Standards (v17+).
SkillDFreshness: D★ 1Claude Code +9 - 0.369score
jira-epic
gentleman-programming
Creates Jira epics for large features following Prowler's standard format.
SkillDFreshness: D★ 1Claude Code +9 - 0.364score
ai-sdk-5
gentleman-programming
Vercel AI SDK 5 patterns.
SkillDFreshness: D★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 9, 2026 (2 months ago)
- Last release
- Feb 9, 2026 (8 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.
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-business-rules
gentleman-programming
Product and business-rule guardrails for Engram.
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-commit-hygiene
gentleman-programming
Commit and branch naming standards for Engram contributors, enforced by GitHub rulesets.
SkillAFreshness: A★ 7.6KClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get go-testing running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
go-testing skill. Agent Mart. https://agentmart.dev/skills/crozzbite-go-testing (last updated 2026-10-24)