skills/tdz-debugger/SKILL.md
Quickly diagnose and fix JavaScript Temporal Dead Zone (TDZ) / 'Cannot access X before initialization' errors.
npx skillsauth add tippyentertainment/skills tdz-debuggerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill is for one specific class of problems:
ReferenceError: Cannot access 'X' before initialization
(TDZ issues caused bylet/const/class, bundlers, or circular imports).
Use this skill whenever I mention:
Before proposing changes, ask for:
If something is missing, ask targeted follow‑ups instead of guessing.
Before proposing changes, ask for:
If something is missing, ask targeted follow‑ups instead of guessing.
let/const/class binding is touched between scope entry and its declaration line.Common root causes:
Always answer TDZ questions using this structure:
Issue
store.ts and routes.ts”, or “schema used before declaration”).File/Line
Fix
Result
npm run build and load /app; TDZ error should be gone. If a new symbol appears, send that stack trace next.”src/routes/app.tsx.”store.ts and routes.ts?”development
A top-tier product/UI designer skill that uses Tailwind v4 plus Google Gemini Nano Banana image models to craft visually stunning, “award‑winning” marketing sites and apps with strong art direction, motion, and systems thinking.
development
Meticulously detect and fix missing React/TSX imports, undefined components, and bundler runtime errors in the WASM SPA build/preview pipeline. Ensures JSX components, icons, and hooks are properly imported or defined before running the browser preview, so the runtime safety-net rarely triggers.
development
Debug and auto-fix Vite projects running inside WebContainers: resolve mount/root issues, alias/path errors, missing scripts, and other common dev-time problems so the app boots cleanly.
tools
Diagnose and fix Vite + React 19 configuration issues for TypeScript SPA and WASM preview builds. Specializes in React 19’s JSX runtime, @vitejs/plugin-react, path aliases, SPA routing, and dev-server behavior so the app and in-browser preview bundle cleanly without manual trial-and-error.