coding-guidelines-typescript

Installation
SKILL.md

TypeScript Coding Guidelines

Typing

No any. No non-null assertions (!) unless the reason is documented in the code. Prefer explicit return types on all exported functions. Use generics over unknown casts.

// ❌
function parse(data: any): any { ... }

// ✅
function parse<T>(data: unknown): T { ... }

Interfaces and abstract classes

Define contracts explicitly. Use interface for pure shapes, abstract class

Related skills
Installs
5
Repository
bmsuisse/skills
GitHub Stars
2
First Seen
Mar 28, 2026