Risk scoring

From gonzalezpazmonica/pm-workspace · View interactive version

Risk scoring is an AI agent skill from the GitHub repository gonzalezpazmonica/pm-workspace. Usar cuando se calcula el riesgo de una tarea para decidir el nivel de revisión requerido.

How to use this skill

Skill file

Risk Scoring for Intelligent Escalation

Automated 4-phase pipeline to assess task complexity and route code reviews to appropriate escalation levels based on risk factors, replacing fixed Code Review rules with intelligent, data-driven routing.

Decision Checklist

Before scoring, answer sequentially:

  1. Does the change touch critical paths (auth, payments, data migration)? -> If YES: minimum score = 51 (High)
  2. Is this a security patch or compliance fix? -> If YES: auto-escalate to Critical (76+)
  3. Does the PR introduce new external dependencies? -> If YES: add +10 to base score
  4. Is this the author's first change to this module? -> If YES: add +10 (unfamiliarity penalty)
  5. Are there >500 lines changed? -> If YES: add +15 to base score

Abort Conditions


Phase 1: Collect Risk Signals

Extract risk indicators from task metadata: files touched, modules affected, external dependencies, security tags, compliance tags, data migration, production impact, change history.

Phase 2: Calculate Risk Score (0-100)

Weighted scoring system across 8 dimensions: file count, module criticality, external dependencies, security, compliance, data impact, historical signals.

Phase 3: Route to Review Level

Four-tier escalation based on score (enforced, not advisory):

Phase 4: Generate Risk Report

Comprehensive breakdown with score, factor breakdown, review requirements, suggested reviewers, timeline, and mitigations.

Integration Points

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.