vp-typescript-best-practices
Installation
SKILL.md
TypeScript Best Practices
Follow the repository's compiler settings, style, supported runtime, and public API conventions before applying fallback preferences. Inspect the installed compiler and library versions before relying on inference or schema APIs.
Select the task
Read the references needed for the actual decision:
| Task | Start with |
|---|---|
| Values, fixtures, callbacks, or prop construction | Consumer contracts and the relevant type reference |
| Untrusted data, custom guards, or assertion functions | Runtime validation |
| Generic inference, API results, mutation, or shared data | Public API contracts |
| Slow type checking or costly type utilities | Type performance |
| tsconfig, builds, ambient globals, project caches, or coverage | Project setup, then configuration/verification as needed |