go-testing
Skill1 starsChanged 51 days agoMITView on GitHub
Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Prefer table-driven tests for multiple cases.
- Distinctive: line 17
Test behavior and state transitions, not implementation trivia.
- Very specific: line 18
Use t.TempDir() for filesystem tests.
- Very specific: line 19
Keep integration tests skippable with testing.Short() when they run external commands or slow flows.
- Distinctive: line 22
Use small mocks/interfaces around system or command execution boundaries.
- Distinctive: line 42
Run the narrow package test first, then the relevant broader suite.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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; useteatestonly for interactive flows. - Golden files must be deterministic; update only through the repo's
-updatepath 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
- Identify behavior under test and the smallest public boundary that proves it.
- Choose the test pattern from the decision gate.
- Name cases by scenario, not input mechanics.
- Assert outputs, errors, state, and side effects explicitly.
- Run the narrow package test first, then the relevant broader suite.
- 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 — compact table-driven, Bubbletea, teatest, golden, and command examples.
Other versions13 projects use a version of this.
Word for word · 1
- AndyTechnologies/my-own-skills★ 0100% same
Edited · 0
None found.
Wrote their own version · 12
- Gentleman-Programming/Gentleman.Dots★ 2ksame name
- alex-ilgayev/MCPSpy★ 519same name
- Rain-kl/OpenFlare★ 296same name
- Integralist/agent-skills★ 20same name
- h0rn3t/golang-skills★ 7same name
- martinhg/capiko-ai★ 2same name
- yuanJewel/skills★ 2same name
- AllThingsSmitty/proven-skills★ 1same name
- els0r/skills★ 1same name
- Baba01hacker666/dummyskills★ 0same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use go-performance and go-concurrency.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
els0rSkillgo-performance
Go performance analysis: memory allocation, CPU bottlenecks, concurrency contention, struct alignment, escape analysis, and benchmarking patterns. Use this skill whenever writing performance-sensitive Go code, reviewing Go code for efficiency, discussing allocations or GC pressure, benchmarking, profiling with pprof, or optimizing hot paths. Also trigger when the user mentions sync.Pool, atomic operations, pre-allocation, or escape analysis — even without saying "performance."
Also in 4 projects that use this
wpankSkillgo-concurrency
Production Go concurrency patterns — goroutines, channels, sync primitives, context, worker pools, pipelines, and graceful shutdown. Use when building concurrent Go applications or debugging race conditions.
Also in 4 projects that use this
In this repository46 other files it gives its agents.
- agent-skill-release-lifecycleSkill
- better-uiSkill
- branch-prSkill
- chained-prSkill
- cognitive-doc-designSkill
- comment-writerSkill
- community-pr-auditSkill
- cost-optimizerSkill
- deck-design-systemSkill
- domain-managerSkill
- domain-manager-syncSkill
- enterprise-agentic-deliverySkill
- evidence-based-decision-researchSkill
- gentle-ai-ecosystemSkill
- github-build-or-reuseSkill
- github-repo-autopilotSkill
- google-workspace-qualitySkill
- home-assistant-smart-home-plannerSkill
- issue-creationSkill
- judgment-daySkill
- mcp-skills-providerSkill
- open-source-repo-bootstrapSkill
- performance-auditorSkill
- personal-agentic-deliverySkill
- sdd-applySkill
- sdd-archiveSkill
- sdd-designSkill
- sdd-exploreSkill
- sdd-initSkill
- sdd-onboardSkill
- sdd-proposeSkill
- sdd-specSkill
- sdd-tasksSkill
- sdd-verifySkill
- skill-creatorSkill
- skill-improverSkill
- skill-publishSkill
- skill-registrySkill
- smart-shopping-advisorSkill
- social-publishingSkill
- startup-competitorsSkill
- startup-designSkill
- startup-pitchSkill
- startup-positioningSkill
- svg153-writing-styleSkill
- work-unit-commitsSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

