Wikipedia

From x-cmd/x-cmd · View interactive version

Wikipedia is an AI agent skill from the GitHub repository x-cmd/x-cmd. Search and read Wikipedia via x wkp — MediaWiki API, no API key, zero install; query, extract, suggest, and DDG route in one module. Load for wiki, wikipedia, encyclopedia lookup, article summary.

How to use this skill

Skill file

wikipedia — skill0

Output is a plain-text extract (~first paragraph + infobox). Subcommand verb picks the shape — hop for search-then-summary, extract for known titles, search for candidates, suggest for did-you-mean. Default site is English Wikipedia; --lang / --api-url switch to other wikis.

Quick Start with `x wkp`

x wkp hop Python                      # search + first-result extract in one shot
x wkp extract OpenAI                  # summary of a known page
x wkp search "Linux kernel"           # list candidates when title is uncertain
x wkp suggest pythen                  # did-you-mean: correction hints before search

x wkp -h for all flags and subcommands.

Data and adjacent tools

Upstream: https://en.wikipedia.org/w/api.php — MediaWiki action API. Sister projects (Wikidata, Wiktionary, Commons) are reachable the same way; point --api-url at the relevant subdomain.

For the questions that go one hop beyond a wikitext summary:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.