跳到正文
Skillpedia
网页抓取5.5k · #14818

wigolo-diff

它能做什么

这项技能教智能体如何比较页面的两个版本,例如在线页面与其保存副本。它会以补丁、按板块或计数的形式显示改动,便于撰写更新日志。

适用场景

  • ✓当用户询问自上次以来页面有哪些改动的时候。
  • ✓当用户想比较同一份文档的两个版本的时候。
  • ✓当用户想获取某些内容两个版本之间的更新日志的时候。

技能链接

https://github.com/KnockOutEZ/wigolo/blob/main/skills/wigolo-diff/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/KnockOutEZ/wigolo/blob/main/skills/wigolo-diff/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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 with granularity: "section" to align hunks to headings, or granularity: "word" for tight intra-line edits.
  • summary — counts only: added_lines, removed_lines, modified_lines, and total_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/new object without one of the accepted side keys — the handler rejects it.
  • DON'T use output: "unified" when you only need counts — summary is 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 cache with check_changes: true.
  • Ongoing scheduled monitoring — use watch, which diffs on each check.

See Also

常见问题

我能比较两段文本吗?

能。这项技能接受原始 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能