effective-typescript

Analyze TypeScript code against Effective TypeScript principles to identify anti-patterns.

35|10|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/booklib-ai/booklib --skill effective-typescript-booklib-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effective-typescript
Source: https://github.com/booklib-ai/booklib/tree/main/skills/effective-typescript
Command: npx skills add https://github.com/booklib-ai/booklib --skill effective-typescript-booklib-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams enforce disciplined TypeScript usage by applying the 62 items from Dan Vanderkam's Effective TypeScript to review code and guide TypeScript-writing practices across projects.

Core Features & Use Cases

  • Guided code reviews using the 62 items to identify anti-patterns and opportunities for stronger typing.
  • Two-mode operation: Review (analyze existing code) and Write (generate idiomatic TypeScript that adheres to Effective TypeScript principles).
  • Access categorized reference materials and guidelines to improve type design, inference, and safety.

Quick Start

Load this skill and start a Review session to evaluate TS code against Effective TypeScript rules.

Frequently Asked Questions about effective-typescript

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

FAQPage Schema
How do I review TypeScript code for anti-patterns like any and non-null assertions?

Review TypeScript code for anti-patterns by applying the 62 Effective TypeScript principles to identify usage of any, non-null assertions, and plain string types. The skill analyzes existing code against these guidelines to enforce disciplined type safety and correct type design practices.

What is the best way to enforce type safety during a JavaScript to TypeScript migration?

Enforce type safety during a JavaScript to TypeScript migration by applying Effective TypeScript principles to refine API surfaces and guide type-design work. The skill provides categorized reference materials and guidelines to strengthen type inference and correct anti-patterns across the migration.

Can I use this to generate idiomatic TypeScript code that adheres to best practices?

Yes, you can generate idiomatic TypeScript code using the Write mode, which produces code that adheres to Effective TypeScript principles. It operates alongside a Review mode, allowing you to both write new type-safe code and analyze existing projects for type correctness.

Does this skill help with API surface refinement and type design discussions?

Yes, this skill helps with API surface refinement and type design discussions by analyzing TypeScript code to improve type correctness. It leverages Effective TypeScript principles to identify anti-patterns like interface-of-unions and provides guidelines for architectural decisions.

What are the limitations of using Effective TypeScript principles for static analysis?

The limitations of using Effective TypeScript principles for static analysis include relying strictly on the 62 items from the book, meaning it focuses on type correctness and anti-patterns rather than runtime performance or general architectural design outside of type safety.