simple-tdd

simple-tdd is a skill for Claude Code, Codex from SylphAI-Inc/atskills. It costs 22 tokens per session (477 once invoked), scanned A, original, MIT.

A test-driven development workflow, or TDD, where you write a test that fails first, add the smallest code that makes it pass, then improve the code while tests remain passing.

In plain words
What is it for?
Use it when adding or fixing behavior: describe the requirement, create and run a failing test, implement the minimum solution, run all tests, and refactor only after they pass.
Why use it?
It checks the intended behavior before implementation and helps prevent unrelated changes from expanding the task.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding or fixing behavior: describe the requirement, create and run a failing test, implement the minimum solution, run all tests, and refactor only after they pass.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sylphai-inc/atskills/simple-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 SylphAI-Inc/atskills --skill simple-tdd
Clone the repo
git clone --depth 1 https://github.com/SylphAI-Inc/atskills

Made for: Claude Code, Codex.

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 simple-tdd

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sylphai-inc/atskills/simple-tdd"><img src="https://agentmods.dev/badge/skills/sylphai-inc/atskills/simple-tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 477 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.00022 $0.00477
Opus 5 $0.00011 $0.00238
Sonnet 5 $0.00004 $0.00095
Haiku 4.5 $0.00002 $0.00048

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

Security

Grade A, and why

simple-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 10d 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.

examples/simple-tdd/SKILL.md · 43 lines

What it actually says

Simple TDD Workflow

Follow test-driven development strictly for the task at hand. Do not write implementation code before a failing test exists for it.

Steps

  1. Understand the requirement. Restate what behavior is being added or fixed, in one or two sentences, before touching any file.

  2. Write a failing test first.

    • Add a test that exercises the new/changed behavior.
    • Run the test suite and confirm the new test fails (and fails for the expected reason — a wrong assertion or a crash from unimplemented code, not an unrelated error).
    • If it doesn't fail, the test isn't testing anything new — fix the test before proceeding.
  3. Write the minimum code to make it pass.

    • Implement just enough to make the failing test green. Resist the urge to add extra functionality, generalization, or "while I'm here" cleanup at this stage.
    • Run the full test suite. All tests — the new one and every existing one — must pass.
  4. Refactor only when green.

    • With all tests passing, look for duplication, unclear naming, or structural issues introduced by the minimal implementation.
    • Refactor in small steps, re-running the test suite after each change to confirm nothing broke.
    • Do not add new behavior during this step — refactoring changes structure, not behavior.
  5. Repeat. For the next requirement or edge case, go back to step 2.

Rules

  • Never write production code without a failing test that requires it.
  • Never write more test code than is sufficient to fail.
  • Never write more production code than is sufficient to pass the currently failing test.
  • If you find yourself writing several tests before making any of them pass, stop — return to one test at a time.

When to Deviate

For pure exploration/spike work (throwaway prototyping to understand a problem), it's acceptable to skip strict TDD — but say so explicitly, and any code from the spike should be rewritten test-first before it ships.

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. 10d ago First seen · 43 lines · 22 tokens per session scan A 89c4481f1a37

Subscribe to this mod's changes

simple-tdd is a skill published in the GitHub repository SylphAI-Inc/atskills (82 stars, last pushed 18d ago), licensed MIT. It adds 22 tokens to every session and 477 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-08-30.

Related

Other skills, from other repositories

sparc-methodology

SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) comprehensive development methodology with multi-agent orchestration.

ruvnet/RuView · 29 tokens

superpowers-zh

Use when constraining AI coding with Chinese TDD methodology, systematic debugging, code review, and verification workflows. Superpowers-zh: Chinese adaptation of the Superpowers AI-assisted programming skills and methodologies.

znlgis/opengis-skills · 45 tokens

red-green-refactor

Guides the red-green-refactor TDD workflow: write a failing test first, implement the minimum code to make it pass, then refactor while keeping tests green. Use when a user asks to practice TDD, write tests first, follow red-green-refactor, do test-driven development, write failing tests before code, or phrases like…

rohitg00/skillkit · 90 tokens

tsq-bdd

A guide to Behavior-Driven Development (BDD), a way to describe software behavior in business language using Given-When-Then scenarios. These scenarios can serve as shared documentation and acceptance tests.

sonature-lab/timsquad · 62 tokens

tsq-tdd

A guide to test-driven development (TDD), a method where you write a failing test, make it pass with the smallest implementation, and then tidy the code.

sonature-lab/timsquad · 83 tokens

implementing-tasks

Use when executing a batch of TDD-sized tasks inside a running-an-iteration call — dispatches an implementer subagent per task following red-green-refactor discipline and returns per-task completion status.

prime-radiant-inc/iterative-development · 45 tokens