freedomintelligence/openclaw-medical-skills/wikipedia-search
Claude Code and agent skill by freedomintelligence/openclaw-medical-skills
- community
Checking that the SKILL.md file is still in the repository.
Search and fetch structured content from Wikipedia using the MediaWiki API for reliable, encyclopedic information
Install
npx vskill@latest install freedomintelligence/openclaw-medical-skills/wikipedia-searchSKILL.md
The same SKILL.md was published earlier as freedomintelligence/openclaw-medical-skills/wikipedia-search.
Wikipedia Search Skill
This skill enables Claude to search and fetch content from Wikipedia using the MediaWiki API. It provides more reliable, structured access to Wikipedia than general web search, with support for summaries, full article content, and multi-language access.
When to Use
Use this skill when you need:
- Encyclopedic knowledge — Factual information about people, places, events, concepts
- Historical information — Well-documented historical facts, dates, and events
- Scientific and technical concepts — Definitions, explanations, and overviews
- Biographical information — Details about notable people
- Geographic information — Countries, cities, landmarks, and their details
- Quick fact verification — Cross-checking encyclopedic facts
- Structured content — Need article sections, categories, and links
- Multi-language content — Access Wikipedia in languages other than English
When NOT to Use
Avoid using this skill for:
- Current events or breaking news — Wikipedia may not be up-to-date for very recent events (use web-search instead)
- Controversial or disputed topics — Wikipedia can have bias or edit wars; use multiple sources
- Opinions or analysis — Wikipedia aims for neutral point of view, not opinion
- How-to guides or tutorials — Wikipedia is encyclopedic, not instructional (look for specialized resources)
- Code examples or technical documentation — Use official docs or specialized sites
- Personal or local information — Wikipedia only covers notable topics
- Real-time data — Stock prices, weather, sports scores (use web-search instead)
Usage
The skill is invoked by running the wiki script with a query:
Options
--mode [search|summary|full]— Operation mode (default: summary)search: Search for page titles matching the querysummary: Get a concise summary of a specific pagefull: Get the complete article with sections and structure--sentences N— Number of sentences for summary mode (default: 5)--lang CODE— Language code (default: en)
Common Language Codes
en— Englishes— Spanishfr— Frenchde— Germanit— Italianja— Japanesezh— Chineseru— Russianar— Arabicpt— Portuguese
Examples
1. Search for Page Titles
Search for Wikipedia articles matching a term:
Output:
2. Get a Summary
Get a concise summary of a Wikipedia page:
Or with custom sentence count:
Output:
3. Get Full Article Content
Retrieve the complete article with sections:
Output:
4. Search in Different Languages
Search or fetch content in other languages:
Workflow
When using this skill, follow this workflow:
For Unknown Topics (Search First)
- Search for titles — Use
--mode searchto find relevant articles - Choose the right article — Pick the most relevant title from results
- Get summary or full content — Fetch the article with
--mode summaryor--mode full - Parse JSON output — Extract relevant information from structured data
- Cite the source — Include Wikipedia URL when presenting information
For Known Topics (Direct Fetch)
- Use exact or close title — Wikipedia is good at matching similar titles
- Fetch summary — Use
--mode summaryfor quick facts - Get full content if needed — Use
--mode fullfor comprehensive information - Extract sections — Parse specific sections for focused information
JSON Output Structure
Search Mode
Summary Mode
Full Mode
Error Response
Best Practices
Query Formulation
- Use specific titles — "Python (programming language)" not just "Python"
- Try exact names — Wikipedia handles disambiguation well
- Use search mode for exploration — When unsure of exact title, search first
- Check for disambiguation pages — Some terms have multiple meanings
Mode Selection
- search — When you don't know the exact page title or want to explore topics
- summary — For quick facts, definitions, or overviews (most common use case)
- full — When you need detailed information, specific sections, or comprehensive coverage
Multi-Language Usage
- Start with English — English Wikipedia is often most comprehensive
- Use native language for local topics — Local events, culture, geography may be better in native language
- Cross-reference languages — Different language versions may have different information
- Match query language — If searching in French, use --lang fr
Information Extraction
- Use sections strategically — In full mode, target specific sections for focused information
- Check categories — Categories help understand topic classification
- Follow links — Related links can lead to more detailed subtopics
- Verify with summary — Always present in page summary for quick fact-checking
Attribution Guidelines
When presenting Wikipedia content to users:
- Always cite Wikipedia — Include the page URL:
[Article Title](URL) - Note it's from Wikipedia — Be transparent: "According to Wikipedia..."
- Include publication status — Wikipedia is continuously edited; information may change
- Cross-reference for important facts — For critical information, verify with additional sources
Example:
Error Handling
The script handles common errors gracefully:
Page Not Found
If a page doesn't exist:
- JSON will include
"exists": falseand"error": "Page not found" - Try using search mode first to find the correct title
- Check spelling and try variations
- Consider disambiguation pages
Network Failures
If the API request fails:
- Error message printed to stderr
- Exit code will be non-zero
- Retry after a moment or check internet connection
Import Errors
If Wikipedia-API library is missing:
- Script automatically attempts to install it
- Requires
pipto be available - May require
--break-system-packagesflag in some environments - If auto-install fails, manually install:
pip install Wikipedia-API
Rate Limiting
Wikipedia's API is generally permissive:
- No authentication required for reading
- Reasonable use limits (shouldn't hit them in normal usage)
- If rate limited, wait a few seconds before retrying
Technical Details
Dependencies
- Python 3.x — Required (python3 command must be available)
- Wikipedia-API — Auto-installed if missing
- pip — Required for dependency installation
Auto-Installation
The script automatically installs missing dependencies:
The --break-system-packages flag is needed for externally-managed Python environments (common on modern Linux distributions and macOS with Homebrew Python).
API Details
- Uses the MediaWiki API via the Wikipedia-API Python library
- OpenSearch API for title search functionality
- User agent:
OpenClaw-WikipediaSearch/1.0 - No API key required
- Free and open access
Exit Codes
0— Success1— General error (page not found, network failure, invalid query, etc.)2— Import error (dependency installation failed)
Limitations
Wikipedia Constraints
- Not always current — Wikipedia can lag behind breaking news by hours or days
- Coverage varies — Obscure topics may have minimal or no articles
- Neutral POV — Wikipedia strives for neutrality, which may omit certain perspectives
- No original research — Wikipedia doesn't contain new analysis or unpublished information
- Notability requirements — Many topics aren't notable enough for Wikipedia inclusion
Technical Limitations
- Section text truncated — In full mode, sections limited to 5000 characters each to prevent huge responses
- Limited links — Only first 50 links returned in full mode
- Limited categories — Only first 10 categories returned
- No images — Script returns text only, not images or media
- No infobox data — Structured infobox data not easily accessible via this API
Language Support
- Quality varies by language — English Wikipedia is most comprehensive
- Translation issues — Titles don't always translate directly between languages
- Script mixing — Some languages use different scripts (Arabic, Chinese, etc.)
Troubleshooting
Script Not Executable
If you get "Permission denied" error:
Python Not Found
If python3 command doesn't exist, create an alias or use full path to Python interpreter.
Installation Fails in Virtual Environment
If auto-install fails due to venv restrictions, manually install globally:
Page Not Found for Valid Topic
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/wikipedia-search/SKILL.md
Popularity
- Repository stars
- 3,013
- Repository forks
- 410
- 7-day trend score
- 40
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Sep 2026, 2 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/freedomintelligence/openclaw-medical-skills/wikipedia-search)