本文へスキップ
Skillpedia
一般的なプログラミング81k · #1637

diff-analyze

できること

このスキルは、一連のコード変更をレビューし、リスクを採点して変更の種類を分類します。プルリクエストや大きな変更を準備していて、すばやいリスク確認をしたい開発者向けです。

使う場面

  • ✓プルリクエストを準備していて、そのリスクを知りたいとき。
  • ✓変更が多くのモジュールに及び、別の視点から確認したいとき。
  • ✓レビューを依頼すべき人の提案がほしいとき。

スキルのリンク

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-jujutsu/skills/diff-analyze/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-jujutsu/skills/diff-analyze/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“今の変更のリスクを分析して、誰がレビューすべきかを提案してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

スキルは、選んだ参照に対する git の変更を読み、リスクを採点して変更を分類し、ファイルパスからレビュー担当の役割を導き出します。各ファイルについて、行数とリスクも示します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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

  1. Pick the ref — HEAD for uncommitted work, main..BRANCH for a branch (--branch), or the PR's base..head range (--pr, resolve it with gh pr view N --json baseRefName,headRefName). The analyze_* tools take a ref and run git themselves; they do not accept diff text.
  2. Analyze diff — call mcp__plugin_ruflo-core_ruflo__analyze_diff with { ref, includeFileRisks: true } for a comprehensive analysis
  3. Risk score — call mcp__plugin_ruflo-core_ruflo__analyze_diff-risk with { ref } for a quantified risk assessment
  4. Classify changes — call mcp__plugin_ruflo-core_ruflo__analyze_diff-classify with { ref } to categorize (feature, bugfix, refactor, etc.)
  5. Get reviewer roles — call mcp__plugin_ruflo-core_ruflo__analyze_diff-reviewers with { ref, limit } for roles inferred from paths and risk; check CODEOWNERS separately when assigning people
  6. Diff stats — call mcp__plugin_ruflo-core_ruflo__analyze_diff-stats with { ref } for line counts, file counts, complexity metrics
  7. File-level risk — call mcp__plugin_ruflo-core_ruflo__analyze_file-risk with { 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
よくある質問

参照には何を選びますか?

コミットされていない作業には HEAD、main と比べたブランチ、またはプルリクエストのベースとヘッドの範囲を使ってください。

特定の人の名前を挙げますか?

ファイルパスとリスクに基づいて役割を提案します。特定の人については、CODEOWNERS ファイルを確認してください。

コードを変更しますか?

いいえ。変更を分析して結果を報告するだけです。

詳細

作者による元の説明

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

人気

GitHubのスター
81k
ランキング
#1637
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル