Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计通过

tdz-debuggertdz 调试器

Agent Skill

tdz-debugger 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

315

周安装

13

GitHub Stars

公开资料未说明

下载量

103
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tdz-debugger(tdz 调试器)
来源仓库:https://github.com/tippyentertainment/skills
仓库路径:skills/tdz-debugger
安装命令:
npx skills add https://github.com/tippyentertainment/skills --skill tdz-debugger
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tippyentertainment/skills --skill tdz-debugger

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合围绕仓库状态进行整理。

  • 它可帮助 Agent 跟踪代码变更、协作事项和项目进度。
  • 使用时建议结合具体仓库路径和原始 README 核验实际用法,确保权限可控。
  • 安装命令:npx skills add https://github.com/tippyentertainment/skills --skill tdz-debugger。
  • 安装前应确认是否会触发联网、命令执行或文件读写,避免安全风险。

SKILL.md

Provided by TippyEntertainment

https://github.com/tippyentertainment/skills.git

Purpose

This skill is for one specific class of problems:

ReferenceError: Cannot access 'X' before initialization (TDZ issues caused by let/const/class, bundlers, or circular imports).

Use this skill whenever I mention:

  • “TDZ”, “temporal dead zone”. Goal: fast, concrete fixes in the actual codebase, not generic JS theory.

Inputs you should ask for

Before proposing changes, ask for:

  1. Error + stack trace

- At least one full stack trace pointing to source (sourcemaps enabled).

  1. Relevant files

- The modules/functions mentioned in the stack (imports + top of file).

  1. Tooling

- Bundler (Vite/Webpack/Rollup), test runner (Jest/Vitest), Node/browser target.

If something is missing, ask targeted follow‑ups instead of guessing.


Inputs you should ask for

Before proposing changes, ask for:

  1. Error + stack trace

- At least one full stack trace pointing to source (sourcemaps enabled).

  1. Relevant files

- The modules/functions mentioned in the stack (imports + top of file).

  1. Tooling

- Bundler (Vite/Webpack/Rollup), test runner (Jest/Vitest), Node/browser target.

If something is missing, ask targeted follow‑ups instead of guessing.

How to think about TDZ

  • TDZ happens when a let/const/class binding is touched between scope entry and its declaration line.

Common root causes:

  1. Variable/function/class used before its declaration in the same file.
  2. Circular module imports (A imports B, B imports A, with top‑level execution).
  3. Exported constants that depend on other exports defined later in the same module.

Required answer format

Always answer TDZ questions using this structure:

  1. Issue

- Short description of what is failing and in which context (dev build, prod build, tests). - The specific TDZ cause (for example, “circular import between store.ts and routes.ts”, or “schema used before declaration”).

  1. File/Line

- File name(s) and approximate line/region where the problem manifests and where the fix should be applied.

  1. Fix

- Minimal, concrete code changes to remove the TDZ, such as: - Re‑ordering declarations. - Breaking circular imports by extracting shared pieces. - Moving imports/usages inside functions or factories.

  1. Result

- Briefly state how the change removes the TDZ and what behavior to expect afterward.

Fixing strategy

  1. Identify the binding
  2. Classify the pattern

- Same‑file ordering vs circular imports vs exported constant ordering.

  1. Propose the smallest change that breaks the TDZ

- Prefer: - Moving declarations above use. - Extracting shared code into a separate module to break cycles. - Lazy imports inside functions for rarely used paths.

  1. Show before/after code

- Only for affected snippets, minimal and copy‑paste‑ready. - e.g., “Re‑run npm run build and load /app; TDZ error should be gone. If a new symbol appears, send that stack trace next.”

Constraints

  • Don’t respond with pure theory; always tie explanations to actual files and imports.
  • Don’t recommend disabling minification or code‑splitting as a final fix; that’s only for temporary debugging.
  • Don’t propose massive refactors; default to the smallest structural change that fixes the issue.

Example prompts this skill should handle

  • “TDZ again: Cannot access 'schema' before initialization in src/routes/app.tsx.”
  • “Vite prod build: Cannot access 'ce' before initialization, stack trace attached.”
  • “Jest tests fail with TDZ errors after I split my store into multiple files.”
  • “How do I fix this TDZ in a circular import between store.ts and routes.ts?”

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.41%
按下载量换算35

Claude

30.66%
按下载量换算32

Cursor

17.04%
按下载量换算18

Gemini CLI

8.58%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills