typescript

Enforce TypeScript strict patterns and best practices in .ts/.tsx files.

1|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/ScorpionConMate/crm-influ-webview --skill typescript-scorpionconmate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/ScorpionConMate/crm-influ-webview/tree/main/.opencode/skills/typescript
Command: npx skills add https://github.com/ScorpionConMate/crm-influ-webview --skill typescript-scorpionconmate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers write safer, more maintainable TypeScript by enforcing strict patterns, strong types, and modular interfaces.

Core Features & Use Cases

  • Enforces const-first object patterns and derived union types for reliable runtime values.
  • Promotes flat interfaces, avoidance of any, and practical use of utility types and type guards.
  • Use Case: refactoring, API typing, and large-scale frontend or backend TypeScript projects.

Quick Start

Try applying the const object pattern shown in the examples, convert inline types to dedicated interfaces, and replace any with unknown in your codebase.

Frequently Asked Questions about typescript

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

FAQPage Schema
How do I enforce strict type safety and avoid any in TypeScript projects?

To enforce strict type safety, apply const-first object patterns, flat interfaces, and replace any with unknown. This enforces dedicated interface typing and practical utility type usage to improve maintainability across your .ts/.tsx files.

What is the best way to type API responses in large-scale TypeScript applications?

The best way to type API responses is by converting inline types to dedicated flat interfaces and leveraging utility types. This avoids any usage and establishes reliable, maintainable typing for large-scale API integration.

How do I use type guards and utility types when refactoring TypeScript code?

Use type guards and utility types during refactoring by replacing any with unknown and applying const-first object patterns. This approach derives union types for reliable runtime values and modular interfaces.

Does this TypeScript architecture pattern work for both frontend and backend .ts files?

Yes, these TypeScript architecture patterns work for both frontend and backend .ts/.tsx files. They enforce strict type safety, const-first object patterns, and flat interfaces suitable for large-scale development across the stack.

Why does replacing any with unknown improve type safety in TypeScript?

Replacing any with unknown improves type safety by forcing explicit type narrowing before usage. Combined with type guards and flat interfaces, it eliminates unchecked runtime values and enforces strict, maintainable project typing.