renseiai/donmai-libraries/ts-nextjs-debugging

Claude Code and agent skill by renseiai/donmai-libraries

Trust tier 2
  • community
LLM review pending
Source check pending

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

Install

npx vskill@latest install renseiai/donmai-libraries/ts-nextjs-debugging

SKILL.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 build or pnpm 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
pnpm typecheck 2>&1 | head -50

Read the first error. TypeScript errors often 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 implementation)
  • Missing dependencies in @types/* packages
  • Circular imports (fix: break the cycle with an interface or barrel file)
2. Build Failures
pnpm build 2>&1 | tail -80

Common root causes:

  • Server/Client Component boundary violations ('use client' missing)
  • Dynamic imports with ssr: false in Server Components
  • Missing environment variables (check .env.local)
  • Invalid image src domains in next.config
3. Test Failures
pnpm test -- --reporter=verbose 2>&1 | grep -E "FAIL|Error" | head -30

Common root causes:

  • Missing test environment setup (check vitest.config.ts or jest.config.ts)
  • Module not found — check moduleNameMapper or resolve.alias
  • Async test timeouts — add { timeout: 10000 } to it()

Self-Hosting Check

This kit detects this repo (agentfactory) when:

  • package.json exists (it does)
  • A next.config.* file is present OR package.json#dependencies.next is 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/renseiai/donmai-libraries/ts-nextjs-debugging/badge)](https://verified-skill.com/skills/renseiai/donmai-libraries/ts-nextjs-debugging)

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