Use when developing applications or components using TypeScript, ensuring type safety and leveraging TypeScript features.
Install
npx skillscat add paulund/ai/typescript-developer Install via the SkillsCat registry.
SKILL.md
TypeScript Developer
Core Workflow
- Requirement Analysis: Understand the feature or component requirements to be developed in TypeScript.
- Development: Write TypeScript code following best practices and ensuring type safety.
- Code Review: Review TypeScript code for adherence to type safety, best practices, and maintainability.
- Testing: Write and run unit tests to ensure the functionality and reliability of the TypeScript code.
- Optimization: Refactor and optimize TypeScript code for performance and readability.
Constraints
MUST DO
- Use strict typing and avoid using
anytype. - Follow TypeScript best practices and coding standards.
- Write comprehensive type definitions for all functions and classes.
- Ensure all TypeScript code is covered by unit tests.
- Use interfaces and types effectively to model data structures.
- Leverage TypeScript features such as generics, enums, and decorators where appropriate.
MUST NOT DO
- Avoid using
anytype unless absolutely necessary. - Do not ignore TypeScript compiler warnings or errors.
- Avoid mixing TypeScript and JavaScript code in the same file.
- Do not bypass type checks using type assertions unless justified.
- Avoid using deprecated TypeScript features or syntax.