renseiai/donmai/typescript-debugging

Claude Code and agent skill by renseiai/donmai

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Diagnose TypeScript compile, module-resolution, declaration, isolated-module, build, and type-check failures. Use when npm or TypeScript gates fail in a Node project.

Install

npx vskill@latest install renseiai/donmai/typescript-debugging

SKILL.md

TypeScript Debugging

Overview

Debugging TypeScript compile and type errors in any Node/TypeScript project. This skill provides systematic diagnosis workflows for the most common failure modes that block npm run build / npm run typecheck.

Triggers

Use this skill when:

  • TypeScript type errors block npm run build or npm run typecheck
  • The compiler reports module-resolution failures (Cannot find module ...)
  • Re-exported types fail under verbatimModuleSyntax / isolatedModules
  • Declaration emit (.d.ts) breaks downstream consumers

Debugging Workflow

1. Type Errors
npm run typecheck 2>&1 | head -50

Read the FIRST error. TypeScript errors cascade — fix the root cause first.

Common root causes:

  • Missing export type on re-exported types (fix: export type { Foo })
  • Incorrect return-type annotations (fix: infer from the implementation)
  • Missing @types/* packages for untyped dependencies
  • Circular imports (fix: break the cycle with an interface or a barrel file)
  • strictNullChecks violations — narrow with a guard before use
2. Module Resolution
npm run build 2>&1 | grep -E "Cannot find module|TS2307|TS2305" | head -20

Common root causes:

  • paths in tsconfig.json not mirrored by the bundler/runtime
  • ESM/CJS mismatch — "type": "module" requires explicit .js import suffixes
  • Workspace dependency not built — build the dependency package first
3. Test Failures
npm test 2>&1 | grep -E "FAIL|Error" | head -30

Common root causes:

  • Missing test-environment config (vitest/jest config not picked up)
  • Module not found — check moduleNameMapper / resolve.alias
  • Async test timeouts — raise the per-test timeout

Notes

  • This kit is the FOUNDATION layer; a framework kit (e.g. the Next.js kit)

composes on top and adds framework-specific commands and conventions.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/renseiai/donmai/typescript-debugging/badge)](https://verified-skill.com/skills/renseiai/donmai/typescript-debugging)

Something wrong with this skill or its page? Tell us.