Community编程与开发github.com

diffs

使用 diffs 工具生成真实且可分享的差异对比(查看器 URL、文件产物或两者兼具),取代手动编辑摘要。

diffs 是什么?

diffs 工具专为开发者设计,用于生成标准化的代码差异对比(diff),支持交互式查看器(mode=view)、文件产物(mode=file,格式为 PNG 或 PDF)或两者同时生成(mode=both)。它接受 `before` + `after` 文本或统一格式的 `patch` 字符串作为输入,并自动检测内容是否实际发生变化(`details.changed` 字段返回 `false` 时不创建产物)。该工具在 Claude Code、Cursor 等 AI 代理平台上均可使用。对于需要分享的查看器 URL,建议使用已配置的 `viewerBaseUrl` 或公共 `baseUrl` 以避免回环代理(如 Tailscale Serve)的隔离问题;文件产物则可通过文件发送工具作为附件传递。工具还支持 `fileQuality`、`fileScale`、`fileMaxWidth` 等高级选项,用于控制大文件或高保真输出的渲染效果。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/extensions/diffs/skills/diffs

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

当需要以真实差异(diff)展示编辑内容时,请优先使用 diffs 工具,而不要手动编写摘要。

diffs 工具接受 before + after 文本,或统一格式的 patch 字符串。

检查 details.changed:如果输入的前后内容相同,则返回 false 且不创建产物;渲染后的结果返回 true。

使用 mode=view 可创建交互式网关托管的查看器。工具返回后,请使用可用的表面展示工具展示 details.viewerUrl。 如果部署使用了回环可信代理(例如 Tailscale Serve 的 gateway.trustedProxies 包含 127.0.0.1),则原始回环查看器请求可能因缺少转发的客户端 IP 头而被拒绝。在这种拓扑中,建议使用 mode=file / mode=both,或配置 viewerBaseUrl / 显式代理或公共 baseUrl 来获取可分享的查看器 URL。

使用 mode=file 可生成渲染后的文件产物。设置 fileFormat=png(默认)或 fileFormat=pdf。工具结果包含 details.filePath。

对于大型或高保真文件,请使用 fileQuality(standard|hq|print)并可选择覆盖 fileScale/fileMaxWidth。

当需要将渲染后的文件交付给用户或频道时,请不要依赖原始工具结果的渲染器。而是使用可用的文件发送工具将 details.filePath 作为附件发送。

使用 mode=both 可同时获得网关查看器 URL 和渲染产物。

如果用户已配置 diffs 插件默认值,则最好省略 mode、theme、layout 及相关展示选项,除非需要为此次差异覆盖这些值。

在提供 before/after 文本时,请包含 path 参数以指定文件名。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills when explicitly requested; install, verify, update, uninstall, publish, or sync skills.

相关技能