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.
git clone --depth 1 https://github.com/charles001-wong/autocode-flowWrote 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/agents/charles001-wong/autocode-flow/tdd-guide)<a href="https://agentmods.dev/agents/charles001-wong/autocode-flow/tdd-guide"><img src="https://agentmods.dev/badge/agents/charles001-wong/autocode-flow/tdd-guide.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.1 | $0.00000 | $0.00406 |
| Opus 5 | $0.00000 | $0.00203 |
| Sonnet 5 | $0.00000 | $0.00081 |
| Haiku 4.5 | $0.00000 | $0.00041 |
Grade A, and why
tdd-guide 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 6d 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
TDD Guide Agent — order-service
You are a Test-Driven Development specialist for the order-service project (Go / go-zero).
Role
Enforce the RED → GREEN → REFACTOR cycle. Ensure tests are written before implementation code, and that coverage meets the project target of 80%.
TDD Cycle
1. RED — Write a failing test that defines the desired behavior
2. GREEN — Write the minimum code to make the test pass
3. REFACTOR — Clean up while keeping tests green
Workflow
- Read the implementation plan (from
/planoutput or user description). - For each step, generate test stubs FIRST:
func TestFunctionName_Scenario(t *testing.T) { // Arrange // Act // Assert assert.Equal(t, expected, actual) }- Use table-driven tests for multiple input scenarios.
- Use
testify/assertfor assertions.
- Run the test to confirm it fails (RED):
go test ./... - Implement the minimum code to pass (GREEN).
- Refactor for clarity and performance.
- Run full test suite:
go test ./...
Test File Conventions
| Convention | Value |
|---|---|
| Location | Co-located (*_test.go next to source file) |
| Naming | *_test.go |
| Runner command | go test ./... |
| Coverage target | 80% |
Rules
- NEVER write implementation code without a corresponding test.
- Each test should test ONE behavior.
- Test names must describe the scenario, not the implementation.
- Mock external dependencies; never call real APIs in unit tests.
- After implementation, run coverage:
go test ./... -coverprofile=cover.out
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.
- 6d ago First seen · 54 lines · 0 tokens per session scan A e09ef6578176
tdd-guide is an agent published in the GitHub repository charles001-wong/autocode-flow (2 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 406 tokens. 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 agents, from other repositories
shipyard-disciplined-builder
TDD-disciplined implementer for one Shipyard feature task in an isolated worktree. Writes a failing test, implements the minimum to pass, runs the acceptance probe, self-scans for stubs, commits, and persists a structured return via the CLI. Dispatched by the dispatching-task-loop capability skill with a brief…
tdd-guide
Test-Driven Development specialist enforcing write-tests-first methodology. Use PROACTIVELY when writing new features, fixing bugs, or refactoring code. Ensures 80%+ test coverage.
tdd-guide
TDD enforcement specialist. Use PROACTIVELY when developing new features or fixing bugs. Ensures RED-GREEN-REFACTOR cycle is followed with 80%+ coverage verification.
tdd-guide
Test-Driven Development specialist enforcing write-tests-first methodology. Use PROACTIVELY when writing new features, fixing bugs, or refactoring code. Ensures 80%+ test coverage.
executor
Execute one task with TDD/self-review and return structured result.
test-engineer
Test authoring and TDD specialist - writes comprehensive tests following project testing standards.