wikimedia-wikitext

Community

Expert wikitext parsing for MediaWiki content.

Authorfuzheado
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill simplifies parsing and manipulating Wikipedia and MediaWiki wikitext, providing accurate and efficient extraction of structured data from templates, tables, and citations.

Core Features & Use Cases

  • AST Parsing: Utilizes mwparserfromhell for robust parsing of wikitext, avoiding regex pitfalls.
  • Parsoid HTML Strategy: Offers a method to read page content as structured text/data, using MediaWiki's REST API and BeautifulSoup/lxml.
  • Template Manipulation: Extracts and manipulates template parameters safely.
  • Data Extraction: Extracts tables, links, and citations from wikitext.
  • Use Case: Use this Skill to quickly extract structured data from Wikipedia pages, or to process wikitext for automated tasks.

Quick Start

Use the parse_wikitext.py script with the following command to extract all templates from a wikitext file:

python3 assets/parse-wikitext.py page.wikitext --templates

Dependency Matrix

Required Modules

mwparserfromhellrequestsbeautifulsoup4lxmlpandas

Components

scriptsreferencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: wikimedia-wikitext
Download link: https://github.com/fuzheado/Wikipedia-AI-Skills/archive/main.zip#wikimedia-wikitext

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.