typescript_skill

This skill helps you configure TypeScript, fix type errors, and adopt best practices with dayjs and type-safe tooling.
  • Python

7

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill vladimirbrejcha/ios-ai-skills --skill typescript

  • SKILL.md3.3 KB

Overview

This skill helps configure and enforce TypeScript conventions, tooling, and common patterns across a project. It focuses on safe typing, consistent ordering, formatting and linting choices, and recommended libraries for common tasks like date handling. Use it to get a predictable, maintainable TypeScript codebase.

How this skill works

The skill inspects project files for TypeScript usage (.ts/.tsx), linting configs, and missing type definitions. It recommends or creates configurations (Biore/biome.jsonc when appropriate), applies rules such as avoiding any, preferring type aliases, and enforcing alphabetical ordering for fields and parameters. It also suggests using dayjs for date logic and provides style guidance like centered comment dividers.

When to use it

  • Setting up TypeScript in a new or existing project
  • Fixing or preventing type errors and missing definitions
  • Converting JavaScript files to TypeScript (.ts/.tsx)
  • Adding a consistent linter/formatter or creating biome.jsonc
  • Implementing date/time logic and preferring dayjs

Best practices

  • Never use the any type; prefer explicit types and generics
  • Prefer type aliases (type) over interface for declarations
  • Keep object keys, type fields, function parameters, and class properties alphabetized
  • Use BiomeJS for formatting/linting unless the project already uses ESLint + Prettier
  • Use dayjs for date and time calculations instead of the native Date
  • Avoid returning values from forEach callbacks; use map/filter/reduce when transforming

Example use cases

  • Add TypeScript and tsconfig to a JavaScript project and convert key modules to .ts/.tsx
  • Replace uses of isNaN with Number.isNaN and fix related type checks
  • Introduce dayjs for deadline calculations and timezone-agnostic comparisons
  • Create biome.jsonc for consistent formatting and integrate with CI
  • Refactor a codebase to remove any types and add accurate type aliases

FAQ

Use Biome by default for linting/formatting, but keep existing ESLint + Prettier if the project already relies on them to avoid disruptive changes.

When is it acceptable to use any?

Only as a temporary stopgap during migration; add a TODO and a precise type as soon as possible to avoid drift.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
typescript skill by vladimirbrejcha/ios-ai-skills | VeilStrat