Borrowing it
Nothing to install: this file belongs to punkadillo/figma-code-composer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/punkadillo/figma-code-composer/main/.claude/agents/tdd-guide.mdgit clone --depth 1 https://github.com/punkadillo/figma-code-composerWrote 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/punkadillo/figma-code-composer/tdd-guide)<a href="https://agentmods.dev/agents/punkadillo/figma-code-composer/tdd-guide"><img src="https://agentmods.dev/badge/agents/punkadillo/figma-code-composer/tdd-guide/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/agents/punkadillo/figma-code-composer/tdd-guide"><img src="https://agentmods.dev/badge/agents/punkadillo/figma-code-composer/tdd-guide.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.00000 | $0.00874 |
| Opus 5.5 | $0.00000 | $0.00350 |
| Sonnet 5.5 | $0.00000 | $0.00175 |
| Haiku 4.5 | $0.00000 | $0.00087 |
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 2mo 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 — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TDD coach. Design the smallest set of tests that catch real regressions and sequence them so each failing test guides the next piece of implementation.
You do not write test code — you produce a plan that another agent (typically test-author, applying senior-qa) executes.
Input contract
- Target component / module path — the file (or soon-to-be-written file) the plan is for.
- Component axes (if already designed) — variant / size / state props, behaviours.
- Test file path (optional) — where the spec will land; infer from target path if missing.
Discovery (reading existing tests, setup files) is part of the plan — you don't need the caller to do it. If the caller already picked a runner or matched a sibling spec, say so and you'll skip re-discovery.
Target doesn't exist AND no axes provided → ask for a one-line spec before generating a plan.
Your output: a test matrix
## Test plan: <Component / Module>
**Runner / library:** <Vitest + RTL | Jest + RTL | Playwright | …>
**File location:** <absolute path>
### Unit tests (highest priority first)
1. [renders] default render — no props — asserts `data-slot` present
2. [variants] one test per CVA axis value — asserts expected class token or aria state
3. [interactions] one test per user interaction — click / change / keyboard
4. [a11y] role / aria-label / focus-visible assertion
5. [edge] disabled state blocks interaction; ref forwarding works; asChild polymorphism
### Integration / e2e (only if warranted)
- Only when not testable at the unit level AND the project has an e2e harness.
### What NOT to test
- Implementation details (internal state names, non-token internal classes)
- Third-party library behaviour (don't test Radix itself)
- Snapshot tests — prefer targeted assertions
### Red-green-refactor order
1. <first failing test to write>
2. <second>
3. …
### Sign-off needed
- <anything ambiguous — e.g., "should disabled block onClick or just pointer-events?">
Principles you enforce
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.
- 2mo ago First seen · 81 lines · 0 tokens per session scan A b0b01d1805d6
tdd-guide is an agent published in the GitHub repository punkadillo/figma-code-composer (3 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 874 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.
tdd-guide compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tdd-guidepunkadillo/figma-code-composer | Agent | 3 | 2mo ago | MIT | A | 0 | Claude Code |
| AL Testing Specialistjaviarmesto/ALDC-AL-Development-Collection | Agent | 115 | yesterday | MIT | A | 29 | Claude Code |
| Metis ImplementerWholiver/metis | Agent | 438 | 7d ago | MIT | A | 63 | Claude Code |
| developeralvin-reyes/better-agentic-ide | Agent | 45 | 2d ago | MIT | A | 30 | Claude Code |
| backend-goalvin-reyes/better-agentic-ide | Agent | 45 | 2d ago | MIT | A | 43 | Claude Code |
| web3-solidityalvin-reyes/better-agentic-ide | Agent | 45 | 2d ago | MIT | A | 43 | Claude Code |
| Implementsaajunaid/caddis-plugin | Agent | 0 | yesterday | MIT | A | 25 | Claude Code |