renseiai/donmai/typescript-debugging
Claude Code and agent skill by renseiai/donmai
- community
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-debuggingSKILL.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 buildornpm 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
Read the FIRST error. TypeScript errors cascade — fix the root cause first.
Common root causes:
- Missing
export typeon 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)
strictNullChecksviolations — narrow with a guard before use
2. Module Resolution
Common root causes:
pathsin tsconfig.json not mirrored by the bundler/runtime- ESM/CJS mismatch —
"type": "module"requires explicit.jsimport suffixes - Workspace dependency not built — build the dependency package first
3. Test Failures
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
- SKILL.md in the repositoryCheckingdaemon/testdata/released-kit-packages/typescript/skills/typescript-debugging/SKILL.md
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
[](https://verified-skill.com/skills/renseiai/donmai/typescript-debugging)