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 shennawardana23/skillme --skill test-generationgit clone --depth 1 https://github.com/shennawardana23/skillmeWrote 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/shennawardana23/skillme/test-generation)<a href="https://agentmods.dev/skills/shennawardana23/skillme/test-generation"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/test-generation/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/shennawardana23/skillme/test-generation"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/test-generation.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.00069 | $0.01380 |
| Opus 5.5 | $0.00028 | $0.00552 |
| Sonnet 5.5 | $0.00014 | $0.00276 |
| Haiku 4.5 | $0.00007 | $0.00138 |
Grade A, and why
test-generation 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 1mo 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 — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test Generation
For any given code, produce all of the following — not just the happy-path test that's easiest to write.
What to generate
1. Unit tests, per exported function/method:
- Happy path — normal inputs produce expected outputs
- Error paths — every error condition is triggered and its content verified (not just
err != nil) - Nil/zero inputs — behavior with empty or zero values
- Boundary values — min, max, empty slice, single element, max slice
2. Table-driven tests (Go) — for any function with multiple input variants:
func TestFoo(t *testing.T) {
tests := []struct {
name string
input InputType
want OutputType
wantErr bool
}{
{"happy path", validInput, expectedOutput, false},
{"nil input", nil, zero, true},
{"empty string", "", zero, true},
}
for _, tc := range tests {
tc := tc // capture range variable (needed pre-Go 1.22; see Gotchas)
t.Run(tc.name, func(t *testing.T) {
t.Parallel()
got, err := Foo(tc.input)
if (err != nil) != tc.wantErr {
t.Fatalf("err = %v, wantErr %v", err, tc.wantErr)
}
if !tc.wantErr && got != tc.want {
t.Errorf("got %v, want %v", got, tc.want)
}
})
}
}
3. Concurrency tests (Go) — for any function touching shared state, channels, or goroutines:
- Design the test to run under
go test -race, not just to pass without it. - Use
sync.WaitGroupto synchronize multiple goroutines exercising the code concurrently. - Assert the invariant holds after concurrent access, not just that it doesn't panic — a race can corrupt data silently without crashing.
4. Mock patterns — for external dependencies (database, HTTP, filesystem):
- Mock through an interface (hand-written or
golang/mock/uber-go/mock), not by monkey-patching a concrete type. - Cover both the success and error return from the mock.
- Verify the mock was called the expected number of times when call count is part of the contract (e.g., "retries exactly twice").
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago First seen · 102 lines · 69 tokens per session scan A 078c4b0bd442
test-generation is a skill published in the GitHub repository shennawardana23/skillme (3 stars, last pushed 11d ago), licensed Apache-2.0. It adds 69 tokens to every session and 1,380 once invoked, about $0.0003 per session on Opus 5.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-09-03.
Other skills, from other repositories
dart-generate-test-mocks
A Dart testing workflow for creating generated mock objects with Mockito and build_runner. A mock is a controllable stand-in for an external service such as an API or database.
dart-add-unit-test
Organize test files to mirror the lib directory structure to maintain predictability.
flutter-add-widget-test
A guide for writing Flutter widget tests, which check individual interface components and their user interactions. Flutter is a toolkit for building apps from one Dart codebase.
diagnosing-bugs
A method for investigating difficult software bugs and performance slowdowns by building a repeatable feedback loop and testing possible causes.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code.
writing-tests
Write unit tests, component tests, and integration tests for AiderDesk using Vitest and React Testing Library. Use when creating new tests, adding test coverage, configuring mocks, setting up test files, or debugging failing tests.