tdd

tdd is a skill for Claude Code, Codex from Insajin/autopus-adk. It costs 11 tokens per session (610 once invoked), scanned A, original, MIT.

A Test-Driven Development guide. TDD means writing a failing test first, adding the smallest implementation that passes it, and then improving the code while keeping the tests passing.

In plain words
What is it for?
Use it to develop functions and features through the RED-GREEN-REFACTOR cycle, including table-based test cases.
Why use it?
It keeps implementation tied to expected behavior and catches incorrect assumptions early.

Skill for Claude CodeCodex

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

Good fit Use it to develop functions and features through the RED-GREEN-REFACTOR cycle, including table-based test cases.

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

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 tdd

README.md
[![agentmods](https://agentmods.dev/badge/skills/insajin/autopus-adk/tdd/github.svg)](https://agentmods.dev/skills/insajin/autopus-adk/tdd)
Your own site
<a href="https://agentmods.dev/skills/insajin/autopus-adk/tdd"><img src="https://agentmods.dev/badge/skills/insajin/autopus-adk/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/insajin/autopus-adk/tdd"><img src="https://agentmods.dev/badge/skills/insajin/autopus-adk/tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 610 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.00011 $0.00610
Opus 5 $0.00005 $0.00305
Sonnet 5 $0.00002 $0.00122
Haiku 4.5 $0.00001 $0.00061

Measured 5d ago against content hash eb6394db00b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 5d 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.

.omp/skills/tdd/SKILL.md · 100 lines

What it actually says

TDD (Test-Driven Development) Skill

테스트를 먼저 작성하고 구현하는 RED-GREEN-REFACTOR 사이클을 적용하는 스킬입니다.

핵심 원칙

테스트 없이 코드를 작성하지 않는다. 이 규칙을 위반하면 작업을 거부합니다.

RED-GREEN-REFACTOR 사이클

RED 단계: 실패하는 테스트 작성

1. 구현하려는 동작을 테스트로 먼저 작성
2. 테스트가 실패하는지 확인 (컴파일 에러 포함)
3. 올바른 실패 이유인지 확인

테스트 작성 원칙:

  • 테스트는 하나의 동작만 검증
  • 이름은 Test[Subject]_[Scenario]_[Expected] 형식
  • Given-When-Then 구조 사용
  • Table-driven tests로 다양한 케이스 커버
func TestCalculate_WithZeroInput_ReturnsError(t *testing.T) {
    t.Parallel()
    // Given
    input := 0
    // When
    _, err := Calculate(input)
    // Then
    assert.Error(t, err)
    assert.ErrorIs(t, err, ErrInvalidInput)
}

GREEN 단계: 최소 구현으로 테스트 통과

1. 테스트를 통과시키는 가장 단순한 코드 작성
2. 과도한 최적화나 일반화 금지
3. 테스트 통과만을 목표로

REFACTOR 단계: 코드 품질 개선

1. 중복 제거 (DRY 원칙)
2. 명명 개선
3. 복잡도 감소
4. 테스트는 항상 그린 상태 유지

Go 테스트 패턴

func TestMyFunction(t *testing.T) {
    t.Parallel()

    tests := []struct {
        name    string
        input   int
        want    int
        wantErr bool
    }{
        {"정상 입력", 5, 25, false},
        {"영 입력", 0, 0, true},
        {"음수 입력", -1, 0, true},
    }

    for _, tt := range tests {
        tt := tt
        t.Run(tt.name, func(t *testing.T) {
            t.Parallel()
            got, err := MyFunction(tt.input)
            if tt.wantErr {
                require.Error(t, err)
                return
            }
            require.NoError(t, err)
            assert.Equal(t, tt.want, got)
        })
    }
}

완료 기준

  • 모든 새 코드에 테스트 존재
  • 테스트 커버리지 85% 이상
  • go test -race ./... 통과
  • 각 단계에서 커밋 생성
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. 5d ago First seen · 100 lines · 11 tokens per session scan A eb6394db00b0

Subscribe to this mod's changes

tdd is a skill published in the GitHub repository Insajin/autopus-adk (111 stars, last pushed yesterday), licensed MIT. It adds 11 tokens to every session and 610 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.