wikipedia-oc_skill

This skill retrieves and summarizes English Wikipedia content using the wikipedia Python module, delivering concise results with source URLs.
  • Python

2.5k

GitHub Stars

2

Bundled Files

4 weeks ago

Catalog Refreshed

3 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill wikipedia-oc

  • _meta.json466 B
  • SKILL.md5.3 KB

Overview

This skill searches, retrieves, and summarizes articles from the English Wikipedia using the wikipedia Python module. It focuses on concise, structured results (title, summary, url) and is designed to run on Ubuntu. The developer welcomes feedback about whether the skill works in your environment.

How this skill works

The skill sets the Wikipedia language to English and uses wikipedia.search() to find candidate pages. It selects the best result (by default the top match), retrieves page.summary for concise answers, and returns a structured object with title, summary, and url. It explicitly handles DisambiguationError, PageError, and common network/timeouts, and falls back to refining queries when needed.

When to use it

  • Quick factual lookups where a concise summary and source link suffice
  • Bots or agents that need automated English Wikipedia references
  • Workflows that require structured output (title, summary, url)
  • Situations where you prefer summary over full-page content to limit verbosity
  • Archival or backup tasks that fetch English Wikipedia entries programmatically

Best practices

  • Always call wikipedia.set_lang("en") before searching
  • Limit search results (e.g., results=3 or 5) to reduce ambiguity
  • Prefer page.summary for answers; request page.content only when detail is necessary
  • Catch DisambiguationError and present options or refine the query
  • Include page.url in responses so users can verify sources

Example use cases

  • Chatbots answering user questions with a short Wikipedia summary and source link
  • Automated scripts that archive key article summaries into a database
  • Research assistants that retrieve concise overviews of people, events, or topics
  • Monitoring tools that periodically fetch summaries of evolving topics
  • Educational tools that present verified, citable summaries to learners

FAQ

No. All searches are performed against the English Wikipedia (wikipedia.set_lang("en")) to ensure consistency.

What do you return by default?

A structured object containing title, summary, and url. Full page content is only returned when explicitly requested.

How are ambiguous queries handled?

The skill catches DisambiguationError and returns a short list of possible options so the caller can choose or refine the query.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational