analyze
它能做什么
这项技能调查软件项目的运作方式以及某件事发生的原因。适合在决定修改之前需要有据可依的解释的人。
适用场景
- ✓当你询问某个 bug 或某种行为为何在多个文件之间发生的时候。
- ✓当你需要在更改任何内容之前,理解系统各部分如何连接的时候。
- ✓当你希望按支持它们的证据对可能的原因进行排名的时候。
技能链接
https://github.com/Yeachan-Heo/oh-my-codex/blob/main/plugins/oh-my-codex/skills/analyze/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请分析为什么登录页面有时会丢失用户的会话,并告诉我证据显示了什么。”
每周 5 个新技能,1 分钟读完。
工作原理
它会阅读直接相关的代码路径和接口约定,比较相互竞争的解释,并将每项论断标记为证据或推断。当答案有依据时它会停止,否则会指出下一步应进行的检查。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Analyze — Read-Only Deep Analysis
Use $analyze to answer a repository question with grounded, read-only evidence. Explain what the code most likely says; do not turn analysis into implementation or generic fix planning.
Shared operating, delegation, state, hook, team, cancellation, and verification invariants live in templates/AGENTS.md. Follow that source instead of duplicating its rules here.
Use when
- The user needs a causal, architectural, behavioral, impact, or tradeoff explanation.
- The answer requires tracing multiple files or boundaries, or ranking plausible explanations.
- The user needs confidence and concrete evidence before changing anything.
Do not use it for edits, implementation, a new product plan, a simple one-file lookup, or OMX team-runtime operation.
Inputs and method
- Restate the question and define the evidence-backed scope.
- Identify the smallest files, tests, configs, and docs likely to answer it.
- Read direct code paths and contracts first; trace boundaries only as far as needed.
- Compare competing explanations, rank them by support, and mark unresolved points.
- Stop when the question is answered with sufficient evidence, or name the smallest read-only probe that would resolve the remaining uncertainty.
Evidence discipline
Label every material claim as one of:
- Evidence — directly shown by code, tests, generated artifacts, configuration, or docs.
- Inference — a reasoned conclusion drawn from cited evidence.
- Unknown — not settled by the repository evidence.
Prefer direct paths and independent corroboration over contextual clues. Never present guesses as evidence or inference, and never overclaim certainty.
Output contract
Answer the asked question first and use this shape:
Question
Restated question, briefly.
Ranked synthesis
| Rank | Explanation | Confidence | Basis |
|---|---|---|---|
| 1 | ... | High / Medium / Low | strongest supporting evidence |
| 2 | ... | High / Medium / Low | why it trails |
| 3 | ... | High / Medium / Low | why it remains possible |
Evidence
path/to/file:line-line— direct observation.path/to/file:line-line— corroborating observation.
Inference
- What the evidence most strongly implies.
- Why weaker alternatives were down-ranked.
Unknowns / limits
- What the repository does not establish.
- The next discriminating read-only probe, when useful.
Stop conditions
- Do not edit files, run an implementation lane, or make recommendations the evidence cannot support.
- Do not continue searching after the answer and confidence boundary are grounded.
- If evidence is insufficient, report the limit explicitly rather than manufacturing certainty.
Task: {{ARGUMENTS}}
常见问题
它会更改我的代码吗?
不会。分析是只读的,它的输出不包括编辑。
它如何显示置信度?
它会把重要论断标记为证据或推断,因此你可以看到哪些是已经证明的。
它适合简单的查找吗?
不适合。它用于需要跨多个文件追踪的问题。
详情
作者的原始描述
Run read-only deep repository analysis and return a ranked synthesis with explicit confidence, concrete file references, and clear evidence-vs-inference boundaries. Use when a user says 'analyze', 'investigate', 'why does', 'what's causing', or needs grounded cross-file explanation before any changes are proposed.
repo: Yeachan-Heo/oh-my-codex
热度
- GitHub 星标
- 34k
- 排名
- #8410
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …