building-stories-with-tdd

Create story-based TDD tests for NestJS projects using REST/GraphQL APIs.

Updated Dec 8, 2025
One-click install
npx skills add https://github.com/lenneTech/claude-code --skill building-stories-with-tdd
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: building-stories-with-tdd
Source: https://github.com/lenneTech/claude-code/tree/main/plugins/lt-dev/skills/building-stories-with-tdd
Command: npx skills add https://github.com/lenneTech/claude-code --skill building-stories-with-tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides developers to implement features with Test-Driven Development for NestJS using @lenne.tech/nest-server. It drives development by creating story tests first in tests/stories/, then uses the generating-nest-servers skill to implement until all tests pass.

Core Capabilities

  • Story-based development workflow: Step-by-step TDD process for NestJS
  • API-first testing rules (via REST/GraphQL)
  • Integration with generating-nest-servers for code generation
  • Self-verification and security-focused checks
  • Collaboration patterns with related skills (generating-nest-servers, npm-package-maintenance)

Quick Start

Create a new story under tests/stories/, implement tests first, then iterate on code until tests pass. Use the nest-server generator as needed.

Frequently Asked Questions about building-stories-with-tdd

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

FAQPage Schema
How do I implement TDD-driven feature development in NestJS?▼

TDD-driven NestJS development starts by writing story tests first in tests/stories/, then implementing code until all tests pass. This approach uses @lenne.tech/nest-server to guide API-first development, ensuring tests define behavior before implementation begins.

What is story-based testing and how does it work with NestJS APIs?▼

Story-based testing structures test cases as user workflows or feature narratives, testing REST or GraphQL endpoints end-to-end. In NestJS projects, story tests live in tests/stories/ and drive implementation through a test-first workflow, integrating security and self-verification checks.

Can I use TDD with API-first development in NestJS?▼

Yes. This Skill implements API-first TDD by writing tests against REST or GraphQL endpoints before building server logic. The workflow pairs story tests with the generating-nest-servers skill to iteratively implement features that satisfy test requirements.

How do I integrate story tests with NestJS code generation?▼

Write story tests in tests/stories/ that define expected API behavior, then use the generating-nest-servers skill to scaffold NestJS code. Iterate by running tests against generated code until all stories pass, automating the test-to-implementation cycle.

What are the limitations of story-driven TDD in NestJS projects?▼

Story-driven TDD works best for feature-level workflows with clear API contracts. It depends on @lenne.tech/nest-server and the generating-nest-servers skill; teams must maintain test structure discipline and define stories that map cleanly to API endpoints to avoid fragmented test coverage.

Does this approach work for both REST and GraphQL APIs?▼

Yes. Story-based TDD supports testing via REST or GraphQL endpoints, letting you choose the API style that fits your feature. Tests run against either protocol, and the generating-nest-servers skill supports both integration patterns.