typescript-quality

Diagnose and resolve TypeScript typing issues and strictness gaps.

1|Updated Jul 31, 2025
One-click install
npx skills add https://github.com/hughescr/claude-code-config --skill typescript-quality
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-quality
Source: https://github.com/hughescr/claude-code-config/tree/main/plugins/typescript/skills/typescript-quality
Command: npx skills add https://github.com/hughescr/claude-code-config --skill typescript-quality

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Diagnoses and resolves TypeScript typing issues and strictness gaps in a project, enabling safer code.

Core Features & Use Cases

  • Type Safety Enforcement: Enforces strict null checks, explicit types, and non-null assertions with clear guidance.
  • Typing Improvements: Adds or refines TypeScript types, TSDoc comments, and DefinitelyTyped typings across codebases.
  • Guided Typecheck: Runs project-wide type checking and suggests fixes for common tsconfig configurations.

Quick Start

Run a full typecheck on my TypeScript project and begin adding explicit types where needed.

Frequently Asked Questions about typescript-quality

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

FAQPage Schema
How do I enforce strict mode and eliminate implicit any in a TypeScript project?

Enable strict mode in tsconfig to enforce strict null checks and eliminate implicit any. Running a project-wide type check identifies gaps, allowing you to apply explicit types and non-null assertions for safer code.

What is the best way to add DefinitelyTyped typings and TSDoc to an existing codebase?

The best way to add DefinitelyTyped typings and TSDoc is to install the required @types packages for dependencies, then annotate functions and interfaces with TSDoc comments. This improves typing accuracy and library documentation.

Why does my TypeScript project fail project-wide type checking on strict null checks?

TypeScript project-wide type checking fails on strict null checks when variables are potentially undefined or null. Resolving this requires applying explicit types, adding null safety guards, and configuring tsconfig to enforce strict null checks properly.

Can I get guidance on fixing tsconfig configurations for safer types?

Yes, you can receive guidance on fixing tsconfig configurations by running a guided typecheck. It analyzes your project setup, suggests fixes for common tsconfig configurations, and enforces strict mode to ensure accurate typings.

When do I need to install @types packages for TypeScript type safety?

You need to install @types packages when adding DefinitelyTyped typings for untyped JavaScript libraries. This resolves missing type definitions, enabling accurate typings and proper type checking across your project's dependencies.