Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

debug调试

Agent Skill

debug 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

238

周安装

10

GitHub Stars

公开资料未说明

下载量

83
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/cerico/macfair --skill debug

简介

Debug 系统化追踪错误或异常行为,定位根本原因并提供解决路径。

  • 适用于不理解报错信息、功能突然失效或测试失败的场景。
  • 通过收集错误上下文、检查近期变更和运行诊断工具来缩小问题范围。
  • 安装前需确认是否会执行 git 或测试命令,避免在生产环境自动运行破坏性操作。
  • 输出为排查建议,需人工验证后才能实施修复。

SKILL.md

Debug

Systematically trace errors, unexpected behavior, or broken functionality to find root causes.

When to Use

  • Error messages you don't understand
  • Something that "just stopped working"
  • Unexpected behavior (wrong data, missing UI, etc.)
  • Build/test failures
  • API returning wrong status codes

Instructions

1. Gather Context

Ask for or find:

  • Error message (exact text, stack trace)
  • What was expected vs what happened
  • When it started (after a specific change? randomly?)
  • Reproducibility (always? sometimes? specific conditions?)

2. Check Recent Changes

git log --oneline -10
git diff HEAD~3 --name-only

Did something change recently that could cause this?

3. Trace the Error

Follow the stack trace or data flow:

Error location → Called by → Called by → Entry point

For each step:

  1. Read the relevant code
  2. Identify what inputs it receives
  3. Check what could make it fail

4. Common Culprits

Runtime Errors

  • Null/undefined access (Cannot read property 'x' of undefined)
  • Type mismatches (expected string, got object)
  • Missing environment variables
  • Import/export mismatches

React Errors

  • Hydration mismatch (server vs client render different)
  • Hook rules violation (conditional hooks, wrong order)
  • Missing key prop in lists
  • State update on unmounted component

API Errors

  • Wrong HTTP method
  • Missing/malformed request body
  • Auth token expired/missing
  • CORS issues
  • Database connection failed

Build Errors

  • TypeScript type errors
  • Missing dependencies
  • Circular imports
  • Invalid config (next.config, tsconfig, etc.)

Data Errors

  • Schema mismatch (DB vs code)
  • Timezone issues (UTC vs local)
  • Encoding issues (UTF-8, JSON parsing)
  • Stale cache

5. Isolate the Problem

Narrow down:

  1. Does it fail in all environments or just one?
  2. Does it fail for all users/data or specific cases?
  3. Can you reproduce with minimal code?

6. Verify the Fix

After fixing:

  1. Confirm the original error is gone
  2. Check for regressions (did fixing this break something else?)
  3. Add a test if appropriate to prevent recurrence

Output Format

## Debug Report

**Symptom:** {what the user reported}

**Root Cause:** {what's actually wrong}

**Trace:**
1. {entry point} - {what happens here}
2. {next function} - {what happens here}
3. {failure point} - {why it fails}

**Fix:**
{file}:{line} - {what to change}

**Verification:**
- [ ] Error no longer occurs
- [ ] Related functionality still works

**Prevention:**
{Optional: test to add, validation to include, etc.}

Debugging Strategies

Binary Search

If you don't know where the bug is:

  1. Find a known-good state (commit, branch, or code path)
  2. Find the bad state
  3. Check halfway between
  4. Repeat until you find the breaking change

Rubber Duck

Explain the problem out loud (or to Claude):

  • What should happen?
  • What actually happens?
  • What have you tried?

Often the act of explaining reveals the issue.

Add Logging

Temporarily add console.log at key points:

console.log('Function called with:', input)
console.log('After transform:', result)
console.log('Returning:', output)

Remove after debugging.

Check Assumptions

The bug is often in something you "know" is correct:

  • That env var is set... is it?
  • That function returns a string... does it?
  • That data exists... does it?

Notes

  • Start with the error message - it usually points close to the problem
  • Don't guess - trace the actual code path
  • If stuck after 15 minutes, step back and question assumptions
  • Some bugs are environment-specific - check dev vs prod differences

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.84%
按下载量换算31

Claude

29.15%
按下载量换算24

Cursor

19.24%
按下载量换算16

Gemini CLI

8.75%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills