Run read-only deep repository analysis and return a ranked synthesis with explicit confidence, concrete file references, and clear evidence-vs-inference boundaries
Installs into .claude/skills of the current project.
Are you the author of Analyze?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/1225sakura-analyze)
---
name: analyze
description: Run read-only deep repository analysis and return a ranked synthesis with explicit confidence, concrete file references, and clear evidence-vs-inference boundaries
when-to-use: The user says "analyze", "investigate", "why does", "what's causing", or needs a grounded cross-file explanation before any changes are proposed. Not for edits, implementation, a new product plan, or a simple one-file lookup.
---
# Analyze — Read-Only Deep Analysis
Use this skill 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.
## 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 orchestration-runtime operation (that is `debug` / `trace` territory).
## Inputs and method
1. Restate the question and define the evidence-backed scope.
2. Identify the smallest files, tests, configs, and docs likely to answer it — locate them with `grep` / `glob` / `read`.
3. Read direct code paths and contracts first; trace boundaries only as far as needed.
4. Compare competing explanations, rank them by support, and mark unresolved points.
5. 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.
## Delegation
When the question spans many files or several independent sub-questions, fan out read-only probes instead of serial reading: spawn background `subagent`s with the `omd-agent-explore` role card for codebase sweeps, or `omd_delegate` (hard routing, role `omd-agent-analyst`) for a ranked-analysis second pass. Synthesis — ranking, confidence, evidence-vs-inference labeling — always happens in this lane, never delegated.
## 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.
## State Contract (状态契约)
Analyze **holds no mode state**: it is a read-only lane and creates nothing under `.omd/state/`. Findings worth keeping across sessions go to `mcp__omd-state__notepad_write_working` / `notepad_write_priority`. If the analysis turns into a multi-hypothesis causal hunt, escalate to the `trace` skill.