deepxiv-baseline-table
Build a markdown baseline table for a research topic using deepxiv search, brief, head, and experiment-section reads, extracting…
Search about 52k UK and EU legal instruments (EUR-Lex regulations, directives, decisions; UK Acts and SIs) with extracted obligations, penalties and summaries. Use when a task needs UK or EU legislation, e.g. GDPR articles.
$ npx -y skills add deepxiv/deepxiv_sdk --skill deepxiv-fa-uk-eu-law --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/deepxiv-fa-uk-eu-lawContext preview
The summary Claude sees to decide when to auto-load this skill.
Search about 52k UK and EU legal instruments (EUR-Lex regulations, directives, decisions; UK Acts and SIs) with extracted obligations, penalties and summaries. Use when a task needs UK or EU legislation, e.g. GDPR articles.
name: deepxiv-fa-uk-eu-law description: Search about 52k UK and EU legal instruments (EUR-Lex regulations, directives, decisions; UK Acts and SIs) with extracted obligations, penalties and summaries. Use when a task needs UK or EU legislation, e.g. GDPR articles.
About 52k UK and EU legal instruments (synced daily; exact counts in corpus): about 42.4k EU (EUR-Lex — REG / REG_IMPL / DEC / DIR) plus about 9.3k UK (legislation.gov.uk — ukpga / asp / nia / asc / nisr / ssi / ukla; scanned-PDF-only items and pre-1837 items without text are excluded). Norm types (the same closed set as us_law), regulated parties, penalties, defined terms, deadlines, cross-references and bilingual summaries are model-extracted. Hybrid vector + lexical search; filters and sorting in Postgres.
Corpus: 51,737 documents.
pip install -U deepxiv-sdk # deepxiv registers a token on first use
With a registered key (https://data.rag.ac.cn/register), `search` and `read` are fair use: 60/min, 5 at once, 5,000/day; on the auto-registered token they spend the deepxiv daily limit at the credits listed below. `ask` draws on the daily ask allowance (resets 00:00 UTC; a site-wide daily total can run out early at peak times), or 3 lifetime trial asks on the auto-registered token. On 429, back off for `Retry-After` seconds. Data goes to stdout; cost, quota and sources go to stderr. Exit 0 ok, 1 API error, 2 usage error. The general CLI guide is the `deepxiv-cli` skill.
deepxiv fa search uk_eu_law "data protection" -F jurisdiction=eu -k 5 deepxiv fa search uk_eu_law "artificial intelligence high-risk systems" -F kind=REG -F "year>=2020" -k 5 deepxiv fa read uk_eu_law eu:32016R0679 -l brief # GDPR deepxiv fa ask "Under the GDPR, when may personal data be transferred to a third country?" -d uk_eu_law
Free samples: ids `eu:32016R0679`; queries `data protection`.
deepxiv fa search uk_eu_law "query" [-F FILTER]... [-k N] [--offset N] [--mode M] [--sort S] [--head] [--json]
Modes: hybrid, dense, bm25, keyword. Up to 200 hits. Cost 2 (with `--head`: 3). Sorts: `relevance`, `date` (default `relevance`). An empty query is rejected; use `"*"` to list by filters only. Filters combine with AND; an undeclared field exits 2.
| filter | type | `-F` syntax | meaning | |---|---|---|---| | `date` | datetime | `k>=n`, `k=n..m` | Date adopted or signed, range | | `jurisdiction` | keyword | `k=v`, `k=a,b` | uk (about 9.3k) or eu (about 42.4k) Values: `eu`, `uk`. | | `kind` | keyword | `k=v`, `k=a,b` | Instrument type. EU: REG / REG_IMPL / DEC / DIR / DIR_IMPL. UK: ukpga (Act of Parliament) / asp (Scotland) / nia (Northern Ireland) / asc (Wales) / nisr / ssi / ukla Values: `REG`, `REG_IMPL`, `DEC`, `nisr`, `ukpga`, `DIR`, `asp`, `nia` …. | | `norm_types` | keyword | `k=v`, `k=a,b` | Norm type (same closed set as us_law): obligation / prohibition / permission_or_authority / definition / procedure / penalty / effective_date_or_transition … (several allowed) | | `status` | keyword | `k=v`, `k=a,b` | repealed means repealed (the title carries '(repealed)'); empty means in force or unknown. **EU instruments carry no status information — always empty** Values: `repealed`. | | `year` | integer | `k>=n`, `k=n..m` | Year, range |
Advanced filters (see `deepxiv fa spec uk_eu_law`): `title`.
deepxiv fa read uk_eu_law ID [ID...] [-l brief|detail|full] [-e EXTRA] [-p k=v]... [-f json|md|html]
| level | credits | returns | |---|---|---| | `brief` | 1 | Card: citation, date, doc_id, jurisdiction, kind, norm_types, status, summary… | | `detail` (default) | 2 | Every structured field (card plus the source abstract and detail fields) |
At `-l full`, `-p section=NAME` reads one section and `-p characters=N` the first N characters.
`deepxiv fa facets uk_eu_law FIELD` lists the legal values and counts, free. Use it instead of guessing a spelling. Fields: `jurisdiction`, `kind`, `status`.
deepxiv fa ask "question" -d uk_eu_law [-e low|medium|high] [-p k=v]... [--no-stream] [--json]
Agentic Q&A over this domain: hybrid vector + lexical search (filters the vector layer lacks fall back to Postgres full text); the model reads the hits and answers with [uk_eu_law:<doc_id> <title>] citations; /stream is NDJSON with real token deltas
Always pass `-d uk_eu_law`: automatic domain picking is still early.
Talk to research papers like talking to authors - Python package with AI agent for arXiv papers
Build a markdown baseline table for a research topic using deepxiv search, brief, head, and experiment-section reads, extracting…
Use the deepxiv CLI to search and read academic papers (arXiv, PMC, bioRxiv, medRxiv) section by section, get cited answers from…
Find which academicians and society fellows (CAS, CAE, NAS, NAE, Royal Society, ACM, IEEE, AAAI …) cited a paper and what they…
Search Chinese and US court judgments (17M+ Chinese, 3.4M US) and read their extracted fields: claims, facts, reasoning, outcome,…
Search ~390k public vulnerabilities (NVD) with CISA KEV exploited-in-the-wild flags and EPSS exploitation probability. Use when a…
Search ~257k US drug labels (openFDA SPL): indications, contraindications, interactions, boxed warnings, pharmacologic class. Use…