Preface¶
When drafting policy interpretations, research reports, or government official documents, both models and human drafters are prone to three types of issues regarding legal citations: citing non-existent articles, misattributing sources, or referencing texts that have been abolished or superseded by new versions. Manually verifying every citation against PKULaw or official websites afterwards is costly and difficult to integrate as a fixed step in the writing workflow. The following introduces legal-citation-verify on SkillHub (coordinate @user_d480f27d/legal-citation-verify, current version 2.4.0). It transforms the process of “extracting citations from text → verifying via differentiated pipelines based on document type → outputting a structured report” into a skill that can be triggered within an Agent. The conclusions are marked as being for citation verification reference only and do not constitute legal advice.
What is this¶
legal-citation-verify is a community-sourced (community) Agent Skill categorized as professional. It is designed for citations of laws, regulations, policy documents, and judicial interpretations found in articles, reports, government official documents, and academic papers.
The publisher is user_d480f27d. The SkillHub page indicates requires_api_key=false, meaning no additional API Key is required in the installation description. The closed-loop workflow provided in the page description is: Extract → Classify → Retrieve → Report, designed to verify risks such as fabricated legal provisions, misattributions, and citations of abolished or outdated versions.
Core Functions¶
The following capabilities are derived from the official SkillHub description, organized by verification dimensions.
Check Items and Document Types¶
- Built-in 6 groups totaling 21 check items (the official page does not expand on the group names individually; refer to the capability descriptions in the introduction).
- Implements a differentiated verification pipeline for eight categories of citations: Laws, Administrative Regulations, Departmental Rules, Government Rules, Judicial Interpretations, Policy Documents, Intra-party Regulations, and Local Regulations.
Official Documents and Citation Quality¶
- Checks related to official document reference numbers and style compliance.
- Citation-argument fit (whether the citation supports the claim made in the text).
- One-vote veto for invalid citations: A hard negation mechanism for citations that have become invalid (specific rules are within the Skill’s execution logic; the page only declares the existence of this capability).
Output Formats¶
- Structured reports supporting JSON / CSV export.
- Can generate explanatory outputs such as a “Official Document Citation Compliance Statement”.
- The introduction claims it can interface with any official document proofreading/polishing tool to form a writing closed-loop; the integration method depends on the Agent and workflow you use, and the page does not provide separate integration configuration options.
Trigger Scenarios (Usage Level)¶
When a user is writing articles, reports, official documents, or papers containing citations of laws, regulations, policy documents, or judicial interpretations, and needs to verify the accuracy, validity, and rationality of these citations, the Agent loads this Skill to execute the aforementioned workflow. The page does not list separate CLI subcommands; the typical path is to naturally reference the skill during writing tasks or have the Agent recognize the coordinate via installation prompts.
Installation and Activation¶
For general SkillHub installation instructions, see skillhub.cn/install/skillhub.md. The two methods directly related to this Skill are as follows.
Method 1: Install to the current Agent’s skills directory using the skillhub CLI¶
Before installation, confirm if the CLI is available:
command -v skillhub && skillhub --version
If not installed, follow the SkillHub documentation to perform a full installation or install just the CLI (the curl installation script in the documentation is not repeated here).
When installing this skill, you must use --dir to point to the skills directory recognized by your current environment; otherwise, it may default to ./skills/ where the Agent might not load it:
skillhub install @user_d480f27d/legal-citation-verify --dir <skills directory>
Common path examples provided in the documentation (choose one based on the client you actually use):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
After installation, you usually need to restart or refresh the skill list according to your client’s requirements; the SkillHub installation page’s instruction for this Skill is: Send the installation prompt to the AI, asking it to install @user_d480f27d/legal-citation-verify based on skillhub.md.
Method 2: Prompt-based Installation¶
The installation prompt provided on the SkillHub skill page roughly means: Ask the AI to install @user_d480f27d/legal-citation-verify based on https://skillhub.cn/install/skillhub.md. This is suitable for users accustomed to driving environment configuration via dialogue.
Loading rules for SKILL.md vary by client and are subject to their respective documentation; this article only reiterates the public SkillHub path. Unless fine-grained differences between Codex CLI and Claude Code have been verified, the directory table above serves as the standard.
Typical Usage¶
The official page does not attach lengthy example dialogues, but the reproducible workflow is as follows:
- Install
@user_d480f27d/legal-citation-verifyto the current Agent’s skills directory as described in the previous section. - Submit a draft containing legal citations during a writing task (e.g., text specifying “According to Article X of the ‘XX Law’” or policy documents with reference numbers).
- Explicitly request citation verification for all legal and policy citations in the text, and ask for a JSON/CSV report or a Official Document Citation Compliance Statement. The Agent will then call this Skill to complete the extraction, classification, retrieval, and report generation.
- Revise the text based on the report; for citations marked as invalid or unverifiable, manually review authoritative databases or official texts before finalizing the draft.
The page emphasizes: All conclusions are for citation verification reference only and do not constitute legal advice. The responsibility for finalizing the draft remains with the author and their organization’s legal or advisory processes.
Applicable Scenarios and Notes¶
Who it is for
- Content professionals who frequently produce work containing citations of laws, regulations, judicial interpretations, and policy documents: government official documents, think tank reports, compliance explanations, academic paper citation sections, etc.
- Teams using AI for drafting or polishing who need to reduce the risk of “hallucinated legal provisions.”
Limitations and Notes
- The verification depth is subject to the Skill’s built-in 6 groups of 21 items and the eight-category pipeline; the page does not promise coverage of all document types outside domestic jurisdictions or those not listed.
requires_api_key=falseonly indicates that SkillHub metadata does not mark a Key as required; if the Skill’s internal retrieval relies on external sites or tools, actual network access and permissions are still determined by the execution environment.- The SkillHub display rating is 100000. Download counts are subject to the page’s current statistics (if inconsistent with third-party excerpts, SkillHub prevails).
- The “one-vote veto” for invalid citations is used for writing risk control and cannot replace formal legal argumentation or litigation strategy judgments.
Conclusion¶
legal-citation-verify advances legal citation from “manual checking after writing” to an Agent-repeatable “Extract—Classify—Retrieve—Report” workflow, providing structured outputs for official document style and citation fit. To install or view update notes, please open the official SkillHub pages:
- Skill Page: https://www.skillhub.cn/skills/user_d480f27d/legal-citation-verify
- API Coordinate Page: https://api.skillhub.cn/user_d480f27d/legal-citation-verify