Logo Wikimedia Page Assessment

Wikimedia Page Assessment

Cộng đồng
fuzheado
wikimedia-page-assessment

Query Wikipedia article quality (FA/GA/B/C/Start/Stub) and importance ratings from WikiProject assessment banners on any Wikimedia wiki with the PageAssessments extension

Tổng quan

Nhà phát hànhfuzheado
Kho mãWikipedia-AI-Skills
Tên kỹ năngwikimedia-page-assessment
Sao
27
Bản fork
10
Tệp đi kèm
4
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 4 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được fuzheado công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Wikimedia Page Assessment trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikimedia-page-assessment
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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/wikimedia-page-assessment .claude/skills/wikimedia-page-assessment
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Wikimedia Page Assessment trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Wikimedia Page Assessment ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Wikimedia Page Assessment với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

⚠️ User-Agent required: While this skill primarily uses SQL via SSH tunnel, any direct API calls (e.g., for checking WikiProject subpages via the Action API) must include a descriptive User-Agent header. See the wikimedia-api-access skill for the correct format.

Enables the agent to retrieve quality and importance ratings for Wikipedia articles. This data is derived from WikiProject banners on talk pages and is stored in the page_assessments and page_assessments_projects tables in Wikimedia database replicas.

Which wikis have PageAssessments?

PageAssessments is not deployed on every language Wikipedia. It requires active opt-in per wiki (via a Phabricator request to WMF). As of 2026, the following wikis have it enabled, with subproject/task-force support noted:

WikiSubprojects enabled?Phab ticket
English Wikipedia (enwiki)✅T146679
English Wikivoyage (enwikivoyage)❌T142056
French Wikipedia (frwiki)❌T153393
Arabic Wikipedia (arwiki)❌T185023
Turkish Wikipedia (trwiki)❌T184969
Hungarian Wikipedia (huwiki)❌T191697
Chinese Wikipedia (zhwiki)✅T326387
Nepali Wikipedia (newiki)✅T328224
Test Wikipedia (testwiki)✅T137918

This means the page_assessments tables will be empty on other language Wikipedias (dewiki, eswiki, jawiki, ruwiki, etc.). Most queries and examples in this skill target English Wikipedia (enwiki_p), which has the most comprehensive assessment coverage by far.

Prerequisites

  • Database access: Requires an active SSH tunnel to Toolforge per the wikimedia-database skill.
  • Credentials: TOOLFORGE_USER, TOOLFORGE_SQL_USER, TOOLFORGE_SQL_PASSWORD in .env or environment.
  • SSH keys: Added to ssh-agent for non-interactive tunnel connections.

Database Schema: enwiki_p

Three primary tables:

  1. page_assessments — One row per assessment (page × WikiProject pair).

    ColumnTypeDescription
    pa_page_idintPage ID of the Subject article (namespace 0)
    pa_project_idintForeign key to page_assessments_projects
    pa_classvarbinary(20)Quality grade: FA, GA, B, C, Start, Stub, List, FL, A, Book, Category, Disambig, File, Portal, Project, Redirect, Template, NA
    pa_importancevarbinary(20)Priority: Top, High, Mid, Low, NA, Unknown
    pa_page_revisionintRevision ID when this assessment was last updated (join with revision table for timestamp)
  2. page_assessments_projects — WikiProject name mapping.

    ColumnTypeDescription
    pap_project_idintPrimary key
    pap_project_titlevarbinary(255)WikiProject name, e.g. "Chemistry", "Medicine"
    pap_parent_idintParent project ID for subprojects/task forces (NULL if top-level)
  3. page — Core page metadata for title resolution.

    ColumnTypeDescription
    page_idintJoins to pa_page_id
    page_titlevarbinary(255)Article title (underscores, e.g. Albert_Einstein)
    page_namespaceint0 for mainspace articles

Core Data Model

  • pa_class — Quality grade. Standard values (ascending): Stub → Start → C → B → GA (Good Article) → FA (Featured Article)
  • pa_importance — Priority within a WikiProject: Top → High → Mid → Low → NA / Unknown

Standard Implementation Pattern

SQL (via database tunnel)

sql
-- Basic lookup: get assessment for a specific article
-- Drive from `page` (indexed by title), join the assessment tables second: the
-- reverse order scans page_assessments and times out (>60 s, verified
-- 2026-09-20), while this form answers in 0.0 s.
SELECT 
    p.page_title, 
    pap.pap_project_title AS wikiproject,
    pa.pa_class, 
    pa.pa_importance
FROM page p
JOIN page_assessments pa ON pa.pa_page_id = p.page_id
JOIN page_assessments_projects pap ON pa.pa_project_id = pap.pap_project_id
WHERE p.page_title = 'YOUR_PAGE_TITLE'  -- Replace spaces with underscores
  AND p.page_namespace = 0;

Python (for programmatic use)

python
import os
import pymysql
from dotenv import load_dotenv

load_dotenv()

conn = pymysql.connect(
    host='127.0.0.1',
    port=int(os.getenv('TOOLFORGE_DB_PORT', '3307')),
    user=os.getenv('TOOLFORGE_SQL_USER'),
    password=os.getenv('TOOLFORGE_SQL_PASSWORD'),
    database='enwiki_p',
    cursorclass=pymysql.cursors.DictCursor,
    charset='utf8mb4'
)

with conn.cursor() as cursor:
    cursor.execute("""
        SELECT pap.pap_project_title AS wikiproject,
               pa.pa_class, pa.pa_importance
        FROM page_assessments pa
        JOIN page_assessments_projects pap ON pa.pa_project_id = pap.pap_project_id
        JOIN page p ON pa.pa_page_id = p.page_id
        WHERE p.page_title = 'Albert_Einstein'
          AND p.page_namespace = 0
    """)
    for row in cursor.fetchall():
        print(f"[{row['wikiproject']}] Class={row['pa_class']}, Importance={row['pa_importance']}")
conn.close()

MySQL 9+ compatibility

If you get ERROR 2059: Authentication plugin 'mysql_native_password' cannot be loaded when using the mysql CLI, this is because MySQL 9.x removed the mysql_native_password plugin entirely from the client — both as a loadable .so and as a compiled-in implementation. Neither --default-auth nor any other flag can work around this.

The fix is to use pymysql (pure Python). It implements the MySQL protocol natively and handles mysql_native_password authentication without any external plugins:

bash
pip install pymysql python-dotenv

The scripts in this skill (assess-project.sh, quality-gaps.sh) will automatically use pymysql if available, falling back to the mysql CLI only if Python dependencies are missing.

Constraint & Guardrails

  1. Talk Page Paradox: Assessment templates exist on Talk pages (Namespace 1), but pa_page_id refers to the Subject page (Namespace 0). Always join with the Subject page ID for title resolution.

  2. Duplicate Titles: A single page will have multiple rows if it is assessed by multiple WikiProjects. Use GROUP_CONCAT or your application-level grouping.

  3. Normalization: Ratings are strings. Some projects use non-standard classes (e.g., "Future", "Current", "Draft"). The standard ordinal scale is: Stub → Start → C → B → GA → FA.

  4. Case Sensitivity: WikiProject titles in pap_project_title are case-sensitive. "medicine" will fail; "Medicine" will succeed.

  5. Safety Limits: Every exploratory query must include a LIMIT (default 10-50).

Example Use Cases for Agent

  • "Find all 'Featured Articles' in the 'Computing' WikiProject."
  • "Identify high-importance stubs that need immediate expansion."
  • "Compare the average quality of articles in 'WikiProject Maryland' versus 'WikiProject Virginia'."
  • "List every WikiProject that assesses articles about 'Chemistry'."
  • "For the 'Physics' WikiProject, find all B-class articles with Top importance that haven't been assessed in over 5 years."

SOP: Finding Pre-built WikiProject Reports

Many active WikiProjects maintain auto-generated subpages that summarize their coverage and article statistics. These are often more accessible than running SQL queries, especially for single-project lookups or when you don't have database access.

/Assessment — Quality and Importance Matrix

Most WikiProjects have an /Assessment subpage (e.g., Wikipedia:WikiProject_Physics/Assessment) that displays a color-coded table of article count by quality × importance, updated weekly by WP 1.0 bot.

URL pattern:

https://en.wikipedia.org/wiki/Wikipedia:WikiProject_<Name>/Assessment

Replace <Name> with the WikiProject name — case-sensitive:

  • ✅ Wikipedia:WikiProject Physics/Assessment
  • ✅ Wikipedia:WikiProject Medicine/Assessment
  • ❌ Wikipedia:WikiProject physics/Assessment

What the page contains: A table with importance (Top/High/Mid/Low/???) as columns and quality (FA/FL/A/GA/B/C/Start/Stub/List) as rows. Each cell shows the count of articles at that intersection, linked to the corresponding category page for deeper inspection.

To check programmatically:

python
import requests

def has_assessment_page(project_name):
    """Check if a WikiProject has an /Assessment subpage."""
    headers = {'User-Agent': 'MyBot/1.0 (me@example.com) SkillsDemo'}
    title = f"Wikipedia:WikiProject_{project_name}/Assessment"
    url = "https://en.wikipedia.org/w/api.php"
    params = {
        'action': 'query',
        'titles': title,
        'format': 'json',
        'prop': 'info'
    }
    resp = requests.get(url, headers=headers, params=params, timeout=10)
    data = resp.json()
    pages = data['query']['pages']
    # Page key '-1' indicates a missing page
    return '-1' not in pages

print(has_assessment_page("Physics"))    # True
print(has_assessment_page("Chemistry"))  # True

/Popular_pages — Pageviews by Quality and Importance

Many WikiProjects also have a /Popular_pages subpage (e.g., Wikipedia:WikiProject_Physics/Popular_pages) generated monthly by the Community Tech popular pages bot. Each entry lists an article with its rank, monthly pageviews, quality class, and importance — a pre-computed intersection of traffic data and assessment data that saves you from cross-referencing two separate APIs.

URL pattern:

https://en.wikipedia.org/wiki/Wikipedia:WikiProject_<Name>/Popular_pages

Master list of all Popular_pages reports:

https://en.wikipedia.org/wiki/User:Community_Tech_bot/Popular_pages

This page indexes every WikiProject that has opted into the popular pages bot, grouped by topic category (Science, History, Geography, etc.). Browse it to discover which projects have traffic data available.

To check programmatically:

python
def has_popular_pages(project_name):
    """Check if a WikiProject has a /Popular_pages subpage."""
    headers = {'User-Agent': 'MyBot/1.0 (me@example.com) SkillsDemo'}
    title = f"Wikipedia:WikiProject_{project_name}/Popular_pages"
    url = "https://en.wikipedia.org/w/api.php"
    params = {
        'action': 'query',
        'titles': title,
        'format': 'json',
        'prop': 'info'
    }
    resp = requests.get(url, headers=headers, params=params, timeout=10)
    pages = resp.json()['query']['pages']
    return '-1' not in pages

print(has_popular_pages("Physics"))     # True
print(has_popular_pages("Medicine"))    # True

What the page contains: A multi-column table:

RankPageViewsQualityImportance
1Article Title1,234,567BTop
2Another Article987,654GAHigh

The data is pre-sorted by pageviews descending. The bot has already handled the cross-API join of pageviews data with assessment data.

Finding All WikiProjects (Discovery)

To discover which WikiProjects exist, use one of these approaches:

  • Manual directory (curated): https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Council/Directory

  • Automatic directory (bot-updated): https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Directory

  • Category-based API query: WikiProjects are listed in Category:WikiProjects and its subcategories:

    action=query&list=categorymembers&cmtitle=Category:WikiProjects&cmtype=page&cmlimit=max&format=json

Use Cases for Agents

  • "Find the Assessment page for WikiProject Chemistry and report the quality distribution."
  • "Get the top 10 most-viewed articles in WikiProject Physics from its Popular_pages report."
  • "Browse the master Popular_pages index to find which WikiProjects have traffic data."
  • "Check whether WikiProject Medicine has both an Assessment page and a Popular_pages page."

Guardrails

  1. Case sensitivity: WikiProject names in URLs are case-sensitive. Wikipedia:WikiProject_physics/Popular_pages returns a 404; Wikipedia:WikiProject_Physics/Popular_pages works.
  2. Not all projects opt in: Only projects that opted in to the bot-generated reports have /Assessment and/or /Popular_pages. Always check existence before attempting to fetch.
  3. Data lag: Popular_pages data is generated monthly; the most recent report may be 1–2 months behind. Assessment pages are refreshed weekly.
  4. Red links are normal: A WikiProject page may exist while its subpages are missing. Handle 404s gracefully via the API check above.

Tooling

This skill includes helper scripts, reference docs, and templates:

🔧 Assess Project (scripts/assess-project.sh)

Get quality and importance distribution for any WikiProject.

bash
./scripts/assess-project.sh "Chemistry" [limit]
./scripts/assess-project.sh "Medicine" 100

🔧 Quality Gaps (scripts/quality-gaps.sh)

Find high-importance articles with low quality — the highest-ROI improvement targets.

bash
./scripts/quality-gaps.sh "Physics" [limit]
./scripts/quality-gaps.sh "Biology" 50

📚 Schema Reference (references/assessments-schema.md)

Full reference of the page_assessments and page_assessments_projects tables with column descriptions, join patterns, and edge cases.

🧩 Sample SQL Queries (assets/sample-queries.sql)

20+ pre-built SQL queries for assessments organized by category: project-level summaries, article lookups, quality gaps, importance distributions, multi-project intersections, and maintenance workflows.

🧩 Environment Template (assets/.env.example)

bash
cp assets/.env.example .env
# Edit .env with your credentials

Cross-References

Related SkillWhy
wikimedia-databaseDatabase connection and pymysql patterns
wikipedia-page-anatomyArticle structure context for assessment ratings
wikipedia-talk-pageAssessment banners appear on talk pages
wikimedia-ml-servicesML-based quality scoring (complementary to human assessments)
wikimedia-pageviewsArticle traffic data — Popular_pages bot combines pageviews with assessments

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Wikimedia Page Assessment làm được gì?

Query Wikipedia article quality (FA/GA/B/C/Start/Stub) and importance ratings from WikiProject assessment banners on any Wikimedia wiki with the PageAssessments extension

Vì sao nên dùng Wikimedia Page Assessment trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Wikimedia Page Assessment là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Wikimedia Page Assessment trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikimedia-page-assessment. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Wikimedia Page Assessment?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Wikimedia Page Assessment với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Wikimedia Page Assessment với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Wikimedia Page Assessment có miễn phí không?

Có. Kỹ năng này được fuzheado phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇