Lawyer Z - Regulation and Case Law Retrieval: A Multi-Source Cross-Validated Skill for Chinese Regulations and Judgments

Introduction

When searching for legal statutes, judgment documents, or typical cases within an Agent, a common issue is that the model provides seemingly complete articles or key judgment points but lacks verifiable official sources. Single-page web searches often encounter mirror sites, reposted pages, or partial case numbers. Legal scenarios demand higher standards for “traceability and verifiability” than general information retrieval.

The following is an introduction to the SkillHub community Skill “Z-Law - Legal Database Search” (coordinates @user_0323e0dc/legal-database-search, current version 3.2.3). It integrates case number validation, multi-channel federated search, and dual-source cross-verification into the Skill workflow. This ensures that search conclusions carry channel hierarchy and traceability information, and it explicitly marks single-source results with a downgrade warning.

What is this

“Z-Law - Legal Database Search” is a retrieval-oriented Agent Skill for Chinese laws, regulations, judgment documents, and typical cases. It is maintained by the SkillHub publisher user_0323e0dc, sourced from the community, and categorized as professional. The SkillHub page marks requires_api_key=false, meaning no separate API Key configuration is needed after installation.

The core problems this Skill addresses can be summarized into two points: First, using the complete Case Reference Number as the legal identifier for judgment documents to filter out documents from which a full case number cannot be parsed. Second, using “dual-source corroboration” and T0–T4 channel priority to provide executable adjudication rules when multi-source results are consistent or conflicting, rather than treating arbitrary web content as a final conclusion.

Core Features

The following capabilities are derived from the official SkillHub introduction, summarized by module.

Authenticity and Case Number Validation

  • Treats the Case Reference Number as an immutable legal identifier; judicial documents from which a complete case number cannot be parsed are classified into a false judgment sample space and excluded.
  • Regex validation of case number formats, supporting various notations (including combinations of year, Supreme People’s Court/Supreme People’s Procuratorate, administrative divisions, court hierarchy, case type, and sequence numbers), used to intercept truncated or incorrect numbers from entering the search pipeline.

User input undergoes keyword semantic parsing and intent classification before entering four parallel search paths:

  1. Judgment Document Search Engine (16 channels)
  2. Laws and Regulations Search Engine (National Law Database + Local Regulations Database)
  3. Typical Cases Search Engine (SPC Gazette/Guiding Cases + SPP Typical Cases)
  4. Comprehensive Cross-verification Engine

Dual-Source Cross-Verification and Conflict Resolution

  • Any search conclusion must be cross-confirmed by two independent channels to be output as a fully verified result; if consistent, it is output directly with the traceability chain noted.
  • In case of a dual-source conflict, adjudication follows the T0–T4 channel confidence hierarchy, prioritizing T0-level official channels (e.g., China Judgments Online, as cited in the introduction).
  • If only a single source is available, it is marked as “Single-Source Unverified” and displayed with lower weight; the introduction explicitly states that citing it as an independent conclusion is strictly prohibited.

Auditability and Local Caching

  • SHA-256 fingerprint archiving of original URLs to support full-chain auditing.
  • Structured archiving of search results (cause of action, court, judgment date, legal citations, key judgment points, etc.), with key data synchronized to a local SQLite cache for offline verification capabilities.

Channel Maintenance

Channel viability is automatically scanned quarterly, and invalid sources are removed from the search routing table.

Trigger Conditions (When to enable this Skill)

The typical intents listed officially include: searching judgment documents, searching laws and regulations, looking up legal articles, searching cases, retrieving judgments, looking up judicial interpretations, searching typical cases, searching Supreme People’s Court cases, searching Supreme People’s Procuratorate cases, and generating legal analysis reports.

Installation and Activation

Method 1: Let the Agent execute installation via SkillHub docs

The installation prompt provided on the SkillHub skill page is: Install @user_0323e0dc/legal-database-search according to the SkillHub Installation Instructions.

You can send the following prompt to your current AI client (Cursor, Claude Code, Codex, etc.):

Please install @user_0323e0dc/legal-database-search according to https://skillhub.cn/install/skillhub.md.

Method 2: Use the skillhub CLI (requires CLI installed locally)

First, check the CLI:

command -v skillhub && skillhub --version

If not installed, perform a full installation according to SkillHub documentation (the following is the officially recommended command):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

When installing the skill, you must use --dir to point to the current Agent’s skills directory; otherwise, installing to the default ./skills/ may cause the client not to load it. Common path examples provided in the official documentation:

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

The installation command format is as follows (replace <skills directory> with the actual path):

skillhub install user_0323e0dc/legal-database-search --dir <skills directory>

Refer to skillhub search or the skill page coordinates for the specific package name; the coordinate is @user_0323e0dc/legal-database-search, version 3.2.3.

After installation, restart or refresh the Agent as required by your client to ensure SKILL.md is loaded.

Typical Usage

The official documentation does not provide fixed CLI subcommand examples; usage is primarily triggered via natural language. The following expressions are consistent with the trigger conditions in the introduction for easy reproduction in conversations:

Retrieve the judgment document corresponding to Case No. (2023) Jing 01 Min Zhong No. 1234, and provide dual-source verification results and traceability links.
Search for relevant articles in the Civil Code regarding liability for breach of contract, and note the source from the National Law Database.
Find entries in the Supreme People's Court Guiding Cases involving disputes over construction project contracts, and cross-verify the results from the Typical Cases Engine.
Organize a legal analysis report based on search results, separately marking single-source unverified content and not citing it as a conclusion.

Through the above steps, the Agent should perform intent classification, parallel retrieval, dual-source arbitration, and structured output as described within the Skill. You should focus on the verification status in the output (dual-source consistent / conflict adjudication / single-source unverified) and whether the case number and URL fingerprint are complete.

Applicable Scenarios and Notes

Who is it for

  • Legal professionals, paralegals, compliance officers, and R&D personnel who need to search Chinese laws, regulations, judgment documents, judicial interpretations, or Supreme People’s Court/Supreme People’s Procuratorate typical cases within an Agent workflow, and who want results with channel hierarchy and traceability chains.
  • Scenarios where one wishes to reduce the risk of “model fabricating judgments” and is willing to accept “Single-Source Unverified” downgrade displays rather than forcing a unique conclusion.

Usage Notes

  • This Skill emphasizes adversarial verification and dual-source rules, so responses may be slower than single web searches; conflicts are adjudicated via the T0–T4 matrix, so please read the adoption explanations in the output.
  • “Single-Source Unverified” results must not be cited as independent legal basis; this point is clearly stated in the official introduction.
  • SkillHub page data (as of crawl): Rating 100000, Downloads 1092, Installs 0; ratings and download counts change with platform updates, refer to the skill page for the latest.
  • Search coverage depends on the viability of the twenty-eight channels; quarterly scans remove invalid sources, so at certain times, channels for specific causes of action or regions may temporarily be single-source.

Conclusion

“Z-Law - Legal Database Search” strings together case number validation, four-engine federated search, dual-source cross-verification, and URL fingerprint archiving into an auditable search chain. It is suitable for placing inside an Agent to query regulations and precedents within the Chinese legal jurisdiction, rather than relying on the model’s single-shot generation.

Official Skill Page: https://www.skillhub.cn/skills/user_0323e0dc/legal-database-search
API Coordinate Page: https://api.skillhub.cn/user_0323e0dc/legal-database-search

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye