speckit-review-types

Analyze TypeScript type designs to identify invariant strengths and weaknesses.

2|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/pradeepmouli/lspeasy --skill speckit-review-types-pradeepmouli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-review-types
Source: https://github.com/pradeepmouli/lspeasy/tree/main/.github/skills/speckit-review-types
Command: npx skills add https://github.com/pradeepmouli/lspeasy --skill speckit-review-types-pradeepmouli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams analyze and improve type designs to strengthen invariants, improve encapsulation, and prevent subtle bugs in large-scale TypeScript codebases.

Core Features & Use Cases

  • Invariant discovery: Identify implicit invariants, constraints, and state transitions embedded in types and interfaces.
  • Encapsulation assessment: Evaluate exposure of internal state and confirm invariants are protected from external mutation.
  • Actionable recommendations: Propose concrete changes to improve type fidelity, naming, and boundary definitions.
  • Use Case: In a monorepo with dozens of packages, run the review to surface weak invariants in domain models and produce a prioritized backlog of type-improvement tickets.

Quick Start

Run a type-design review on your codebase by providing a representative module and request a structured assessment.

Frequently Asked Questions about speckit-review-types

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

FAQPage Schema
What is type-design review for TypeScript invariants?

Type-design review analyzes TypeScript types to identify implicit invariants, evaluate encapsulation boundaries, and recommend improvements for compile-time enforcement. It surfaces weak state constraints in domain models to prevent subtle bugs in large codebases.

How do I review type designs to improve encapsulation in a monorepo?

Run a type-design review by providing a representative module from your monorepo. The review assesses invariant clarity, checks internal state exposure, and produces a prioritized backlog of actionable type-improvement tickets for your packages.

Can I use static analysis to find implicit invariants in TypeScript domain models?

Yes, static analysis of type designs discovers implicit invariants and state transitions embedded in interfaces. It evaluates whether current types enforce constraints at compile-time and flags unprotected internal mutations for correction.

Does this type review work for large-scale TypeScript codebases?

Yes, the type-design review applies across large TypeScript codebases. It scales to monorepos with dozens of packages, analyzing domain models to surface weak invariants and generate actionable recommendations for boundary definitions.

When do I need a type-design review for my TypeScript architecture?

You need a type-design review when implicit invariants cause subtle bugs or when domain models lack compile-time enforcement. It identifies weak state constraints, evaluates encapsulation exposure, and proposes concrete changes to improve type fidelity.