validate-typescript

Run TypeScript type checking with tsc --noEmit and report errors by category.

7|3|Updated Oct 23, 2025
One-click install
npx skills add https://github.com/BerryKuipers/claude-code-toolkit --skill validate-typescript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: validate-typescript
Source: https://github.com/BerryKuipers/claude-code-toolkit/tree/main/.claude/skills/quality/validate-typescript
Command: npx skills add https://github.com/BerryKuipers/claude-code-toolkit --skill validate-typescript

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tsc, grep, jq.

What problem does it solve?

Uncaught TypeScript errors can lead to unexpected runtime bugs, reduce code reliability, and make refactoring risky. This Skill automates type-checking to ensure type safety across your codebase.

Core Features & Use Cases

  • Non-Emitting Type Validation: Executes the TypeScript compiler in --noEmit mode, performing full type validation without generating JavaScript files.
  • Detailed Error Reporting: Counts total errors, categorizes them (type, syntax, import errors), and lists all affected files.
  • Early Bug Detection: Catches type mismatches and other type-related issues before they manifest as runtime bugs.
  • Use Case: Integrate this Skill into your quality gate, pre-commit checks, or CI/CD pipeline to automatically enforce type safety and prevent type-related regressions.

Quick Start

Run TypeScript type-checking on your project

Assumes TypeScript is installed and configured (e.g., with a tsconfig.json file).

validate-typescript

Output:

{

"status": "success",

"typescript": {"status": "passing", "errors": {"total": 0}},

"canProceed": true

}

Frequently Asked Questions about validate-typescript

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

FAQPage Schema
How do I catch TypeScript type errors before they cause runtime bugs?

TypeScript type checking validates your code's type safety by running the compiler in non-emitting mode. This Skill executes `tsc --noEmit` to detect type mismatches, syntax errors, and import issues without generating JavaScript, catching problems early in development or CI pipelines.

Can I automate type validation in my CI/CD pipeline?

Yes. Integrate this Skill into your CI checks or pre-commit gates to automatically enforce type safety. It returns structured results—total error counts, categorization by error type, affected files, and a proceed flag—so your pipeline can block merges or deployments when type errors exist.

What does the type-checking output include?

The Skill returns a JSON result with overall status, a breakdown of errors by category (type, syntax, import), a list of affected files, total error count, and a `canProceed` flag indicating whether validation passed.

Do I need TypeScript installed to use this?

Yes. This Skill requires TypeScript tooling—either `tsc` or `npx tsc`—and ideally a `tsconfig.json` file in your project. If TypeScript is installed and configured, the Skill runs the type checker immediately.

How does this differ from compiling TypeScript to JavaScript?

Type checking validates syntax and types without emitting JavaScript output. This approach is faster, lighter, and ideal for quality gates where you only need to detect errors, not generate compiled code.

What kinds of errors does TypeScript type checking detect?

Type checking catches type mismatches, syntax errors, missing imports, and other type-safety violations. The Skill categorizes and reports these separately, helping you prioritize fixes by error category.