zuraffa: Command for Claude Code

.specify/extensions/tdd/commands/speckit.tdd.setup.md

speckit.tdd.setup is a command for Claude Code from arrrrny/zuraffa. It costs 29 tokens per session (661 once invoked), scanned A, original, MIT.

A command that detects the repository’s testing tools and records the verified commands in a TDD profile. TDD, or test-driven development, means writing and checking tests as part of the implementation cycle.

In plain words
What is it for?
Use it to set up the repository’s test profile and verify commands for individual tests, full test runs, builds, and TDD workflows.
Why use it?
It prevents later testing commands from relying on guessed or incorrect commands, including in Zuraffa projects where Zuraffa runs the test workflow.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is arrrrny/zuraffa's own configuration. It tells Claude Code how to work on zuraffa itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything zuraffa configures →

Reuse

Borrowing it

Nothing to install: this file belongs to arrrrny/zuraffa. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/arrrrny/zuraffa/master/.specify/extensions/tdd/commands/speckit.tdd.setup.md
Clone the repo
git clone --depth 1 https://github.com/arrrrny/zuraffa

Made for: Claude Code.

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 speckit.tdd.setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/arrrrny/zuraffa/speckit.tdd.setup.svg)](https://agentmods.dev/commands/arrrrny/zuraffa/speckit.tdd.setup)
Your own site
<a href="https://agentmods.dev/commands/arrrrny/zuraffa/speckit.tdd.setup"><img src="https://agentmods.dev/badge/commands/arrrrny/zuraffa/speckit.tdd.setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 661 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.00029 $0.00661
Opus 5 $0.00015 $0.00331
Sonnet 5 $0.00006 $0.00132
Haiku 4.5 $0.00003 $0.00066

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

Security

Grade A, and why

speckit.tdd.setup 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.

.specify/extensions/tdd/commands/speckit.tdd.setup.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TDD Setup (zfa-aware)

Make this repository's test stack explicit, so every later TDD command runs real commands instead of guessing. In zuraffa-wired projects, the profile records zfa as the engine — raw dart/flutter commands appear only as what zfa itself invokes.

User Input

$ARGUMENTS
  • --no-constitution: skip Phase 4.
  • --constitution-only: profile already correct, only handle the constitution.

Step 0 — Detect zuraffa

zfa --version 2>/dev/null && test -f .zfa.json && echo "ZFA_OK" || echo "ZFA_MISSING"

Phase 1 — Detect and prove commands

For each command the profile records, run it once and record the actual observed behavior. Never write a command you have not proven.

ZFA_OK projects — record the zfa engine

Profile key Command to prove
single_test zfa tdd verify-red <behavior> --feature <f> (certifies one test red)
full_suite flutter test (what zfa's gates invoke under the hood)
build zfa build
loop zfa tdd run <feature> --timeout 25
verify zfa tdd verify --feature <feature>

Prove each: run zfa tdd init (idempotent baseline), zfa build (codegen works), flutter test (day-zero suite green).

ZFA_MISSING projects — detect the raw stack

Detect framework (flutter/dart), test runner (flutter_test/test), mutation tool (mutation_test), coverage tool. Prove each command.

Phase 2 — Write the profile

Write .specify/memory/tdd-profile.md:

# Stack Profile

Detected: <date>
Engine: zfa (zuraffa-wired) | raw (non-zuraffa)

## Commands (proven)

- single_test: <command>
- full_suite: <command>
- build: <command>
- loop: <command>
- verify: <command>

## Notes

<anything special about this stack>

Phase 3 — Sanity check

Run the full suite once more from the profile's recorded command. It must be green (or document why not).

Phase 4 — Constitution principle

Unless --no-constitution: ensure the TDD principle is in the constitution:

Read the full file on GitHub · 88 lines

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 First seen · 88 lines · 29 tokens per session scan A be6ef4e9323f

Subscribe to this mod's changes

speckit.tdd.setup is a command published in the GitHub repository arrrrny/zuraffa (5 stars, last pushed today), licensed MIT. It adds 29 tokens to every session and 661 once invoked, about $0.0001 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-09-03.