一键导入
diagnose
Trace from a reproduced symptom to the source code that causes it. Identify the specific file and approximate line, then rate confidence honestly.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Trace from a reproduced symptom to the source code that causes it. Identify the specific file and approximate line, then rate confidence honestly.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Write the fix when verify says bug and diagnose says high confidence. Follow EmDash conventions, confirm the reproduce test now passes, run lint and typecheck, stage but do not commit.
Decide whether the diagnosed behaviour is actually a bug or whether the code is doing what it was designed to do. Gate the fix stage.
Review one pull request for real bugs, regressions, and convention violations. Enumerate candidate issues across the whole diff, verify each against the code, then return structured line-anchored findings and a verdict. Read-only on GitHub; the orchestrator posts the review.
Use when the user asks to inspect files, modify code, create files, or install dependencies/packages directly as part of implementation work. Prefer acting end-to-end instead of stopping at analysis.
| name | diagnose |
| description | Trace from a reproduced symptom to the source code that causes it. Identify the specific file and approximate line, then rate confidence honestly. |
The reproduce stage gave you a symptom -- a failing test, a captured screenshot, a console error, a wrong HTTP response. Your job is to find the code that produces that symptom and explain why, in enough detail that the verify stage can decide whether it is a bug and the fix stage can act if it is.
You read code. You do not modify it. No edits, no test runs, no demo boots. The state of the working tree should be the same when you finish as when you started.
git commit, no git push, no edits to source.gh reads only.curl to arbitrary external hosts.locale filter on a content-table query -- a known recurring class.await on a promise whose return value is ignored.noUncheckedIndexedAccess undefined-handling that was patched with ! and is now wrong.t called at module scope.ml-*, text-left) where a logical class belongs.high; over-rating produces wasted runs and rejected diffs.medium or low diagnosis.Return:
packages/core/src/api/handlers/menus.ts:142), followed by prose explaining what is wrong and why it produces the reported symptom.high, medium, or low.high; otherwise a short paragraph listing the alternative causes you considered and what would distinguish them.Be specific. "Probably in the menu code somewhere" is not a diagnosis. "resolveContentUrl in packages/core/src/menus/index.ts:87 issues three queries per item and the third is the missing-locale fallback path -- on a primary-locale request it is dead code, but it still runs" is.