About diff-analyze
A workflow for reviewing Git diffs before a pull request or after substantial changes. It assesses risk and complexity, classifies changes, and suggests reviewers based on code ownership.
Key features
- 01Comprehensive diff analysis
- 02Quantified risk assessment
- 03Change type classification
- 04Reviewer recommendations
- 05Diff and complexity statistics
- 06Per-file risk breakdown
Use cases
- 01Assessing a diff before submitting a pull request
- 02Identifying high-risk files in a large change
- 03Finding reviewers based on code ownership
MCP support
Uses Ruflo MCP tools to analyze diffs, calculate risk, classify changes, recommend reviewers, and report statistics.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ ruvnet/ ruflo --skill diff-analyzeAfter installing, type/diff-analyzein Claude Code to confirm it loaded.
Details
From the project READMEDiff Analysis
Analyze git diffs for risk, complexity, and reviewer assignment.
When to use
Before submitting a PR or after making significant changes, analyze the diff to understand risk level, get reviewer recommendations, and classify the type of change.
Steps
- Analyze diff — call
mcp__plugin_ruflo-core_ruflo__analyze_diffwith the diff content for a comprehensive analysis - Risk score — call
mcp__plugin_ruflo-core_ruflo__analyze_diff-riskfor a quantified risk assessment - Classify changes — call
mcp__plugin_ruflo-core_ruflo__analyze_diff-classifyto categorize (feature, bugfix, refactor, etc.) - Get reviewers — call
mcp__plugin_ruflo-core_ruflo__analyze_diff-reviewersfor recommended reviewers based on code ownership - Diff stats — call
mcp__plugin_ruflo-core_ruflo__analyze_diff-statsfor line counts, file counts, complexity metrics - File-level risk — call
mcp__plugin_ruflo-core_ruflo__analyze_file-riskfor per-file risk breakdown
Risk factors
- Files with high churn history
- Security-sensitive paths (auth, crypto, permissions)
- Large diffs (>500 lines)
- Cross-module changes
- Database migration files
Comments
Markdown supported