AgentSkillsCN

Jira Issue Triage and Routing

当用户要求“分类问题”、“归类工单”、“路由 Jira”、“分析优先级”、“对问题进行分类”、“确定复杂度”、“路由至各代理”,或需要在对 Jira 问题进行分类、排序与路由时,将其分配至合适的代理与工作流时,应使用此技能。

SKILL.md
--- frontmatter
name: Jira Issue Triage and Routing
description: 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.
version: 1.0.0
trigger_phrases:
  - "triage issue"
  - "classify ticket"
  - "route jira"
  - "analyze priority"
  - "categorize issue"
  - "determine complexity"
  - "assess severity"
  - "route to agents"
  - "triage workflow"
  - "issue classification"
categories: ["jira", "triage", "routing", "classification", "prioritization"]

Jira Issue Triage and Routing Skill

Intelligent classification, prioritization, and routing system for Jira issues.

Triage Decision Tree

code
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→debugger; Story→feature-architect; Epic→epic-decomposer; Spike→research-specialist
│  ├─ By Tech: Frontend→react-specialist; Backend→nodejs/python/java-specialist; DevOps→k8s-specialist
│  ├─ By Phase: EXPLORE→code-analyst; PLAN→architect; CODE→tech-specific; TEST→test-engineer; COMMIT→git-specialist
│  └─ 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

TypeDetectionRoutingAgents
BugTitle: "bug", "broken", "error"; Stack trace presentRoute by severity + "Can reproduce?" checkbug-fixer, debugger, root-cause-investigator
Story"Add", "implement", "create"; User story formatCheck requirements, sprint scope, decompose if >13 ptsrequirements-analyzer, feature-architect, tech-specialists
EpicType=Epic; Multi-sprint scopeDECOMPOSE into 3-8 stories (Foundation→Core→Enhancement→Polish phases)epic-decomposer, strategic-planner
TaskNo user-facing changeTech Debt→code-quality; Config→devops; Docs→doc-writerdomain-specialists
Spike"Investigate", "research", "POC"; Unknown outcomeTime-box 1-2 days, document findings, create storiesresearch-specialist, poc-developer

Complexity Scoring Example

code
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

code
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

PathCriteriaPhasesAgentsDuration
Quick-FixComplexity 1-20, <50 LOC, low riskEXPLORE→CODE→TEST→COMMIT2-32-4 hrs
StandardComplexity 21-40, moderate riskEXPLORE→PLAN→CODE→TEST→FIX→COMMIT3-52-5 days
ExtendedComplexity 41-70, high riskAll phases + extended thinking + checkpoints5-135-10 days
ResearchSpike/POC, time-boxedRESEARCH→DOCUMENT→CREATE STORIES1-31-5 days
DecompositionEpic, complexity 71+ANALYZE→DECOMPOSE→CREATE STORIES→TRIAGE2-41-2 days

Agent Selection by Phase

PhaseSIMPLEMODERATECOMPLEXVERY COMPLEX
EXPLOREcode-analyst (1)code-analyst, requirements-analyzer (2)code-analyst, dep-mapper, architect (3)architect, senior-analyst (3)
PLANfeature-architect (1)feature-architect, code-architect (2)senior-architect (2)
CODEjunior-dev (1-2)tech-specialists (2-4)tech-specialists (3-6)senior-specialists (4-6)
TESTtest-runner (1)test-engineer (1-2)test-engineer, qa-specialist (2-3)comprehensive-tester (2-4)
FIXdebugger (1)debugger, refactoring-specialist (1-2)senior-debugger (1-2)
COMMITgit-specialist (1)git-specialist (1)git-specialist, doc-writer (1-2)git-specialist, doc-writer (1-2)

Escalation Matrix

TriggerLevelActionTimelineNotify
Security vulnerability1 IMMEDIATESTOP work, create incidentImmediateSecurity, management
Data loss risk1 IMMEDIATESTOP work, documentImmediateOps, management
Complexity +50%2 CHECKPOINTPause, request decisionSame dayTech lead, product owner
Blocker >4 hrs2 CHECKPOINTEscalate blockerWithin 4 hrsBlocking team, manager
Breaking change2 CHECKPOINTDocument impact, approve1-2 daysAffected teams
Standard bug fix3 POST-COMPLETIONComplete, notifyAfter doneReviewer

Bug Routing Decision

code
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 debugger/profiler

Feature Routing Decision

code
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

code
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

  • Issue classification (type, subtype, confidence)
  • Complexity score (0-100) with factor breakdown
  • Priority & severity assessment
  • Workflow path selection (Quick-Fix/Standard/Extended/Research/Decomposition)
  • Agent recommendations per phase
  • Risk assessment and escalation level
  • Dependencies and blockers
  • Jira labels and field updates
  • Execute workflow with selected agents