Jira Issue Triage and Routing Skill
Intelligent classification, prioritization, and routing system for Jira issues.
Triage Decision Tree
START: New Jira Issue
├─ Step 1: ISSUE TYPE CLASSIFICATION
│ ├─ Bug? → Classify severity (Blocker/Critical/Major/Minor) → HIGH Priority if Critical
│ ├─ Story/Feature? → Check requirements clarity, sprint scope, dependencies
│ ├─ Epic? → Route to epic-decomposer (NEVER implement directly)
│ ├─ Task? → Route by category (Tech Debt/Config/Docs/Infrastructure)
│ └─ Spike? → Time-box (1-2 days max) → Document findings → Create stories
│
├─ Step 2: COMPLEXITY ASSESSMENT (0-100 scale)
│ ├─ Code Impact: Single file (2) → Multiple services (10)
│ ├─ Integration: None (0) → Multiple external APIs (10)
│ ├─ Risk: None (0) → Critical/Data loss (10)
│ ├─ Testing: No tests (0) → Complex E2E scenarios (10)
│ ├─ Dependencies: None (0) → Multiple blocking (10)
│ └─ Uncertainty: Known (0) → Complete unknown (10)
│
│ Scoring: (Code×0.25 + Integration×0.20 + Risk×0.20 + Testing×0.15 + Dependencies×0.10 + Uncertainty×0.10) × 10
│
│ Categories:
│ • 1-20: SIMPLE → Quick-Fix Path (2-3 agents, 2-4 hrs)
│ • 21-40: MODERATE → Standard Workflow (3-5 agents, 2-5 days)
│ • 41-70: COMPLEX → Extended Workflow (5-10 agents, 5-10 days)
│ • 71+: VERY COMPLEX → Decomposition Path
│
├─ Step 3: PRIORITY & SEVERITY ASSESSMENT
│ ├─ Business Impact: Blocks production (BLOCKER) → Nice-to-have (LOW)
│ ├─ Urgency: Immediate (hours) → Backlog (months)
│ └─ Bug Severity Matrix:
│ • BLOCKER: Production down, data loss, security breach (1-4 hr SLA)
│ • CRITICAL: Major functionality broken (4-8 hr SLA)
│ • MAJOR: Important feature degraded (1-3 days)
│ • MINOR: Cosmetic issues (next sprint)
│
├─ Step 4: WORKFLOW ROUTING
│ ├─ QUICK-FIX: Simple (1-20), <50 LOC, low risk → EXPLORE→CODE→TEST→COMMIT
│ ├─ STANDARD: Moderate (21-40) → EXPLORE→PLAN→CODE→TEST→FIX→COMMIT
│ ├─ EXTENDED: Complex (41-70), high risk → All phases + extended thinking + checkpoints
│ ├─ RESEARCH: Spike/POC → RESEARCH→DOCUMENT→CREATE STORIES (time-boxed)
│ └─ DECOMPOSITION: Epic (71+) → ANALYZE→DECOMPOSE→CREATE STORIES→TRIAGE EACH
│
├─ Step 5: AGENT SELECTION
│ ├─ By Type: Bug→triage-agent; Story→requirements-analyzer; Epic→epic-decomposer; Spike→requirements-analyzer
│ ├─ By Tech: Frontend→react-specialist; Backend→nodejs/python/java-specialist; DevOps→k8s-specialist
│ ├─ By Phase: EXPLORE→requirements-analyzer; PLAN→architect; CODE→tech-specific; TEST→test-strategist; COMMIT→commit-orchestrator
│ └─ By Complexity: SIMPLE→2-3 junior agents; COMPLEX→5-10 seniors + extended thinking
│
├─ Step 6: RISK & ESCALATION
│ ├─ Risk Factors: Security, breaking changes, data migrations, compliance issues
│ ├─ Level 1 (IMMEDIATE STOP): Security vulnerability, data loss, compliance breach
│ ├─ Level 2 (CHECKPOINT): Complexity +50%, blocker >4hrs, breaking changes
│ └─ Level 3 (POST-COMPLETION): Standard bugs, docs, minor refactoring
│
└─ Step 7: OUTPUT ROUTING PACKAGE
├─ Classification, complexity score, priority, workflow path
├─ Agent selection, risk assessment, escalation triggers
└─ Update Jira labels, assign workflow, spawn agents
Issue Type Routing Matrix
| Type |
Detection |
Routing |
Agents |
| Bug |
Title: "bug", "broken", "error"; Stack trace present |
Route by severity + "Can reproduce?" check |
triage-agent, hypothesis-debugger, root-cause-analyzer |
| Story |
"Add", "implement", "create"; User story format |
Check requirements, sprint scope, decompose if >13 pts |
requirements-analyzer, requirements-analyzer, task-enricher |
| Epic |
Type=Epic; Multi-sprint scope |
DECOMPOSE into 3-8 stories (Foundation→Core→Enhancement→Polish phases) |
epic-decomposer, strategic-planner |
| Task |
No user-facing change |
Tech Debt→code-quality; Config→devops; Docs→doc-writer |
domain-specialists |
| Spike |
"Investigate", "research", "POC"; Unknown outcome |
Time-box 1-2 days, document findings, create stories |
requirements-analyzer, requirements-analyzer |
Complexity Scoring Example
Issue: Add CSV export functionality
Code Impact: 5 (3-4 files, 200-300 LOC) × 0.25 = 1.25
Integration: 3 (internal APIs) × 0.20 = 0.60
Risk: 4 (file generation, perf) × 0.20 = 0.80
Testing: 6 (unit + integration) × 0.15 = 0.90
Dependencies: 2 (DB query opt) × 0.10 = 0.20
Uncertainty: 3 (format details) × 0.10 = 0.30
Score: 3.65 × 10 = 36.5 → MODERATE (5 story points)
→ Standard Workflow, 3-5 agents, 2-5 days
Epic Decomposition Example
Epic: User Management System
Phase 1 (Sprint 1): PROJ-101 Profile CRUD (5pts), PROJ-102 RBAC (8pts), PROJ-103 Password Policy (3pts)
Phase 2 (Sprint 2): PROJ-104 Audit Logging (5pts), PROJ-105 MFA (8pts)
Phase 3 (Sprint 3): PROJ-106 Bulk Ops (5pts), PROJ-107 Import/Export (5pts)
Phase 4 (Sprint 4): PROJ-108 Analytics (8pts)
Dependencies: PROJ-102 blocks PROJ-106; PROJ-101 blocks PROJ-104
Total: 8 stories, 47 points, 4 sprints, 2-3 developers
Workflow Paths
| Path |
Criteria |
Phases |
Agents |
Duration |
| Quick-Fix |
Complexity 1-20, <50 LOC, low risk |
EXPLORE→CODE→TEST→COMMIT |
2-3 |
2-4 hrs |
| Standard |
Complexity 21-40, moderate risk |
EXPLORE→PLAN→CODE→TEST→FIX→COMMIT |
3-5 |
2-5 days |
| Extended |
Complexity 41-70, high risk |
All phases + extended thinking + checkpoints |
5-13 |
5-10 days |
| Research |
Spike/POC, time-boxed |
RESEARCH→DOCUMENT→CREATE STORIES |
1-3 |
1-5 days |
| Decomposition |
Epic, complexity 71+ |
ANALYZE→DECOMPOSE→CREATE STORIES→TRIAGE |
2-4 |
1-2 days |
Agent Selection by Phase
| Phase |
SIMPLE |
MODERATE |
COMPLEX |
VERY COMPLEX |
| EXPLORE |
requirements-analyzer (1) |
requirements-analyzer, requirements-analyzer (2) |
requirements-analyzer, dep-mapper, architect (3) |
architect, senior-analyst (3) |
| PLAN |
— |
requirements-analyzer (1) |
requirements-analyzer, code-architect (2) |
senior-architect (2) |
| CODE |
junior-dev (1-2) |
task-enricher (2-4) |
task-enricher (3-6) |
senior-specialists (4-6) |
| TEST |
test-runner (1) |
test-strategist (1-2) |
test-strategist, qa-ticket-reviewer (2-3) |
comprehensive-tester (2-4) |
| FIX |
— |
hypothesis-debugger (1) |
hypothesis-debugger, code-quality-enforcer (1-2) |
senior-debugger (1-2) |
| COMMIT |
commit-orchestrator (1) |
commit-orchestrator (1) |
commit-orchestrator, documentation-hub (1-2) |
commit-orchestrator, documentation-hub (1-2) |
Escalation Matrix
| Trigger |
Level |
Action |
Timeline |
Notify |
| Security vulnerability |
1 IMMEDIATE |
STOP work, create incident |
Immediate |
Security, management |
| Data loss risk |
1 IMMEDIATE |
STOP work, document |
Immediate |
Ops, management |
| Complexity +50% |
2 CHECKPOINT |
Pause, request decision |
Same day |
Tech lead, product owner |
| Blocker >4 hrs |
2 CHECKPOINT |
Escalate blocker |
Within 4 hrs |
Blocking team, manager |
| Breaking change |
2 CHECKPOINT |
Document impact, approve |
1-2 days |
Affected teams |
| Standard bug fix |
3 POST-COMPLETION |
Complete, notify |
After done |
Reviewer |
Bug Routing Decision
Bug Detected
├─ Can reproduce consistently? NO → Gather reproduction steps
├─ Security vulnerability? YES → IMMEDIATE ESCALATION
├─ Severity?
│ ├─ BLOCKER/CRITICAL → Extended workflow, root-cause analysis, human checkpoints
│ ├─ MAJOR → Standard workflow, add regression tests
│ └─ MINOR → Quick-Fix path, batch with similar fixes
└─ Root cause known? NO → Extend EXPLORE phase with hypothesis-debugger/profiler
Feature Routing Decision
Story/Feature Detected
├─ Requirements clear? NO → Route to requirements-analyzer first
├─ Single sprint scope? NO → Consider epic decomposition
├─ Tech complexity?
│ ├─ Frontend → UI specialists
│ ├─ Backend → API specialists
│ ├─ Full-stack → Both
│ └─ Infrastructure → DevOps specialists
├─ Integration complexity?
│ ├─ None → SIMPLE (1-20 pts)
│ ├─ Internal APIs → MODERATE (21-40 pts)
│ ├─ External APIs → COMPLEX (41-70 pts)
│ └─ Multiple external → VERY COMPLEX (71+ pts)
└─ Score 1-100 and route to appropriate workflow
Spike Handling
Spike Detected
├─ Time-Box Definition (CRITICAL)
│ ├─ Small: 1 day max
│ ├─ Medium: 2-3 days max
│ └─ Large: 1 week max (justify)
├─ Research Phase: Investigate tech/approach, build POC if needed
├─ Document Phase: Write findings, recommend approach, estimate effort
└─ Output: Go/No-Go decision OR implementation stories with estimates
Triage Output Checklist
1---
2name: jira-issue-triage-and-routing
3description: This skill should be used when the user asks to "triage issue", "classify ticket", "route jira", "analyze priority", "categorize issue", "determine complexity", "route to agents", or needs guidance on classifying, prioritizing, and routing Jira issues to appropriate agents and workflows.
4version: 1.0.0
5trigger_phrases:
6 - "triage issue"
7 - "classify ticket"
8 - "route jira"
9 - "analyze priority"
10 - "categorize issue"
11 - "determine complexity"
12 - "assess severity"
13 - "route to agents"
14 - "triage workflow"
15 - "issue classification"
16categories: ["jira", "triage", "routing", "classification", "prioritization"]
17---
18
19# Jira Issue Triage and Routing Skill
20
21Intelligent classification, prioritization, and routing system for Jira issues.
22
23## Triage Decision Tree
24
25```
26START: New Jira Issue
27├─ Step 1: ISSUE TYPE CLASSIFICATION
28│ ├─ Bug? → Classify severity (Blocker/Critical/Major/Minor) → HIGH Priority if Critical
29│ ├─ Story/Feature? → Check requirements clarity, sprint scope, dependencies
30│ ├─ Epic? → Route to epic-decomposer (NEVER implement directly)
31│ ├─ Task? → Route by category (Tech Debt/Config/Docs/Infrastructure)
32│ └─ Spike? → Time-box (1-2 days max) → Document findings → Create stories
33│
34├─ Step 2: COMPLEXITY ASSESSMENT (0-100 scale)
35│ ├─ Code Impact: Single file (2) → Multiple services (10)
36│ ├─ Integration: None (0) → Multiple external APIs (10)
37│ ├─ Risk: None (0) → Critical/Data loss (10)
38│ ├─ Testing: No tests (0) → Complex E2E scenarios (10)
39│ ├─ Dependencies: None (0) → Multiple blocking (10)
40│ └─ Uncertainty: Known (0) → Complete unknown (10)
41│
42│ Scoring: (Code×0.25 + Integration×0.20 + Risk×0.20 + Testing×0.15 + Dependencies×0.10 + Uncertainty×0.10) × 10
43│
44│ Categories:
45│ • 1-20: SIMPLE → Quick-Fix Path (2-3 agents, 2-4 hrs)
46│ • 21-40: MODERATE → Standard Workflow (3-5 agents, 2-5 days)
47│ • 41-70: COMPLEX → Extended Workflow (5-10 agents, 5-10 days)
48│ • 71+: VERY COMPLEX → Decomposition Path
49│
50├─ Step 3: PRIORITY & SEVERITY ASSESSMENT
51│ ├─ Business Impact: Blocks production (BLOCKER) → Nice-to-have (LOW)
52│ ├─ Urgency: Immediate (hours) → Backlog (months)
53│ └─ Bug Severity Matrix:
54│ • BLOCKER: Production down, data loss, security breach (1-4 hr SLA)
55│ • CRITICAL: Major functionality broken (4-8 hr SLA)
56│ • MAJOR: Important feature degraded (1-3 days)
57│ • MINOR: Cosmetic issues (next sprint)
58│
59├─ Step 4: WORKFLOW ROUTING
60│ ├─ QUICK-FIX: Simple (1-20), <50 LOC, low risk → EXPLORE→CODE→TEST→COMMIT
61│ ├─ STANDARD: Moderate (21-40) → EXPLORE→PLAN→CODE→TEST→FIX→COMMIT
62│ ├─ EXTENDED: Complex (41-70), high risk → All phases + extended thinking + checkpoints
63│ ├─ RESEARCH: Spike/POC → RESEARCH→DOCUMENT→CREATE STORIES (time-boxed)
64│ └─ DECOMPOSITION: Epic (71+) → ANALYZE→DECOMPOSE→CREATE STORIES→TRIAGE EACH
65│
66├─ Step 5: AGENT SELECTION
67│ ├─ By Type: Bug→triage-agent; Story→requirements-analyzer; Epic→epic-decomposer; Spike→requirements-analyzer
68│ ├─ By Tech: Frontend→react-specialist; Backend→nodejs/python/java-specialist; DevOps→k8s-specialist
69│ ├─ By Phase: EXPLORE→requirements-analyzer; PLAN→architect; CODE→tech-specific; TEST→test-strategist; COMMIT→commit-orchestrator
70│ └─ By Complexity: SIMPLE→2-3 junior agents; COMPLEX→5-10 seniors + extended thinking
71│
72├─ Step 6: RISK & ESCALATION
73│ ├─ Risk Factors: Security, breaking changes, data migrations, compliance issues
74│ ├─ Level 1 (IMMEDIATE STOP): Security vulnerability, data loss, compliance breach
75│ ├─ Level 2 (CHECKPOINT): Complexity +50%, blocker >4hrs, breaking changes
76│ └─ Level 3 (POST-COMPLETION): Standard bugs, docs, minor refactoring
77│
78└─ Step 7: OUTPUT ROUTING PACKAGE
79 ├─ Classification, complexity score, priority, workflow path
80 ├─ Agent selection, risk assessment, escalation triggers
81 └─ Update Jira labels, assign workflow, spawn agents
82```
83
84## Issue Type Routing Matrix
85
86| Type | Detection | Routing | Agents |
87|------|-----------|---------|--------|
88| **Bug** | Title: "bug", "broken", "error"; Stack trace present | Route by severity + "Can reproduce?" check | triage-agent, hypothesis-debugger, root-cause-analyzer |
89| **Story** | "Add", "implement", "create"; User story format | Check requirements, sprint scope, decompose if >13 pts | requirements-analyzer, requirements-analyzer, task-enricher |
90| **Epic** | Type=Epic; Multi-sprint scope | DECOMPOSE into 3-8 stories (Foundation→Core→Enhancement→Polish phases) | epic-decomposer, strategic-planner |
91| **Task** | No user-facing change | Tech Debt→code-quality; Config→devops; Docs→doc-writer | domain-specialists |
92| **Spike** | "Investigate", "research", "POC"; Unknown outcome | Time-box 1-2 days, document findings, create stories | requirements-analyzer, requirements-analyzer |
93
94## Complexity Scoring Example
95
96```
97Issue: Add CSV export functionality
98
99Code Impact: 5 (3-4 files, 200-300 LOC) × 0.25 = 1.25
100Integration: 3 (internal APIs) × 0.20 = 0.60
101Risk: 4 (file generation, perf) × 0.20 = 0.80
102Testing: 6 (unit + integration) × 0.15 = 0.90
103Dependencies: 2 (DB query opt) × 0.10 = 0.20
104Uncertainty: 3 (format details) × 0.10 = 0.30
105
106Score: 3.65 × 10 = 36.5 → MODERATE (5 story points)
107→ Standard Workflow, 3-5 agents, 2-5 days
108```
109
110## Epic Decomposition Example
111
112```
113Epic: User Management System
114
115Phase 1 (Sprint 1): PROJ-101 Profile CRUD (5pts), PROJ-102 RBAC (8pts), PROJ-103 Password Policy (3pts)
116Phase 2 (Sprint 2): PROJ-104 Audit Logging (5pts), PROJ-105 MFA (8pts)
117Phase 3 (Sprint 3): PROJ-106 Bulk Ops (5pts), PROJ-107 Import/Export (5pts)
118Phase 4 (Sprint 4): PROJ-108 Analytics (8pts)
119
120Dependencies: PROJ-102 blocks PROJ-106; PROJ-101 blocks PROJ-104
121Total: 8 stories, 47 points, 4 sprints, 2-3 developers
122```
123
124## Workflow Paths
125
126| Path | Criteria | Phases | Agents | Duration |
127|------|----------|--------|--------|----------|
128| **Quick-Fix** | Complexity 1-20, <50 LOC, low risk | EXPLORE→CODE→TEST→COMMIT | 2-3 | 2-4 hrs |
129| **Standard** | Complexity 21-40, moderate risk | EXPLORE→PLAN→CODE→TEST→FIX→COMMIT | 3-5 | 2-5 days |
130| **Extended** | Complexity 41-70, high risk | All phases + extended thinking + checkpoints | 5-13 | 5-10 days |
131| **Research** | Spike/POC, time-boxed | RESEARCH→DOCUMENT→CREATE STORIES | 1-3 | 1-5 days |
132| **Decomposition** | Epic, complexity 71+ | ANALYZE→DECOMPOSE→CREATE STORIES→TRIAGE | 2-4 | 1-2 days |
133
134## Agent Selection by Phase
135
136| Phase | SIMPLE | MODERATE | COMPLEX | VERY COMPLEX |
137|-------|--------|----------|---------|--------------|
138| EXPLORE | requirements-analyzer (1) | requirements-analyzer, requirements-analyzer (2) | requirements-analyzer, dep-mapper, architect (3) | architect, senior-analyst (3) |
139| PLAN | — | requirements-analyzer (1) | requirements-analyzer, code-architect (2) | senior-architect (2) |
140| CODE | junior-dev (1-2) | task-enricher (2-4) | task-enricher (3-6) | senior-specialists (4-6) |
141| TEST | test-runner (1) | test-strategist (1-2) | test-strategist, qa-ticket-reviewer (2-3) | comprehensive-tester (2-4) |
142| FIX | — | hypothesis-debugger (1) | hypothesis-debugger, code-quality-enforcer (1-2) | senior-debugger (1-2) |
143| COMMIT | commit-orchestrator (1) | commit-orchestrator (1) | commit-orchestrator, documentation-hub (1-2) | commit-orchestrator, documentation-hub (1-2) |
144
145## Escalation Matrix
146
147| Trigger | Level | Action | Timeline | Notify |
148|---------|-------|--------|----------|--------|
149| Security vulnerability | 1 IMMEDIATE | STOP work, create incident | Immediate | Security, management |
150| Data loss risk | 1 IMMEDIATE | STOP work, document | Immediate | Ops, management |
151| Complexity +50% | 2 CHECKPOINT | Pause, request decision | Same day | Tech lead, product owner |
152| Blocker >4 hrs | 2 CHECKPOINT | Escalate blocker | Within 4 hrs | Blocking team, manager |
153| Breaking change | 2 CHECKPOINT | Document impact, approve | 1-2 days | Affected teams |
154| Standard bug fix | 3 POST-COMPLETION | Complete, notify | After done | Reviewer |
155
156## Bug Routing Decision
157
158```
159Bug Detected
160├─ Can reproduce consistently? NO → Gather reproduction steps
161├─ Security vulnerability? YES → IMMEDIATE ESCALATION
162├─ Severity?
163│ ├─ BLOCKER/CRITICAL → Extended workflow, root-cause analysis, human checkpoints
164│ ├─ MAJOR → Standard workflow, add regression tests
165│ └─ MINOR → Quick-Fix path, batch with similar fixes
166└─ Root cause known? NO → Extend EXPLORE phase with hypothesis-debugger/profiler
167```
168
169## Feature Routing Decision
170
171```
172Story/Feature Detected
173├─ Requirements clear? NO → Route to requirements-analyzer first
174├─ Single sprint scope? NO → Consider epic decomposition
175├─ Tech complexity?
176│ ├─ Frontend → UI specialists
177│ ├─ Backend → API specialists
178│ ├─ Full-stack → Both
179│ └─ Infrastructure → DevOps specialists
180├─ Integration complexity?
181│ ├─ None → SIMPLE (1-20 pts)
182│ ├─ Internal APIs → MODERATE (21-40 pts)
183│ ├─ External APIs → COMPLEX (41-70 pts)
184│ └─ Multiple external → VERY COMPLEX (71+ pts)
185└─ Score 1-100 and route to appropriate workflow
186```
187
188## Spike Handling
189
190```
191Spike Detected
192├─ Time-Box Definition (CRITICAL)
193│ ├─ Small: 1 day max
194│ ├─ Medium: 2-3 days max
195│ └─ Large: 1 week max (justify)
196├─ Research Phase: Investigate tech/approach, build POC if needed
197├─ Document Phase: Write findings, recommend approach, estimate effort
198└─ Output: Go/No-Go decision OR implementation stories with estimates
199```
200
201## Triage Output Checklist
202
203- [ ] Issue classification (type, subtype, confidence)
204- [ ] Complexity score (0-100) with factor breakdown
205- [ ] Priority & severity assessment
206- [ ] Workflow path selection (Quick-Fix/Standard/Extended/Research/Decomposition)
207- [ ] Agent recommendations per phase
208- [ ] Risk assessment and escalation level
209- [ ] Dependencies and blockers
210- [ ] Jira labels and field updates
211- [ ] Execute workflow with selected agents