/agent-tooling:source-connectorsfrom agent-tooling
Collects data from specific web sources (government portals, catalogues, archives, scholarly indexes) through declared connectors instead of scraping pages. Use whenever a task needs data FROM such a source, a page looks scrapeable, robots.txt or a 403 seems to block access, or a fetch tool refuses a host and the Internet Archive route is needed. A connector records protocol and endpoint, auth, access policy (robots, ToS, rate, fair use), reuse licence and the retrieval recipe, so every fetch uses the host's intended, lowest-impact door, politely and cached. Covers API discovery, robots.txt as access policy, and recurring gotchas (HTTP 200 with an error body, open-access links that 403 non-browser clients). Ships a dated connector library. Not for LLM or compute endpoints such as LiftWing: see the liftwing-llm playbook.
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.
Read when SKILL.md points to them.
The idea. Don't ask "how do I fetch this page" — ask "what is the connector for this source". A connector is a small, reusable declaration of one source:
source · protocol & endpoint · auth · access policy (robots / ToS / rate / fair-use) · reuse licence · retrieval recipe
Define it once (the library below holds real examples) and every later fetch is just "use connector X". That turns ad-hoc scraping into a legible, auditable, reusable layer — and the same connector powers a one-off lookup or a bulk pass.
Above all it makes you a good neighbour. The receiving end is someone's infrastructure, and their cost, not yours. An API is the host's own preferred, lowest-load door: modelling a source as a connector means you knock on that door — at the intended rate, once — instead of crawling the whole house. Every part below is, at bottom, about minimizing the burden your query places on the other end.
A mature connector practice is really four separable concerns. This skill covers all four, and any can be lifted out on its own (most usefully the library, into its own data file):
The connector concept is identical however a project governs it; only the "may I fetch this?" gate changes:
Everything below applies to all three.
/developer, /api, an "open data /
hergebruik" page, and any Sitemap: in robots.txt. Recognise the standard — SRU,
OAI-PMH, REST/OpenAPI, OData, SPARQL, IIIF — and let it describe itself: SRU
?operation=explain&version=2.0 (indexes), OpenAPI /openapi.json or …/ui, OData
/$metadata. A community "downloader" repo often documents the endpoint, filters, page
size and fair-use — reuse it.Sitemap:, the disallowed content paths, and the posture toward bots. The access policy is
part of the connector, not an afterthought.endpoint · auth · access policy · rate/fair-use · reuse licence · retrieval recipe (+ id scheme) · date verified.Use it politely.
User-Agent with a contact (Wikimedia blocks generic/absent UAs), one request
at a time per host (~1 req/s), honour Retry-After with exponential backoff on 429/503,
Accept-Encoding: gzip. Authenticate only to raise limits, never to unlock a write path;
read tokens from the environment and degrade to unauthenticated rather than fail.pdftotext for PDFs (skip binary-only scans → OCR). Follow an
extref/attachment when the record is a thin announcement.archive.org/wayback/available?url=<enc>
for coverage; web.archive.org/web/<ts>id_/<url> for the raw snapshot; project UA, polite
pacing (~1 req/s, back off on 429/Retry-After), cache every capture; curl + your UA if the
fetch tool refuses web.archive.org. It does not get you past a login, a paywall or licence
terms: those still apply to the content.robots.txt and robot/bot-policy pages may be fetched directly on any host, with the project
UA and ~1 req/s; doc paths the host's robots file disallows go through the Internet Archive.
This covers reading about a source, not calling its API or downloading its data: for a host
that is not yet approved, use route-vetting.5xx/503 is transient, not a verdict. Try the connector first; on 503/5xx (maintenance or load) retry with backoff, and if it persists switch to the row's Fallback — don't downgrade a connector's dated status for a one-off blip (reserve a status change for a persistent failure).Maintain the registry — it goes stale.
Disallow: / for GPTBot,
ClaudeBot, CCBot, Google-Extended… under a permissive User-agent: * catch-all.
Read the file: if your client isn't named, the catch-all governs — but honour the evident
intent: when a host clearly does not want AI ingestion, use a sanctioned channel or fetch
the Internet Archive's captures (always permitted, see above) instead of the live site.401 its own /wp-json/… while a
public sibling (public-api.wordpress.com/…/sites/<domain>/…) serves the same content
unauthenticated. Check the public sibling before concluding an API is closed.200 with an error payload under load —
inspect the body, not the status.200 to curl with a descriptive UA — including
/robots.txt itself, which makes the policy look unreadable and invites the wrong
conclusion that the host blocks automation. Before declaring a source hostile, retry with
curl and your own UA. Observed on deliberation.stanford.edu: WebFetch 403, curl 200,
and a robots.txt that names no AI bot at all.403s curl — fall back to DOI/metadata lookup or a human fetch.explain / $metadata first. The same standard uses different index/field names per
deployment; discover them, don't guess.The registry of real connectors is in references/library.md:
Dutch government and open data, scholarly and archive, deliberation research, Wikimedia
community infrastructure (Phabricator, read-only posture), media and web. Read the row
for your source before fetching. Each row carries its own Verified date and a
Fallback; a dated row is a claim, not a guarantee.
The library holds specific connectors. Three kinds of thing are deliberately excluded:
403 non-browser
clients, fall back to a DOI/metadata lookup". Those live in Access-policy patterns above,
not as a row.wikimedia-data-collection skills. Phabricator used to sit
in this list and no longer does: unlike the others it is a social space with a Code of
Conduct, an etiquette policy and a hard write prohibition, and those constraints have to
travel with the source rather than live in a data-collection recipe. phabricator-conduit
still owns the authenticated Conduit query patterns; the row above owns the access
policy, the read-only posture and the unauthenticated read paths.api.wikimedia.org, ~100 req/hour anonymous, no tool-calling / JSON mode) use the same
connector model but you send work rather than collect data → see the liftwing-llm
playbook (agent-tooling/playbooks/liftwing-llm.md).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lgelauff/wikimedia-coding-agent-lessons --plugin agent-tooling15 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.