Skip to content
Back to skills

Debugging Typescript Errors

ASecurity

Systematically investigates TypeScript compiler errors, traces the real type mismatch, and applies a minimal verified fix. Use when the user wants to debug TypeScript type errors.

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 1, 2026
ai-agentstypescriptgodebuggingapi

Works with

  • claude code
  • api

Security analysis

A100/100

Scanned September 1, 2026

npx -y skills add dork-labs/dorkos --skill debugging-typescript-errors --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debugging Typescript Errors?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Debugging Typescript Errors
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dork-labs-debugging-typescript-errors/badge)](https://www.skillsdirectory.com/skills/dork-labs-debugging-typescript-errors)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: debugging-typescript-errors
description: Systematically investigates TypeScript compiler errors, traces the real type mismatch, and applies a minimal verified fix. Use when the user wants to debug TypeScript type errors.
---

# Debugging TypeScript Errors

## Overview

This is the shared-skill replacement for the legacy Claude Code `/debug:types` workflow.

Use it when TypeScript errors need real diagnosis rather than cargo-cult assertions or broad type loosening.

## Read First

Before acting, read:

- `.agents/skills/debugging-systematically/SKILL.md`
- `AGENTS.md`

## Core Workflow

1. **Collect the error**
   - use the provided error text when available
   - otherwise run the narrowest useful typecheck scope
2. **Parse the compiler signal**
   - error code
   - file and location
   - expected vs actual type
3. **Read the surrounding code**
   - never propose a fix before reading the file
4. **Trace the type source**
   - where the actual type comes from
   - where the expected type is defined
   - where inference or narrowing goes wrong
5. **Classify the problem**
   - wrong data
   - wrong type definition
   - missing narrowing
   - generic inference failure
   - invalid assertion
6. **Apply the smallest correct fix**
   - fix data before widening types
   - fix definitions before forcing assertions
   - use assertions only as a last resort
7. **Re-run typecheck**
   - confirm the original error is gone
   - check that no new related errors were introduced

## Cross-Agent Rules

- Treat this skill as the portable replacement for `/debug:types`.
- Keep a short execution plan, but do not depend on a tool-specific todo API.
- Ask bounded clarification only when the repair strategy changes system behavior or type contracts materially.
- Prefer preserving strictness over silencing the compiler.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…