copilot-tdd-harness tdd-patterns.instructions.md

copilot-tdd-harness tdd-patterns.instructions.md is an instructions file for GitHub Copilot from mrlarson2007/copilot-tdd-harness. It costs 385 tokens per session, scanned A, original, MIT.

A set of project-specific rules for test-driven development (TDD) in Go, where tests are written before the code they check.

In plain words
What is it for?
Use it when adding or changing Go code, especially in the fizzbuzz sample, to write focused tests and verify changes with the repository's conventions.
Why use it?
It removes uncertainty about which commands, file locations, names, assertions, and test doubles to use in this repository.

Instructions file for GitHub Copilot

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.

agentmods
npx agentmods add instructions/mrlarson2007/copilot-tdd-harness/tdd-patterns
Clone the repo
git clone --depth 1 https://github.com/mrlarson2007/copilot-tdd-harness

Made for: GitHub Copilot.

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 copilot-tdd-harness tdd-patterns.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mrlarson2007/copilot-tdd-harness/tdd-patterns.svg)](https://agentmods.dev/instructions/mrlarson2007/copilot-tdd-harness/tdd-patterns)
Your own site
<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>
Per session 385 This file is loaded in full into every session.
When invoked 385 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00385 $0.00385
Opus 5 $0.00192 $0.00192
Sonnet 5 $0.00077 $0.00077
Haiku 4.5 $0.00038 $0.00038

Measured 4d ago against content hash fc1ac0faafe7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

.github/instructions/tdd-patterns.instructions.md · 50 lines

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, run go test ./... from that directory.
  • Run go build ./... from samples/fizzbuzz-go only 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_ShouldReturnErrorMode
  • TestWhenTestsFail_ShouldBlock

Assertions

  • Use the Go standard library testing package.
  • Prefer t.Fatalf or t.Fatal with 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.
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. 4d ago First seen · 50 lines · 385 tokens per session scan A fc1ac0faafe7

Subscribe to this mod's changes

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.

Related

Other instructions, from other repositories

claude-code-config-switcher CLAUDE.md

Instructions for guyskk/claude-code-config-switcher, covering 项目背景, 开发流程, 特别说明:你要使用中文, write idiomatic go code and 提交前检查.

guyskk/claude-code-config-switcher · 1,305 tokens

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.

Sumatoshi-tech/prompts · 2,852 tokens

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.

wadew/gitlab-mcp · 2,635 tokens

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.

Azure/azure-sdk-for-go · 755 tokens

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.

kardolus/chatgpt-cli · 1,279 tokens

coral CLAUDE.md

Instructions for cdknorow/coral, covering claude.md - coral go, mission, testing, go unit tests and legacy parity tools (historical reference).

cdknorow/coral · 1,898 tokens