typescript
CommunityEnforce strict TypeScript for bulletproof code.
Software Engineering#code quality#type safety#typescript#static analysis#best practices#refactoring#javascript
AuthorFranciscoMoretti
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill eliminates common TypeScript pitfalls and enforces strict typing guidelines, preventing runtime errors and improving code predictability. It promotes robust, maintainable code by discouraging any and enforcing explicit, direct imports, leading to a more reliable and easier-to-understand codebase.
Core Features & Use Cases
- Strict Typing Enforcement: Prohibits
anyand unsafe type assertions (as unknown as), ensuring full type safety and reducing unexpected behavior. - Clean Imports/Exports: Mandates direct, named exports and avoids problematic barrel files for better tree-shaking and code clarity.
- Inline Interfaces: Encourages co-locating type definitions with function parameters for immediate context and improved readability.
- Use Case: Review a TypeScript file to identify and flag any usage of
any,as unknown as, or default exports, suggesting refactors to align with project standards and enhance type safety.
Quick Start
Apply the typescript skill to analyze the attached 'dataProcessor.ts' file and suggest improvements based on the project's TypeScript guidelines.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: typescript Download link: https://github.com/FranciscoMoretti/sparka/archive/main.zip#typescript Please download this .zip file, extract it, and install it in the .claude/skills/ directory.