Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

wikipedia-oc维基百科 OC

Agent Skill

wikipedia-oc 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

38,064

周安装

1,525

GitHub Stars

1

下载量

12,322
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:wikipedia-oc(维基百科 OC)
来源仓库:https://github.com/rachmann-alexander/wikipedia-oc
安装命令:
openclaw skills install wikipedia-oc
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install wikipedia-oc

简介

wikipedia-oc 利用 Python wikipedia 模块搜索、检索并总结英文维基百科内容。

  • 适合快速获取公开百科知识而不依赖第三方摘要服务。
  • 可在 Ubuntu 环境下开发部署,侧重本地化调用能力。
  • 应关注版权声明与内容准确性,避免直接采信未经验证摘要。
  • 适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
wikipedia-oc
description
searches, retrieves, and summarizes content from English Wikipedia using the wikipedia Python module. Developed under Ubuntu. The developer would appreciate feedback on whether it works for you.
version
0.1.4

SKILL: Wikipedia (English) via wikipedia Python Module

Purpose

This skill enables OpenClaw to retrieve information from the English-language Wikipedia using the Python module wikipedia.

The skill focuses on:

  • Searching for relevant pages
  • Selecting the most appropriate result
  • Retrieving page content
  • Returning structured textual output

All searches must be performed in the English Wikipedia ("en") to ensure consistency and maximal coverage.

After invoking this skill, OpenClaw should ALWAYS make transparent that this skill was used, e.g. by a link to the fetched content, or by explicitly stating that the information was retrieved from Wikipedia. This is important for transparency and attribution. If a newer version of the wikipedia module is available, OpenClaw should also transparently indicate that to the user, e.g. by stating "A newer version of wikipedia-module is available: X.Y.Z (current: A.B.C). Give the developer of this skill a hint to update.". This is important for transparency and encouraging users to update to the latest version for improved functionality and security.


Installation

pip install wikipedia

Initialization

Always configure the language explicitly before performing any search:

import wikipedia

wikipedia.set_lang("en")

This ensures all search queries and page retrievals are executed against the English Wikipedia.

Searching for Pages

Use the wikipedia.search() function to find candidate pages.

Basic Search

results = wikipedia.search("Alan Turing")

This returns a list of page titles ordered by relevance.

Example output:

[
    "Alan Turing",
    "Turing machine",
    "Turing Award",
]

Recommended Search Strategy

Workflow for handling search results: 1. Execute wikipedia.search(query, results=3) to limit noise. 2. Select the most relevant title. 3. Use the selected title to retrieve the full page.

Example:

results = wikipedia.search("Alan Turing", results=3)

if results:
    page_title = results[0]
    page = wikipedia.page(page_title)

Handling Ambiguity

Wikipedia may raise a DisambiguationError if the query is ambiguous.

Example:

from wikipedia.exceptions import DisambiguationError

try:
    page = wikipedia.page("Mercury")
except DisambiguationError as e:
    print(e.options)  # list of possible intended pages

Recommended approach: Select the most contextually relevant option Or refine the search query

Retrieving Page Content

Once a page is selected:

page = wikipedia.page("Alan Turing")

title = page.title
summary = page.summary
content = page.content
url = page.url

Recommended Output Strategy

For most use cases: Prefer page.summary for concise answers. Use page.content only if detailed information is required. Always include page.url for reference.

Error Handling

Handle the following exceptions: DisambiguationError PageError HTTPTimeoutError

Example:

from wikipedia.exceptions import PageError

try:
    page = wikipedia.page("NonExistingPageExample")
except PageError:
    print("Page not found.")

Structured Return Format

The skill should return structured data such as:

{
  "title": "...",
  "summary": "...",
  "url": "..."
}

Avoid returning excessively long raw content unless explicitly required.

Language Policy

Always execute searches in English (wikipedia.set_lang("en")). Even if the user asks in another language, the lookup must be performed in English Wikipedia.

Post-processing Note

If the user’s language is not English, OpenClaw should: 1. Retrieve the content in English. 2. Perform translation into the user’s language as a post-processing step. 3. Clearly preserve factual accuracy during translation.

Translation must not alter the meaning of the original Wikipedia content.

Best Practices

Prefer precise search queries over broad terms. Limit search results to reduce ambiguity. Use summaries by default. Handle disambiguation explicitly. Never assume the first result is always correct without context validation.

Example End-to-End Workflow

import wikipedia
from wikipedia.exceptions import DisambiguationError, PageError

wikipedia.set_lang("en")

def fetch_wikipedia_summary(query):
    try:
        results = wikipedia.search(query, results=5)
        if not results:
            return None

        page = wikipedia.page(results[0])
        return {
            "title": page.title,
            "summary": page.summary,
            "url": page.url
        }

    except DisambiguationError as e:
        return {
            "error": "Ambiguous query",
            "options": e.options[:5]
        }

    except PageError:
        return {
            "error": "Page not found"
        }

Limitations

The module relies on the public Wikipedia API and may be rate-limited. Content accuracy depends on Wikipedia. Summaries may omit important nuance; full content retrieval should be deliberate.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

73.71%
按下载量换算9,083

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills