omk-typescript-strict

Enforce TypeScript strict-mode standards across full-stack projects.

130|14|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/dmae97/oh-my-kimi --skill omk-typescript-strict
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: omk-typescript-strict
Source: https://github.com/dmae97/oh-my-kimi/tree/main/templates/skills/agents/omk-typescript-strict
Command: npx skills add https://github.com/dmae97/oh-my-kimi --skill omk-typescript-strict

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Inconsistent TypeScript settings lead to fragile code, hidden runtime bugs, and slow reviews caused by weak typing and unclear boundaries across full-stack frameworks.

Core Features & Use Cases

  • Enforces strict TypeScript rules: assumes strict mode, avoids any and unsafe casts, mandates exported function return types, and promotes discriminated unions for state machines.
  • Clarifies framework boundaries: keeps Next.js server/client separation explicit and validates route/search params instead of relying on unchecked values.
  • Improves NestJS structure and safety: keeps controllers thin, places business logic in services, validates DTOs, and prevents leaking ORM entities as API responses.
  • Review output standardization: provides a consistent review format covering type issues, boundary issues, unsafe casts, and suggested fixes.

Quick Start

Ask an AI to review your Next.js or NestJS codebase against OMK TypeScript strict-mode standards and produce a report using the sections Type issues, Boundary issues, Unsafe casts, and Suggested fix.

Frequently Asked Questions about omk-typescript-strict

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

FAQPage Schema
How do I enforce strict TypeScript mode across Next.js and NestJS projects?

Enforce strict TypeScript mode by setting strict: true, avoiding any and unsafe casts, mandating explicit return types, and using discriminated unions for state machines. This prevents weak typing and boundary violations across Next.js and NestJS codebases.

How do I validate DTOs and prevent leaking ORM entities in NestJS API responses?

Validate DTOs and prevent ORM entity leakage by keeping NestJS controllers thin, placing business logic in services, and validating route and search params. This ensures boundary-safe API responses without exposing unchecked data.

What is the best way to maintain server and client boundaries in Next.js with TypeScript?

Maintain Next.js server and client boundaries by making separation explicit and validating route and search params instead of relying on unchecked values. This prevents runtime bugs caused by weak typing and unclear boundaries.

Can I use this strict TypeScript review approach for Node.js and React workflows?

Yes, this strict TypeScript review approach applies to Node.js and React workflows. It covers DTO validation, API response design, and state-machine modeling, requiring strict: true assumptions and evidence of boundary-safe code.

Why does inconsistent TypeScript configuration cause hidden runtime bugs in full-stack projects?

Inconsistent TypeScript configuration causes hidden runtime bugs because weak typing and unclear boundaries across full-stack frameworks go unchecked. Avoiding any and unsafe assertions while enforcing strict mode prevents fragile code and slow reviews.

How do I standardize TypeScript code review output for type and boundary issues?

Standardize TypeScript code review output by producing a report covering type issues, boundary issues, unsafe casts, and suggested fixes. This provides a consistent review format for full-stack projects.