Calculate priority score

From maslennikov-ig/claude-code-orchestrator-kit · View interactive version

Calculate priority score is an AI agent skill from the GitHub repository maslennikov-ig/claude-code-orchestrator-kit. Calculate priority score for bugs, issues, or tasks based on severity, impact, and likelihood. Use for bug prioritization, task ordering, or risk assessment.

How to use this skill

Skill file

Calculate Priority Score

Calculate numeric priority score and category for issues based on multiple factors.

When to Use

Instructions

Step 1: Receive Issue Attributes

Accept issue attributes as input.

Expected Input:

{
  "severity": "critical|high|medium|low",
  "impact": "breaking|major|minor|none",
  "likelihood": "certain|likely|possible|unlikely"
}

Step 2: Load Scoring Matrix

Use scoring matrix to assign points.

Severity Scores:

Impact Scores:

Likelihood Scores:

Step 3: Calculate Total Score

Sum all factor scores.

Formula: score = severity + impact + likelihood

Range: 0-30

Step 4: Determine Priority Category

Map score to priority category.

Priority Categories:

Step 5: Return Scored Result

Return complete priority assessment.

Expected Output:

{
  "score": 27,
  "category": "P0",
  "label": "Critical - Immediate Action Required",
  "factors": {
    "severity": 10,
    "impact": 10,
    "likelihood": 7
  },
  "recommendation": "Drop everything, fix now"
}

Error Handling

Examples

Example 1: Critical Bug

Input:

{
  "severity": "critical",
  "impact": "breaking",
  "likelihood": "certain"
}

Output:

{
  "score": 30,
  "category": "P0",
  "label": "Critical - Immediate Action Required",
  "factors": {
    "severity": 10,
    "impact": 10,
    "likelihood": 10
  },
  "recommendation": "Drop everything, fix now"
}

Example 2: Medium Priority Issue

Input:

{
  "severity": "medium",
  "impact": "minor",
  "likelihood": "likely"
}

Output:

{
  "score": 15,
  "category": "P2",
  "label": "Medium - Schedule for Next Sprint",
  "factors": {
    "severity": 5,
    "impact": 3,
    "likelihood": 7
  },
  "recommendation": "Include in backlog, address soon"
}

Example 3: Low Priority Enhancement

Input:

{
  "severity": "low",
  "impact": "minor",
  "likelihood": "unlikely"
}

Output:

{
  "score": 7,
  "category": "P3",
  "label": "Low - Schedule When Convenient",
  "factors": {
    "severity": 2,
    "impact": 3,
    "likelihood": 2
  },
  "recommendation": "Nice to have, low priority"
}

Example 4: High-Impact but Unlikely

Input:

{
  "severity": "high",
  "impact": "breaking",
  "likelihood": "unlikely"
}

Output:

{
  "score": 19,
  "category": "P1",
  "label": "High - Fix This Sprint",
  "factors": {
    "severity": 7,
    "impact": 10,
    "likelihood": 2
  },
  "recommendation": "Prioritize in current sprint"
}

Validation

Supporting Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.