implementing-typescript-files

Implement TypeScript files using a test-driven workflow with unit tests, type checks, and linting.

1|Updated Jan 6, 2026
One-click install
npx skills add https://github.com/simonheimlicher/spx-claude --skill implementing-typescript-files
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implementing-typescript-files
Source: https://github.com/simonheimlicher/spx-claude/tree/main/plugins/typescript/skills/implementing-typescript-files
Command: npx skills add https://github.com/simonheimlicher/spx-claude --skill implementing-typescript-files

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implement TypeScript code for specified files using a test-driven workflow to ensure correct behavior from design to delivery.

Core Features & Use Cases

  • Sequential file processing: each target file undergoes design of tests, implementation, and review before moving to the next
  • Behavior-first development: tests define expected behavior prior to coding
  • Strong maintainability: apply the constants pattern and dependency injection to support testability and reuse

Quick Start

Provide one or more relative file paths to implement, for example: /src/mymodule/handler.ts

Frequently Asked Questions about implementing-typescript-files

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

FAQPage Schema
How do I implement TypeScript files using test-driven development?

TypeScript file implementation with test-driven development processes each file sequentially by designing tests first, writing code to pass them, and performing a formal review before proceeding to the next file.

What's the best way to structure TypeScript code for unit testability?

Structuring TypeScript code for unit testability is achieved through applying a constants pattern and using dependency injection, which isolates components and supports reuse across the test-driven workflow.

How does sequential file processing work in TDD?

Sequential file processing in TDD completes the entire cycle—designing tests, implementing code, and reviewing—for one file before moving to the next, ensuring correct behavior from design to delivery.

Can I use dependency injection to improve TypeScript testability?

Dependency injection improves TypeScript testability by allowing external dependencies to be mocked or substituted during unit tests, which is enforced throughout the implementation workflow.

Does TypeScript TDD validate the complete cycle with unit tests and linting?

TypeScript TDD validates the complete cycle by running unit tests, type checks, and linting after implementation and review, ensuring the code meets all behavioral and structural requirements.

When do I need behavior-first development for TypeScript?

Behavior-first development for TypeScript is needed when you want tests to define expected behavior prior to coding, ensuring that the implementation strictly adheres to validated requirements.