金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

fetch-diff

fetch-diff 是面向效率工具的 Agent Skill,来自 mlflow/mlflow。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Fetch PR diff with filtering and line numbers for code review.

SKILL.md

下载 MD ↓
namefetch-diff
descriptionFetch PR diff with filtering and line numbers for code review.
allowed-tools["Bash(uv run skills fetch-diff:*)"]

Fetch PR Diff

Fetches a pull request diff, filters out auto-generated files, and adds line numbers for easier review comment placement.

Usage

uv run skills fetch-diff <pr_url>

Example:

uv run skills fetch-diff https://github.com/mlflow/mlflow/pull/123

Token is auto-detected from GH_TOKEN env var or gh auth token.

Output Example

diff --git a/path/to/file.py b/path/to/file.py
index abc123..def456 100644
--- a/path/to/file.py
+++ b/path/to/file.py
@@ -10,7 +10,7 @@
10    10 |  import os
11    11 |  import sys
12    12 |  from typing import Optional
13       | -from old_module import OldClass
      14 | +from new_module import NewClass
14    15 |
15    16 |  def process_data(input_file: str) -> dict:

来源:mlflow/mlflow · Apache-2.0 许可 · 许可原文 · MD 为来源页保存的历史版本