Logo: Wikipedia En Article Audit

Wikipedia En Article Audit

Communautéit
fuzheado
wikipedia-en-article-audit

Audit an English Wikipedia article for structural issues, factual errors, and NPOV violations, then produce a machine-readable task graph (DAG) that another agent can execute to fix all identified problems

Iwwersiicht

Editeurfuzheado
RepositoryWikipedia-AI-Skills
Skill-Nummwikipedia-en-article-audit
Stären
27
Forks
10
Matgeliwwert Dateien
12
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 12 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    fuzheado huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Wikipedia En Article Audit an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikipedia-en-article-audit
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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-en-article-audit .claude/skills/wikipedia-en-article-audit
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Wikipedia En Article Audit an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Wikipedia En Article Audit automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Wikipedia En Article Audit net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

⚠️ Read-only policy: This skill audits only. It never edits live Wikipedia articles.

All three phases fetch data from Wikipedia but never write back. The output is a taskgraph.json specification — a work order for a separate agentic system to execute. The audit agent does not and should not have edit permissions.

If a user wants to act on the findings, they should start a new, clean session with edit-capable tools and feed it the taskgraph.json as input. Mixing audit and edit in the same session risks accidental writes, edit conflicts, and BLP violations.

Separate the concerns: one agent audits, a different agent edits (or the same agent in a different context with explicit user confirmation).

⚠️ Audit is a three-phase process. Phase 1 (diagnosis) and Phase 3 (taskgraph generation) are fully automated. Phase 2 (sentence-by-sentence verification) requires a human reviewer to read sources and classify each claim. Do not skip Phase 2 — the automated pipeline cannot reliably detect factual contradictions.

Typical Invocation

A user invokes this skill with a simple request. The agent follows the workflow below, stopping at Phase 2 for human review and resuming after the reviewer returns their findings.

User:  "Audit the English Wikipedia article on Pyrrhus Concer."

Agent: ▶ Runs Phase 1 (diagnosis)
       ▶ Presents diagnosis + sentences.jsonl to human reviewer
       ▶ Waits for human to return verification.json
       ▶ Runs Phase 3 (taskgraph generation)
       ▶ Outputs taskgraph.json + analysis.md
       ▶ "Audit complete. 10 tasks in the DAG:
            p0: 2 (factual correction, NPOV rewrite)
            p1: 4 (infobox, sections, missing details, assessment)
            p2: 4 (grammar, epitaph, reflist, sources)
          The taskgraph is at pyrrhus_concer/taskgraph.json"

The human reviewer's role is focused and bounded: review each sentence, read the cited sources, and fill in verdicts. The rest is handled by the scripts.


Enables the agent to produce a structured work order — a taskgraph.json validated against a formal JSON Schema — for improving any English Wikipedia article. The output is designed for handoff to a separate agentic execution system.

Related skills (prerequisites for understanding page structure and tools):


Overview

The audit pipeline converts a Wikipedia article URL into a repair task graph:

Article URL
    │
    ▼
┌─────────────────────────────────────┐
│  Phase 1: Diagnosis                 │  ← Automated
│  ─────────────────────               │
│  • Fetch article, talk page, WD     │
│  • Structural audit (infobox,       │
│    sections, categories, assess)    │
│  • Identify NPOV trigger keywords   │
│  • Extract sentences + citations    │
│  │                                   │
│  Output: diagnosis.json              │
│          sentences.jsonl             │
│          NPOV flags                  │
└────────┬────────────────────────────┘
         │
         ▼
┌─────────────────────────────────────┐
│  Phase 2: Verification              │  ← Human-in-the-loop
│  ─────────────────────               │
│  • Review each sentence             │
│  • Read cited sources               │
│  • Cross-reference sister articles  │
│  • Classify as CONFIRMED /          │
│    CONTRADICTED / NPOV_OR /         │
│    UNVERIFIABLE                      │
│  • Write corrections                │
│  │                                   │
│  Output: verification.json           │
└────────┬────────────────────────────┘
         │
         ▼
┌─────────────────────────────────────┐
│  Phase 3: Taskgraph Generation      │  ← Automated
│  ────────────────────────            │
│  • One task per identified issue    │
│  • Dependency edges from DAG rules  │
│  • Verify steps from diagnosis      │
│  • Schema validation at output      │
│  │                                   │
│  Output: taskgraph.json              │
│          analysis.md                 │
└─────────────────────────────────────┘

Prerequisites

Tools and accounts

RequirementForNotes
Python 3.10+Phase 1 scripts, Phase 3 generatorStandard library + requests
pip install requests mwparserfromhellWikitext parsing, API callsSee wikimedia-wikitext skill
Wikipedia accountPhase 3 execution (optional — not needed for audit)Needed if you run the resulting taskgraph
SSH tunnel to Toolforge (optional)Database assessment queriesSee wikimedia-database skill
Text editor or JSON-aware IDEPhase 2 human reviewNeeded to edit verification_stub.json

User-Agent

All API calls 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.

Environment variables

VariableRequired forDefault
WIKIPEDIA_USER_AGENTAll API callsNone (must be set)
TOOLFORGE_USERDatabase queries (optional)—
TOOLFORGE_SQL_USERDatabase queries (optional)—
TOOLFORGE_SQL_PASSWORDDatabase queries (optional)—

SOP: Phase 1 — Diagnosis

Purpose

Produce a structured inventory of everything wrong with the article. Phase 1 is entirely mechanical — no creativity or judgment required.

Steps

1a. Resolve the article title
bash
curl -s -H "User-Agent: MyBot/1.0 (user@example.com) AuditTool" \
  "https://en.wikipedia.org/w/api.php?action=query&titles=$TITLE&redirects=1&format=json"
  • If the title is a redirect, follow it to the canonical page.
  • If it's a disambiguation page, abort and list the options.
  • Record the canonical title and page ID.
1b. Fetch article components

Fetch and store:

ComponentAPI callStored as
Wikitextaction=rawsources/article.wikitext
Talk page wikitextaction=raw&page=Talk:TITLEsources/talk.wikitext
Page info (protection, length, watchers)prop=infodiagnosis.json
Wikidata entityhttps://www.wikidata.org/wiki/Special:EntityData/{Q}.jsonsources/wikidata.json
Categoriesprop=categoriesdiagnosis.json
Templates usedprop=templatesdiagnosis.json
Page assessments (if tunnel available)SQL on enwiki_p.page_assessmentsdiagnosis.json
1c. Structural audit

Check for:

  • Infobox: Is an {{Infobox ...}} template present? If not, note which infobox type would be appropriate based on the article category.
  • Sections: How many == Level 2 == headings exist? Are standard sections present (Early life, Career, Legacy, etc.)?
  • Categories: How many? Any obvious gaps (e.g., birth/death year, occupation)?
  • Protection: Is the page protected? At what level? Does that affect what the taskgraph can do?
  • Assessment: What class is the article assessed at (Stub/Start/C/B/GA/FA)? Is it under-assessed?
  • Maintenance templates: Any {{citation needed}}, {{POV}}, {{expand section}}, {{dead link}}?
  • Short description: Does the short description use correct demonym adjectives? Check for the common error pattern China + noun (e.g. "China businesswoman") which should be Chinese + noun ("Chinese businesswoman"). Other patterns: America + noun → American + noun, Britain + noun → British + noun.
  • Reference count: How many <ref> tags? Any citation dumping (one ref covering many paragraphs)?
  • Image count: Does the article have a lead image? An infobox image? If no image is found, check whether a Commons category exists for the subject (https://commons.wikimedia.org/wiki/Category:{PAGENAME}) and whether a free-licensed portrait is available. Note the result so Phase 2 can recommend adding an image to the infobox if one exists.
1d. Article-type classification

Before the NPOV scan, determine the article type from its infobox, categories, and BLP status. This shapes the expected section structure and the severity of certain findings.

python
def classify_article(categories, infobox_type, blp_status):
    if "Living people" in categories or blp_status:
        return "BLP"
    if any("births" in c for c in categories) and any("deaths" in c for c in categories):
        if "business" in str(categories) or "executive" in str(categories):
            return "biography_executive"
        if "scientist" in str(categories) or "engineer" in str(categories):
            return "biography_academic"
        return "biography_general"
    return "topic_article"

Each type has standard expected sections. The diagnosis flags missing ones:

Article typeExpected sectionsExamples
BLPEarly life and education, Career, Personal life (minimal), AwardsHe Tingbo
biography_executiveEarly life, Career, Board positions, Awards, Personal life—
biography_academicEarly life and education, Career, Research, Selected works, Awards—
biography_generalEarly life, Career, Later life, LegacyPyrrhus Concer
topic_articleVaries by topic — use subject-specific conventions—

For living subjects, skip checks like "missing Later life section" or "missing Legacy section" — these only apply to deceased subjects. Similarly, a "Personal life" section is appropriate for BLPs but optional for historical biographies.

1e. NPOV keyword scan

Scan the article text (after stripping templates and references) for these trigger words and phrases:

# Editorial praise / promotional
undoubtedly, unquestionably, clearly, obviously,
notably, noteworthy, interestingly, importantly,
remarkably, impressively, extraordinarily,
incomparably, unbeatably, famously, notoriously,
renowned, legendary, pioneering, world-class,
visionary, iconic, groundbreaking, transformative

# Original research / speculation
it is possible that, it is likely that, it is plausible that,
it seems that, one can imagine that,
may have been, might have been, could have been,
was likely, was probably, appears to have been,
suggests that, is suggestive of, is indicative of

# Essay-like conclusions
a testament to, serves as a testament,
speaks to his, speaks to her, speaks to their,
is a testament, stands as a testament,
demonstrates his, demonstrates her,
reflects his, reflects her, indicative of

# Weasel words
some say, many believe, it is said that,
critics claim, it is widely regarded,
is considered to be, is thought to be,
is often described as, has been called

Each flagged occurrence is recorded with its sentence number, the trigger word, and its surrounding context (50 chars before/after).

1f. Extract sentences

Split the article body text (lead + all sections) into individual sentences:

python
import re
# Split on sentence boundaries: . ! ? followed by space + capital letter
sentences = re.split(r'(?<=[.!?])\s+(?=[A-Z"])', plain_text)

Each sentence is recorded as one JSON line:

json
{
  "index": 1,
  "text": "Pyrrhus Concer (March 17, 1814 – August 23, 1897) was a formerly enslaved American sailor from Southampton, New York who was aboard the whaling ship Manhattan, the first American ship to visit Tokyo in 1845.",
  "char_offset": 0,
  "section": "lead",
  "has_inline_ref": true,
  "ref_indices": [0],
  "npov_flags": [],
  "verdict": null
}
1g. Extract citations

Extract all <ref> tags and citation templates. For each:

json
{
  "ref_index": 0,
  "template": "cite book",
  "params": {
    "last": "Van Zandt",
    "first": "Howard",
    "title": "Pioneer American Merchants in Japan",
    "year": "1984",
    "publisher": "Tuttle Publishing",
    "isbn": "9994648144",
    "pages": "68–72"
  },
  "url": null,
  "accessible": false,
  "sentence_indices": [1, 2, 3, 4, 5]
}

Also resolve which sentence(s) each reference supports. If one reference is attached to the end of a multi-sentence paragraph, mark all sentences in that paragraph as potentially supported by that ref.

Additionally, produce a sources summary table — a quick-reference view of all citations with their accessibility status and whether sister articles or Wikidata also corroborate the same claims. This table lets the Phase 2 human reviewer skip sources that are confirmed redundant.

json
{
  "sources_summary": [
    {
      "ref_index": 0,
      "short_ref": "Reuters 2026",
      "url": "https://www.reuters.com/...",
      "accessible": true,
      "accessible_via": ["direct_http"],
      "language": "en",
      "corroborated_by": ["wikidata", "nikkei_asia"],
      "sentences_supported": [1, 2, 3, 4]
    },
    {
      "ref_index": 3,
      "short_ref": "WSJ (paywalled)",
      "url": "https://www.wsj.com/...",
      "accessible": false,
      "accessible_via": ["web_archive"],
      "language": "en",
      "corroborated_by": ["nikkei_asia"],
      "sentences_supported": [28, 29]
    }
  ]
}

This summary enables a quick triage: sources marked accessible: true can be read directly; inaccessible sources with corroboration from sister articles can be deprioritized; inaccessible sources with no corroboration need alternative retrieval attempts.

Output files

FileFormatContent
diagnosis.jsonJSONAll structural findings, assessment, keyword flags, metadata
sentences.jsonlJSONLOne line per sentence with metadata and null verdict
sources/article.wikitextTextRaw wikitext
sources/talk.wikitextTextRaw talk page wikitext
sources/wikidata.jsonJSONWikidata entity dump
diagnosis.json (sources_summary)JSONSources accessibility table with corroboration status

SOP: Phase 2 — Verification

Purpose

For every sentence in the article, determine whether it is factually correct, neutrally framed, and properly cited. This is the human review phase — the automated system cannot reliably detect factual contradictions.

Input

  • sentences.jsonl from Phase 1
  • diagnosis.json from Phase 1
  • Article talk page
  • Cited sources (fetched in Phase 1; some may be inaccessible)

Procedure

2a. Set up the working file

Copy sentences.jsonl to verification_stub.json and convert to a single JSON array (easier for humans to edit):

bash
python3 -c "
import json, sys
sentences = [json.loads(line) for line in open('sentences.jsonl')]
with open('verification_stub.json', 'w') as f:
    json.dump({'article_title': '$TITLE', 'sentences': sentences}, f, indent=2)
"

The stub has every sentence's "verdict": null. The human will fill these in.

2b. BLP spotlight check

⚠️ Stop here if the article is about a living person (BLP).

If diagnosis.json shows blp: yes, apply extra scrutiny before proceeding with sentence-by-sentence verification:

CheckWhat to look forAction if found
Contentious claimsAllegations of wrongdoing, legal disputes, national security implications, negative personal detailsRequire multiple high-quality, independent sources. If only one source supports a contentious claim, flag it.
Private informationHome address, phone number, email, exact birth date without source, family details not in public recordRemove immediately per WP:BLPPRIVACY. Do not leave in the article even temporarily.
Geopolitical framingSanctions, technology bans, national security designations — these are often politically chargedEnsure every geopolitical claim is attributed to a specific source (e.g., "According to Reuters..." not "The US added Huawei to the Entity List for...")
Editorial monikers"Chip queen," "pioneer," "trailblazer" — any nickname or superlativeMust be attributed to the source that coined it. If the article asserts it in Wikipedia's voice, flag as NPOV.
Harm principleCould publishing this fact cause real-world harm to the subject?If the answer is yes and the fact is not essential to the biography, omit it per WP:BLPBALANCE.

If any BLP violations are found at this stage, pause the audit and flag them immediately. Do not proceed with sentence-by-sentence verification until the violations are resolved — there is no point verifying 28 clean sentences if the 29th is a BLP violation that will get the article deleted.

2c. For each sentence, determine its verdict
VerdictWhen to useExample
confirmedA reliable source supports the claim, and the claim is framed neutrallySentence 1 (dates, ship, event — supported by Newsday + Wikidata + sister articles)
contradictedA reliable source contradicts the claim, or the claim is demonstrably falseSentence 2 ("Pyrrhus family" — Newsday says "Pelletreau family")
npov_orThe claim is plausible but framed in editorial/promotional language, or is speculativeSentences 10–16 (essay-like financial analysis with "undoubtedly impressive", "testament to his business acumen")
unverifiableNo source could be found for the claim, or all sources are inaccessibleA claim supported only by a paywalled article that couldn't be accessed
mixedThe sentence contains multiple sub-claims with different verdictsSentence 2 (true: farmhand, 1832, Sag Harbor / false: Pyrrhus family)

Protocol for reading sources:

  1. First check the article's own cited sources. Open each URL or citation and read the relevant passages. Do not trust the article's interpretation — read the source yourself.
  2. If the cited source is inaccessible (paywall, Cloudflare, 404), try the Wayback Machine at web.archive.org.
  3. Cross-reference against Wikipedia sister articles (e.g., if the article says "first American ship to visit Tokyo", check the Mercator Cooper and Manhattan ship articles for confirmation).
  4. For biographical articles, check Wikidata for birth/death dates, occupation, and known-for statements.
  5. If no source can be found after reasonable effort, mark the sentence as unverifiable.

Protocol for contradicted verdict:

json
{
  "index": 2,
  "verdict": "contradicted",
  "contradiction": {
    "source": "Newsday 2005 via Wayback Machine",
    "source_url": "https://web.archive.org/web/20050918211029/http://www.newsday.com/community/guide/lihistory/ny-history-hs509b,0,7157701.story",
    "source_quote": "He was owned by the Pelletreau family",
    "explanation": "The article says 'enslaved by the Pyrrhus family' but the Newsday article, based on Southampton Historical Museum records, says 'owned by the Pelletreau family'. Pyrrhus was Concer's given name (after the Greek king), not his enslaver's surname."
  },
  "correction": "Concer, named after the Greek king Pyrrhus, was enslaved by the Pelletreau family",
  "correction_citation": {
    "template": "cite news",
    "params": {
      "last": "Bleyer",
      "first": "Bill",
      "title": "Legacy: Pyrrhus Concer",
      "work": "Newsday",
      "year": "2005",
      "url": "https://web.archive.org/web/20050918211029/http://www.newsday.com/community/guide/lihistory/ny-history-hs509b,0,7157701.story"
    }
  }
}

Protocol for npov_or verdict:

json
{
  "index": 10,
  "verdict": "npov_or",
  "npov_explanation": "The phrase 'indicate a level of financial stability and engagement with the financial institutions of his community' is the editor's interpretation of raw data, not a factual claim. The underlying data (savings accounts, shares) may be in the cited thesis, but the framing is editorial.",
  "suggested_action": "replace with neutral factual statement: 'Probate records showed he held four savings accounts, shares in the Southampton Water Works, and had lent money to others.'",
  "source_for_facts": {
    "citation_index": 2,
    "note": "Button thesis pp. 181, 183 — verify data access"
  }
}

Protocol for unverifiable verdict:

json
{
  "index": 20,
  "verdict": "unverifiable",
  "reason": "The claim that Elihu Root wrote the epitaph is cited to a paywalled NYT article and previously to findagrave.com. Neither could be independently verified. The epitaph text itself is confirmed by Newsday, but the Root attribution is not.",
  "suggested_action": "add {{citation needed}} after 'engraved with an epitaph written by Elihu Root'"
}

Protocol for mixed verdict:

json
{
  "index": 2,
  "verdict": "mixed",
  "sub_claims": [
    {
      "text": "enslaved by the Pyrrhus family",
      "verdict": "contradicted",
      "correction": "Pelletreau family"
    },
    {
      "text": "worked as a farmhand",
      "verdict": "confirmed",
      "source": "Newsday",
      "source_quote": "worked as a farmhand"
    },
    {
      "text": "until 1832",
      "verdict": "confirmed",
      "source": "Newsday",
      "source_quote": "Freed when he turned 18 in 1832"
    },
    {
      "text": "slavery in New York formally ended in 1827",
      "verdict": "confirmed",
      "source": "Historical fact (NY Gradual Emancipation Act)"
    },
    {
      "text": "worked on whale ships out of Sag Harbor, New York",
      "verdict": "confirmed",
      "source": "Newsday",
      "source_quote": "began shipping out on whaleships"
    }
  ]
}
2d. Handle inaccessible sources

If a source cannot be accessed despite reasonable effort:

  1. Check the Wayback Machine at web.archive.org
  2. Check Wikipedia sister articles that cite the same source
  3. Check Google Scholar or other databases for an accessible version
  4. If still inaccessible, note it in the sentence's verdict

The accessible field in the citations array records the outcome:

json
{
  "ref_index": 2,
  "accessible": false,
  "access_attempted": ["direct_http", "wayback_machine", "google_scholar"],
  "access_note": "Cloudflare protection on repository.library.brown.edu; PDF not publicly accessible"
}
2e. Finalize verification.json

After reviewing all sentences, save the file as verification.json. The structure is identical to verification_stub.json but with all verdict fields filled in.

Validation checklist before saving:

  • Every sentence has a non-null verdict
  • Every contradicted verdict has a contradiction object with source, source_quote, and correction
  • Every npov_or verdict has a suggested_action
  • Every citation has an accessible boolean
  • The file is valid JSON (run python3 -m json.tool verification.json)

SOP: Phase 3 — Taskgraph Generation

Purpose

Given the diagnosis from Phase 1 and the verification from Phase 2, produce a taskgraph.json (validated against the schema) and a human-readable analysis.md.

Algorithm

For each sentence with a verdict other than confirmed, generate a task:

VerdictTask categoryCriticality
contradictedfactual_correctionp0
npov_ornpov_rewritep0
unverifiablecitationp1 (add {{cn}})

For each structural issue found in the diagnosis, generate a task:

Diagnosis findingTask categoryCriticality
Missing infoboxinfoboxp1
No section headingsstructuralp1
Missing categoriesmaintenancep2
Under-assessed (Stub → Start)maintenancep1
Grammar / typogrammarp2
Citation formatting ({{Reflist}} → `{{Reflist30em}}`)maintenance

Dependency rules

The generator applies these dependency edges:

TaskDepends onRationale
All factual correctionsfetch_and_verify_sourcesSources must be available before editing
All NPOV rewritesfetch_and_verify_sourcesSame
Structural changes (section headings, infobox)NPOV rewrites (if same area)Avoid merge conflicts — rewrite first, then restructure
Citation additionsThe affected sentence's rewrite taskDon't add {{cn}} to text that's about to be rewritten
Assessment updateAll p0 and p1 tasksOnly update the rating after substantive fixes are done
Grammar fix(none)Independent — can run anytime
Reflist formatting(none)Independent

Output template

Each task follows this structure (from taskgraph.schema.json):

json
{
  "id": "fix_enslaver_identity",
  "summary": "Correct 'Pyrrhus family' to 'Pelletreau family'",
  "depends_on": ["fetch_and_verify_sources"],
  "category": "factual_correction",
  "criticality": "p0",
  "tools": ["wikipedia_api"],
  "actions": [
    {
      "type": "edit_wikitext",
      "page": "Pyrrhus Concer",
      "oldText": "Concer was enslaved by the Pyrrhus family",
      "newText": "Concer, named after the Greek king Pyrrhus, was enslaved by the Pelletreau family",
      "summary": "fix enslaver identity per Newsday 2005",
      "citation": { ... }
    }
  ],
  "verify": [
    { "type": "page_contains", "page": "Pyrrhus Concer", "text": "Pelletreau" },
    { "type": "page_not_contains", "page": "Pyrrhus Concer", "text": "enslaved by the Pyrrhus family" }
  ]
}

One-directional generation rule

analysis.md is a derived artifact, not a source document. It is generated from verification.json + taskgraph.json and must never be edited by hand.

verification.json ──► taskgraph.json ◄── schema validates
       │                    │
       │                    │
       ▼                    ▼
   analysis.md ◄── generated from both, never edited directly

To enforce this:

  1. Auto-generated header. Every generated analysis.md begins with:

    markdown
    <!-- AUTO-GENERATED from verification.json + taskgraph.json
         Do not edit by hand. To update, modify the source data or the
         generator script (04-generate-taskgraph.sh) and regenerate.
         Generated: 2026-06-02T12:34:56Z
         Article: Pyrrhus Concer -->
  2. Staleness check. The generator checks file mtimes. If verification.json is newer than analysis.md, it prints:

    ⚠️  analysis.md is stale (verification.json changed since last generation).
       Regenerate with: 04-generate-taskgraph.sh --force
  3. No reverse path. There is no script that reads analysis.md to produce verification.json or taskgraph.json. The .md file is a report, not an input to any downstream process. This prevents sync drift.

Schema validation

Before writing the output file, validate it against taskgraph.schema.json:

python
import json, jsonschema

with open('taskgraph.schema.json') as f: schema = json.load(f)
with open('taskgraph.json') as f: graph = json.load(f)
jsonschema.validate(graph, schema)

If validation fails, fix the generator. Do not output an invalid taskgraph.

Output files

FileContent
taskgraph.jsonValidated JSON task DAG
analysis.mdHuman-readable report from the diagnosis + verification data

The analysis.md is generated from a template that includes:

  • Quick stats (page length, assessment, infobox status, reference count)
  • Per-sentence verdict table
  • Key issues summary (grouped by verdict type)
  • Recommended action procedures (condensed from the taskgraph)
  • Execution order (topological sort)

Workflow: Running a Full Audit

Step-by-step checklist

bash
# ── Phase 1: Diagnosis ──
./scripts/01-diagnose.sh "Pyrrhus Concer"
# Output: diagnosis.json, sentences.jsonl, sources/

# ── Phase 2: Verification (human review) ──
# 1. Read analysis.md for context
# 2. Read each cited source from sources/ or via web
# 3. Edit verification_stub.json → verification.json
#    Fill in verdict, correction, source_quote for every sentence
# 4. Validate: python3 -m json.tool verification.json > /dev/null

# ── Phase 3: Taskgraph Generation ──
./scripts/04-generate-taskgraph.sh "Pyrrhus Concer"
# Output: taskgraph.json, analysis.md

# ── Optional: Validate ──
python3 validate.py taskgraph.json

Per-article resource estimates

Article sizePhase 1Phase 2 (human)Phase 3
Stub (<2 KB, 3–5 sentences)<30s5–10 min<10s
Start (2–15 KB, 10–30 sentences)<1 min20–60 min<10s
C-class (15–30 KB, 30–80 sentences)1–2 min1–3 hours<10s
B-class+ (30+ KB, 80+ sentences)2–5 min3–8 hours<10s

Phase 2 dominates the runtime. Budget accordingly.


Tooling

🔧 Diagnosis Script (scripts/01-diagnose.sh)

Runs Phase 1 end-to-end for a given article title.

bash
./scripts/01-diagnose.sh "Pyrrhus Concer"
./scripts/01-diagnose.sh "Albert Einstein" --include-db  # with database assessment lookup
./scripts/01-diagnose.sh "Python (programming language)" --format compact

Produces: diagnosis.json, sentences.jsonl, sources/

🔧 Taskgraph Generator (scripts/04-generate-taskgraph.sh)

Runs Phase 3 end-to-end.

bash
# Must have verification.json + diagnosis.json in working directory
./scripts/04-generate-taskgraph.sh
./scripts/04-generate-taskgraph.sh --project-dir /path/to/project

Produces: taskgraph.json, analysis.md

Includes a staleness check: if verification.json is newer than analysis.md, the script warns and requires --force to overwrite.

🔧 Taskgraph Validator (validate.py)

Validates a taskgraph against the schema and checks the DAG.

bash
python3 validate.py taskgraph.json
python3 validate.py path/to/taskgraph.json --verbose

Reports:

  • JSON Schema conformance
  • DAG acyclicity (Kahn's algorithm)
  • Dependency reference integrity
  • Verify step well-formedness
  • Topological execution order

📚 Intermediate Format Reference (references/intermediate-formats.md)

Full spec for:

  • diagnosis.json — all structural fields and their types
  • sentences.jsonl — sentence-at-a-time schema
  • verification_stub.json / verification.json — verdict data model with all verdict types
  • Citation accessibility tracking

📚 Verification Protocol (references/verification-protocol.md)

Extended guidance for the human Phase 2 reviewer:

  • Source hierarchy (when to trust one source over another)
  • How to handle conflicting sources
  • BLP-specific considerations
  • What to do when a source contradicts itself
  • Working with the Wayback Machine
  • Assessing source reliability (academic journals → news → primary sources → blogs)

🧩 Taskgraph Schema (assets/taskgraph.schema.json)

The JSON Schema defining the taskgraph contract. Shared across all articles. Supports:

  • 7 action types: edit_wikitext, insert_after, edit_talk_page, replace_text, fetch_source, run_shell, write_file
  • 8 verify types: page_contains, page_not_contains, infobox_exists, section_exists, assessment_equals, revision_has_comment, file_exists, shell_check
  • 3 failure policies: revert_and_report, skip_and_report, retry_and_report
  • 6 task categories: factual_correction, npov_rewrite, structural, infobox, citation, grammar, verification, maintenance

🧩 Analysis Template (assets/analysis-template.md)

Markdown template for the Phase 3 human-readable report. Fill-in-the-blanks style with slots. The generator fills these from verification.json + taskgraph.json.

markdown
<!-- AUTO-GENERATED from verification.json + taskgraph.json
     Do not edit by hand. Generated: {{TIMESTAMP}} -->

# Article Audit: {{ARTICLE_TITLE}}

{{QUICK_STATS_TABLE}}

## Per-Sentence Verdicts

{{SENTENCE_VERDICT_TABLE}}

## Key Issues

{{KEY_ISSUES}}

## Execution Order

{{EXECUTION_ORDER}}

⚠️ Never edit the generated analysis.md directly. If the report needs changes, modify the template above or the source data (verification.json) and regenerate. The auto-generated header at the top of every output file warns against hand-editing.

🧩 Example Output — Clean Audit (assets/example-output.md)

A complete Phase 1–2 audit report for the article [[He Tingbo]], demonstrating the expected format and depth of the analysis.md output. Includes:

  • Structural diagnosis with findings table
  • NPOV keyword scan results
  • Per-sentence verification (29 sentences, all classified)
  • Recommended taskgraph

28 of 29 sentences confirmed. No factual errors, no NPOV violations. Useful as a baseline for articles that are already in good shape.

🧩 Example Output — Problematic Audit (assets/example-output-problematic.md)

A complete audit report for the article [[Pyrrhus Concer]], showing the same format applied to an article with multiple issues:

  • Factual error: enslaver identity (Pyrrhus → Pelletreau)
  • NPOV/OR block: 9 sentences of editorial essay (45% of article body)
  • Under-assessment: Stub when it should be Start
  • Missing infobox, poor section structure, citation dumping

12 of 20 sentences confirmed. 5 NPOV/OR violations. 1 factual error. Useful for pattern-matching against articles that need substantive fixes.

🧩 NPOV Keywords List (assets/npov-keywords.txt)

Machine-readable list of NPOV trigger words and phrases, one per line. Used by the Phase 1 diagnosis script. Categorized:

# Editorial praise
undoubtedly
unquestionably
noteworthy
...

# Speculation
it is possible that
was likely
...

Relationship to Other Skills

  • wikipedia-page-anatomy — Prerequisite for understanding what the diagnosis script finds (infoboxes, sections, categories, templates)
  • wikimedia-wikitext — Powers the sentence extraction and template parsing in Phase 1
  • wikimedia-page-assessment — Provides the assessment lookup that Phase 1 uses to determine if an article is under-assessed
  • wikipedia-en-biography-writing — Defines the NPOV/NOR/BLP standards that Phase 2's human reviewer must apply
  • wikimedia-api-access — Required for all API calls throughout the pipeline
  • wikimedia-database — Optional, for enhanced assessment queries in Phase 1

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Wikipedia En Article Audit?

Audit an English Wikipedia article for structural issues, factual errors, and NPOV violations, then produce a machine-readable task graph (DAG) that another agent can execute to fix all identified problems

Firwat Wikipedia En Article Audit op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Wikipedia En Article Audit besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Wikipedia En Article Audit an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikipedia-en-article-audit an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Wikipedia En Article Audit benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Wikipedia En Article Audit benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Wikipedia En Article Audit domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Wikipedia En Article Audit gratis?

Jo. fuzheado huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇