wigolo-diff
它能做什么
这项技能教智能体如何比较页面的两个版本,例如在线页面与其保存副本。它会以补丁、按板块或计数的形式显示改动,便于撰写更新日志。
适用场景
- ✓当用户询问自上次以来页面有哪些改动的时候。
- ✓当用户想比较同一份文档的两个版本的时候。
- ✓当用户想获取某些内容两个版本之间的更新日志的时候。
技能链接
https://github.com/KnockOutEZ/wigolo/blob/main/skills/wigolo-diff/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“自从我上个月保存的副本以来,这个 API 文档页面有什么改动?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会从缓存或文本中加载旧版本,抓取新版本,然后进行比较。它会返回类似 git 的补丁、各板块的改动,或简短的计数摘要。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
wigolo diff
Structural comparison of two page versions. Point it at a live URL and its cached copy, two URLs, or two raw markdown blobs, and it returns a git-style patch, structured per-section hunks, or a counts-only summary.
Quick Reference
// Live page vs its cached version (re-fetches `new` side)
{ "old": { "url": "https://docs.example.com/api" }, "new": { "url": "https://docs.example.com/api" } }
// Two different URLs
{ "old": { "url": "https://v1.example.com/spec" }, "new": { "url": "https://v2.example.com/spec" } }
// Two markdown blobs directly
{ "old": { "markdown": "# Title\nold body" }, "new": { "markdown": "# Title\nnew body" } }
// Structured per-section hunks at word granularity
{ "old": { "url": "https://example.com" }, "new": { "url": "https://example.com" }, "output": "hunks", "granularity": "word" }
// Counts only
{ "old": { "url": "https://example.com" }, "new": { "url": "https://example.com" }, "output": "summary" }
Parameters
| Parameter | Type | Default | When to use |
|---|---|---|---|
old |
object | required | Left-hand side. One of { url, markdown, content_hash } |
new |
object | required | Right-hand side. One of { url, markdown } |
output |
string | "unified" | "unified" (git-style patch), "hunks" (per-section), "summary" (counts only) |
granularity |
string | "line" | "line", "word" (changed tokens only — tighter), "section" (walks H1/H2/H3) |
Output Shapes
unified— a git-style unified patch, ready to read or store.hunks— structured per-section change blocks. Combine withgranularity: "section"to align hunks to headings, orgranularity: "word"for tight intra-line edits.summary— counts only:added_lines,removed_lines,modified_lines, andtotal_changed_chars(sum of added + removed line chars across the edit script). Cheapest way to answer "did anything change, and how much".
Comparing Against the Cache
The most common use is drift detection: fetch a page now and diff it against the copy wigolo cached earlier. Pass the same URL for both sides — wigolo reads the cached body for old and re-fetches for new. For a scoped, multi-URL sweep, prefer cache with check_changes: true.
Anti-Patterns
- DON'T pass an
old/newobject without one of the accepted side keys — the handler rejects it. - DON'T use
output: "unified"when you only need counts —summaryis cheaper. - DON'T diff two unrelated pages expecting a meaningful changelog — diff versions of the same content.
When NOT to use wigolo-diff
- Bulk change detection across many cached URLs — use
cachewithcheck_changes: true. - Ongoing scheduled monitoring — use
watch, which diffs on each check.
See Also
- wigolo-cache —
check_changesfor bulk drift detection - wigolo-watch — scheduled change monitoring
- wigolo-fetch — pull a fresh version to compare
常见问题
我能比较两段文本吗?
能。这项技能接受原始 Markdown 文本作为比较的任一方。
有哪些详细程度可选?
这项技能提供按行或按单词的比较。
它会重新抓取在线页面吗?
会。当在线页面是比较的一方时,这项技能会重新抓取它。
详情
作者的原始描述
Compare two versions of a page and see exactly what changed — a live URL against its cached copy, two URLs, or two markdown blobs. Section-level hunks, word- or line-level granularity, or a summary of counts. Use when the user says "what changed", "diff these", "compare this page to last time", "show me the changes", "did this doc update", or wants a changelog between two versions of the same content.
repo: KnockOutEZ/wigolo
热度
- GitHub 星标
- 5.5k
- 排名
- #14818
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
wigolo
5.5k帮你的智能体通过本地工具服务器搜索、抓取、爬取和研究网页,结果缓存在你的电脑上,无需任何 API 密钥。
wigolo-agent
5.5k帮你的智能体在限定时间内,从多个网络来源一次性收集数据,并按照 schema 定义的固定结构返回。
wigolo-cache
5.5k帮你的智能体先搜索已经抓取、爬取或搜索过的页面,再回到网上查找,使重复查询即时完成且无需额外成本。
wigolo-crawl
5.5k帮你的智能体爬取文档网站或网站的某个板块,在设定的限制内遵循站点地图或链接,并把页面保存到本地缓存。