Agent skill

Diff Analyze

by ruvnet in ruvnet/ruflo

Analyze git diffs for risk scoring, reviewer recommendations, and change classification.

MITAuto-check: notesDevelopment

Install Diff Analyze

skills CLI
$ npx skills add ruvnet/ruflo --skill diff-analyze -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ruvnet/ruflo diff-analyze --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ruvnet/ruflo.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ruflo-jujutsu/skills/diff-analyze .claude/skills/diff-analyze && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
diff-analyze
GitHub stars
74k
Token cost
~450 tokens
SKILL.md length
128 words
Files
1
Skills in repo
264
Repo updated
First seen
Licence
MIT

At a glance

Analyze git diffs for risk scoring, reviewer recommendations, and change classification.

  • Works in 6 steps: Analyze diff — call… → Risk score — call… → Classify changes — call… → …
  • Reviewing a large
  • SKILL.md covers When to use, Steps and Risk factors
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Diff Analyze is an agent skill from ruvnet/ruflo. 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.

Its SKILL.md is about 450 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. It works with Git and Model Context Protocol. The repository describes itself as: 🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory…. The licence is MIT.

When your agent uses it

  • Reviewing a large
  • Cross-module change
  • Before merging to assess risk and pick reviewers

Example prompts

  • “/diff-analyze”

Requirements

  • Pre-approved tools (allowed-tools): mcp__plugin_ruflo-core_ruflo__analyze_diff, mcp__plugin_ruflo-core_ruflo__analyze_diff-risk, mcp__plugin_ruflo-core_ruflo__analyze_diff-classify, mcp__plugin_ruflo-core_ruflo__analyze_diff-reviewers, mcp__plugin_ruflo-core_ruflo__analyze_diff-stats, mcp__plugin_ruflo-core_ruflo__analyze_file-risk, Bash

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Analyze diff — call mcpplugin_ruflo-core_rufloanalyze_diff with the diff content for a comprehensive analysis
  2. Risk score — call mcpplugin_ruflo-core_rufloanalyze_diff-risk for a quantified risk assessment
  3. Classify changes — call mcpplugin_ruflo-core_rufloanalyze_diff-classify to categorize (feature, bugfix, refactor, etc.)
  4. Get reviewers — call mcpplugin_ruflo-core_rufloanalyze_diff-reviewers for recommended reviewers based on code ownership
  5. Diff stats — call mcpplugin_ruflo-core_rufloanalyze_diff-stats for line counts, file counts, complexity metrics
  6. File-level risk — call mcpplugin_ruflo-core_rufloanalyze_file-risk for per-file risk breakdown

What it can do on your machine

Read from SKILL.md and the folder at commit de590e1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • mcp__plugin_ruflo-core_ruflo__analyze_diff
    • mcp__plugin_ruflo-core_ruflo__analyze_diff-risk
    • mcp__plugin_ruflo-core_ruflo__analyze_diff-classify
    • mcp__plugin_ruflo-core_ruflo__analyze_diff-reviewers
    • mcp__plugin_ruflo-core_ruflo__analyze_diff-stats
    • mcp__plugin_ruflo-core_ruflo__analyze_file-risk
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Diff Analyze loads about 450 tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 128 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~450

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: mcp__plugin_ruflo-core_ruflo__analyze_diff, mcp__plugin_ruflo-core_ruflo__analyze_diff-risk, mcp__pl

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ruvnet/ruflo at commit de590e1, republished under its MIT licence (© ruvnet). 128 words, ~450 tokens.

Download SKILL.mdSave it as .claude/skills/diff-analyze/SKILL.md (or your agent's skills folder).
name
diff-analyze
description
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.
allowed-tools
mcp__plugin_ruflo-core_ruflo__analyze_diff, mcp__plugin_ruflo-core_ruflo__analyze_diff-risk, mcp__plugin_ruflo-core_ruflo__analyze_diff-classify, mcp__plugin_ruflo-core_ruflo__analyze_diff-reviewers, mcp__plugin_ruflo-core_ruflo__analyze_diff-stats, mcp__plugin_ruflo-core_ruflo__analyze_file-risk, Bash
argument-hint
[--branch BRANCH] [--pr PR#]

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

  1. Analyze diff — call mcp__plugin_ruflo-core_ruflo__analyze_diff with the diff content for a comprehensive analysis
  2. Risk score — call mcp__plugin_ruflo-core_ruflo__analyze_diff-risk for a quantified risk assessment
  3. Classify changes — call mcp__plugin_ruflo-core_ruflo__analyze_diff-classify to categorize (feature, bugfix, refactor, etc.)
  4. Get reviewers — call mcp__plugin_ruflo-core_ruflo__analyze_diff-reviewers for recommended reviewers based on code ownership
  5. Diff stats — call mcp__plugin_ruflo-core_ruflo__analyze_diff-stats for line counts, file counts, complexity metrics
  6. File-level risk — call mcp__plugin_ruflo-core_ruflo__analyze_file-risk for 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

© ruvnet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/ruflo-jujutsu/skills/diff-analyze of ruvnet/ruflo.

Open the folder on GitHubat commit de590e1

Compare with similar skills

Diff Analyze next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Diff Analyze compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Diff Analyze this skillruvnet/ruflo74k—~450Automated safety check: NotesMIT
Cut Releasespiculedata/saiku1.3k—~502Automated safety check: PassApache-2.0
Liveagent Code ReviewStack-Cairn/LiveAgent2.2k—~2kAutomated safety check: PassMIT
Zhtw Conventionssysprog21/zhtw-mcp488—~2kAutomated safety check: PassMIT
Close Task Commit Push PRdevoxx/DevoxxGenieIDEAPlugin684—~1kAutomated safety check: NotesMIT
Git Releasewesammustafa/opencode-primer397—~409Automated safety check: PassMIT

Similar skills

  • Cut Release

    spiculedata/saiku

    Cut a Saiku release via Gitflow — version bump, release branch, PR to main, tag, back-merge, and post-release chores.

    1.3k GitHub stars~502 tokensUpdated today
    DevelopmentAuto-check passed
  • Liveagent Code Review

    Stack-Cairn/LiveAgent

    Review an open GitHub pull request or the current local branch and working tree with parallel, independent reviewers and evidence-based validation.

    2.2k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Zhtw Conventions

    sysprog21/zhtw-mcp

    The zhtw-mcp conventions no gate enforces - the register a comment, a commit message and a PR reply are written in, where Chinese belongs in the tree and where it does not, the untracked working…

    488 GitHub stars~2k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Close Task Commit Push PR

    devoxx/DevoxxGenieIDEAPlugin

    Close the active backlog task (detected from branch name), commit all changes, push to remote, and open a pull request.

    684 GitHub stars~1k tokensUpdated 8 days ago
    DevelopmentAuto-check: notes
  • Git Release

    wesammustafa/opencode-primer

    Draft release notes from merged PRs, propose a semver bump, and emit a copy-pasteable gh release create command.

    397 GitHub stars~409 tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • E2b Sandbox

    agent-sandbox/agent-sandbox

    Create, manage, and use E2B sandboxes — run commands, manage files, use git, persist state, and configure networking.

    218 GitHub stars~2.6k tokensUpdated 17 days ago
    DevelopmentAuto-check passed

More from ruvnet/ruflo

All 264 skills in this repo
  • Stores, searches, and retrieves successful patterns with HNSW-indexed semantic search so agents can reuse past solutions instead of relearning them.

    74k GitHub starsUsed in 2 repos~830 tokens
    Auto-check passed
  • Runs claude-flow CLI security scans for input validation, path traversal, SQL injection, XSS, hardcoded secrets and known CVEs, and writes an audit report.

    74k GitHub starsUsed in 2 repos~823 tokens
    Auto-check passed
  • Applies the SPARC method (specification, pseudocode, architecture, refinement, completion) with 17 specialized modes and multi-agent orchestration, from research to deployment.

    74k GitHub starsUsed in 2 repos~829 tokens
    Auto-check passed
  • Coordinates a hierarchical swarm of specialized agents through the claude-flow CLI for work that spans several files or modules at once.

    74k GitHub starsUsed in 2 repos~779 tokens
    Auto-check passed
  • Sets up and drives Ruflo, an npm-installed orchestration layer for multi-agent swarms, persistent memory, routing, hooks and its MCP tool catalog.

    74k GitHub starsUsed in 1 repo~975 tokens
    Auto-check passed
  • Agent Coordination

    ruvnet/ruflo

    Reference for spawning, listing, monitoring and stopping agents with claude-flow commands, with agent type families, routing codes and coordination tips.

    74k GitHub starsUsed in 2 repos~519 tokens
    Auto-check passed

Categories

Questions about Diff Analyze

What does Diff Analyze do?

Analyze git diffs for risk scoring, reviewer recommendations, and change classification. Diff Analyze is an agent skill from ruvnet/ruflo. Analyze git diffs for risk scoring, reviewer recommendations, and change classification.

When should I use Diff Analyze?

Diff Analyze fits situations like: reviewing a large; cross-module change; before merging to assess risk and pick reviewers.

How do I install Diff Analyze in Claude Code?

Run `npx skills add ruvnet/ruflo --skill diff-analyze -a claude-code`. Or copy the skill folder (plugins/ruflo-jujutsu/skills/diff-analyze in ruvnet/ruflo) into .claude/skills/diff-analyze in your project. Claude Code loads it when a task matches its description.

How do I install Diff Analyze in Codex?

Run `npx skills add ruvnet/ruflo --skill diff-analyze -a codex`. Or copy the skill folder (plugins/ruflo-jujutsu/skills/diff-analyze in ruvnet/ruflo) into .agents/skills/diff-analyze in your project. Codex loads it when a task matches its description.

Can I use Diff Analyze in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ruvnet/ruflo --skill diff-analyze -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/diff-analyze, .gemini/skills/diff-analyze, .github/skills/diff-analyze and .opencode/skills/diff-analyze in your project.

What does Diff Analyze need to run?

SKILL.md names no scripts, command-line tools or credentials: Diff Analyze is instructions for the agent only. Its frontmatter pre-approves these tools: mcp__plugin_ruflo-core_ruflo__analyze_diff, mcp__plugin_ruflo-core_ruflo__analyze_diff-risk, mcp__plugin_ruflo-core_ruflo__analyze_diff-classify, mcp__plugin_ruflo-core_ruflo__analyze_diff-reviewers, mcp__plugin_ruflo-core_ruflo__analyze_diff-stats, mcp__plugin_ruflo-core_ruflo__analyze_file-risk, Bash.

Does Diff Analyze access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Diff Analyze safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Diff Analyze use?

Diff Analyze is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Diff Analyze use?

About 450 tokens (SKILL.md is roughly 1.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Diff Analyze?

Skills that share tags, products or a category with Diff Analyze: Cut Release (spiculedata/saiku, 1.3k stars), Liveagent Code Review (Stack-Cairn/LiveAgent, 2.2k stars), Zhtw Conventions (sysprog21/zhtw-mcp, 488 stars) and Close Task Commit Push PR (devoxx/DevoxxGenieIDEAPlugin, 684 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Diff Analyze?

ruvnet (a GitHub user) maintains it in ruvnet/ruflo, which has 74,012 GitHub stars. The repository holds 264 skills in this directory. The repository was last updated on October 7, 2026.

Source: ruvnet/ruflo on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.