debugging-typescript-errors

debugging-typescript-errors is a skill for Claude Code from dork-labs/dorkos. It costs 39 tokens per session (399 once invoked), scanned A, original, MIT.

A method for diagnosing TypeScript compiler errors by tracing where the mismatched types come from.

In plain words
What is it for?
Use it to inspect compiler errors, classify their cause, make the smallest correct change, and rerun the type check.
Why use it?
It helps fix the underlying data, type definition, or inference problem instead of hiding the error with broad type changes or forced assertions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents); mentions AGENTS.md.

Part of the flow plugin — 41 skills, 44 commands, 5 agents, 4 hooks shipped together

Good fit Use it to inspect compiler errors, classify their cause, make the smallest correct change, and rerun the type check.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dork-labs/dorkos/debugging-typescript-errors
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dork-labs/dorkos --skill debugging-typescript-errors
Clone the repo
git clone --depth 1 https://github.com/dork-labs/dorkos

Made for: Claude Code.

Or install flow, the plugin that ships this one along with the rest of its 41 skills, 44 commands, 5 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for debugging-typescript-errors

README.md
[![agentmods](https://agentmods.dev/badge/skills/dork-labs/dorkos/debugging-typescript-errors/github.svg)](https://agentmods.dev/skills/dork-labs/dorkos/debugging-typescript-errors)
Your own site
<a href="https://agentmods.dev/skills/dork-labs/dorkos/debugging-typescript-errors"><img src="https://agentmods.dev/badge/skills/dork-labs/dorkos/debugging-typescript-errors/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for debugging-typescript-errors

Your own site · 80×15
<a href="https://agentmods.dev/skills/dork-labs/dorkos/debugging-typescript-errors"><img src="https://agentmods.dev/badge/skills/dork-labs/dorkos/debugging-typescript-errors.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 399 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00399
Opus 5.5 $0.00016 $0.00160
Sonnet 5.5 $0.00008 $0.00080
Haiku 4.5 $0.00004 $0.00040

Measured 1mo ago against content hash 2dbae2b36d6f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debugging-typescript-errors scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/debugging-typescript-errors/SKILL.md · 56 lines

What it actually says

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.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 56 lines · 39 tokens per session scan A 2dbae2b36d6f

Subscribe to this mod's changes

debugging-typescript-errors is a skill published in the GitHub repository dork-labs/dorkos (12 stars, last pushed today), licensed MIT. It adds 39 tokens to every session and 399 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

typescript-circular-dependency

Detect and resolve TypeScript/JavaScript circular import dependencies. Use when: (1) "Cannot access 'X' before initialization" at runtime, (2) Import returns undefined unexpectedly, (3) "ReferenceError: Cannot access X before initialization", (4) Type errors that disappear when you change import order, (5) Jest/Vitest…

Wania-Kazmi/claude-code-autonomous-agent-workflow · 88 tokens

ts-debug

TypeScript/Node debugging expert. Use when the user needs to debug, profile, or trace TypeScript or Node.js code — e.g. "how do I debug this", "find the memory leak", "why is this slow", "add a breakpoint", "profile this function", "why won't the process exit".

berekvolgyipeter/dotclaude · 68 tokens

typescript-conventions

Use when a ticket adds or changes TypeScript/JavaScript code and it must follow the repo's TS conventions — strict mode typing, typescript-eslint type-aware rules, async correctness (no floating promises, bounded fan-out), boundary validation instead of casts, module/import hygiene, Node resource and concurrency…

tmj-90/gaffer · 110 tokens

strict-typescript

Enforce strict TypeScript compiler settings and type narrowing patterns. Use when the user creates a new TypeScript project, configures tsconfig.json, encounters null/undefined errors, deals with indexed access issues, or asks about strict mode, type safety, or narrowing techniques.

VersoXBT/claude-initial-setup · 58 tokens

ide-type-mismatch-fix

Diagnose and fix TypeScript/language type errors using LSP diagnostics, hover, and code actions. For each type error, fetches the expected vs actual types, surfaces quickfix suggestions, and optionally applies them. Use when getDiagnostics shows type errors you want to resolve quickly.

Oolab-labs/patchwork-os · 64 tokens

typescript-expert

TypeScript expert for type system, generics, utility types, and strict mode patterns.

ginkida/rustyhand · 21 tokens