typescript

Review TypeScript code for style and type-safety best practices.

2|Updated Jul 17, 2025
One-click install
npx skills add https://github.com/SouleymaneSy7/dots-files --skill typescript-souleymanesy7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/SouleymaneSy7/dots-files/tree/main/opencode/skills/typescript
Command: npx skills add https://github.com/SouleymaneSy7/dots-files --skill typescript-souleymanesy7

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenges of ensuring TypeScript code quality and type-safety in the LobeHub ecosystem, guiding developers on best practices and providing instant feedback for common issues.

Core Features & Use Cases

  • Style and Safety: Offers comprehensive guidelines for writing TypeScript code that is both performant and type-safe.
  • Code Quality: Helps in maintaining clean and maintainable codebase with its focus on interface vs. type, and avoiding the use of 'any'.
  • Use Case: Before making any significant changes to your .ts files, trigger this Skill to review type quality and ensure proper module augmentation.

Quick Start

Trigger the 'typescript' skill to get a type-safety check on your new React component file.

Frequently Asked Questions about typescript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I ensure type-safety in TypeScript files?

To ensure type-safety, trigger this Skill to review your TypeScript files for interface vs. type decisions, Record<PropertyKey, unknown> usage, and proper error handling. It provides instant feedback on common issues to prevent type-related bugs.

What is the best way to avoid using any in TypeScript code?

The best way to avoid 'any' is to follow development guidelines focused on type-safe alternatives. This Skill reviews code to maintain clean, maintainable codebases by enforcing proper type definitions and module augmentation.

When do I need to choose between interface and type in TypeScript?

You need to choose between interface and type when defining object shapes in TypeScript. This Skill reviews your code for these decisions, offering guidelines to ensure performant and type-safe development.

Does this TypeScript code style checker work with React components?

Yes, this TypeScript code style checker works with React components. You can trigger the Skill to get a type-safety check on your new React component file before making significant changes to your .ts files.

How do I review TypeScript code for proper error handling?

To review TypeScript code for proper error handling, trigger this Skill on file edits. It checks for correct error handling patterns and proper module augmentation to prevent type-related bugs and maintain code quality.