renseiai/donmai-libraries/ts-nextjs-debugging
Claude Code and agent skill by renseiai/donmai-libraries
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install renseiai/donmai-libraries/ts-nextjs-debuggingSKILL.md
SKILL: TypeScript / Next.js Debugging
id: ts-nextjs-debugging version: 1.0.0 conformsTo: agentskills.io/specification/v1
Overview
Debugging TypeScript and Next.js build and runtime errors. This skill provides systematic diagnosis workflows for the most common failure modes in TS/Next.js projects.
Triggers
Use this skill when:
- TypeScript type errors block
pnpm buildorpnpm typecheck - Next.js build fails with module resolution or RSC boundary errors
- Test failures indicate type or import mismatches
- Hydration errors appear in the browser console
Debugging Workflow
1. Type Errors
Read the first error. TypeScript errors often 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 implementation)
- Missing dependencies in
@types/*packages - Circular imports (fix: break the cycle with an interface or barrel file)
2. Build Failures
Common root causes:
- Server/Client Component boundary violations (
'use client'missing) - Dynamic imports with
ssr: falsein Server Components - Missing environment variables (check
.env.local) - Invalid image
srcdomains innext.config
3. Test Failures
Common root causes:
- Missing test environment setup (check
vitest.config.tsorjest.config.ts) - Module not found — check
moduleNameMapperorresolve.alias - Async test timeouts — add
{ timeout: 10000 }toit()
Self-Hosting Check
This kit detects this repo (agentfactory) when:
package.jsonexists (it does)- A
next.config.*file is present ORpackage.json#dependencies.nextis set
The agentfactory monorepo itself contains a packages/nextjs package that references Next.js, which is why the default TS/Next.js kit self-matches.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/kits/default-ts-nextjs/skills/ts-nextjs-debugging/SKILL.md
Popularity
- Repository stars
- 60
- Repository forks
- 9
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. 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-libraries/ts-nextjs-debugging)