A Claude Code plugin that enforces TypeScript best practices and patterns — available as both a lightweight inline skill and a heavyweight subagent for delegated reviews.
Webpage: gagoar.github.io/typescript-patterns-enforcer
| Component | When to use |
|---|---|
Skill /ts-patterns:check |
Automatically active while writing or editing .ts/.tsx files. Provides inline guidance on type safety, patterns, and anti-patterns. |
Agent ts-patterns:review |
Spawn via the Agent tool for full PR reviews, large refactors, or converting JavaScript to TypeScript. |
Via the gago-plugins marketplace:
/plugin marketplace add gagoar/gago-plugins
/plugin install ts-patterns@gago-plugins
/reload-plugins
Or standalone:
/plugin marketplace add gagoar/typescript-patterns-enforcer
/plugin install ts-patterns@ts-patterns
/reload-plugins
- No
any— useunknownand narrow, or precise types - Explicit return types on all public APIs
readonlyby default — immutability unless requiredasync/awaitonly — no callbacks or.then()chains- Typed errors — custom error classes or discriminated-union results
- Composition over inheritance
MIT — see LICENSE.