一键导入
debug
Systematically diagnose and fix bugs, unexpected behavior, or failing tests. Use when something is broken and the cause is not immediately obvious.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Systematically diagnose and fix bugs, unexpected behavior, or failing tests. Use when something is broken and the cause is not immediately obvious.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Review code changes for bugs, security vulnerabilities, performance issues, and maintainability. Use when asked to review code, a PR, a diff, or recent changes.
Explore a codebase and produce a detailed implementation plan before writing any code. Use when asked to plan a feature, think through an approach, or figure out how to implement something.
Safely restructure code to improve clarity, reduce duplication, or simplify design without changing observable behavior. Use when asked to clean up, simplify, or restructure code.
Write a technical specification for a feature, API, or system component. Use when asked to spec out, design, or document a feature before it is built.
Write tests for existing code or new features. Use when asked to add tests, improve test coverage, or write tests for a specific function or module.
基于 SOC 职业分类
| name | debug |
| description | Systematically diagnose and fix bugs, unexpected behavior, or failing tests. Use when something is broken and the cause is not immediately obvious. |
Do not guess. Work systematically: reproduce, isolate, hypothesize, verify.
Before touching any code, confirm you can reproduce the problem.
If you cannot reproduce it, stop and ask for more information.
If there is an error message or stack trace:
Narrow down where the problem lives before reading more code.
git log and git blame to find recent changesWrite one sentence: "I believe X is happening because Y." Do not skip this. It prevents you from randomly changing code and hoping it works.
Find the code that should implement the behavior you described.
If your hypothesis is wrong, return to step 3. Do not guess-and-check.
Make the smallest possible change that fixes the root cause.
Root Cause One sentence: what was actually wrong.
Fix What you changed and why that addresses the root cause.
Files Changed
path/to/file.ts:42 — what changedRegression Risk Any adjacent behavior that should be tested after this fix.