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 agentmods add instructions/mrlarson2007/copilot-tdd-harness/tdd-patternsgit clone --depth 1 https://github.com/mrlarson2007/copilot-tdd-harnessWrote 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/instructions/mrlarson2007/copilot-tdd-harness/tdd-patterns)<a href="https://agentmods.dev/instructions/mrlarson2007/copilot-tdd-harness/tdd-patterns"><img src="https://agentmods.dev/badge/instructions/mrlarson2007/copilot-tdd-harness/tdd-patterns.svg" alt="Measured on agentmods" 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 | $0.00385 | $0.00385 |
| Opus 5 | $0.00192 | $0.00192 |
| Sonnet 5 | $0.00077 | $0.00077 |
| Haiku 4.5 | $0.00038 | $0.00038 |
Grade A, and why
copilot-tdd-harness tdd-patterns.instructions.md 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 4d 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.
What it actually says
Go TDD Patterns
Treat this file as the project-specific source of truth for TDD work in this repository.
Commands
- For Go changes under
samples/fizzbuzz-go, rungo test ./...from that directory. - Run
go build ./...fromsamples/fizzbuzz-goonly when a build verification step is warranted. - There is no root Go module for this repository.
Run the narrowest practical command first when validating a small change, but fall back to the configured full test command before ending substantial work.
File Layout
- Source files are Go files under the repository using
*.go. - Tests are package-local files named
*_test.go. - Prefer adding tests next to the production code they exercise.
Test Naming
- Name tests with the Go
Test...prefix. - Use the repository convention
TestWhenCondition_ShouldExpectedOutcome. - Keep each new TDD cycle to exactly one new test covering exactly one behavior.
Examples:
TestWhenModeIsUnsupported_ShouldReturnErrorModeTestWhenTestsFail_ShouldBlock
Assertions
- Use the Go standard library
testingpackage. - Prefer
t.Fatalfort.Fatalwith explicit expected/actual output. - Keep assertion messages concrete and behavior-focused.
Stand-ins
- Prefer handwritten fakes or stubs behind small interfaces.
- Use standard library testing tools unless a strong reason exists to add a mock framework.
- Keep stand-ins local to the test package unless they are broadly reusable.
Repository Notes
- This repo now contains packaged harness assets plus sample Go code under
samples/fizzbuzz-go. - Validate Go changes in the owning sample module rather than from the repository root.
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.
- 4d ago First seen · 50 lines · 385 tokens per session scan A fc1ac0faafe7
copilot-tdd-harness tdd-patterns.instructions.md is an instructions file published in the GitHub repository mrlarson2007/copilot-tdd-harness (5 stars, last pushed 3mo ago), licensed MIT. It adds 385 tokens to every session, about $0.0019 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.
Other instructions, from other repositories
claude-code-config-switcher CLAUDE.md
Instructions for guyskk/claude-code-config-switcher, covering 项目背景, 开发流程, 特别说明:你要使用中文, write idiomatic go code and 提交前检查.
prompts AGENTS.md
Instructions for Sumatoshi-tech/prompts, covering promptkit — golang coding agent personality, working loop, micro-tdd development flow, e2e testing philosophy and architecture preferences.
gitlab-mcp CLAUDE.md
Instructions for wadew/gitlab-mcp, covering claude code development guide - gitlab mcp server, ground rules, test-driven development (tdd) - mandatory, code coverage requirements and phase gate criteria.
azure-sdk-for-go go-code.instructions.md
Instructions for Azure/azure-sdk-for-go: All code should follow the guidelines from the Azure Go SDK Guidelines. This document is a summary of the most important guidelines to follow when contributing to the Azure Go SDK.
chatgpt-cli CLAUDE.md
Claude Code instructions for kardolus/chatgpt-cli, covering chatgpt-cli — release runbook, prerequisites, 1. cut the release, 2. publish the github release + binaries and 3. update the homebrew tap.
coral CLAUDE.md
Instructions for cdknorow/coral, covering claude.md - coral go, mission, testing, go unit tests and legacy parity tools (historical reference).