Chinese Law and Regulation Retrieval: Querying Provisions and Checking Validity within an Agent

Introduction

In legal Q&A scenarios, models often generate legal provisions that appear complete but are difficult to verify. Manually cross-referencing these against official regulatory databases is costly and slow. If you wish to conduct conversations directly focused on “querying clauses, finding basis, checking validity, and comparing two regulations,” and delegate retrieval capabilities to Skill orchestration, the following introduces the China Legal Regulations Retrieval (@user_f26b93e2/legal-retrieval, current version 1.0.2) on SkillHub.

What is this

China Legal Regulations Retrieval is a community Skill on SkillHub categorized as professional (Source: community, Publisher: user_f26b93e2; SkillHub page lists the author as Delin Technology). It is positioned as an intelligent regulatory retrieval tool for legal practitioners and general users. When needing to query legal clauses, find relevant regulations, verify regulatory validity, or compare regulatory differences, the Agent calls retrieval capabilities according to the Skill’s instructions, rather than relying solely on the model’s memory to piece together text.

The page tag requires_api_key=false indicates that, according to SkillHub, no separate API Key configuration is required (refer to the Skill’s instructions after installation for specifics).

Core Functions

The following capabilities are derived from the official introduction; details not appearing in the materials are not expanded upon:

  1. Query Legal Clauses: For example, handling requests phrased in natural language like “Look up Article X”.
  2. Find Relevant Regulations: Finding normative documents related to a question by topic or keyword.
  3. Verify Regulatory Validity: Answering questions like “Is this regulation still valid?”, focusing on current effectiveness judgments.
  4. Compare Regulatory Differences: Supporting comparative requests like “Compare XX Law and XX Law”.

Trigger phrases listed by the officials also include: “Find regulations about XX”, etc. The Agent should load this Skill to handle similar intents.

Installation and Activation

The Skill is distributed based on the universal SKILL.md format. SkillHub provides two common entry points: providing the installation prompt to the AI, or using the skillhub CLI to install it to the current client’s skills directory.

Method 1: Prompt Installation

Send the following meaning to the current AI (consistent with the SkillHub page):

Please install `@user_f26b93e2/legal-retrieval` based on https://skillhub.cn/install/skillhub.md.

The Agent will fetch and write to the corresponding skills directory according to the SkillHub installation documentation.

Method 2: skillhub CLI

First, confirm if the CLI is already on the machine (see SkillHub Installation and Priority Source Configuration):

command -v skillhub && skillhub --version

If not installed, execute the officially recommended one-click installation (fully including CLI and default Skills):

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, it defaults to ./skills/, which may not be recognized by the client. Common path examples given in the official documentation:

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

Install this Skill in the corresponding directory (coordinates consistent with the page):

skillhub install user_f26b93e2/legal-retrieval --dir ~/.cursor/skills/

Replace ~/.cursor/skills/ with the Agent path you are actually using. The same applies to Codex, Claude Code, etc., only the directories differ.

Typical Usage

The officials do not provide independent script examples; usage is primarily triggered via conversation. In a session where the Skill is enabled, you can directly ask questions using the phrasing from the introduction, for example:

  • “Find regulations regarding the termination of labor contracts”
  • “Look up Article X” (Replace X with a specific number and specify which law or regulation it belongs to)
  • “Is this regulation still valid?” (Specify the regulation name or document number)
  • “Compare the provisions of ‘Law A’ and ‘Law B’ on [specific issue]”

After installation and activation via the steps above, the Agent will complete the retrieval and organization according to the SKILL instructions; whether the output cites the original text and how invalidity dates are marked depends on the rules within the Skill.

Use Cases and Notes

Target Audience: Legal practitioners who need to quickly find basis, verify clause expressions, or check validity; also general users who need to look up norms but do not want to repeatedly open multiple regulatory sites. It can be installed in environments supporting Skills (like Cursor, Claude Code, Codex) using the directories mentioned above.

Usage Notes:

  • Retrieval results are for auxiliary understanding; major decisions should still be based on authoritative texts and professional advice. The model’s summarization of retrieval results may be erroneous, so sources must be verified.
  • The SkillHub page shows this Skill’s rating as 100000 and downloads as 5827 (statistics change with SkillHub updates), while the installation count is shown as 0 on the page; this is only for selection reference.
  • The version is based on SkillHub; the current one is 1.0.2. Upgrades can go through the corresponding skillhub update process, continuing to specify the correct --dir.

Conclusion

China Legal Regulations Retrieval converges “querying clauses, finding regulations, verifying validity, and making comparisons” into a professional Skill that can be triggered within an Agent, and is marked as requiring no API Key. To install or view instructions, you can open the SkillHub page: https://www.skillhub.cn/skills/user_f26b93e2/legal-retrieval , or the API entry: https://api.skillhub.cn/user_f26b93e2/legal-retrieval .

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

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

Xiaoye