一键导入
debugging
Systematic debugging workflow. Use when investigating bugs, unexpected behavior, errors, or performance issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Systematic debugging workflow. Use when investigating bugs, unexpected behavior, errors, or performance issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Project and feature planning with 4 adaptive phases — Specify, Design, Tasks, Execute. The execution orchestrator. Creates atomic tasks with verification criteria, architecture decisions, and persistent memory across sessions.
Perform thorough code reviews. Use when reviewing PRs, auditing code quality, or checking for bugs and anti-patterns.
Write, review, and maintain automated tests. Use when a user asks to test a feature, write specs, or improve coverage.
Short, action-oriented description of when to use this skill. Keywords help the router.
基于 SOC 职业分类
| name | debugging |
| description | Systematic debugging workflow. Use when investigating bugs, unexpected behavior, errors, or performance issues. |
| version | 1.0.0 |
| author | {"[object Object]":null} |
Purpose: Systematically isolate and fix bugs using evidence-based reasoning, not guesswork.
Before debugging, you MUST read/verify:
.specs/project/ARCHITECTURE.md — Understand the system flow..specs/project/STATE.md — Check if this is a known issue..specs/project/STATE.md — Check if behavior is intentional..specs/project/STATE.md if the bug reveals a systemic issue.| # | Hypothesis | Likelihood | Test |
|---|-----------|------------|------|
| 1 | [Most likely cause] | HIGH | [How to verify] |
| 2 | [Second cause] | MED | [How to verify] |
| 3 | [Edge case] | LOW | [How to verify] |
# Search for error messages in codebase
grep -rn "error message text" src/ server/
# Find recent changes to a file
git log --oneline -10 path/to/file
# Check what changed since last working commit
git diff <last-good-commit> -- path/to/file
# Find all usages of a function
grep -rn "functionName" src/ server/ --include="*.ts"
-- Check recent records
SELECT * FROM [table] ORDER BY created_at DESC LIMIT 10;
-- Verify data integrity
SELECT COUNT(*), [column] FROM [table] GROUP BY [column];
| Symptom | Common Root Cause | Where to Look |
|---|---|---|
undefined is not a function | Import path wrong or circular dependency | Check imports, barrel exports |
401 Unauthorized | Token expired, auth middleware misconfigured | Auth provider config, middleware order |
500 Internal Server Error | Unhandled exception in async code | Look for missing await or uncaught promises |
| Data not updating | Cache serving stale data, or mutation not invalidating | Cache layer, query invalidation |
| Intermittent failures | Race condition or timeout | Look for concurrent writes, async ordering |
| Works locally, fails in prod | Environment variable missing or different config | Compare .env files, check deployment logs |