diffs

GitHub

生成可分享的代码差异视图或文件制品,替代手动编辑总结。支持查看模式、文件导出及两者结合,提供交互链接与渲染后的图片/PDF文件供用户或频道分发。

diffs/skills/diffs/SKILL.md linuxhsj/openclaw-zero-token

触发场景

需要展示代码或文本的差异对比 需要将差异结果生成为可视化文件或链接

安装

npx skills add linuxhsj/openclaw-zero-token --skill diffs -g -y
更多选项

非标准路径

npx skills add https://github.com/linuxhsj/openclaw-zero-token/tree/main/diffs/skills/diffs -g -y

不安装直接使用

npx skills use linuxhsj/openclaw-zero-token@diffs

指定 Agent (Claude Code)

npx skills add linuxhsj/openclaw-zero-token --skill diffs -a claude-code -g -y

安装 repo 全部 skill

npx skills add linuxhsj/openclaw-zero-token --all -g -y

预览 repo 内 skill

npx skills add linuxhsj/openclaw-zero-token --list

SKILL.md

Frontmatter
{
    "name": "diffs",
    "description": "Use the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries."
}

When you need to show edits as a real diff, prefer the diffs tool instead of writing a manual summary.

The diffs tool accepts either before + after text, or a unified patch string.

Use mode=view when you want an interactive gateway-hosted viewer. After the tool returns, use details.viewerUrl with the canvas tool via canvas present or canvas navigate.

Use mode=file when you need a rendered file artifact. Set fileFormat=png (default) or fileFormat=pdf. The tool result includes details.filePath.

For large or high-fidelity files, use fileQuality (standard|hq|print) and optionally override fileScale/fileMaxWidth.

When you need to deliver the rendered file to a user or channel, do not rely on the raw tool-result renderer. Instead, call the message tool and pass details.filePath through path or filePath.

Use mode=both when you want both the gateway viewer URL and the rendered artifact.

If the user has configured diffs plugin defaults, prefer omitting mode, theme, layout, and related presentation options unless you need to override them for this specific diff.

Include path for before/after text when you know the file name.

版本历史

  • a654bcf 当前 2026-07-25 07:12

同 Skill 集合

extensions/acpx/skills/acp-router/SKILL.md
extensions/diffs/skills/diffs/SKILL.md
extensions/feishu/skills/feishu-doc/SKILL.md
extensions/feishu/skills/feishu-drive/SKILL.md
extensions/feishu/skills/feishu-perm/SKILL.md
extensions/feishu/skills/feishu-wiki/SKILL.md
extensions/open-prose/skills/prose/SKILL.md
extensions/tavily/skills/tavily/SKILL.md
open-prose/skills/prose/SKILL.md
skills/1password/SKILL.md
skills/apple-notes/SKILL.md
skills/apple-reminders/SKILL.md
skills/bear-notes/SKILL.md
skills/blogwatcher/SKILL.md
skills/blucli/SKILL.md
skills/bluebubbles/SKILL.md
skills/browser-cdp/SKILL.md
skills/clawhub/SKILL.md
skills/discord/SKILL.md
skills/eightctl/SKILL.md
skills/gemini/SKILL.md
skills/gh-issues/SKILL.md
skills/gifgrep/SKILL.md
skills/github/SKILL.md
skills/gog/SKILL.md
skills/goplaces/SKILL.md
skills/healthcheck/SKILL.md
skills/himalaya/SKILL.md
skills/imsg/SKILL.md
skills/mcporter/SKILL.md
skills/model-usage/SKILL.md
skills/nano-banana-pro/SKILL.md
skills/nano-pdf/SKILL.md
skills/notion/SKILL.md
skills/obsidian/SKILL.md
skills/openai-image-gen/SKILL.md
skills/openai-whisper-api/SKILL.md
skills/openai-whisper/SKILL.md
skills/openhue/SKILL.md
skills/oracle/SKILL.md
skills/ordercli/SKILL.md
skills/peekaboo/SKILL.md
skills/session-logs/SKILL.md
skills/sherpa-onnx-tts/SKILL.md
skills/slack/SKILL.md
skills/songsee/SKILL.md
skills/sonoscli/SKILL.md
skills/spotify-player/SKILL.md
skills/summarize/SKILL.md

元信息

文件数
0
版本
a654bcf
Hash
6fe3e6d7
收录时间
2026-07-25 07:12

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-29 01:25
浙ICP备14020137号-1 $访客地图$