Logotipo de Wikipedia En Article Audit

Wikipedia En Article Audit

Comunidad
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

Descripción general

Editorfuzheado
RepositorioWikipedia-AI-Skills
Nombre de la habilidadwikipedia-en-article-audit
Estrellas
27
Forks
10
Archivos incluidos
12
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 12

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por fuzheado en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Wikipedia En Article Audit en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikipedia-en-article-audit
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Wikipedia En Article Audit en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Wikipedia En Article Audit automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Wikipedia En Article Audit no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

⚠️ 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

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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

¿Por qué usar Wikipedia En Article Audit en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Wikipedia En Article Audit está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Wikipedia En Article Audit en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikipedia-en-article-audit. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Wikipedia En Article Audit?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Wikipedia En Article Audit?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Wikipedia En Article Audit con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Wikipedia En Article Audit?

Sí. fuzheado la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇