.agents/skills/code-changes/references/analyze.md
Start every task here, no matter how it arrived: issue link, PR number, verbal idea, bug report. No code gets written or edited during this phase.
gh issue view <n> --comments / gh pr view <n> --comments, plus linked
issues, referenced discussions, and any code the report points at.git log -- <path>).Reproduce the problem when possible. A reproduction turns the analysis from a hypothesis into a fact and gives Phase 5 its verification case for free. When reproduction is impossible (platform, hardware, credentials), say so explicitly in the report and mark the fix as unverified-by-repro.
If root cause can't be pinned with confidence, or the fix looks architectural, security-sensitive, or irreversible, hand the specific question to the strongest available model instead of guessing — see references/escalate.md. Resume ownership of the phase once the question is answered.
A short analysis report to the user containing:
Report the analysis and wait for a go before implementing. Skip the gate only when the user already gave the go in the request itself ("do it", "fix it and commit", "implement with Sonnet"). A go given for analysis is not a go for implementation.