用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/adeonir/claude-code-extras --skill debugging命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | debugging |
| description | Guide for debugging with targeted log injection and runtime analysis |
| context | fork |
Guide for debugging with targeted log injection and runtime analysis.
Suggest /debug-tools:debug when users describe:
console.log("[DEBUG] [file:line] description", { values })
[DEBUG] - Prefix for grep and cleanup[file:line] - Location for navigationdescription - What this log checks{ values } - Relevant data (no sensitive info)// Lifecycle
console.log("[DEBUG] [Component.tsx:10] mount", { props })
// Effect
useEffect(() => {
console.log("[DEBUG] [Component.tsx:15] effect run", { deps })
return () => console.log("[DEBUG] [Component.tsx:17] cleanup")
}, [deps])
// State
console.log("[DEBUG] [Component.tsx:25] before setState", { current: state })
// Request
console.log("[DEBUG] [route.ts:10] request", { method: req.method, path: req.path })
// Error
console.log("[DEBUG] [service.ts:30] caught error", { name: err.name, message: err.message })
console.log("[DEBUG] [api.ts:10] fetch start", { url, method })
console.log("[DEBUG] [api.ts:15] fetch done", { status: res.status, ok: res.ok })
| Pattern | Symptom | Check |
|---|---|---|
| Null access | "Cannot read property X of undefined" | Optional chaining, defaults |
| Race condition | Works sometimes, fails randomly | Async ordering, state timing |
| Stale closure | Using old values in callbacks | useCallback deps, event bindings |
| API mismatch | Data not displaying | Response shape, null handling |
| Silent error | Nothing happens | Empty catch blocks, missing error state |
| Score | Meaning | Action |
|---|---|---|
| >= 70 | High - clear evidence | Report as probable cause |
| 50-69 | Medium - possible | Suggest logs to confirm |
| < 50 | Low - speculation | Do not report |
After debugging, all [DEBUG] logs are removed automatically.
Manual check:
grep -rn '\[DEBUG\]' . --include='*.ts' --include='*.tsx' --include='*.js' --include='*.jsx'
| MCP | Provides |
|---|---|
| Console Ninja | Runtime values, test status, coverage |
| Chrome DevTools | Network inspection, browser console, DOM state |