Analyze
Perform structured analysis with explicit scope, evidence, and conclusions.
When to use
- Analyzing, investigating, assessing, or evaluating a codebase, architecture, or system
- Comparing options or alternatives in a structured way
- Researching a product, market, or topic where evidence and conclusions must be traceable
- Any request needing explicit scope, framework-driven reasoning, and separated facts/inference/recommendation
- Not for quick one-off lookups or implementation work — this is an investigation-and-conclusions workflow
0. Gather Context
Read CLAUDE.md (or AGENTS.md) at the project root to understand the project's domain, tech stack, and business context. This shapes framework selection and analysis scope.
1. Classify the Request
Identify:
- Subject
- Core question
- Scope
- Desired depth
- Audience
- Decision the analysis should inform
2. Choose a Framework
Pick one to three frameworks from analytical-frameworks.md based on the question type.
Typical pairings:
- Current-state assessment -> gap analysis, architecture assessment
- Root cause -> 5 Whys, fishbone, causal analysis
- Comparison -> weighted scoring, MCDA
- Strategy -> SWOT, Porter's Five Forces, JTBD
- Technical assessment -> architecture review, technical debt assessment
3. Plan the Investigation
Break the work into MECE dimensions.
For each dimension, define:
- What evidence is needed
- Where it will come from
- What would confirm or contradict the current hypothesis
4. Collect Evidence
Use the minimum set of relevant sources:
- Repository files and docs
- Structured data or metrics
- Targeted commands
- Web research when current external information is required
Track evidence quality and note assumptions.
5. Analyze
Rules:
- Lead with evidence, not opinion
- Consider at least one alternative explanation
- State confidence explicitly
- Separate facts, inference, and recommendation
6. Present the Result
Use output-templates.md to structure the output.
All outputs should include:
- Executive summary
- Context
- Analysis
- Findings
- Recommendations
- Risks and limitations
Integration
- Input from: direct analysis/investigation/comparison/research request;
CLAUDE.md or AGENTS.md for project domain, tech stack, and business context (step 0)
- Drives: framework selection from
analytical-frameworks.md; output structure from output-templates.md
- Output: structured deliverable with executive summary, context, analysis, findings, recommendations, and risks/limitations — suitable for hand-off to a decision-maker or a downstream planning/implementation workflow
- Web research: used only when current external information is required (step 4)
Failure modes
- Opinion before evidence — recommendations stated without grounding violate step 5; lead with evidence, not opinion
- No alternative considered — step 5 requires at least one alternative explanation; a single-hypothesis analysis is incomplete
- Conflated facts/inference/recommendation — keep these separate in the output; mixing them hides confidence and assumptions
- Framework sprawl — picking more than one to three frameworks (step 2) dilutes focus; constrain to the question type
- Skipped context gathering — omitting step 0 leads to mis-scoped framework selection and analysis depth
- Untracked evidence quality — failing to note assumptions and source quality (step 4) makes conclusions unverifiable
Companion Resources
analytical-frameworks.md
output-templates.md
1---2name: analyze3description: Use this skill when the user asks to analyze, investigate, assess, evaluate, compare, or research a codebase, architecture, system, product, market, or research topic in a structured way — including requests that need explicit scope, framework-driven reasoning, and separated facts/inference/recommendation but do not use the word "analyze" — to run a deep analysis workflow producing traceable scope, evidence, and conclusions. Not for quick one-off lookups or implementation work — this is an investigation-and-conclusions workflow.4---56# Analyze78Perform structured analysis with explicit scope, evidence, and conclusions.910## When to use1112- Analyzing, investigating, assessing, or evaluating a codebase, architecture, or system13- Comparing options or alternatives in a structured way14- Researching a product, market, or topic where evidence and conclusions must be traceable15- Any request needing explicit scope, framework-driven reasoning, and separated facts/inference/recommendation16- Not for quick one-off lookups or implementation work — this is an investigation-and-conclusions workflow1718## 0. Gather Context1920Read `CLAUDE.md` (or `AGENTS.md`) at the project root to understand the project's domain, tech stack, and business context. This shapes framework selection and analysis scope.2122## 1. Classify the Request2324Identify:2526- Subject27- Core question28- Scope29- Desired depth30- Audience31- Decision the analysis should inform3233## 2. Choose a Framework3435Pick one to three frameworks from `analytical-frameworks.md` based on the question type.3637Typical pairings:3839- Current-state assessment -> gap analysis, architecture assessment40- Root cause -> 5 Whys, fishbone, causal analysis41- Comparison -> weighted scoring, MCDA42- Strategy -> SWOT, Porter's Five Forces, JTBD43- Technical assessment -> architecture review, technical debt assessment4445## 3. Plan the Investigation4647Break the work into MECE dimensions.4849For each dimension, define:5051- What evidence is needed52- Where it will come from53- What would confirm or contradict the current hypothesis5455## 4. Collect Evidence5657Use the minimum set of relevant sources:5859- Repository files and docs60- Structured data or metrics61- Targeted commands62- Web research when current external information is required6364Track evidence quality and note assumptions.6566## 5. Analyze6768Rules:6970- Lead with evidence, not opinion71- Consider at least one alternative explanation72- State confidence explicitly73- Separate facts, inference, and recommendation7475## 6. Present the Result7677Use `output-templates.md` to structure the output.7879All outputs should include:8081- Executive summary82- Context83- Analysis84- Findings85- Recommendations86- Risks and limitations8788## Integration8990- **Input from**: direct analysis/investigation/comparison/research request; `CLAUDE.md` or `AGENTS.md` for project domain, tech stack, and business context (step 0)91- **Drives**: framework selection from `analytical-frameworks.md`; output structure from `output-templates.md`92- **Output**: structured deliverable with executive summary, context, analysis, findings, recommendations, and risks/limitations — suitable for hand-off to a decision-maker or a downstream planning/implementation workflow93- **Web research**: used only when current external information is required (step 4)9495## Failure modes9697- **Opinion before evidence** — recommendations stated without grounding violate step 5; lead with evidence, not opinion98- **No alternative considered** — step 5 requires at least one alternative explanation; a single-hypothesis analysis is incomplete99- **Conflated facts/inference/recommendation** — keep these separate in the output; mixing them hides confidence and assumptions100- **Framework sprawl** — picking more than one to three frameworks (step 2) dilutes focus; constrain to the question type101- **Skipped context gathering** — omitting step 0 leads to mis-scoped framework selection and analysis depth102- **Untracked evidence quality** — failing to note assumptions and source quality (step 4) makes conclusions unverifiable103104## Companion Resources105106- `analytical-frameworks.md`107- `output-templates.md`