Git Risk Analysis

Community

Enhance PR risk scoring with git history.

Authorsrirajk
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill augments PR risk scoring by analyzing historic git activity. It surfaces hotspots, authorship concentration, rollback history, and change complexity to help you understand and mitigate production risk beyond static code analysis.

Core Features & Use Cases

  • Detect Code Hotspots: Identify files with high churn that often correlate with risk.
  • Authorship Concentration: Highlight files touched by many authors to flag coordination risks.
  • Deployment Failure History: Surface past rollbacks or hotfix activity for critical files.
  • Change Complexity: Measure lines changed to assess impact of modifications.
  • Bug Fix Rate Signals: Track recent fixes to gauge code quality.
  • Merge Conflict Frequency: Gauge merge activity and potential integration issues.
  • Use Case: When reviewing a PR, this skill adds context about which files are risk hotspots and who touched them, helping decide if deeper review is needed.

Quick Start

Run the git-risk-analysis skill during PR review to evaluate the touched files in the target branch. The analysis will read the PR metadata from output/pr-<PR_NUMBER>/metadata.json and use git commands to compute the metrics.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Git Risk Analysis
Download link: https://github.com/srirajk/reselience-agent-prototype/archive/main.zip#git-risk-analysis

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository