شعار Wikipedia Edit History

Wikipedia Edit History

المجتمع
fuzheado
wikipedia-edit-history

Read and analyze Wikipedia's page revision history — diffs, edit summaries, user contributions, byte changes, rollback, and understanding the evolution of a page over time

نظرة عامة

الناشرfuzheado
المستودعWikipedia-AI-Skills
اسم المهارةwikipedia-edit-history
النجوم
27
التفريعات
10
الملفات المرفقة
6
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 6

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها fuzheado على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Wikipedia Edit History في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikipedia-edit-history
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fuzheado/Wikipedia-AI-Skills.git /tmp/Wikipedia-AI-Skills
mkdir -p .claude/skills
cp -r /tmp/Wikipedia-AI-Skills/.claude/skills/wikipedia-edit-history .claude/skills/wikipedia-edit-history
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Wikipedia Edit History في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Wikipedia Edit History تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Wikipedia Edit History بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

⚠️ User-Agent required: The history examples below use the Action API. All requests must include a descriptive User-Agent header or they will be blocked with HTTP 403 or 429. See the wikimedia-api-access skill for the correct format and rate-limiting patterns.

SOP: Accessing Page History

Every Wikipedia page has a complete edit history. Access it via:

URL: https://en.wikipedia.org/w/index.php?title=PageName&action=history

API:

action=query&prop=revisions&titles=Albert_Einstein&rvlimit=50&format=json

Key parameters:

ParameterPurpose
rvlimitMax revisions (1–500, default 10)
rvpropWhat data per revision (see §2)
rvdirolder (newest first) or newer (oldest first)
rvstart / rvendTimestamp-based date range
rvuserFilter to a specific user

Pagination: API responses include a continue object. Merge it into the next request to fetch the next page of results.

Date range example:

action=query&prop=revisions&titles=Albert_Einstein&rvstart=2026-01-01T00:00:00Z&rvend=2025-06-01T00:00:00Z&rvdir=newer&rvlimit=500

prop=revisions vs. list=recentchanges: Use prop=revisions for history of a single page. Use list=recentchanges to see what's happening wiki-wide.


SOP: Batching and Pagination for Efficiency

The Action API supports fetching up to 500 revisions in a single call (rvlimit=500). For bots with the apihighlimits right, this goes up to 5,000. Use this to minimize round trips.

Batch Size Guidelines

Targetrvlimit ValueRound Trips for 1000 Revisions
Quick check (default)10100
Typical analysis5020
Full audit5002

Always use the largest batch size you need — the API does not charge extra for more results in a single call. The cost is in the number of HTTP requests, not the number of revisions returned.

Pagination Pattern

To fetch all revisions for a page, loop on the continue key:

python
params = {
    "action": "query",
    "prop": "revisions",
    "titles": "Albert Einstein",
    "rvlimit": 500,         ← max per call
    "rvprop": "ids|timestamp|user|size",  ← only what you need
    "format": "json",
}
while True:
    data = api_request(params)
    # ... process revisions ...
    if "continue" not in data:
        break
    params.update(data["continue"])

Selective rvprop Reduces Response Size

Request only the properties you actually need. The most expensive property is content (full wikitext) — it multiplies the response size by 10–100x:

If you need...Request...Size vs. full
Just revision IDs and timestamps`rvprop=idstimestamp`
Who changed what and when`rvprop=idstimestamp
Tags and minor flag`rvprop=idsflags
Full page contentrvprop=content100% (largest)

💡 Fetch content for a single revision using action=query&revids=REVID&prop=revisions&rvprop=content rather than including content in a batch revision list. This way you only download the wikitext for the revisions you actually need to read.

User Contributions Batching

Similarly, list=usercontribs supports uclimit=500 (or 5,000 for bots):

action=query&list=usercontribs&ucuser=Jimbo+Wales&uclimit=500&ucprop=ids|title|timestamp|comment|size|sizediff

Compare Multiple Revisions Efficiently

  • Use action=compare to get diff metadata (diffsize, fromsize, tosize) for a pair of revisions in one call
  • To compare many pairs, batch them sequentially with a small delay (see wikimedia-api-access for rate limiting) rather than comparing each revision individually via the browser

SOP: Reading Revision Records

Each revision, when requested with rvprop=ids|timestamp|user|userid|size|comment|tags|flags, returns:

json
{
  "revid": 123456789,
  "parentid": 123456788,
  "timestamp": "2026-05-23T14:30:00Z",
  "user": "Example",
  "userid": 12345,
  "size": 24500,
  "comment": "/* Early life */ added citation",
  "tags": ["mobile edit"],
  "minor": true
}
FieldDescription
revidUnique revision ID (sequential, per wiki)
parentidPrevious revision (0 for page creation)
timestampISO 8601 timestamp
userUsername or IP address (empty if oversighted)
useridUser ID (0 for anonymous editors)
sizePage length in bytes after this revision
commentEdit summary
tagsMachine-applied labels
minorTrue if marked as minor edit

rvprop cost: ids, flags, timestamp, user, size, sha1, comment, tags are low cost. content (full wikitext) is high cost — use sparingly.

Link to a specific revision: https://en.wikipedia.org/w/index.php?title=PageName&oldid=123456789


SOP: Interpreting Diffs (Overview)

For detailed diff fetching and interpretation, see the wikimedia-diffs skill. This section covers the basics needed for history navigation.

Diff URL: https://en.wikipedia.org/w/index.php?title=PageName&diff=NEW_REV_ID&oldid=OLD_REV_ID

Visual reading:

  • Red/pink background: deleted content (in oldid, removed in newid)
  • Green/light green background: added content (new in newid)
  • White: unchanged context lines

Key metrics from action=compare:

  • diffsize — total bytes changed (additions + removals churn)
  • fromsize / tosize — page sizes before and after
  • Net change: tosize - fromsize

Detecting reverts: A revert shows a large block of content removed and identical content restored. Edit summary often contains "rv", "Reverted", "Undid", or "restore". The user reverting is typically different from the user being reverted.

💡 For programmatic diff fetching, HTML comparison, statistics, and BeautifulSoup parsing, load wikimedia-diffs.


SOP: Reading Edit Summaries

Edit summaries (the comment field) explain why a change was made.

Common patterns:

SummaryMeaning
copyeditMinor grammar, spelling, formatting
fix typoSpelling correction
add refAdded a citation
/* Section name */ added citationSection-specific edit
rv vandalismReverted vandalism
`Reverted [[WP:AGFgood faith]] edits`

Automatic summaries: Rollback and undo generate automatic summaries. Bot accounts often have identifiers like "BOT" or "Bot" in their summaries or usernames.

Missing summaries: Edits with an empty comment field provide no context — you'll need to inspect the diff to understand the change.


SOP: Distinguishing Minor and Major Edits

The minor flag indicates the editor considered the change trivial:

What IS minor: Spelling, grammar, formatting, fixing wikilinks, simple copyediting that doesn't change meaning.

What is NOT minor (per WP:MINOR): Adding/removing content or citations, changing meaning, any change that could be disputed.

The bot flag indicates an automated bot account. API filtering:

# Filter to minor edits
action=query&prop=revisions&titles=Page&rvminor=1&format=json

💡 For edit magnitude (byte churn, lines added/removed), see wikimedia-diffs.


SOP: Identifying Editors and Their Contributions

Each revision records who made it:

  • Registered user: user = username, userid = positive integer
  • Anonymous editor: user = IP address, userid = 0
  • Oversighted: user = empty string

User contributions URL: https://en.wikipedia.org/wiki/Special:Contributions/Username

Contributions API:

action=query&list=usercontribs&ucuser=Username&uclimit=50&format=json

Bot detection: Check user groups via:

action=query&list=users&ususers=Username&usprop=groups&format=json

If groups contains "bot", the account is a bot.

User groups and edit permissions: Autoconfirmed (4 days, 500 edits) → extended confirmed (30 days, 500 edits) → administrator (full delete/block/protect rights). Bot accounts' edits are hidden from recent changes by default.


SOP: Analyzing Byte Size Changes

Each revision stores the page's byte length (size). Calculate the delta:

python
delta = current_revision["size"] - parent_revision["size"]

Typical sizes:

DeltaClassificationTypical Edit
1–200 BSmallCopyedit, fix typo, add wikilink
200–2,000 BMediumAdd a paragraph, add citation
2,000–20,000 BLargeAdd a section, rewrite
20,000+ BVery largeMajor rewrite, new article

Red flags:

  • Size drops to <100 bytes → page blanking (possible vandalism)
  • Size jumps 50,000+ bytes from a new user → possible copyright violation
  • Size oscillates rapidly → edit warring or revert cycle

💡 For precise byte churn (total added + removed), use action=compare diff data in wikimedia-diffs.


SOP: Reverting Edits (Undo vs. Rollback)

Undo (action=edit&undoafter=REVID&undo=REVID) — reverts a single edit while preserving non-conflicting later edits. Any user can undo. It's selective — it undoes one revision at a time.

Rollback (action=rollback) — reverts all consecutive edits by the last editor of a page. Requires the rollback permission (autoconfirmed users). It's all-or-nothing — reverts everything the last editor did, in one click.

Detecting reverts in history: Look for edit summaries containing "rv", "Reverted", "Undid", or "restore". The byte change is typically similar in magnitude to earlier edits but negative.

Three-Revert Rule (3RR): No user may make more than 3 reverts on a single page within 24 hours. On BLPs and certain contentious topics, a 1-revert rule (1RR) applies. Violations can lead to a block.


SOP: Using Revision Tags and Flags

Tags are machine-applied labels describing the editing context:

TagMeaning
mobile editMade from a mobile device
mobile web editMade from mobile web interface
visual editorUsed VisualEditor
possible vandalismFlagged by abuse filter
mw-revertedThis revision was later reverted
self-revertEditor reverted their own edit

Fetch tags on revisions:

action=query&prop=revisions&titles=Page&rvprop=ids|tags&format=json

List all available tags on a wiki:

action=query&list=tags&format=json

Flag meanings: new (page creation), minor (minor edit), bot (bot account).


SOP: Detecting Vandalism and Problematic Edits

Common vandalism signals:

SignalWhat to Check
Large byte increase from new/unregistered userPossible copyright violation
Page blanking (size < 100 bytes)Likely malicious
Offensive edit summariesProfanity or nonsense
possible vandalism tagFlagged by abuse filters
Quick reverts by multiple editorsContent likely vandalism
Repeating characters / gibberish in diffNonsense text added

Detecting edit warring: Look for the same content being added and removed repeatedly by the same pair of editors. Check for mw-reverted tags. More than 3 reverts by one user in 24 hours may violate 3RR.

Checking user block status:

action=query&list=users&ususers=Username&usprop=blockinfo|groups&format=json

Returns blockid, blockedby, blockreason, blockexpiry if the user is currently blocked.

When to act:

SeverityAction
Clear vandalismRevert. Notify at WP:AIV if repeated.
Suspicious but unclearCheck contributions. Leave talk page note.
Content disputeDo NOT treat as vandalism. Discuss on talk page.
Edit warringDo NOT revert. Report at WP:AN3.

SOP: Accessing History Data via API

TaskAPI Method
Get latest revision IDprop=info&inprop=revisions
Get revision listprop=revisions with `rvprop=ids
Compare two revisionsaction=compare (see wikimedia-diffs)
Get a specific revision's contentaction=query&revids=REVID&prop=revisions&rvprop=content
Get user contributionslist=usercontribs with `ucprop=ids
Undo an editaction=edit&undoafter=REVID&undo=REVID&token=TOKEN
Rollbackaction=rollback&title=Page&from=User&token=TOKEN
Check user block status`list=users&usprop=blockinfo

Relationship to Other Skills

  • wikimedia-diffs — The companion skill for deep diff fetching, parsing, and statistics. This skill provides the broader history context (user contributions, rollback, vandalism detection); wikimedia-diffs handles the precise diff mechanics.
  • wikipedia-page-anatomy — The article page is what gets edited; history tracks its evolution over time.
  • wikipedia-talk-page — Talk pages have their own history; same revision concepts apply.
  • wikimedia-api-access — History operations use the same Action API; defer to this skill for User-Agent and rate limiting.

Tooling

🔧 Recent Edits (scripts/recent-edits.sh)

Show recent edits to a Wikipedia page with revision ID, byte change, user, edit summary, and tags.

bash
./scripts/recent-edits.sh "Albert Einstein"
./scripts/recent-edits.sh "Python (programming language)" --limit 20
./scripts/recent-edits.sh "Berlin" --json

🔧 Compare Revisions (scripts/compare-revisions.sh)

Compare two revisions and show a summary: byte change (churn and net), users, timestamps, and edit summaries. Can auto-detect the latest two revisions for a page.

bash
./scripts/compare-revisions.sh --page "Albert Einstein"
./scripts/compare-revisions.sh 123456789 123456790 --json

🔧 User Contributions (scripts/user-contribs.sh)

Fetch recent contributions for a user with page titles, edit summaries, byte changes, and tags.

bash
./scripts/user-contribs.sh "Jimbo Wales"
./scripts/user-contribs.sh "ClueBot NG" --limit 20 --json

📚 Diff Patterns Reference (references/diff-patterns.md)

Reference guide for interpreting diffs by byte change (small/medium/large/very large), visual signature (addition, removal, revert, blanking), edit summary keywords, and automated edit detection signals.

📚 Historic Page Reconstruction (references/historic-page-reconstruction.md)

How to recover what a page looked like at a past date — the templates and images included. MediaWiki cannot do this (action=parse&oldid= always expands today's templates), so the reference maps the four real options: WikiHist.html (enwiki revision history to 2019-03 parsed to HTML), official rendered HTML dumps/APIs (legacy 2006–2008 static dumps, four Feb–Mar 2025 Enterprise mirror runs, current-only APIs), web archives (Wayback/archive.today — the only source that preserves time-dependent magic words and the image bytes as served), and DIY reconstruction from pages-meta-history dumps with frozen template revisions. Includes the measured template-drift example, the image-version API recipe, and what is unavoidably lost.

🐍 History Auditor (assets/history-audit.py)

Fetch page history, compute per-revision byte deltas, and flag suspicious edits: page blanking, large additions from anonymous users, missing edit summaries on large changes, revert patterns, and potential edit warring. Uses only Python standard library.

bash
python3 assets/history-audit.py "Albert Einstein" --limit 100
python3 assets/history-audit.py "Berlin" --json

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Wikipedia Edit History؟

Read and analyze Wikipedia's page revision history — diffs, edit summaries, user contributions, byte changes, rollback, and understanding the evolution of a page over time

لماذا تستخدم Wikipedia Edit History على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Wikipedia Edit History عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Wikipedia Edit History في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikipedia-edit-history. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Wikipedia Edit History؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Wikipedia Edit History؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Wikipedia Edit History معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Wikipedia Edit History مجانية؟

نعم. نشرها fuzheado على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇