Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add gonzaloserrano/gopilot --skill go-tdd-baby-stepsgit clone --depth 1 https://github.com/gonzaloserrano/gopilotWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/gonzaloserrano/gopilot/go-tdd-baby-steps)<a href="https://agentmods.dev/skills/gonzaloserrano/gopilot/go-tdd-baby-steps"><img src="https://agentmods.dev/badge/skills/gonzaloserrano/gopilot/go-tdd-baby-steps/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/gonzaloserrano/gopilot/go-tdd-baby-steps"><img src="https://agentmods.dev/badge/skills/gonzaloserrano/gopilot/go-tdd-baby-steps.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00092 | $0.01321 |
| Opus 5 | $0.00046 | $0.00660 |
| Sonnet 5 | $0.00018 | $0.00264 |
| Haiku 4.5 | $0.00009 | $0.00132 |
Grade A, and why
go-tdd-baby-steps scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Go TDD Baby Steps
Test-Driven Development using the smallest possible increments, with Go idioms.
Three Laws of TDD
- Don't write production code until you have a failing test
- Don't write more test code than is sufficient to fail (compilation failures count)
- Don't write more production code than is sufficient to pass the currently failing test
These laws create a tight feedback loop: write a tiny test, watch it fail, write just enough code to pass.
Red-Green-Refactor
- Red - Write a small test that fails
- Green - Write the minimal code to make it pass
- Refactor - Clean up while keeping tests green
Each cycle should take ~2 minutes. If longer, the step is too big.
The Revert Rule
If stuck or code is getting messy:
- Revert to the last green state
- Rethink the approach
- Take a smaller step
Never debug longer than the cycle itself. Revert instead.
Baby Steps with Go Table-Driven Tests
Build up the test table incrementally — each row adds ONE behavior.
Step 1: Zero/empty case
func TestParseAmount(t *testing.T) {
tests := []struct {
name string
input string
want int
wantErr bool
}{
{name: "empty string", input: "", want: 0, wantErr: true},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got, err := ParseAmount(tt.input)
if tt.wantErr {
require.Error(t, err)
return
}
require.NoError(t, err)
assert.Equal(t, tt.want, got)
})
}
}
Production code (fake it):
func ParseAmount(s string) (int, error) {
return 0, errors.New("empty")
}
Step 2: Single simple case
Add one row, generalize production code:
{name: "single digit", input: "5", want: 5},
func ParseAmount(s string) (int, error) {
if s == "" {
return 0, errors.New("empty input")
}
return strconv.Atoi(s)
}
Step 3: Edge cases, one at a time
{name: "negative number", input: "-3", want: -3},
{name: "leading zeros", input: "007", want: 7},
{name: "non-numeric", input: "abc", wantErr: true},
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 190 lines · 92 tokens per session scan A aeb5b904e6a4
go-tdd-baby-steps is a skill published in the GitHub repository gonzaloserrano/gopilot (17 stars, last pushed 2mo ago), licensed MIT. It adds 92 tokens to every session and 1,321 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
golang-testing
Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing, and test coverage. Follows TDD methodology with idiomatic Go practices.
tdd-workflow
Enforce practical Test-Driven Development for code changes in Go services. Use for new features, bug fixes, refactors, API changes, and new modules. Requires Red-Green-Refactor evidence, defect-hypothesis-driven tests, killer cases, and coverage gates (line + risk-path).
go-test
Enforce TDD workflow for Go. Write table-driven tests first, then implement. Verify 80%+ coverage with go test -cover.
blitz
/blitz - Blitz Mode Commander.
golang-testing
Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing, and test coverage. Follows TDD methodology with idiomatic Go practices.
skillshare-implement-feature
Implement a feature from a spec file or description using TDD workflow. Use this skill whenever the user asks to: add a new CLI command, implement a feature from a spec, build new functionality, add a flag, create a new internal package, or write Go code for skillshare. This skill enforces test-first development…