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.5 $0.00009 $0.00191
Sonnet 5.5 $0.00004 $0.00095
Haiku 4.5 $0.00002 $0.00048

Measured 2mo ago against content hash 89c4481f1a37, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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. 2mo 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 (87 stars, last pushed 2mo ago), licensed MIT. It adds 22 tokens to every session and 477 once invoked, about $0.0001 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-30.

Related

simple-tdd compared with skills from other repositories

simple-tdd next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
simple-tddSylphAI-Inc/atskillsSkill872mo agoMITA22Claude Code, Codex
sparc-methodologyruvnet/RuViewSkill103kyesterdayMITA29Claude Code
red-green-refactorrohitg00/skillkitSkill1.6k5mo agoApache-2.0A90Claude Code, Codex
superpowers-zhznlgis/opengis-skillsSkill7610d agoMITB45Claude Code, Codex
sparc-methodologyruvnet/agentic-flowSkill838yesterdaynoneA29Claude Code
tsq-bddsonature-lab/timsquadSkill122mo agoMITA62Claude Code
implementing-tasksprime-radiant-inc/iterative-developmentSkill1835mo agoApache-2.0A45Claude Code