check-types

Run TypeScript type checks and report errors grouped by file with context.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/SumitRajpal/nextjs-claude-architecture --skill check-types
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-types
Source: https://github.com/SumitRajpal/nextjs-claude-architecture/tree/main/.claude/skills/check-types
Command: npx skills add https://github.com/SumitRajpal/nextjs-claude-architecture --skill check-types

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the process of running TypeScript type checks and reporting errors with contextual information, reducing time spent debugging type errors.

Core Features & Use Cases

  • Full type-check pass: runs tsc --noEmit to catch compile-time errors.
  • Contextual error reporting: groups errors by file and shows surrounding code for quick fixes.
  • Actionable guidance: suggests fixes for common TS errors such as TS2322, TS2339, TS2345, and TS7006.

Quick Start

Run npx tsc --noEmit --pretty 2>&1 to generate a detailed TypeScript error report.

Frequently Asked Questions about check-types

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

FAQPage Schema
How do I run TypeScript type checking and get contextual error reports?

Run TypeScript type checking by executing tsc --noEmit to catch compile-time errors, then group errors by file with surrounding code context lines for quick fixes. It handles large codebases and outputs actionable guidance for common TS errors.

Can I use this TypeScript diagnostic tool in a monorepo or CI pipeline?

Yes, this TypeScript diagnostic tool works in monorepos and CI pipelines. It handles multiple files and large codebases across Node and Next.js stacks, grouping type errors by file with context lines and actionable fixes.

What's the best way to fix common TypeScript errors like TS2322 or TS2339?

The best way to fix common TypeScript errors is to run tsc --noEmit to generate a report that groups errors by file and suggests actionable fixes for common TS errors like TS2322, TS2339, TS2345, and TS7006.

Do I need a TypeScript-enabled project to check for type errors?

Yes, you need a TypeScript-enabled project to check for type errors. The tool runs tsc --noEmit against your existing TS project configuration to catch compile-time errors and output grouped contextual reports.

Why does TypeScript type checking fail to show context lines for quick fixes?

TypeScript type checking may lack context lines if the --pretty flag is not used. Running npx tsc --noEmit --pretty 2>&1 generates a detailed report that groups errors by file and shows surrounding code for quick fixes.

Does this type checking approach work with Next.js stacks?

Yes, this type checking approach works with Next.js stacks. It applies to TS projects in Node and Next.js environments, automating tsc --noEmit runs and reporting all errors with contextual information and actionable fixes.