/agent-tooling:wikimedia-enterprisefrom agent-tooling
Get an access token for the Wikimedia Enterprise API (api.enterprise.wikimedia.com) and use it to call the On-demand, Snapshot, Realtime, or Metadata endpoints. Use whenever the user mentions "Wikimedia Enterprise", asks for a token/credentials for enterprise.wikimedia.com, or wants data (structured article content, project dumps, live update streams) from that API rather than the free MediaWiki/WDQS/AQS APIs.
Ships in agent-tooling. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Claude Code adapter over ${AGENT_TOOLING_ROOT}/scripts/wikimedia_enterprise_auth.py, an agent-agnostic script — it also runs standalone from any shell or CI job.
python3 "${AGENT_TOOLING_ROOT}/scripts/wikimedia_enterprise_auth.py"
Prints a bearer token to stdout (status messages go to stderr, so it's safe to
capture directly, e.g. TOKEN=$(python3 .../wikimedia_enterprise_auth.py)).
The password is never written to disk. The refresh endpoint only needs
username + refresh_token — not the password — so a password is only needed
twice: the first login, and again whenever the cached refresh token expires or is
exhausted (every 90 days / 90 refreshes). Because that's rare, the script's default
is to prompt interactively (getpass, no echo) right there in the terminal rather
than persist the password anywhere. Run it yourself in a terminal when it needs
a fresh login — don't relay a password prompt through chat, and don't ask the user
to paste their password into the conversation.
For non-interactive use (cron/CI, no terminal attached), it'll also accept
WIKIMEDIA_ENTERPRISE_USERNAME / WIKIMEDIA_ENTERPRISE_PASSWORD from the
environment or the central secrets store (scripts/agent_secrets.py —
~/.config/agent-secrets/.env / $AGENT_SECRETS_FILE) — but that means the
password does sit at rest wherever you put it, so prefer the interactive prompt
for normal use and reserve env-var credentials for a real unattended job.
Caching: the script caches tokens (not the password) at
~/.cache/wikimedia-enterprise/token.json (override with
WIKIMEDIA_ENTERPRISE_TOKEN_CACHE), outside the repo. Ask the user before the first
run creates it. Access tokens last 24h; refresh tokens last 90 days and are good for
~90 silent refreshes (no password needed) — so the interactive login prompt only
comes up roughly every 90 days, not every call.
curl -H "Authorization: Bearer $TOKEN" \
https://api.enterprise.wikimedia.com/v2/articles/Albert_Einstein
Base URL: https://api.enterprise.wikimedia.com/v2/. Main products (pick per task):
/v2/articles/{name}) — query individual articles live,
returning the raw HTML/text article — best fit for ad hoc lookups./v2/structured-contents/{name}) — the same
on-demand/snapshot split, but returns parsed JSON (infoboxes, sections,
descriptions, tables, references) instead of raw HTML — prefer this over plain
On-demand for anything measurement/analytics-oriented; verified live, returns
name, description, main_entity, additional_entities, infoboxes,
sections, tables, references, etc.tar.gz of NDJSON articles) for
bulk/offline analysis; also available as Structured Contents snapshots.GET /v2/codes or GET /v2/projects need no body).Consult https://enterprise.wikimedia.com/docs/ for exact request/response shapes
per endpoint before building a query — don't guess field names.
The free account tier (as of 2026-07-01) covers 50,000 On-demand requests/month, 30 Snapshot downloads/month, and Structured Contents Snapshots — often enough on its own. If that's not enough:
Authorization header at all
— access is IP-granted there, not token-granted. Prefer routing a heavy workload
through Cloud Services over paying, if it can run there.[email protected] for mission-aligned/non-commercial
use (academic research, non-profit work) — see
wikimedia-analytics/lessons.md for the
full criteria.getpass handles the prompt (not logged, not
echoed, never seen by the conversation).~/.cache/wikimedia-enterprise/token.json.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
15 skills in this plugin
/arxiv-submissionPrepare a LaTeX paper for arXiv and prove it is ready. Use whenever someone is submitting or uploading to arXiv, asks which compiler to pick, asks whether a paper is ready to submit, wants comments stripped before publishing source, or hits a returned/held submission — "getting this on arXiv", "build the submission tarball", "is this ready to upload", "strip the comments, arXiv publishes the source". Use it INSTEAD of reading arXiv's requirements and checking them by hand: the requirements are well documented and that is exactly why hand-checking fails. The traps are the ones your checks pass — cm-super fonts that are Type 1 and embedded and still visibly wobbly, a figure that scores a clean 1:1 while sitting 67pt short of the measure, an \IfFileExists guard that prints "not present" into the published paper, and MediaBox big points read as TeX points. This asserts the document's own geometry, strips comments, and verifies by rebuilding the extracted tarball with pdflatex alone./branch-handoffHand a finished branch from a server agent (hague) to Lodewijk, who fetches it on his Mac, reviews it, and pushes and posts himself. Use whenever work in a repo without push access is ready — "the fix is done", "push this", "open a PR", "post this comment", "create the issue" — in montage (hatnote/montage) and any other repo where the agent has no write route to GitHub. Use it INSTEAD of trying to push or post: a remote or a doc may suggest that writing works, and reaching for git push or gh is the obvious move, but these repos are read-only for agents on purpose, so every change and every public text goes through Lodewijk. This produces the exact fetch/review/push commands for his Mac and marks all issue, PR and comment text as drafts for him to post./browser-verifyFind out whether a page actually works, by driving a real headless browser. Use whenever someone reports UI behaviour and wants it confirmed or disproved — "the arguments tab is blank on staging", "is this fix live", "did that break anything", "test the UI locally", "confirm this bug still reproduces" — or hands you specific things to try in the running app. Use it INSTEAD of reading the code and reasoning about it: inspecting the source is the obvious move and it cannot tell you what the browser did, because the failures that reach a user are the ones the code looks fine for — a silent JS error, a route that renders unstyled, a cached bundle. This reproduces or verifies in headless Chromium and checks the adjacent paths a fix most plausibly broke. Lighter than a full PR gate; pairs with pr-check's local-verification step./budget-estimateEstimate wall-clock time AND token spend for a proposed job — a data pipeline, an agentic work session, or a hybrid — with P50/P90 bands, stated evidence level (measured sample > historical priors > arithmetic), hard rate-limit floors, and a fits/doesn't-fit verdict against the available window or budget. Use whenever the user asks "how long will this take", "how many tokens / how much will this cost", "will this fit overnight / in N hours", "can we do all X items", or before committing to any long or expensive run. Prefer this over answering with a gut figure — an unbanded vibes estimate is how nights and budgets get lost./charset-hygieneCheck text or code against a declared set of permitted characters — catching invisible Unicode, exotic spaces, and homoglyph lookalikes. Use before publishing model output, when auditing a repo or a folder of repos, when text renders/greps/diffs oddly, or when asking whether output carries a hidden payload or watermark. Runs on one string, one file, or a whole tree./e2e-designDesign an end-to-end test suite, or re-think one that has drifted. Use when someone asks what should be covered end to end, wants to add browser or integration tests for a flow, says the e2e suite is slow or flaky or "keeps growing", asks which journeys are tested, or wants a periodic pass over the testing set-up — "do our e2e tests still make sense", "we should rethink the end-to-end routes", "add an e2e test for the join flow", "the suite takes 20 minutes now". Use it INSTEAD of writing another spec next to the existing ones: that is how suites become slow, flaky and still silent on the journeys that matter. For running a browser to check one change use browser-verify; for a merge decision use pr-check.npx claudepluginhub lgelauff/wikimedia-coding-agent-lessons --plugin agent-tooling