跳到正文
cccskills
免费在 GitHub 公开

diff

Fetch and display diffs for various scopes (PR, commit, branch, staged, working tree). Used by other skills that need to analyze changes.

中文简介正在准备中。当前显示原文说明。

集成工具GitHub
查看安装方法

包含的文件(1)

  • SKILL.md3.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Diff

Fetch a diff based on the input scope.

Scope detection

$ARGUMENTS determines the scope. Auto-detect the type:

InputDiff command
A PR number (e.g., 123)gh pr diff 123
A commit SHA (7-40 hex chars)git diff {sha}~1 {sha}
A commit range (a..b)git diff a b
A branch namegit diff {base}...{branch} (detect base: gh pr view --json baseRefName -q .baseRefName 2>/dev/null, fall back to main)
staged or pendinggit diff --staged
current or emptygit diff HEAD

If empty and the working tree is clean, fall back to the current branch vs main.

Output

Write the diff to a temp file and read it with the Read tool — diffs frequently exceed inline output limits.

If reviewing a PR, also read the PR description. If reviewing a commit, also read the commit messages.

Provide a report of the diffs:

Title: <Summary of PR title and commit messages> Description: <Summary of PR description and commit descriptions> Size: <size (XS|S|M|L|XL|XXL)> Diffs: <path to diff file>

Size guidelines:

SizeLinesFilesReview complexity
XS< 501-2Trivial: minor typos, documentation, or config tweaks
S50-2003-5Ideal: single bug fix or small, focused feature
M200-4006-10Standard: complete feature or logical refactor
L400-1k11-20Warning: high cognitive load, reviewers may start skimming
XL1k-2k20+Critical: likely needs to be split into smaller, independent PRs
XXL2k+50+Dangerous: defect detection drops significantly

Use whichever dimension gives the larger size (e.g., 3 files but 500 lines = L).

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

amend

免费

Amend the last commit with current changes and/or an updated message.

中文简介正在准备中。当前显示原文说明。

simonepri/ifttt-lint292026年9月29日 更新

commit

免费

Stage changes and create a commit with a conventional commit message.

中文简介正在准备中。当前显示原文说明。

simonepri/ifttt-lint292026年9月29日 更新

cook

免费

Full autopilot — plan, implement, and polish a task end-to-end.

中文简介正在准备中。当前显示原文说明。

simonepri/ifttt-lint292026年9月29日 更新

execute

免费

Execute a plan file — parse phases, spawn parallel subagents, handle failures.

中文简介正在准备中。当前显示原文说明。

simonepri/ifttt-lint292026年9月29日 更新

fork

免费

Start or end a forked session for exploring rabbit holes without losing the main conversation's context.

中文简介正在准备中。当前显示原文说明。

simonepri/ifttt-lint292026年9月29日 更新

plan

免费

Structured design intake for non-trivial tasks. Asks clarifying questions and produces a design proposal.

中文简介正在准备中。当前显示原文说明。

simonepri/ifttt-lint292026年9月29日 更新

查看 simonepri 的全部技能

报告此技能的问题