deepxiv-fa-law

deepxiv-fa-law is a skill for Claude Code, Codex from DeepXiv/deepxiv_sdk. It costs 51 tokens per session (1,388 once invoked), scanned A, original, MIT.

A searchable collection of laws and regulations from China and 25 other jurisdictions, available down to individual articles. It can also answer legal questions using statutes and court decisions.

In plain words
What is it for?
Find laws by jurisdiction or article, read their subjects and consequences, and research questions about legal requirements.
Why use it?
It makes it easier to locate the exact legal text and conditions that apply instead of relying on broad web searches or summaries.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Find laws by jurisdiction or article, read their subjects and consequences, and research questions about legal requirements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/deepxiv/deepxiv_sdk/deepxiv-fa-law
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add DeepXiv/deepxiv_sdk --skill deepxiv-fa-law
Clone the repo
git clone --depth 1 https://github.com/DeepXiv/deepxiv_sdk

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deepxiv-fa-law

README.md
[![agentmods](https://agentmods.dev/badge/skills/deepxiv/deepxiv_sdk/deepxiv-fa-law/github.svg)](https://agentmods.dev/skills/deepxiv/deepxiv_sdk/deepxiv-fa-law)
Your own site
<a href="https://agentmods.dev/skills/deepxiv/deepxiv_sdk/deepxiv-fa-law"><img src="https://agentmods.dev/badge/skills/deepxiv/deepxiv_sdk/deepxiv-fa-law/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deepxiv-fa-law

Your own site · 80×15
<a href="https://agentmods.dev/skills/deepxiv/deepxiv_sdk/deepxiv-fa-law"><img src="https://agentmods.dev/badge/skills/deepxiv/deepxiv_sdk/deepxiv-fa-law.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,388 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.01388
Opus 5.5 $0.00020 $0.00555
Sonnet 5.5 $0.00010 $0.00278
Haiku 4.5 $0.00005 $0.00139

Measured 5d ago against content hash f2c8cce3a6f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

deepxiv-fa-law scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/deepxiv-fa-law/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DeepXiv · Law · Statutes (law)

33,103 statutes / 1,539,593 articles from 26 jurisdictions; article-level hybrid retrieval, Chinese translations and per-article extraction (heading, subjects, conditions, consequences, references).

Corpus: 1,539,593 documents.

Setup

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.

Start here

deepxiv fa search law "刑法第266条" -k 3   # statute + article number locates directly
deepxiv fa search law "个人信息出境" -F jurisdiction=CHN -F status=in_force -k 5
deepxiv fa read law 刑法 -l brief
deepxiv fa ask "个人信息出境需要满足什么条件" -d law -e medium

Free samples: ids 刑法; queries 诈骗罪 量刑.

deepxiv fa search law "query" [-F FILTER]... [-k N] [--offset N] [--mode M] [--head] [--json]

Modes: hybrid, dense, bm25. Up to 100 hits. Cost 2 (with --head: 3). 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
jurisdiction keyword k=v, k=a,b ISO3 jurisdiction, e.g. CHN / JPN / GBR / USA / DEU / KOR; several allowed Values: CHN, JPN, GBR, USA, DEU, KOR, DNK, POL ….
law_id keyword k=v Restrict to one statute: doc_id or Chinese title / short title
status keyword k=v, k=a,b in_force / repealed / not_yet / unknown Values: in_force, repealed, not_yet, unknown.

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 100 lines · 51 tokens per session scan A f2c8cce3a6f7

Subscribe to this mod's changes

deepxiv-fa-law is a skill published in the GitHub repository DeepXiv/deepxiv_sdk (838 stars, last pushed 6d ago), licensed MIT. It adds 51 tokens to every session and 1,388 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-20.

Related

Other skills, from other repositories

fto-triage

Freedom-to-operate triage — a structured first look at potentially blocking patents, not an FTO opinion. Use when a product, process, or feature is being evaluated for blocking patents, when asked whether anything stops a launch, or to build a claim-chart first pass against the most plausible patents before patent…

anthropics/claude-for-legal · 81 tokens

legal-hold

Issue, refresh, release, or report on legal holds — drafts the hold notice as .docx, updates legalhold fields in log.yaml, and calendars the next refresh. Use when the user says "issue a hold", "refresh hold", "release hold", or asks for a portfolio-wide hold status report.

anthropics/claude-for-legal · 68 tokens

specification-writing

A workflow for writing complete patent specifications from patent claims and an invention disclosure. It adapts the document to a chosen jurisdiction, such as the US, Europe, or China.

wanshuiyin/Auto-claude-code-research-in-sleep · 49 tokens

terms-of-service

Draft terms of service and a companion privacy notice matched to the product's form and feature modules, not legal advice, delivered as a Word document.

genspark-ai/genoffice · 32 tokens

x-scorecard

OpenSSF Scorecard for assessing open source project security. Check security best practices and compliance. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 57 tokens

regulatory-research-fallback

Fallback workflow for regulatory research when web extraction tools fail on government PDFs.

HKUDS/OpenSpace · 20 tokens