KS
Killer-Skills

tdd — what is tdd what is tdd, how to use tdd, tdd vs bdd, tdd setup guide, tdd install, test-driven development tutorial, tdd best practices, tdd alternative

v1.0.0
GitHub

About this Skill

Perfect for Code Development Agents needing robust test-driven development capabilities. TDD is a software development process that involves writing automated tests before writing the actual code, following a cycle of RED, GREEN, REFACTOR, and REPEAT.

Features

Follows the TDD cycle: RED → GREEN → REFACTOR → REPEAT
Supports test writing for normal cases, edge cases, and error cases
Uses npm test command to execute tests, e.g., npm test -- path/to/file.test.ts
Enables minimal implementation to pass tests, followed by refactoring
Defines interfaces and functions using type signatures and scaffolding

# Core Topics

jh941213 jh941213
[0]
[0]
Updated: 3/6/2026

Quality Score

Top 5%
30
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add jh941213/my-claude-code-asset/tdd

Agent Capability Analysis

The tdd MCP Server by jh941213 is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for what is tdd, how to use tdd, tdd vs bdd.

Ideal Agent Persona

Perfect for Code Development Agents needing robust test-driven development capabilities.

Core Value

Empowers agents to write reliable code using the TDD cycle, including RED, GREEN, and REFACTOR stages, with support for interface definition, test writing, and code refactoring, utilizing npm test and TypeScript.

Capabilities Granted for tdd MCP Server

Automating unit testing for complex functions
Generating test cases for edge scenarios
Refactoring existing codebases for improved maintainability

! Prerequisites & Limits

  • Requires npm and TypeScript setup
  • Limited to test-driven development workflow
Project
SKILL.md
1.1 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

TDD (테스트 주도 개발)

테스트를 먼저 작성하고, 코드를 구현하는 TDD 방식을 적용합니다.

TDD 사이클

RED → GREEN → REFACTOR → REPEAT

RED:      실패하는 테스트 작성
GREEN:    테스트 통과하는 최소 코드 작성
REFACTOR: 코드 개선 (테스트 유지)
REPEAT:   다음 기능/시나리오

진행 순서

  1. 인터페이스 정의 (SCAFFOLD)

    • 타입/인터페이스 먼저 정의
    • 함수 시그니처 작성
  2. 테스트 작성 (RED)

    • 정상 케이스
    • 엣지 케이스 (빈 값, null, 최대값)
    • 에러 케이스
  3. 테스트 실행 - 실패 확인

    bash
    1npm test -- path/to/file.test.ts
  4. 최소 구현 (GREEN)

    • 테스트만 통과하는 최소한의 코드
  5. 리팩토링 (REFACTOR)

    • 테스트 유지하며 코드 개선
  6. 커버리지 확인

    bash
    1npm test -- --coverage
    • 목표: 80% 이상

주의사항

  • 테스트를 먼저 작성 (구현 전에!)
  • 한 번에 하나의 테스트만 작성
  • 테스트가 실패하는지 반드시 확인
  • 최소한의 코드만 작성

Related Skills

Looking for an alternative to tdd or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication