diff-analyze
What it does
This skill reviews a set of code changes, scores the risk and labels the type of change. It is for developers preparing a pull request or a large change who want a quick risk check.
When to use it
- ✓When you are preparing a pull request and want to know its risk.
- ✓When a change touches many modules and you want a second view on it.
- ✓When you need suggestions for which reviewers to ask.
Skill link
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-jujutsu/skills/diff-analyze/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Analyse the risk of my current changes and suggest who should review them.”
5 new skills a week. 1 minute to read.
How it works
The skill reads the git changes for the reference you choose, scores the risk, classifies the change and works out reviewer roles from the file paths. It also gives line counts and risk for each file.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Diff 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
- Pick the ref —
HEADfor uncommitted work,main..BRANCHfor a branch (--branch), or the PR's base..head range (--pr, resolve it withgh pr view N --json baseRefName,headRefName). The analyze_* tools take arefand run git themselves; they do not accept diff text. - Analyze diff — call
mcp__plugin_ruflo-core_ruflo__analyze_diffwith{ ref, includeFileRisks: true }for a comprehensive analysis - Risk score — call
mcp__plugin_ruflo-core_ruflo__analyze_diff-riskwith{ ref }for a quantified risk assessment - Classify changes — call
mcp__plugin_ruflo-core_ruflo__analyze_diff-classifywith{ ref }to categorize (feature, bugfix, refactor, etc.) - Get reviewer roles — call
mcp__plugin_ruflo-core_ruflo__analyze_diff-reviewerswith{ ref, limit }for roles inferred from paths and risk; check CODEOWNERS separately when assigning people - Diff stats — call
mcp__plugin_ruflo-core_ruflo__analyze_diff-statswith{ ref }for line counts, file counts, complexity metrics - File-level risk — call
mcp__plugin_ruflo-core_ruflo__analyze_file-riskwith{ path }(required) for each file the earlier steps flagged
Risk factors
- Files with high churn history
- Security-sensitive paths (auth, crypto, permissions)
- Large diffs (>500 lines)
- Cross-module changes
- Database migration files
FAQ
What do I choose as the reference?
Use HEAD for uncommitted work, a branch compared with main, or a pull request's base and head range.
Does it name specific people?
It suggests roles based on file paths and risk. Check the CODEOWNERS file for specific people.
Does it change my code?
No. It analyses the changes and reports the results.
Details
Original description by the author
Analyze git diffs for risk scoring, reviewer recommendations, and change classification. Use when preparing a PR, reviewing a large or cross-module change, or before merging to assess risk and pick reviewers.
repo: ruvnet/ruflo
Popularity
- GitHub stars
- 81k
- Ranking position
- #1637
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.