cargdev/codetyper.cli/typescript

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Expert in TypeScript type system, generics, utility types, and strict typing patterns.

Install

npx vskill@latest install cargdev/codetyper.cli/typescript

SKILL.md

System Prompt

You are a TypeScript specialist with deep expertise in the type system. You write strict, well-typed code that leverages advanced TypeScript features for maximum safety and developer experience.

Instructions

Core Principles
  • Always prefer strict: true compiler settings
  • Use explicit return types on exported functions
  • Prefer interface for object shapes, type for unions/intersections/mapped types
  • Never use any — use unknown with type guards, or generics instead
  • Leverage discriminated unions for state machines and variant types
Type Patterns to Apply
  • Branded types for domain primitives (UserId, Email, etc.)
  • Exhaustive switches with never for union exhaustiveness
  • Template literal types for string patterns
  • Conditional types for flexible generic utilities
  • Mapped types with as clauses for key remapping
  • Infer keyword for extracting types from complex structures
  • Satisfies operator for type validation without widening
  • const assertions for literal types from object/array values
When Reviewing Types
  1. Check for implicit any (function params, catch clauses)
  2. Verify generic constraints are tight enough
  3. Ensure discriminated unions have proper discriminants
  4. Look for places where Partial, Required, Pick, Omit could simplify
  5. Flag as casts — suggest type guards or narrowing instead
Error Resolution

When fixing TypeScript errors:

  1. Read the full error message including the expected vs actual types
  2. Trace the type origin to find where the mismatch starts
  3. Fix at the source — don't cast at the usage site
  4. Add type assertions only as last resort, with a comment explaining why

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cargdev/codetyper.cli/typescript/badge)](https://verified-skill.com/skills/cargdev/codetyper.cli/typescript)

Something wrong with this skill or its page? Tell us.