external/ag-shared/prompts/skills/jira/workflows/estimate.md
Structured complexity and effort estimation for JIRA tickets, features, or projects.
Read technology stack rules and CLAUDE.md from the target repo first. Confirm you understand repo structure, build/test commands, and architectural constraints before proceeding.
Based on initial analysis, classify the scope to determine report depth:
| Scope | Heuristic | Report Depth |
|---|---|---|
| Small | <1 day, single file, clear root cause | Executive Summary + Time Estimate + Top Risk only |
| Medium | 1-5 days, multi-file, moderate unknowns | All 5 sections, concise |
| Large | >5 days, cross-package, new feature | All sections, detailed breakdown |
CRITICAL: Do NOT proceed to estimation without completing this step.
Only raise ambiguities that would change the estimate by >20% or shift the complexity level. Focus on material decisions:
DO ask about:
Do NOT ask about:
Present 1-4 ambiguities using the AskUserQuestion tool with:
After receiving answers, document chosen approaches and adjust estimates accordingly.
Use the Explore agent to analyse:
Use this structure consistently. All sections required for Medium/Large scope; Small scope uses abbreviated format (see Step 1.5).
Report Header:
## Estimation Report: [Ticket ID/Feature Name]
**Date:** [Current date]
**Estimator:** Claude Code
**Ticket Summary:** [Brief 1-2 sentence summary]
Executive Summary (always required):
| Metric | Value |
|---|---|
| Total Effort | [X-Y days] ([X-Y hours]) |
| Complexity | [Low | Medium | High | Very High] |
| Risk Level | [Low | Medium | High] |
| Confidence | [Low | Medium | High] |
Follow with 2-3 bullet Key Highlights summarising main work, scope decisions, and top concern.
Section 1 — Estimated Complexity Level: Overall rating with rationale. Include breakdown across Implementation, Testing, Documentation, Integration (each Low/Medium/High).
Section 2 — Estimated Time Effort: Total range in days for single developer + confidence level. Break down into: Investigation & Design, Core Implementation, Testing, Documentation, Review & Iteration. Each gets hours/days. End with explicit Assumptions list.
Section 3 — Dependencies, Gaps & Missing Information: Four sub-sections: External Dependencies, Information Gaps, Implicit Scope (not stated but likely required, e.g. framework wrapper updates, locale strings), Out of Scope (confirm with stakeholder).
Section 4 — Top 3 Highest Risk Aspects: For each risk:
Use ### sub-headings per risk.
Section 5 — Overall Risk Level: Assessment (Low/Medium/High) with justification. Include factor breakdown: Technical, Schedule, Integration, Requirement risks (each rated). End with Confidence in Estimate and what would increase it.
Closing:
Insufficient ticket information: Request specifics from user. List what's needed. If unavailable, provide estimate with large uncertainty range and note the gaps.
Estimate exceeds 2 weeks: Recommend breaking into sub-tasks or phases. Highlight in risk assessment and discuss scope reduction with user.