tdd

Implement TDD workflows with RED, GREEN, and REFACTOR cycles using TypeScript and Jest.

Updated Jun 25, 2026
One-click install
npx skills add https://github.com/YuriNakayama/neurogolf --skill tdd-yurinakayama
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/YuriNakayama/neurogolf/tree/main/.claude/skills/tdd
Command: npx skills add https://github.com/YuriNakayama/neurogolf --skill tdd-yurinakayama

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jest, and includes scripts (resource) components.

What problem does it solve?

This Skill helps developers maintain a clean and manageable codebase by adhering to the Test-Driven Development (TDD) workflow, which emphasizes writing tests before implementing code.

Core Features & Use Cases

  • Scaffold Interfaces: Defines types/interfaces first for better planning and architecture.
  • Generate Tests First: Ensures that functionality is designed with testing in mind.
  • Implement Minimal Code: Promotes efficient coding by writing only the necessary code to pass the test.
  • Refactor: Continuously improve the codebase while maintaining test coverage.
  • Verify Coverage: Ensures at least 80% test coverage to catch potential bugs early.

Quick Start

To start a new TDD session for a function, use the command '/tdd I need a function to calculate market liquidity score'.

Frequently Asked Questions about tdd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I start test-driven development for a new TypeScript function?

To start test-driven development, define your function's interfaces first, then write failing Jest tests before implementing minimal code. This enforces the RED, GREEN, and REFACTOR cycles to ensure a cleaner codebase.

What is the TDD RED, GREEN, and REFACTOR workflow?

The TDD workflow involves writing a failing test (RED), implementing the minimal code to pass it (GREEN), and improving the codebase while maintaining coverage (REFACTOR). This cycle ensures functionality is always tested.

Does this TDD workflow support Jest and TypeScript?

Yes, this TDD workflow supports testing various components and functions using TypeScript and Jest. It integrates predefined steps to ensure your development process maintains high code quality and test coverage.

How do I ensure 80% test coverage for my codebase?

You ensure 80% test coverage by continuously verifying your tests during the REFACTOR phase. Writing tests first and implementing only the necessary code helps catch potential bugs early and maintain coverage.

Can I scaffold TypeScript interfaces before writing tests?

Yes, you can scaffold types and interfaces first for better planning and architecture. Defining interfaces before generating tests ensures that functionality is designed with testing in mind from the start.

Why should I write tests before implementing code?

Writing tests before implementing code promotes efficient coding by ensuring you write only what is necessary to pass the test. This test-driven development approach helps maintain a clean and manageable codebase.