sdcorejs-tdd
CommunityWrite Red-Green-Refactor tests first
System Documentation
What problem does it solve?
Prevents production-code-first development by enforcing a failing test (RED) before any implementation, tailored to Angular, NestJS, and Next.js testing patterns.
Core Features & Use Cases
- RED state correctness: Ensures tests fail for the right reason (missing implementation) instead of broken tests or setup.
- GREEN minimal implementation: Guides writing the least code required to make the test pass without over-building.
- Refactor safely: Keeps behavior stable while extracting setup and improving clarity after tests pass.
- Framework-aware boilerplate: Provides Angular TestBed, NestJS Jest unit/integration patterns, and Next.js Jest testing approaches to avoid re-deriving setup.
Use case example: Implement a new service method in the correct behavior and verify it using the appropriate unit test scaffold; only after RED is achieved, add the minimal method logic, then refactor setup and rerun to confirm GREEN stays.
Quick Start
Invoke sdcorejs-tdd before implementing a service/component/function/handler in your write-code task to generate a failing test first, then follow red-green-refactor to reach passing tests.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: sdcorejs-tdd Download link: https://github.com/sdcorejs/sdcorejs-agent/archive/main.zip#sdcorejs-tdd Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.