tsq-tdd

tsq-tdd is a skill for Claude Code from sonature-lab/timsquad. It costs 83 tokens per session (763 once invoked), scanned A, original, MIT.

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.

In plain words
What is it for?
Use it when building from tests first, applying the Red-Green-Refactor cycle, choosing TDD techniques, or adding edge-case tests.
Why use it?
It keeps development in small, checkable steps and uses tests to protect behavior while the code is improved.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it when building from tests first, applying the Red-Green-Refactor cycle, choosing TDD techniques, or adding edge-case tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sonature-lab/timsquad/tsq-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 sonature-lab/timsquad --skill tsq-tdd
Clone the repo
git clone --depth 1 https://github.com/sonature-lab/timsquad

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sonature-lab/timsquad/tsq-tdd"><img src="https://agentmods.dev/badge/skills/sonature-lab/timsquad/tsq-tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 763 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.00083 $0.00763
Opus 5 $0.00042 $0.00381
Sonnet 5 $0.00017 $0.00153
Haiku 4.5 $0.00008 $0.00076

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

Security

Grade A, and why

tsq-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 9d 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.

templates/base/skills/tsq-tdd/SKILL.md · 76 lines

What it actually says

TDD (Test-Driven Development)

철학

  • 테스트가 설계를 이끈다
  • 작은 단계로 진행한다
  • 리팩토링은 테스트가 보장한다
  • 불확실할 때는 더 작은 단계로

Red-Green-Refactor Cycle

1. Red (1-2min) — 실패하는 테스트 작성

  • 테스트가 실패하는 것을 확인
  • 한 번에 하나의 기능만 테스트
  • 테스트 이름으로 의도 명확히 표현
  • 금지: 구현 코드 먼저 작성

2. Green (3-5min) — 테스트를 통과하는 최소 코드

  • 테스트 통과만을 목표
  • 가장 단순한 구현 선택
  • 금지: 미래 요구사항 미리 구현, 완벽한 코드 추구

3. Refactor (5-10min) — 코드 정리

  • 중복 제거, 네이밍 개선, 구조 개선
  • 테스트 실행하며 진행
  • 금지: 기능 변경

Kent Beck Techniques (상세: rules/techniques.md)

기법 사용 시점
Fake It 구현 불확실 → 하드코딩 후 일반화
Triangulation 일반화 방향 불명확 → 2+ 테스트
Obvious Implementation 구현 명확 → 바로 작성
One to Many 컬렉션 → 단일 먼저, 확장
Assert First 구조 불명확 → assertion부터 역방향
Starter Test 시작점 모름 → 가장 단순한 테스트
Test Data Builder 객체 생성 반복 → 빌더 패턴
Learning Test 새 라이브러리 → 학습 테스트

SSOT 통합 워크플로우

  1. service-spec.md에서 API 명세 확인
  2. 명세 기반 테스트 케이스 작성 (Starter Test)
  3. 테스트 실패 확인 (Red)
  4. 명세대로 구현 (Green)
  5. 리팩토링 (Refactor)
  6. 삼각측량으로 엣지 케이스 추가

Checklist

  • 테스트 먼저 작성했는가
  • 테스트가 실패하는 것을 확인했는가
  • 최소 코드로 통과했는가
  • 리팩토링 단계를 거쳤는가
  • 삼각측량으로 일반화했는가
  • 엣지 케이스를 테스트했는가

참조

  • rules/techniques.md — 각 기법의 코드 예시
  • rules/real-world-example.md — 로그인 기능 TDD 전체 과정 + Anti-Patterns
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 76 lines · 83 tokens per session scan A 3608da6e6532

Subscribe to this mod's changes

tsq-tdd is a skill published in the GitHub repository sonature-lab/timsquad (11 stars, last pushed 9d ago), licensed MIT. It adds 83 tokens to every session and 763 once invoked, about $0.0004 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

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

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

simple-tdd

Test-driven development methodology — write the failing test first, then the minimum code to pass it.

SylphAI-Inc/atskills · 22 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

xp-practices

Apply XP practices including pair programming, ensemble programming, continuous integration, and sustainable pace. Use when implementing agile development practices, improving team collaboration, or adopting technical excellence practices.

summarybotng/summarybot-ng · 39 tokens

sparc-methodology

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

ruvnet/ruv-FANN · 29 tokens