diff-analyze
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.
How do I install this agent skill?
npx skills add https://github.com/ruvnet/ruflo --skill diff-analyzeIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill is designed for git diff analysis and risk assessment. It is generally safe but possesses a surface for indirect prompt injection, as it processes external code changes that could contain malicious instructions designed to mislead the agent's analysis.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
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
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/ruvnet/ruflo/diff-analyze">View diff-analyze on skillZs</a>