Chuyển đến nội dung
Skillpedia
Thu thập dữ liệu web5.5k · #14818

wigolo-diff

Skill này làm gì

Skill này dạy agent cách so sánh hai phiên bản của một trang, như trang trực tiếp với bản đã lưu. Skill hiển thị thay đổi dưới dạng bản vá, theo phần hoặc dưới dạng số đếm, hữu ích cho nhật ký thay đổi.

Khi nào nên dùng

  • ✓Khi người dùng hỏi điều gì đã thay đổi trên một trang từ lần trước.
  • ✓Khi người dùng muốn so sánh hai phiên bản của cùng một tài liệu.
  • ✓Khi người dùng muốn nhật ký thay đổi giữa hai phiên bản của một nội dung.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/KnockOutEZ/wigolo/blob/main/skills/wigolo-diff/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Điều gì đã thay đổi trên trang tài liệu API này kể từ bản tôi đã lưu tháng trước?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent tải phiên bản cũ từ bộ nhớ đệm hoặc từ văn bản, tải phiên bản mới, rồi so sánh chúng. Agent trả về bản vá kiểu git, thay đổi theo từng phần, hoặc tóm tắt ngắn về số lượng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

Câu hỏi thường gặp

Tôi có thể so sánh hai đoạn văn bản không?

Có. Skill chấp nhận văn bản markdown thô ở một trong hai phía của so sánh.

Có những mức chi tiết nào?

Skill cung cấp so sánh theo dòng hoặc theo từ.

Nó có tải lại trang trực tiếp không?

Có. Khi trang trực tiếp là một phía, skill sẽ tải lại trang đó.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
5.5k
Vị trí xếp hạng
#14818
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự