wigolo-diff
ما الذي تفعله
تعلّم هذه المهارة الوكيل كيف يقارن نسختين من صفحة، مثل الصفحة الحية ونسختها المحفوظة. تعرض التغييرات كرقعة تعديل أو حسب المقطع أو كأرقام، وهو مفيد لسجلات التغييرات.
متى تستخدمها
- ✓عندما يسأل المستخدم عما تغيّر في صفحة منذ آخر مرة.
- ✓عندما يريد المستخدم مقارنة نسختين من الوثائق نفسها.
- ✓عندما يريد المستخدم سجل تغييرات بين نسختين من محتوى.
رابط المهارة
https://github.com/KnockOutEZ/wigolo/blob/main/skills/wigolo-diff/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“ما الذي تغيّر في صفحة وثائق API هذه منذ النسخة التي حفظتها الشهر الماضي؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يحمّل الوكيل النسخة القديمة من الذاكرة أو من النص، ويجلب النسخة الجديدة، ثم يقارن بينهما. يعيد رقعة تعديل بأسلوب 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
- الترخيص
- —
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
wigolo
5.5kيساعد وكيلك على البحث في الويب وجلب الصفحات وزحفها وإجراء الأبحاث عبر خادم أدوات محلي، مع تخزين النتائج على جهازك دون الحاجة إلى مفاتيح API.
wigolo-agent
5.5kيساعد وكيلك على جمع بيانات من عدة مصادر ويب في مهمة واحدة ضمن حد زمني، ثم يعيدها بهيكل ثابت يحدده المخطط.
wigolo-cache
5.5kيساعد وكيلك على البحث في الصفحات التي جلبها أو زحفها أو بحث عنها من قبل، قبل العودة إلى الويب، فتكون عمليات البحث المتكررة فورية ومجانية.
wigolo-crawl
5.5kيساعد وكيلك على زحف وثائق موقع أو قسم منه، باتباع خريطة الموقع أو الروابط ضمن حدود محددة، ثم حفظ الصفحات في ذاكرة تخزين محلية.
مهارات مشابهة
tavily
394kيساعد وكيلك على البحث في الويب عبر Tavily وسحب النص من صفحات محددة، مع خيارات للعمق والنطاقات والتواريخ.
blogwatcher
394kيتيح لوكيلك متابعة المدونات وخلاصات RSS أو Atom، والتحقق منها بحثًا عن المقالات الجديدة، وتعليم المقالات التي قرأتها.
data-scraper-agent
280kيساعد وكيلك على جمع البيانات تلقائيًا من أي مصدر عام. يمكن جدولته وإثراء المعلومات وحفظ النتائج. مفيد لمراقبة البيانات الإلكترونية وتتبعها.