go-test-strategy

go-test-strategy is a skill for Claude Code, Codex from Dankosik/go-service-template-rest. It costs 39 tokens per session (463 once invoked), scanned A, original, MIT.

A test-planning guide based on trying to disprove each expected behavior. It helps define repeatable test conditions, an independent way to check results, and the point at which more investigation is needed.

In plain words
What is it for?
Use it to design Go tests for disputed or hard-to-test behavior, including controls, fixtures, expected results, proof steps, cleanup, and reopening conditions.
Why use it?
It reduces tests that pass for the wrong reason or only check the code's own output. It makes clear what failure each test must catch and how to reproduce it.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to design Go tests for disputed or hard-to-test behavior, including controls, fixtures, expected results, proof steps, cleanup, and reopening conditions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dankosik/go-service-template-rest/go-test-strategy
Install

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.

Any agent
npx skills add Dankosik/go-service-template-rest --skill go-test-strategy
Clone the repo
git clone --depth 1 https://github.com/Dankosik/go-service-template-rest

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for go-test-strategy

README.md
[![agentmods](https://agentmods.dev/badge/skills/dankosik/go-service-template-rest/go-test-strategy/github.svg)](https://agentmods.dev/skills/dankosik/go-service-template-rest/go-test-strategy)
Your own site
<a href="https://agentmods.dev/skills/dankosik/go-service-template-rest/go-test-strategy"><img src="https://agentmods.dev/badge/skills/dankosik/go-service-template-rest/go-test-strategy/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.

agentmods 80×15 button for go-test-strategy

Your own site · 80×15
<a href="https://agentmods.dev/skills/dankosik/go-service-template-rest/go-test-strategy"><img src="https://agentmods.dev/badge/skills/dankosik/go-service-template-rest/go-test-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 463 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00463
Opus 5 $0.00019 $0.00231
Sonnet 5 $0.00008 $0.00093
Haiku 4.5 $0.00004 $0.00046

Measured 3d ago against content hash b9b1c081b285, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

go-test-strategy 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 3d 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.

.agents/skills/go-test-strategy/SKILL.md · 43 lines

What it actually says

Go Test Strategy

Choose a test that rejects plausible wrong behavior at the smallest layer that can observe it. This is an optional method while implementing code or tests, not a separate phase, approval, or mandatory preliminary test plan.

Ground the assertion in accepted product behavior, not the implementation's current output. Reuse existing test patterns and controls. Preserve fixture cardinality, entity ownership, absent values, and event ordering. Prefer assertions that survive behavior-preserving refactors; test internal calls only when they carry an accepted contract or resource bound.

For the concrete choice in front of you, identify the wrong behavior, its observable consequence, and deterministic inputs or fault control. Unit tests are sufficient when they observe that consequence. Exercise available real in-process boundaries where a mock would miss the wrong behavior. An explicit real-database or provider verification claim needs that actual boundary, but this method cannot make such a claim mandatory for local completion. Follow the Evidence Contract before selecting external infrastructure. Do not build a test environment, runner, or scenario matrix merely because a mock has limits. Small fixtures and existing test doubles remain normal test authoring; keep optional unobserved scope clear.

Load one decision reference only when its pressure changes the test being written. A final or explicitly requested review may use the review references; they do not trigger review during ledger implementation. If a bounded consultation is delegated, use the shared specialist contract.

Done when the testing choice can be implemented in the current task. Repair fixtures and assertions locally; reopen a product owner only when expected behavior is actually undefined. The active workflow and Evidence Contract own validation timing and task completion.

Changes

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.

  1. 3d ago Changed · +4 lines b9b1c081b285
  2. 4d ago Changed · -16 lines · +1 tokens per session 870843de3005
  3. 6d ago Changed · +20 lines 99472339c674
  4. 11d ago First seen · 35 lines · 38 tokens per session scan A 899262c45309

Subscribe to this mod's changes

go-test-strategy is a skill published in the GitHub repository Dankosik/go-service-template-rest (7 stars, last pushed 3d ago), licensed MIT. It adds 39 tokens to every session and 463 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

code-guidelines-go

Go 1.24–1.27 coding guidelines for the dimetron/pi-go AI agent runtime. Use this skill whenever writing, reviewing, or refactoring ANY Go code in pi-go. This covers idiomatic style, error handling, concurrency, project layout, testing (table-driven, fuzz, benchmarks, synctest), new stdlib usage, golangci-lint v2…

dimetron/pi-go · 124 tokens

go-127

What changed in Go 1.27 (released August 2026) and how it changes the way Go is written in pi-go. Use this skill when writing or reviewing Go that could use a 1.27 feature, when bumping the go directive in go.mod, when a build or test behaves differently after a toolchain upgrade, or when code-guidelines-go points…

dimetron/pi-go · 177 tokens

bubbletea-testing

Use this skill whenever writing tests for Bubble Tea (charmbracelet/bubbletea) TUI applications in Go. Triggers include any mention of testing Bubble Tea models, teatest, golden file testing for TUIs, testing tea.Cmd or tea.Msg, snapshot testing terminal output, or writing tests for any Go CLI/TUI that uses the Elm…

dimetron/pi-go · 139 tokens

vhs-e2e-gif

Record a test run, a TUI session, or any terminal command as a GIF with VHS and attach it to a GitHub PR as a release-hosted asset, never a repo commit. Use when asked to record an e2e run, demo a fix on a PR, attach a GIF or screen recording to a pull request, show a test passing visually, or produce a terminal…

dimetron/pi-go · 106 tokens

ci-orchestrator

Run a CI-like pipeline locally (format, lint, vet, static-analysis, tests) and summarize per-step results with remediation guidance.

pilinux/gorest · 32 tokens

config-loader-helper

Diagnose configuration-related failures, enumerate required env vars, and guide safe local test setup (no secrets).

pilinux/gorest · 25 tokens