法律幻觉校验器
校验文本内容中的法律引用是否正确:自动抽取文中引用的法规/法条和案例/案号,与权威来源比对语义一致性,核验法规时效性,输出"一致/不一致/未命中"判定及权威原文。当用户要求复核、校验、核查法律引用准确性,询问法律文本是否存在幻觉,或请求AI帮助撰写包含法律引用的法律文书时,视为必须启用本skill Skill: 法律幻觉校验器 Owner: doudoudou12138-design Summary: 校验文本内容中的法律引用是否正确:自动抽取文中引用的法规/法条和案例/案号,与权威来源比对语义一致性,核验法规时效性,输出"一致/不一致/未命中"判定及权威原文。当用户要求复核、校验、核查法律引用准确性,询问法律文本是否存在幻觉,或请求AI帮助撰写包含法律引用的法律文书时,视为必须启用本skill Tags: latest:1.0.0 Version history: v1.0.0 | 2026-05-20T05:43:44.031Z | user - Initial release of the "legal-verify" skill for verifying legal citations in text. - Automatically extracts and checks references to regul
Rank
62
Safety
84
Downloads
963
Updated
Oct 12, 2026
Version
1.0.0
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 963 downloads reported by the source. Last updated 10/12/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 12, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 12, 2026
- Adoption signal
- 963 downloadsadoption · observed Oct 12, 2026
- Latest release
- 1.0.0release · observed May 20, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 1.0.0release
- Initial release of the "legal-verify" skill for verifying legal citations in text. - Automatically extracts and checks references to regulations, statutes, and cases against authoritative sources for semantic accuracy and validity. - Provides clear output judgments ("准确", "时效风险", "语义不一致", "未命中") along with source content and request details. - Validates the effectiveness and timeliness of cited legal texts; flags risks for expired or inconsistent references. - Ensures only authoritative source texts are shown—avoids hallucination or fabrication of statutes and cases. - Includes API key handling and response/error management for seamless integration.
Observed May 20, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s1768fa634bc2th6c1f2an2v2586kpdk:legal-verify- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-doudoudou12138-design-legal-verify/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
7,677 characters of source documentation, loaded on request.
Extracted files
3 files captured from the source.
SKILL.md
---
name: legal-verify
description: 校验文本内容中的法律引用是否正确:自动抽取文中引用的法规/法条和案例/案号,与权威来源比对语义一致性,核验法规时效性,输出"一致/不一致/未命中"判定及权威原文。当用户要求复核、校验、核查法律引用准确性,询问法律文本是否存在幻觉,或请求AI帮助撰写包含法律引用的法律文书时,视为必须启用本skill
metadata:
author: legal-verify 项目
version: 1.0.0
---
# 法律文本抽取/核验 Skill
在生成或核验正式法律文本时,调用 `hall_detect` 抽取引用并按权威来源核验,避免法规、法条、案例和案号幻觉。
普通法律概念解释、非正式讨论、没有明确引用核验需求的问答,不必自动调用本 Skill。
## 触发场景
- 用户要求“复核、核查、核验、法律幻觉检测、verify legal citation、fact-check legal”。
- 即将输出正式法律意见、诉讼文书、合规审查结论,且文本包含法规/法条/案号引用。
- 用户提供 `doc` / `docx` 时,先提取纯文本,再调用接口;接口只接收 `text`。
## API Key
- 每次调用前检查 `YUANDIAN_API_KEY` 是否存在:`python -c "import os; print('已配置' if os.environ.get('YUANDIAN_API_KEY') else '未配置')"`。
- 若未配置,引导用户在本机自行配置,不要要求用户在对话中粘贴完整 Key。
- 可写入与本 `SKILL.md` 同目录的 `.env`,但调用前必须显式加载;仅写入文件不会自动生效。
- `.env` 不得提交进 git。
## 接口调用
接口:`POST https://open.chineselaw.com/open/hall_detect`
请求要求:
- Header: `Content-Type: application/json; charset=utf-8`
- Header: `Accept: application/json`
- Header: `X-API-Key: ${YUANDIAN_API_KEY}`
- Body: `{ "text": "待核验/抽取的法律文本" }`
调用约定:
1. 始终把请求体写入 `body.json`,避免长中文文本在命令行中转义失败。
2. 请求结果保存为 `response.json`,同时记录 `HTTP_STATUS`。
3. 若使用 `.env`,先加载 `YUANDIAN_API_KEY` 再请求。
4. 已验证接口使用 `X-API-Key` 鉴权;若改用 `Authorization: Bearer ...`,服务端会返回 `401 API Key 缺失`。
5. 若 `HTTP_STATUS` 非 2xx 或 `response.json` 不可解析,不编造法规内容;说明失败并建议检查网络、Key 或配额。
## 响应字段
成功响应可能没有顶层 `success`。只要 `HTTP_STATUS` 为 2xx 且未出现 `success === false`,并返回 `regulations` / `cases` / `highlighted_text` / `request_id` 等业务字段,即按成功体处理。
重点字段:
- 顶层:`request_id`、`highlighted_text`、`chat_model`、`semantic_compare_error`
- `regulations[]`:`name`、`clause`、`content`、`extract_reg_id`、`think_tank_content`、`url`、`validity_status`、`publish_date`、`implement_date`、`document_number`、`semantic_compare.结论`、`semantic_compare.语义相似度`、`semantic_compare.说明`、`semantic_compare.要点`
- `cases[]`:`case_number` / `案号`、`content`、`name`、`court`、`judgment_date`、`basic_facts`、`judgment_key_points`、`judgment_result`、`think_tank_content`、`url`
若某次响应未出现 `law_exists`、`source_no_specific_clause`、`think_tank_clause_missing` 等可选字段,跳过对应分支,不据此反推。
## 数据示例
```json
{
"regulations": [
{
"name": "《中华人民共和国民法典》",
"clause": "第九百七十九条",
"content": "无因管理费用可依据《中华人民共和国民法典》第九百七十九条请求偿还。",
"extract_reg_id": "f6e139eb-61d4-4c78-8f98-6eb6b184bed9",
"think_tank_content": "管理人没有法定的或者约定的义务,为避免他人利益受损失而管理他人事务的,可以请求受益人偿还必要费用……",
"validity_status": "现行有效",
"semantic_compare": {
"结论": "不一致",
"语义相似度": 40.0,
"说明": "用户表述遗漏核心构成要件。",
"要点": ["遗漏无义务", "遗漏为避免他人利益受损失"]
}
},
{
"name": "《中华人民共和国合同法》",
"clause": "第五十二条",
"validity_status": "失效",
"semantic_compare": { "结论": "不一致", "语义相似度": 30.0 }
}
],
"cases": [
{
"case_number": "(2021)沪0115民初888888号",
"content": "参考(2021)沪0115民初888888号判决。",
"name": "",
"court": "",
"judgment_date": ""
}
]_meta.json
{
"ownerId": "kn78acyn6bzwx85xt363v6ben186j5d0",
"slug": "legal-verify",
"version": "1.0.0",
"publishedAt": 1779255824031
}skill-card.md
## Description: 校验文本中的法律引用,抽取法规、法条、案例和案号,并通过权威来源比对语义一致性与法规时效性,输出准确、时效风险、语义不一致或未命中的判定。 This skill is ready for commercial/non-commercial use. ## Publisher: [doudoudou12138-design](https://clawhub.ai/user/doudoudou12138-design) ### License/Terms of Use: MIT-0 ## Use Case: Legal professionals, compliance reviewers, and developers use this skill to check whether legal citations in formal Chinese legal text match authoritative source content and remain valid. It supports review of cited regulations, statutes, cases, and case numbers before legal text is finalized. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: Confidential or privileged legal text may be sent to the disclosed chineselaw.com API. Mitigation: Use the skill only when that service is approved for the matter, and avoid privileged or highly confidential material unless approval is explicit. Risk: API keys or generated request and response files may expose secrets or sensitive legal text. Mitigation: Keep YUANDIAN_API_KEY out of chats and source control, and delete or protect body.json and response.json after use. Risk: Failed or incomplete API responses could otherwise lead to unsupported legal claims. Mitigation: Do not fabricate legal authority when the API fails or returns no authoritative source content; report the failure or missing result instead. ## Reference(s): - [ChineseLaw hall_detect API endpoint](https://open.chineselaw.com/open/hall_detect) ## Skill Output: **Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance] **Output Format:** [Markdown table with concise text and API-backed citation-check results] **Output Parameters:** [1D] **Other Properties Related to Output:** [Uses YUANDIAN_API_KEY and may create local body.json and response.json files during citation checks.] ## Skill Version(s): 1.0.0 (source: server release metadata and SKILL.md metadata) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/doudoudou12138-design/skills/legal-verify",
"sourceUrl": "https://clawhub.ai/doudoudou12138-design/skills/legal-verify",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-12T01:05:04.305Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-doudoudou12138-design-legal-verify/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-doudoudou12138-design-legal-verify/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-12T01:05:04.305Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "963 downloads",
"href": "https://clawhub.ai/doudoudou12138-design/legal-verify",
"sourceUrl": "https://clawhub.ai/doudoudou12138-design/legal-verify",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-12T01:05:04.305Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.0",
"href": "https://clawhub.ai/doudoudou12138-design/legal-verify",
"sourceUrl": "https://clawhub.ai/doudoudou12138-design/legal-verify",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-05-20T05:43:44.031Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-doudoudou12138-design-legal-verify/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-doudoudou12138-design-legal-verify/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.0",
"description": "- Initial release of the \"legal-verify\" skill for verifying legal citations in text. - Automatically extracts and checks references to regulations, statutes, and cases against authoritative sources for semantic accuracy and validity. - Provides clear output judgments (\"准确\", \"时效风险\", \"语义不一致\", \"未命中\") along with source content and request details. - Validates the effectiveness and timeliness of cited legal texts; flags risks for expired or inconsistent references. - Ensures only authoritative source texts are shown—avoids hallucination or fabrication of statutes and cases. - Includes API key handling and response/error management for seamless integration.",
"href": "https://clawhub.ai/doudoudou12138-design/legal-verify",
"sourceUrl": "https://clawhub.ai/doudoudou12138-design/legal-verify",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-05-20T05:43:44.031Z",
"isPublic": true
}
]
}Record generated Oct 13, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-doudoudou12138-design-legal-verify/run-check
