use-case-tdd
CommunityScaffold use cases with TDD RED-GREEN-REFACTOR
Authorjrmatherly
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provides a clear, repeatable workflow to add application-layer operations while ensuring correctness through strict Test-Driven Development, removing uncertainty about test order, DI registration, and minimal implementation steps.
Core Features & Use Cases
- TDD-first scaffolding: Create failing unit tests, implement the minimal use case, and refactor in a disciplined RED-GREEN-REFACTOR loop.
- DI registration guidance: Add required tsyringe decorators and register the new use case in the project's dependency injection container.
- Standardized conventions: Enforces file, class, and test naming conventions and verification steps like typechecking and linting for consistent developer workflows.
- Use Case Example: Add a CreateFeature use case that validates input, guards against duplicates via repository ports, and is covered by unit tests.
Quick Start
Ask the assistant to "Scaffold a new TypeScript use case named CreateFeature with a failing unit test, minimal implementation using tsyringe DI decorators, and DI container registration".
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: use-case-tdd Download link: https://github.com/jrmatherly/shipit/archive/main.zip#use-case-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.