Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计提醒

diffity-resolve差异解析

Agent Skill

diffity-resolve 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

9,768

周安装

425

GitHub Stars

571

下载量

3,216
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:diffity-resolve(差异解析)
来源仓库:https://github.com/kamranahmedse/diffity
仓库路径:skills/diffity-resolve
安装命令:
npx skills add https://github.com/kamranahmedse/diffity --skill diffity-resolve
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/kamranahmedse/diffity --skill diffity-resolve

简介

diffity-resolve 用于读取代码审查中的评论并自动应用所请求的修改。

  • 适用于处理 GitHub PR 中的评审意见,可在 Codex、Claude 等宿主中实现自动化代码修正。
  • 支持按线程 ID 定位特定评论,调用 diffity agent 命令行工具完成变更与状态标记。
  • 需确保本地已安装 diffity 且具备对目标仓库的读写权限方可正常执行操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Diffity Resolve Skill

You are reading open review comments and resolving them by making the requested code changes.

Arguments

  • thread-id (optional): Resolve a specific thread by ID instead of all open threads. Example: /diffity-resolve abc123

CLI Reference

diffity agent diff
diffity agent list [--status open|resolved|dismissed] [--json]
diffity agent comment --file <path> --line <n> [--end-line <n>] [--side new|old] --body "<text>"
diffity agent general-comment --body "<text>"
diffity agent resolve <id> [--summary "<text>"]
diffity agent dismiss <id> [--reason "<text>"]
diffity agent reply <id> --body "<text>"
  • --file, --line, --body are required for comment
  • --end-line defaults to --line (single-line comment)
  • --side defaults to new
  • general-comment creates a diff-level comment not tied to any file or line
  • <id> accepts full UUID or 8-char prefix

Prerequisites

  1. Check that diffity is available: run which diffity. If not found, install it with npm install -g diffity.
  2. Check that a review session exists: run diffity agent list. If this fails with "No active review session", tell the user to start diffity first (e.g. diffity or /diffity-diff).

Instructions

  1. List open comment threads with full details: diffity agent list --status open --json If a thread-id argument was provided, filter to just that thread. The JSON output includes the full comment body, file path, line numbers, and side for each thread.
  2. If there are no open threads, tell the user there's nothing to resolve.
  3. For each open thread, check the comments array and the author.type field ("user" or "agent") on each comment: a. Skip general comments (filePath __general__) — these are summaries, not actionable code changes. b. Skip threads where the last comment is an agent reply that asks the user a question (e.g. "Could you clarify...?") and the user hasn't responded yet — the agent is waiting for user input. Still process threads where the agent left the original comment (code suggestion, review feedback, etc.) — those are actionable. c. [nit] comments — these are minor suggestions but still actionable. Resolve them like any other comment. d. [question] comments (from the user) — read the question, examine the relevant code, and resolve the thread with your answer as the summary: diffity agent resolve <thread-id> --summary "Your answer here" e. Comments phrased as questions without an explicit [question] tag (e.g. "should we add X?" or "can we rename this?") are suggestions — treat them as actionable requests and make the change. f. Read the comment body from the JSON output and understand what change is requested. Interpret the intent: g. Read the relevant source file to understand the full context around the commented lines, then make the requested change using the Edit tool. h. After making the change, resolve the thread with a summary: diffity agent resolve <thread-id> --summary "Fixed: <brief description of what was changed>"

- If the comment suggests a code change, make the change. - If the comment suggests adding documentation, add or update the relevant docs. - If the comment asks a question that implies an action (e.g. "should we add X?"), treat it as a request to do that action. - If the comment is genuinely unclear and you cannot determine what action to take, reply asking for clarification instead of silently skipping: diffity agent reply <thread-id> --body "Could you clarify what change you'd like here?"

  1. After resolving all applicable threads, run diffity agent list to confirm status.
  2. Tell the user to check the browser — resolved status will appear within 2 seconds via polling.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.88%
按下载量换算1,186

Claude

30.67%
按下载量换算986

Cursor

18.93%
按下载量换算609

Gemini CLI

7.94%
按下载量换算255

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills