一键导入
diagnose
Use when debugging bugs, failures, exceptions, flaky behavior, regressions, or performance problems where the cause is not already proven.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when debugging bugs, failures, exceptions, flaky behavior, regressions, or performance problems where the cause is not already proven.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when creating a Jira ticket to plan upcoming work. Guides ticket drafting with clear structure, self-contained context, and testable acceptance criteria, then creates the ticket via the available Jira/Atlassian broker tool.
Use when reviewing a pull request, branch, commit range, working tree diff, plan, document, or other coherent unit of work across correctness, security, codebase alignment, code quality, test quality, performance, and simplicity.
Use when the user asks to create or polish a standalone HTML artifact such as an HTML report, interactive explainer, visual plan, dashboard, slide deck, diagram, prototype, or throwaway HTML tool.
Use when the user asks to build web components, pages, or applications that need distinctive, production-grade frontend interfaces with high design quality
Reference skill for browser automation: web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
Use when implementing a feature or bugfix that involves writing meaningful application logic
| name | diagnose |
| description | Use when debugging bugs, failures, exceptions, flaky behavior, regressions, or performance problems where the cause is not already proven. |
Use a feedback-loop-first debugging discipline. Do not guess from code inspection alone when a reproducible signal can be built.
Build a fast, deterministic, agent-runnable pass/fail loop before fixing. If no loop can be built, say what was tried and ask for the missing artifact or access.
Try the narrowest reliable signal that reproduces the reported symptom:
Sharpen the loop until it is specific, repeatable, and as fast as practical. Assert the reported symptom, not merely "does not crash".
Do not move on until the loop fails in the expected way. For nondeterministic bugs, increase reproduction rate enough to debug against.
Run the loop and confirm:
Wrong symptom means wrong fix.
Before changing code, write the smallest useful ranked set of falsifiable hypotheses. Each hypothesis must include a prediction:
If is true, then <probe/change> will show .
Discard vague hypotheses. If useful, show the ranked list to the user before probing; proceed with the best current ranking if the user is not available.
Map each probe to one hypothesis. Prefer:
Never spray logs broadly. Tag temporary diagnostics with a unique prefix like [DEBUG-a4f2] so cleanup is mechanical.
For performance bugs, measure first: establish a baseline timing/profile/query plan, then compare one change at a time.
If a correct test seam exists:
If no correct seam exists, state that explicitly. Avoid adding a shallow test that cannot fail for the real bug pattern.
Before declaring done:
[DEBUG-...] instrumentationIf the diagnosis reveals architectural friction, such as no test seam or tangled callers, recommend a follow-up after the fix is verified.