coding-typescript

Enforce TypeScript best practices for type-safety, dependency injection, and test-driven development.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams enforce TypeScript best practices to ensure code is type-safe, well-tested, and maintainable, reducing runtime errors and technical debt.

Core Features & Use Cases

  • Type Safety Enforcement: Promote strict typing, no any usage, and explicit constants to improve reliability.
  • Dependency Injection Discipline: Use dependency injection in tests and modules to improve testability and decouple implementations.
  • Test-Driven Guidance: Encourage writing tests before or alongside implementation to prove behavior rather than implementation details.
  • Code Quality Hygiene: Enforce constants, modern TS syntax, and error handling patterns across projects.

Quick Start

Use the coding-typescript skill to structure a new module's types, DI wiring, and tests, with an example project structure and checks in place.

Frequently Asked Questions about coding-typescript

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

FAQPage Schema
How do I enforce strict TypeScript best practices for type safety and unit testing?▼

Enforce strict TypeScript best practices by enabling strict typing, explicit constants, dependency injection, and behavior-first testing to prevent runtime errors and reduce technical debt.

What's the best way to structure TypeScript modules for dependency injection and testability?▼

Structure TypeScript modules using explicit dependency injection and module-level constants to decouple implementations, which improves testability and ensures robust typing across your project.

Why should I avoid mocks in TypeScript unit testing?▼

Avoid mocks in TypeScript unit testing to validate actual behavior rather than implementation details, ensuring your tests remain reliable and your code maintains strict type safety.

Can I use this approach for building TypeScript libraries that require comprehensive test coverage?▼

Yes, this approach suits building TypeScript libraries and modules by codifying strict typing, dependency injection, and test-driven development requirements to guarantee robust test coverage.

How does dependency injection discipline improve TypeScript code quality?▼

Dependency injection discipline improves TypeScript code quality by decoupling implementations, enabling explicit wiring in tests and modules, and enforcing strict typing across software engineering workflows.