tdd

tdd is a skill for Claude Code from 0xrafasec/ai-workflow. It costs 93 tokens per session (1,592 once invoked), scanned A, original, MIT.

A skill for writing or updating a project's Technical Design Document. It records how the project should be tested, developed, checked in continuous integration, and formatted.

In plain words
What is it for?
Use it to define a testing strategy, development environment, CI/CD setup, coding standards, and choices of linters and formatters.
Why use it?
It turns scattered testing and coding practices into documented project rules. This helps developers and automated agents use the same development and quality checks.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Good fit Use it to define a testing strategy, development environment, CI/CD setup, coding standards, and choices of linters and formatters.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0xrafasec/ai-workflow/tdd
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.

Any agent
npx skills add 0xrafasec/ai-workflow --skill tdd
Clone the repo
git clone --depth 1 https://github.com/0xrafasec/ai-workflow

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 tdd

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xrafasec/ai-workflow/tdd/github.svg)](https://agentmods.dev/skills/0xrafasec/ai-workflow/tdd)
Your own site
<a href="https://agentmods.dev/skills/0xrafasec/ai-workflow/tdd"><img src="https://agentmods.dev/badge/skills/0xrafasec/ai-workflow/tdd/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.

agentmods 80×15 button for tdd

Your own site · 80×15
<a href="https://agentmods.dev/skills/0xrafasec/ai-workflow/tdd"><img src="https://agentmods.dev/badge/skills/0xrafasec/ai-workflow/tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,592 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00093 $0.01592
Opus 5.5 $0.00037 $0.00637
Sonnet 5.5 $0.00019 $0.00318
Haiku 4.5 $0.00009 $0.00159

Measured 1mo ago against content hash dd19f3a0a01a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tdd 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 1mo 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.

skills/tdd/SKILL.md · 138 lines

How it starts

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

Create the Technical Design Document. Argument: $ARGUMENTS

Context Gathering

Before interviewing, explore the project's current build and test setup:

  1. Check for existing docs:

    • Read docs/TECHNICAL_DESIGN_DOCUMENT.md — if revising, don't start from scratch
    • Read CLAUDE.md for build/test commands
    • Read docs/ARCHITECTURE.md if it exists (for technology context)
    • Read README.md for setup instructions
  2. Explore the codebase:

    • Look for test directories (tests/, __tests__/, spec/, *_test.go, *.test.ts, test_*.py)
    • Read package.json, pyproject.toml, Cargo.toml, Makefile, docker-compose.yml for tooling, test commands, dependencies
    • Read 1-2 existing test files to understand patterns (fixtures, helpers, naming)
    • Check for CI config (.github/workflows/, .gitlab-ci.yml, Jenkinsfile)
    • Check for linter/formatter config (.eslintrc, ruff.toml, .golangci.yml, rustfmt.toml)
    • Summarize what you found to the user before starting — "Here's what I see in the project: ..."

Interview

Use AskUserQuestion to understand how the team builds, tests, and ships. Adapt based on what the codebase already reveals.

  1. Testing strategy — What test frameworks are in use? Where do tests live? Are there separate unit/integration/e2e layers? What needs integration tests vs unit tests? Any critical flows that need e2e coverage?
  2. Dev environment — How do developers set up locally? Docker, nix, manual install? What external services are needed (databases, queues, caches)?
  3. CI/CD pipeline — What runs on every PR? What runs nightly? What gates block merging? How are deployments triggered?
  4. Coding standards — Linter config, formatter, type checker? Any style guides or conventions not captured in tooling?
  5. Tooling decisions — Package manager, build system, monorepo tools? Why these over alternatives?
  6. Error handling & observability — Logging framework, error tracking, metrics? How do you debug production issues?
  7. Dependencies — How are deps managed? Pinned versions? Vulnerability scanning? Update cadence?

Read the full file on GitHub · 138 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. 1mo ago First seen · 138 lines · 93 tokens per session scan A dd19f3a0a01a

Subscribe to this mod's changes

tdd is a skill published in the GitHub repository 0xrafasec/ai-workflow (9 stars, last pushed 1mo ago), licensed MIT. It adds 93 tokens to every session and 1,592 once invoked, about $0.0004 per session on Opus 5.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 skills, from other repositories

cicd-pipeline-qe-orchestrator

Orchestrate quality engineering across CI/CD pipeline phases. Use when designing test strategies, planning quality gates, or implementing shift-left/shift-right testing.

proffesor-for-testing/agentic-qe · 41 tokens

shift-left-testing

Move quality earlier in the development lifecycle. Covers dev/QA pairing patterns, Three Amigos sessions, TDD facilitation (Red-Green-Refactor), PR review checklists for testability, and Definition of Done with quality gates. Includes shift-left maturity model for team assessment. Use when: "shift left," "TDD,"…

petrkindlmann/qa-skills · 149 tokens

data-quality-frameworks-sickn33

Implement data quality validation with Great Expectations, dbt tests, and data contracts. Use when building data quality pipelines, implementing validation rules, or establishing data contracts.

Kilo-Org/kilo-marketplace · 41 tokens

init-pipeline

Infrastructure skill for scaffolding pipeline enforcement into a project. Sets up Claude Code hooks (TDD classification gate, git guardrails, optional quality gate), pre-commit hooks (detects existing tools, defaults to Lefthook + Biome + pnpm if none found). Run when setting up a project for pipeline work, and again…

chrislacey89/skills · 108 tokens

ways-of-working

Codifies devantler-tech engineering practices: agent-first development workflow, TDD, CI/CD pipelines, GitHub Flow, code quality gates, and Kubernetes workflows with ksail. Use when filing issues, planning work, setting up projects, configuring CI/CD, writing tests, debugging, or making architectural decisions.

devantler-tech/agent-plugins · 65 tokens

ai-agents-validation-and-qa

What counts as evidence in ai-agents and how to produce it. Covers the TESTING-RIGOR pos+neg+edge bar, test layout and collection reality, coverage proof commands, runtime-contract tests with negative controls, and ADR-034 QA skip semantics at session end. Use when you say what counts as evidence, how do I test this…

rjmurillo/ai-agents · 126 tokens