Preface¶
When working on safety, environmental protection, construction, or special equipment related projects, you often need to switch between multiple government portals and full-text standards systems for searches, then manually verify whether a document is “currently valid,” extract clauses, and format citations. General web searches can easily mix in interpretive content, and it is hard to ensure every result includes a clickable link to the original source. The following introduces the SkillHub community skill “Government Documents, Laws & Regulations, and Standards Search” (located at @user_9d03c4c1/gov-doc-law-search, current version 2.0.0), which embeds “search authoritative sources by topic + output structured clauses and links” into an Agent workflow.
What This Is¶
“Government Documents, Laws & Regulations, and Standards Search” is a knowledge-management Agent Skill targeting Chinese government documents, laws and regulations, and normative standards. It is maintained by the community publisher user_9d03c4c1 and marked as community sourced. The skill description requires: based on the user’s topic keywords, it should deeply search official and authoritative websites, and also search the ima knowledge base, compile laws, administrative regulations, departmental rules, national standards (GB/GB/T), industry standards, group standards, local regulations, and policy documents related to the topic, and return them in a verifiable way.
Official page and API entry points:
- SkillHub display page: https://www.skillhub.cn/skills/user_9d03c4c1/gov-doc-law-search
- API address: https://api.skillhub.cn/user_9d03c4c1/gov-doc-law-search
Page metadata shows: requires_api_key=false (no separate API Key configuration required); pricing_type=alipay (related to SkillHub’s payment/billing type; refer to SkillHub’s current instructions before installing or using).
Core Functions¶
The capabilities below come from the SkillHub page and the fetched description; it does not expand on capabilities not mentioned in the official copy.
Search Scope¶
- Perform a search by topic keywords (examples: pressure piping, anhydrous ammonia storage, hazardous chemicals, etc.).
- Perform deep searches on official/authoritative websites, and also search the ima knowledge base (including publicly available knowledge bases you own and others have shared; refer to the skill description).
- Covered categories include: laws, administrative regulations, departmental rules, national standards (GB/GB/T), industry standards, group standards, local regulations, policy documents, etc.
Output Structure¶
For each hit result, the skill description requires organizing:
- The specific name of the document or standard;
- A detailed excerpt of the original clause text (or a summary of related chapter/section content, depending on the skill execution result);
- The latest current validity status;
- A clickable link to the original (or a source description for the knowledge base).
A comprehensive summary and disclaimer are attached at the end of the document. If needed, it can generate formatted PDF and Word reports (depending on the Agent’s actual capability when calling the skill).
Trigger Method¶
Use expressions related to regulations, standards, and policies in the conversation so the Agent can select this Skill. Officially listed trigger words include: law, regulation, standard, norm, provision, rule, measure, notice, opinion, policy, national standard, industry standard, group standard, government document, safety management, compliance, enforcement basis; you can also combine domain-specific terms (such as pressure piping, hazardous chemicals, fire protection, construction, environmental protection, etc.) when asking questions.
Installation and Activation¶
The SkillHub page states: to install, follow SkillHub Installation and Priority Source Configuration, with the target skill being @user_9d03c4c1/gov-doc-law-search.
1. Install SkillHub CLI (if not installed)¶
First check whether the skillhub command already exists:
command -v skillhub && skillhub --version
If it is not installed, you can use the official script for a full installation (CLI + default Skill; the documentation notes this as the recommended method):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
If you only need the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install this skill into the current Agent’s skills directory¶
The official instructions emphasize: when installing, you must use --dir to point to the skills directory currently used by the Agent; otherwise it will default to ./skills/, and the Agent may not be able to recognize it. After installation, you typically need to restart the corresponding client.
skillhub install @user_9d03c4c1/gov-doc-law-search --dir <skills directory>
Commonly used clients’ skills paths (excerpted from SkillHub installation docs):
| Client | skills directory |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under the project |
| Windsurf | ~/.codeium/windsurf/skills/ or .windsurf/skills/ |
Differences among Cursor, Codex CLI, and Claude Code are mainly reflected in the skills directory path; the installation command format is the same. For configuration items not separately explained in the official documentation, this article will not speculate.
Typical Usage¶
After installation and restarting the Agent, provide a domain + compliance need in natural language so the skill can run a search across “authoritative sites + ima knowledge base” and organize the output. The following expressions match the official example keywords for easier reproduction:
-
Special equipment / pressure piping
“Please search current national standards, departmental rules, and policy documents related to pressure piping design, installation, and inspection, list their names, excerpts of key clauses, issuing authority, effective date, and original links, and explain the current validity status of each document.” -
Hazardous chemicals / anhydrous ammonia storage
“Around anhydrous ammonia storage and hazardous chemicals safety management, compile the applicable laws, administrative regulations, departmental rules, and GB/GB/T standards. For each item, provide clause excerpts and source links, and include a brief compliance key-point summary at the end of the document.” -
Deliverables required
“Based on the above search, generate an archivable Word or PDF report (if the skill currently supports it), and keep the disclaimer.”
After the above steps, the Agent should call the search and organization logic according to the process defined in SKILL; specific search sites and knowledge base entries depend on runtime results. Before use, please re-verify by returning to the source through the links in the output.
Applicable Scenarios and Notes¶
Who it is for
- R&D, EHS, legal, or project managers who need to quickly align on an “enforcement basis / standards list”;
- Scenarios where you want to complete searching, extracting, linking, and optionally exporting reports within a conversation.
Usage notes
- Validity and accuracy: The skill output includes a disclaimer. For formal external submissions, litigation, or administrative approvals, you should confirm the version and validity again through the original links on the issuing authority’s site or a standards platform.
- Billing: The tag
pricing_type=alipayindicates it is related to SkillHub-side billing type; refer to the store and account pages for details. - Community source:
source: community; update frequency and maintainer should be based on the SkillHub page (current version 2.0.0). - Store data: As of the time the information was fetched, SkillHub shows a rating of 100000 and 10394 downloads (consistent with the page statistics; it will change over time).
Closing¶
“Government Documents, Laws & Regulations, and Standards Search” connects topic keywords, authoritative sites and ima knowledge base searches, clause excerpts, and source links into an Agent workflow. It is suitable as a starting tool for compliance research, not as a substitute for a lawyer’s or a regulator’s final determination. Installation and instructions should be based on SkillHub:
https://www.skillhub.cn/skills/user_9d03c4c1/gov-doc-law-search