一键导入
automatic-debugging
Systematic process for diagnosing and resolving defects. Use when debugging failures, investigating errors, or reproducing issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Systematic process for diagnosing and resolving defects. Use when debugging failures, investigating errors, or reproducing issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
How to conduct and receive effective code reviews. Use when reviewing a PR, requesting review, or improving review quality.
Principles for writing READMEs, API docs, ADRs, code comments, and changelogs. Use when creating or improving any technical documentation.
How to use Automatic's feature tracking system — creating, progressing, and updating per-project work items via the Automatic MCP service. Activate when working on a project managed by Automatic that has feature tracking enabled.
Data-driven approach to identifying and resolving performance bottlenecks. Use when investigating slow queries, high latency, or memory growth.
Techniques for improving code structure without changing behaviour. Use when cleaning up code, reducing complexity, or addressing technical debt.
Security review checklist and threat mindset for any codebase. Use when reviewing code for vulnerabilities, implementing auth, or handling user input.
| name | automatic-debugging |
| description | Systematic process for diagnosing and resolving defects. Use when debugging failures, investigating errors, or reproducing issues. |
| authors | ["Automatic"] |
A disciplined process for diagnosing and resolving defects. Guessing wastes time. Systematic investigation finds root causes.
Before touching code, confirm you can reproduce the failure consistently. A defect you cannot reproduce reliably cannot be safely fixed.
Read the error message and stack trace fully. Do not skip lines. The first error is usually the cause; later errors are often consequences.
git log --oneline -20, git diff HEAD~5State a specific, testable hypothesis: "I believe X is happening because Y." Do not proceed without one.
Prove or disprove the hypothesis with minimal, targeted changes.
# Add temporary logging at the point of failure
# Check actual values, not assumed values
# Use the debugger — step through, don't assume execution flow
Once the root cause is confirmed, fix it directly.
null guard around a crash is not a fix if the null should never occur.env, lock files, system dependencies; reproduce in a containergit bisect to isolate the breaking commitperformance-profiling skillsleep or retry loops to hide timing issues