go-testing
Skill0 starsChanged 35 days agoMITView on GitHub
Write or fix Go tests - table-driven tests, subtests, t.TempDir, httptest fakes, running go test
14 other projects use a version of this.
Adopted by
Most recently taken up by
- Integralist/agent-skillstheir own version, first seen Nov 26, 2026
- GetStream/Agentstheir own version, first seen Nov 22, 2026
- h0rn3t/golang-skillstheir own version, first seen Nov 12, 2026
- svg153/skillstheir own version, first seen Nov 1, 2026
- martinhg/capiko-aitheir own version, first seen Oct 20, 2026
- Baba01hacker666/dummyskillstheir own version, first seen Oct 13, 2026
Used with
Projects with it also use go-performance, go-concurrency and 6 more.
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 3 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
joeldevzSkillchained-pr
Split large changes (>400 lines OR >5 slices) into a series of reviewable PRs. Two strategies — stacked-to-main and feature-branch-chain. Prevents the 100-conflict merge disaster.
Also in 3 projects that use this
JOSEDOWSKISkillcomment-writer
Write warm, direct collaboration comments. Trigger: PR feedback, issue replies, reviews, Slack messages, or GitHub comments.
Also in 3 projects that use this
JOSEDOWSKISkillwork-unit-commits
Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.
Also in 3 projects that use this
Gentleman-ProgrammingSkillbranch-pr
Also in 3 projects that use this
- +1 more from JOSEDOWSKI
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- GetStream/Agents★ 8.2ksame name
- Gentleman-Programming/Gentleman.Dots★ 2ksame name
- alex-ilgayev/MCPSpy★ 519same name
- Integralist/agent-skills★ 30same name
- h0rn3t/golang-skills★ 8same name
- martinhg/capiko-ai★ 2same name
- yuanJewel/skills★ 2same name
- AllThingsSmitty/proven-skills★ 1same name
- els0r/skills★ 1same name
- svg153/skills★ 1same name
4 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.
In this repositoryOne other file it gives its agents.
- code-reviewSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
1
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 9
Prefer table-driven tests with t.Run(tc.name, ...) so each case is reported separately.
- Very specific: line 10
Use t.TempDir() for files and httptest.NewServer for HTTP.
- Distinctive: line 12
Test behavior through exported functions.
- Very specific: line 13
After writing tests, run go test ./...
“Common” is measured: kept by at least 6 in 10 of the 14 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
Writing Go tests
- Find the existing style first:
go test ./... 2>&1 | head, and read one existing_test.goin the same package. - Prefer table-driven tests with
t.Run(tc.name, ...)so each case is reported separately. - Use
t.TempDir()for files andhttptest.NewServerfor HTTP; never touch the real network or home directory. - Compare with plain
if got != want { t.Fatalf("got %v, want %v", got, want) }unless the repo already uses testify. - Test behavior through exported functions; do not export things just to test them.
- After writing tests, run
go test ./... -race -count=1andgo vet ./..., and fix every failure before reporting done.
Skeleton:
func TestParse(t *testing.T) {
tests := []struct {
name string
in string
want int
wantErr bool
}{
{"simple", "42", 42, false},
{"empty", "", 0, true},
}
for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {
got, err := Parse(tc.in)
if (err != nil) != tc.wantErr {
t.Fatalf("err = %v, wantErr %v", err, tc.wantErr)
}
if got != tc.want {
t.Fatalf("got %d, want %d", got, tc.want)
}
})
}
}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.

