/agent-tooling:route-vettingfrom agent-tooling
Vet a candidate host or API for addition to the Mandated Services Registry, the list of approved routes agents may fetch from directly. Use when someone asks to approve, add, whitelist or "make allowed" a source, when a session keeps failing on a host that is not yet approved, or when Lodewijk asks for candidate routes and why they are justified. It reads the provider's own documentation, terms and robot policy, assigns a verdict (supported / conditional / redirect / disallowed / ask / unverified), and drafts the connector row and registry entry for his approval. Use it INSTEAD of adding a host because it "looks like an API": the traps are a robots file that is really a bot-challenge page, a documented API that only works with a token we do not have, and a host that is approved yet still fails because the recipe is wrong. Not for fetching from a source that is already approved: use source-connectors for that.
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.
An approved route is a host in agent-tooling/settings/mandated-services.json, backed by a row in
skills/source-connectors/references/library.md. Agents fetch approved hosts directly; anything
else goes through the Internet Archive. Adding a route changes what every agent may do, so the
output of this skill is a proposal: Lodewijk decides, typed in the session's own chat.
Standing rule (Lodewijk, 2026-10-16, decision log): API documentation, terms/licence
pages, robots.txt and robot/bot/crawler-policy pages may be fetched directly on any host, with
the project User-Agent, about 1 request/s, backing off on 429/5xx. Doc paths that the host's own
robots file disallows go through the Internet Archive instead.
Never call the API itself or download data while vetting. That is exactly what approval would permit; doing it first defeats the review.
Spotted a host that looks approvable (an explicit invitation to automated use, high published rate limits, an open licence, a bulk dump)? Do not use it yet. Append it to the coordinator's candidate list (evidence kept privately, decision log), using the block format there; from another machine, send the block to the sessions coordinator. The coordinator vets candidates with this skill and recommends to Lodewijk.
Each criterion gets a line in the proposal. A route needs the first four to pass; the rest decide the policy attached to it, or tip a borderline case.
| # | Criterion | Question to answer | Passes when | Fails or limits when |
|---|---|---|---|---|
| 1 | Need | What concrete work needs it, and how much? | named sessions, projects or queue items, with a count | "might be useful someday" |
| 2 | Sanctioned door | Is this an intended route for programs, from the provider or a mirror with its own sanctioned door? | documented API, bulk download or data portal from the provider itself; or a mirror with its own sanctioned door: it documents programmatic access itself, carries the content under the same licence, and can be verified against the original (checksums). No endorsement by the original provider is needed; being listed by the provider (e.g. Wikimedia's dump mirrors) is a plus, not a requirement | page crawling, scraper services, reverse-engineered endpoints, mirrors that repackage content without a licence or a way to verify it |
| 3 | Permission | Do docs, terms, robot policy and TDM reservations allow automated use? | the docs describe the programmatic use (this wins over a robots.txt disallow, see below) and terms do not forbid it; or, with no docs, robots.txt allows it | terms forbid automated/AI use; a TDM reservation; a token is required that we were not issued; no docs and robots disallows or is unreadable |
| 4 | No cheaper equivalent | Does an approved route already give the same thing? | it adds coverage or quality we lack (count it) | an approved route already covers it (Unpaywall vs OpenAlex locations) |
| 5 | Load and manners | Can our expected volume stay well inside the documented limits? | documented limit known; our volume is a small fraction; responses cacheable | no stated limit and heavy volume; bursty jobs; no caching possible |
Page-based routes: at most 25 pages per site per day (Lodewijk, 2026-10-16). For a route
that fetches web pages rather than a documented API (a *.github.io site, Scholar profiles), more
than 25 pages from the same site in one day needs his permission first, whatever the site allows.
Always document the rate limits, high or low (Lodewijk, 2026-10-16): write the exact published numbers, per tier (anonymous / identified / keyed), with the source and date, into the connector row, or "none published" if there are none. A generous published limit for anonymous callers is itself evidence that automated traffic is expected (DataCite: 500 requests per 5 minutes unidentified); a very low one sets the policy.
Retries count against the budget (Lodewijk, 2026-10-24). Every daily cap and request budget in a connector row counts all requests a job sends, including retries, backoff re-sends and the re-run of a chunk after a kill. Size a job's cap for the expected re-runs, and let a resumed job skip chunks whose checksummed done marker exists, so a kill does not re-spend the budget.
"Reasonable use" without numbers: low default cap, raised by relevance (Lodewijk, 2026-10-19).
When the provider's terms ask for reasonable, non-excessive or small-scale use but publish no
daily limit (GovData.de "übermäßige oder unzumutbare Belastung", World Bank "reasonable request
volume", HathiTrust "small numbers of items"), keep it reasonable with a low default cap per day
(GovData.de: 50), not a high one. This default is for list B (niche) routes only. List A
routes are general purpose, so their daily cap is decided per route. Use that serves a need a human has approved is more
reasonable, so with that approval the daily cap lifts; the pacing (seconds between requests)
stays.
| 6 | Access and identity | What key, account, registration or identifying header is requested, and who provides it? | none; or registration encouraged/required, which Lodewijk does (his task) and the key goes into the agent-secrets store | agents would need to create accounts, accept terms, share personal credentials, or send his e-mail without his yes |
| 7 | Data class | Personal data? Licence? May results be republished, or sent to a third-party model host? | open licence, no personal data | personal data (policy: counts and links only); restrictive or per-record licences; analysis-only data |
| 8 | Legal context | Jurisdiction, TDM rules, database rights, public-sector reuse law | clear reuse basis (open licence, public-sector reuse act) | TDM reserved; database right asserted; unclear terms: CONDITIONAL at most |
| 9 | Scope | What is the narrowest host and path set that meets the need? | exact hosts, named paths | broad suffixes (*.example.org) without a reason for each subdomain |
| 10 | Stability | Versioned, maintained, with deprecation notices? Fallback if it disappears? | stable versioned API; a fallback named (often the Internet Archive) | undocumented or beta endpoints that change silently |
| 11 | Downside if wrong | What happens if agents misuse it? | worst case is a throttled request | IP blacklisting of the user's address, account bans, legal letters: needs a stricter policy or a no |
| 12 | Evidence quality | How do we know each fact above? | read live in the provider's docs today, cited with date | from memory or a third-party blog: [guess] until confirmed |
Registration, accounts and identifying headers (Lodewijk, 2026-10-16). If a provider
encourages registration (an API key, a client, an account), we register: that is
Lodewijk's task, never an agent's. Record it as "registration encouraged: Lodewijk registers
(pending)" in the connector row and on his to-do list; use the route anonymously only where the
docs allow that in the meantime. The same applies when a provider asks for an identifying header
or parameter (an e-mail in User-Agent, mailto=, email=, tool=): his e-mail address goes
out only with his yes, so flag it rather than filling it in. A route with none of these
requirements can go straight onto the list of routes to create; its exact shape (hosts, paths,
limits, policy) is still decided per route.
Scope of the three rules below. They are for judging candidates when Lodewijk has asked for new routes to be investigated. They decide what verdict to propose; they do not by themselves permit fetching data from any host. Only a registry entry that Lodewijk approved does.
Documented use wins over robots.txt (Lodewijk, 2026-10-16). If the provider's own docs
describe programmatic access to an endpoint, assume that use is OK, even when robots.txt
disallows the same path: robots.txt governs crawlers, while the docs are the provider's explicit
invitation (NCBI E-utilities, Zenodo's /api, KOOP's SRU all document APIs that their robots
files disallow). Stay strictly inside what the docs describe: their endpoints, parameters,
rate limits and auth. This does not override terms that forbid automated or AI use, a TDM
reservation, or a required token we were not issued.
Grey cases go to Lodewijk (2026-10-16). Reject a route only when it is explicitly disapproved in public: terms that forbid automated or AI use, a robots.txt disallow with no documented API, named AI-crawler bans, a TDM reservation. Anything not explicitly disapproved and not clearly supported (no docs, silent terms, unreadable robots, an unclear mirror) is not a silent no: bring it to Lodewijk as ASK with the evidence you have, and he decides.
Aggregators and archives (Lodewijk, 2026-10-16). A service whose purpose is to collect and redistribute other sources (the Internet Archive, IA Scholar/fatcat, CORE, OpenAlex-style indexes) is presumed OK as a door: criteria 2 and 3 are judged on the aggregator's own docs, terms and robots, not re-checked for every original source behind it. The other criteria still apply, especially load (5: their limits are shared by everyone) and data class (7: personal data in the content stays personal data). For everything else, "it depends": run the full table.
python3 agent-tooling/scripts/mandated_services.py --emit-hosts. An approved host that still fails is a recipe problem, not a missing route
(Phabricator failed 5 vault items while approved, 2026-10-16).robots.txt that comes back as
HTML, or with HTTP 202, is a bot-challenge page, not a policy (EUR-Lex, 2026-10-15): treat the
site's pages as closed to scripts and look for a separate API host. Status codes: a 404 means
no robots file (no restrictions), but 401/403/429, a 5xx or an unreachable host means do
not approve yet: record UNVERIFIED and retry another day. Honour any Crawl-delay, and save
the file's text, fetch date and status in the log, since the file can change later.
Recognise standard patterns (Lodewijk, 2026-10-19). Many portals ship their platform's stock
robots file. Compare it with the platform default before reading intent into it: CKAN 2.9's
default is Disallow: /api/ + Crawl-Delay: 10 (Madrid, 2026-10-19). Software defaults and
SEO housekeeping, aimed at search crawlers, are not an access policy. Official reports and
presentations count as provider documentation: Madrid's 2025 report to its transparency
committee promises API consumption with Python examples, which overrules its robots file./.well-known/tdmrep.json, a tdm-reservation
header or meta tag, and ai.txt. A text-and-data-mining reservation is legally meaningful in
the EU even when robots.txt allows crawling: it makes the verdict CONDITIONAL at most (metadata
lookups, no mining of the content). llms.txt is not a permission file; ignore it for vetting.oecd.ai → sdmx.oecd.org; Scholar search → OpenAlex).
Name the door. Agents use the named door, never the redirected one.Claude-Code, ClaudeBot, Claude-User, anthropic-ai, opencode, ...) means
no direct access by any of our agents.
When a property restricts AI agents (robots.txt naming our agents, terms on use,
a TDM reservation), ask the director before any use of that property's content. Content
used under restrictive terms is stored labelled with its rights holder and terms, kept
out of anything we publish beyond short attributed quotes, and any other reuse needs a
human's yes (Lodewijk, 2026-10-20). Never work around a paywall or login.python3 agent-tooling/scripts/mandated_services.py. It must report the new host as drift
before the registry entry and OK after. Show both to Lodewijk; commit only after his yes.agent-tooling/settings/outbound-identity.json:
User-Agent, identifying headers or parameters, and credential type (never values; the repo is
public). An identifying field with Lodewijk's e-mail stays "pending" until his yes.source-connectors/references/library.md: route, decision and date, and a one-line why. That
section is the list to revisit; the registry guard ignores it, so nothing there is approved.
Every disallowed or deferred row carries a revisit date, 6 to 12 months out, and the exact
pages it rests on (URL plus Wayback capture timestamp or live fetch date, and the quoted
words), so the re-check is a matter of re-reading those pages (Lodewijk, 2026-10-19).Checked 2026-10-16: RFC 9309 (Robots Exclusion Protocol; rules are not access authorisation); Google's documented robots.txt status-code handling; IETF draft-farzdusa-webbot-datacollection (document robots checks; Crawl-delay); Chicago Booth and UT Libraries scraping guides (API first, terms and robots are separate questions); IPTC Generative AI Opt-Out Best Practices (2025) and the TDMRep specification (machine-readable TDM reservations).
Unless he says otherwise, every proposed decision on a route, positive or negative, is shown to Lodewijk with (1) the evidence: the provider's own words, quoted (under 15 words), with URL and fetch date or Wayback timestamp; and (2) the reasoning: which criterion and which rule turn that evidence into the verdict, and what is still unread. A verdict without both is not ready to show. The same holds for entries in "Kept out of the library".
| Route | Resource | Need (count) | Verdict | Auth | Documented limit | Licence | Proposed policy | Source + date |
Label every fact [confirmed] (read in the docs, cite it) / [concluded] / [guess]. Facts about an API written from memory stay [guess] until a doc page confirms them.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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./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.