{"id":"f6551b4f-6de2-4023-8b99-70deb57606d6","entityType":"agent","slug":"clawhub-doudoudou12138-design-legal-verify","name":"法律幻觉校验器","canonicalUrl":"https://www.xpersona.co/agent/clawhub-doudoudou12138-design-legal-verify","canonicalPath":"/agent/clawhub-doudoudou12138-design-legal-verify","generatedAt":"2026-10-13T14:16:53.979Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-12T01:05:04.305Z","emptyReason":null},"description":"校验文本内容中的法律引用是否正确：自动抽取文中引用的法规/法条和案例/案号，与权威来源比对语义一致性，核验法规时效性，输出\"一致/不一致/未命中\"判定及权威原文。当用户要求复核、校验、核查法律引用准确性，询问法律文本是否存在幻觉，或请求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","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 963 downloads reported by the source. Last updated 10/12/2026.","installCommand":"clawhub skill install s1768fa634bc2th6c1f2an2v2586kpdk:legal-verify","sourceUrl":"https://clawhub.ai/doudoudou12138-design/legal-verify","homepage":"https://clawhub.ai/doudoudou12138-design/skills/legal-verify","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/doudoudou12138-design/legal-verify","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/doudoudou12138-design/skills/legal-verify","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":60,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"校验文本内容中的法律引用是否正确：自动抽取文中引用的法规/法条和案例/案号，与权威来源比对语义一致性，核验法规时效性，输出\"一致/不一致/未命中\"判定及权威原文。当用户要求复核、校验、核查法律引用准确性，询问法律文本是否存在幻觉，或请求AI帮助撰写包含法律引用的法律文书时，视为必须启用本skill Skill: 法律幻"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-12T01:05:04.305Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-12T01:05:04.305Z","emptyReason":null},"stars":null,"forks":null,"downloads":963,"likes":null,"task":null,"library":null,"packageName":null,"latestVersion":"1.0.0","tractionLabel":"963 downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-12T01:05:04.230Z","emptyReason":null},"lastUpdatedAt":"2026-10-12T01:05:04.305Z","lastCrawledAt":"2026-10-12T01:05:04.230Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-13T01:05:04.230Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.0","createdAt":"2026-05-20T05:43:44.031Z","changelog":"- 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.","fileCount":3,"zipByteSize":5130}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s1768fa634bc2th6c1f2an2v2586kpdk:legal-verify","setupComplexity":"low","setupSteps":["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":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-doudoudou12138-design-legal-verify/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-doudoudou12138-design-legal-verify/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-doudoudou12138-design-legal-verify/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-doudoudou12138-design-legal-verify/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-doudoudou12138-design-legal-verify/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-doudoudou12138-design-legal-verify/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-13T14:16:53.979Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-doudoudou12138-design-legal-verify/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-doudoudou12138-design-legal-verify/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-doudoudou12138-design-legal-verify/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-doudoudou12138-design-legal-verify/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-12T01:05:04.305Z","emptyReason":null},"readme":"Skill: 法律幻觉校验器\n\nOwner: doudoudou12138-design\n\nSummary: 校验文本内容中的法律引用是否正确：自动抽取文中引用的法规/法条和案例/案号，与权威来源比对语义一致性，核验法规时效性，输出\"一致/不一致/未命中\"判定及权威原文。当用户要求复核、校验、核查法律引用准确性，询问法律文本是否存在幻觉，或请求AI帮助撰写包含法律引用的法律文书时，视为必须启用本skill\n\nTags: latest:1.0.0\n\nVersion history:\n\nv1.0.0 | 2026-05-20T05:43:44.031Z | user\n\n- Initial release of the \"legal-verify\" skill for verifying legal citations in text.\n- Automatically extracts and checks references to regulations, statutes, and cases against authoritative sources for semantic accuracy and validity.\n- Provides clear output judgments (\"准确\", \"时效风险\", \"语义不一致\", \"未命中\") along with source content and request details.\n- Validates the effectiveness and timeliness of cited legal texts; flags risks for expired or inconsistent references.\n- Ensures only authoritative source texts are shown—avoids hallucination or fabrication of statutes and cases.\n- Includes API key handling and response/error management for seamless integration.\n\nArchive index:\n\nArchive v1.0.0: 3 files, 5130 bytes\n\nFiles: skill-card.md (2338b), SKILL.md (6923b), _meta.json (131b)\n\nFile v1.0.0:SKILL.md\n\n---\r\nname: legal-verify\r\ndescription: 校验文本内容中的法律引用是否正确：自动抽取文中引用的法规/法条和案例/案号，与权威来源比对语义一致性，核验法规时效性，输出\"一致/不一致/未命中\"判定及权威原文。当用户要求复核、校验、核查法律引用准确性，询问法律文本是否存在幻觉，或请求AI帮助撰写包含法律引用的法律文书时，视为必须启用本skill\r\nmetadata:\r\n  author: legal-verify 项目\r\n  version: 1.0.0\r\n---\r\n\r\n# 法律文本抽取/核验 Skill\r\n\r\n在生成或核验正式法律文本时，调用 `hall_detect` 抽取引用并按权威来源核验，避免法规、法条、案例和案号幻觉。\r\n\r\n普通法律概念解释、非正式讨论、没有明确引用核验需求的问答，不必自动调用本 Skill。\r\n\r\n## 触发场景\r\n\r\n- 用户要求“复核、核查、核验、法律幻觉检测、verify legal citation、fact-check legal”。\r\n- 即将输出正式法律意见、诉讼文书、合规审查结论，且文本包含法规/法条/案号引用。\r\n- 用户提供 `doc` / `docx` 时，先提取纯文本，再调用接口；接口只接收 `text`。\r\n\r\n## API Key\r\n\r\n- 每次调用前检查 `YUANDIAN_API_KEY` 是否存在：`python -c \"import os; print('已配置' if os.environ.get('YUANDIAN_API_KEY') else '未配置')\"`。\r\n- 若未配置，引导用户在本机自行配置，不要要求用户在对话中粘贴完整 Key。\r\n- 可写入与本 `SKILL.md` 同目录的 `.env`，但调用前必须显式加载；仅写入文件不会自动生效。\r\n- `.env` 不得提交进 git。\r\n\r\n## 接口调用\r\n\r\n接口：`POST https://open.chineselaw.com/open/hall_detect`\r\n\r\n请求要求：\r\n\r\n- Header: `Content-Type: application/json; charset=utf-8`\r\n- Header: `Accept: application/json`\r\n- Header: `X-API-Key: ${YUANDIAN_API_KEY}`\r\n- Body: `{ \"text\": \"待核验/抽取的法律文本\" }`\r\n\r\n调用约定：\r\n\r\n1. 始终把请求体写入 `body.json`，避免长中文文本在命令行中转义失败。\r\n2. 请求结果保存为 `response.json`，同时记录 `HTTP_STATUS`。\r\n3. 若使用 `.env`，先加载 `YUANDIAN_API_KEY` 再请求。\r\n4. 已验证接口使用 `X-API-Key` 鉴权；若改用 `Authorization: Bearer ...`，服务端会返回 `401 API Key 缺失`。\r\n5. 若 `HTTP_STATUS` 非 2xx 或 `response.json` 不可解析，不编造法规内容；说明失败并建议检查网络、Key 或配额。\r\n\r\n## 响应字段\r\n\r\n成功响应可能没有顶层 `success`。只要 `HTTP_STATUS` 为 2xx 且未出现 `success === false`，并返回 `regulations` / `cases` / `highlighted_text` / `request_id` 等业务字段，即按成功体处理。\r\n\r\n重点字段：\r\n\r\n- 顶层：`request_id`、`highlighted_text`、`chat_model`、`semantic_compare_error`\r\n- `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.要点`\r\n- `cases[]`：`case_number` / `案号`、`content`、`name`、`court`、`judgment_date`、`basic_facts`、`judgment_key_points`、`judgment_result`、`think_tank_content`、`url`\r\n\r\n若某次响应未出现 `law_exists`、`source_no_specific_clause`、`think_tank_clause_missing` 等可选字段，跳过对应分支，不据此反推。\r\n\r\n## 数据示例\r\n\r\n```json\r\n{\r\n  \"regulations\": [\r\n    {\r\n      \"name\": \"《中华人民共和国民法典》\",\r\n      \"clause\": \"第九百七十九条\",\r\n      \"content\": \"无因管理费用可依据《中华人民共和国民法典》第九百七十九条请求偿还。\",\r\n      \"extract_reg_id\": \"f6e139eb-61d4-4c78-8f98-6eb6b184bed9\",\r\n      \"think_tank_content\": \"管理人没有法定的或者约定的义务，为避免他人利益受损失而管理他人事务的，可以请求受益人偿还必要费用……\",\r\n      \"validity_status\": \"现行有效\",\r\n      \"semantic_compare\": {\r\n        \"结论\": \"不一致\",\r\n        \"语义相似度\": 40.0,\r\n        \"说明\": \"用户表述遗漏核心构成要件。\",\r\n        \"要点\": [\"遗漏无义务\", \"遗漏为避免他人利益受损失\"]\r\n      }\r\n    },\r\n    {\r\n      \"name\": \"《中华人民共和国合同法》\",\r\n      \"clause\": \"第五十二条\",\r\n      \"validity_status\": \"失效\",\r\n      \"semantic_compare\": { \"结论\": \"不一致\", \"语义相似度\": 30.0 }\r\n    }\r\n  ],\r\n  \"cases\": [\r\n    {\r\n      \"case_number\": \"（2021）沪0115民初888888号\",\r\n      \"content\": \"参考（2021）沪0115民初888888号判决。\",\r\n      \"name\": \"\",\r\n      \"court\": \"\",\r\n      \"judgment_date\": \"\"\r\n    }\r\n  ],\r\n  \"highlighted_text\": \"参考<span class=\\\"missing-ref\\\">（2021）沪0115民初888888号</span>判决。\",\r\n  \"chat_model\": \"glm-5\",\r\n  \"request_id\": \"req_1778564620129_96d6df29\"\r\n}\r\n```\r\n\r\n## 判定规则\r\n\r\n1. 全局失败：若 JSON 含 `success === false`，立即中止生成/改写，向用户返回 `request_id`、`error_code`、`message`。\r\n2. 法规时效：`validity_status` 为“失效”“已被修改”等时，优先标为“时效风险”，不得当作现行有效依据；若同时语义不一致，写为“时效风险 + 语义不一致”。\r\n3. 法规语义：`semantic_compare.结论 === \"不一致\"` 时，以 `think_tank_content` 为准，展示 `说明` / `要点` / `语义相似度`，并给出建议修订句；`think_tank_content` 为空时不得臆造条文。\r\n4. 案例核验：若案例缺少 `think_tank_content` / `url`，且法院、日期、案情、裁判要点等字段为空，判为“案号未命中或高度可疑”。\r\n5. 高亮文本：`highlighted_text` 是 HTML，只用于辅助定位；遇到 `missing-ref` 时转述“该引用未命中”，不要粘贴原始 HTML 当依据。\r\n6. `chat_model` 仅在用户询问“用什么模型核验”时回答，不参与准确性判定。\r\n\r\n## 输出格式\r\n\r\n用户要求复核时，优先用表格：\r\n\r\n`类型` | `用户原文摘录` | `判定` | `依据` | `权威依据` | `链接` | `request_id` | `extract_reg_id`\r\n\r\n输出要求：\r\n\r\n- `判定` 使用：准确 / 时效风险 / 语义不一致 / 时效风险 + 语义不一致 / 未命中。\r\n- `权威依据` 只来自 `think_tank_content` 或权威案情字段；无则写“无”。\r\n- 表格后补充本次 `request_id`；默认不主动展开 `chat_model`。\r\n- 错误响应只输出 `error_code`、`message`、`request_id`，不得臆测法规表格内容。\r\n\r\n## 自检模式\r\n\r\n当模型即将输出含法律引用的正式文本：\r\n\r\n- 可用 `think_tank_content` 替换或收紧表述。\r\n- 对失效法规标注“已失效/已被修改”，并建议替换为现行依据。\r\n- 删除或改写无法在权威库验证的案号。\r\n- 禁止在无权威正文时编造法条全文，禁止把空权威案例当真实案例引用。\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn78acyn6bzwx85xt363v6ben186j5d0\",\n  \"slug\": \"legal-verify\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1779255824031\n}\n\nFile v1.0.0:skill-card.md\n\n## Description:\n\n校验文本中的法律引用，抽取法规、法条、案例和案号，并通过权威来源比对语义一致性与法规时效性，输出准确、时效风险、语义不一致或未命中的判定。\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[doudoudou12138-design](https://clawhub.ai/user/doudoudou12138-design)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nLegal 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.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Confidential or privileged legal text may be sent to the disclosed chineselaw.com API.\n\nMitigation: Use the skill only when that service is approved for the matter, and avoid privileged or highly confidential material unless approval is explicit.\n\nRisk: API keys or generated request and response files may expose secrets or sensitive legal text.\n\nMitigation: Keep YUANDIAN_API_KEY out of chats and source control, and delete or protect body.json and response.json after use.\n\nRisk: Failed or incomplete API responses could otherwise lead to unsupported legal claims.\n\nMitigation: Do not fabricate legal authority when the API fails or returns no authoritative source content; report the failure or missing result instead.\n\n## Reference(s):\n\n- [ChineseLaw hall_detect API endpoint](https://open.chineselaw.com/open/hall_detect)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance]\n\n**Output Format:** [Markdown table with concise text and API-backed citation-check results]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Uses YUANDIAN_API_KEY and may create local body.json and response.json files during citation checks.]\n\n## Skill Version(s):\n\n1.0.0 (source: server release metadata and SKILL.md metadata)\n\n## Ethical Considerations:\n\nUsers 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.","readmeExcerpt":"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","codeSnippets":[],"executableExamples":[],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\r\nname: legal-verify\r\ndescription: 校验文本内容中的法律引用是否正确：自动抽取文中引用的法规/法条和案例/案号，与权威来源比对语义一致性，核验法规时效性，输出\"一致/不一致/未命中\"判定及权威原文。当用户要求复核、校验、核查法律引用准确性，询问法律文本是否存在幻觉，或请求AI帮助撰写包含法律引用的法律文书时，视为必须启用本skill\r\nmetadata:\r\n  author: legal-verify 项目\r\n  version: 1.0.0\r\n---\r\n\r\n# 法律文本抽取/核验 Skill\r\n\r\n在生成或核验正式法律文本时，调用 `hall_detect` 抽取引用并按权威来源核验，避免法规、法条、案例和案号幻觉。\r\n\r\n普通法律概念解释、非正式讨论、没有明确引用核验需求的问答，不必自动调用本 Skill。\r\n\r\n## 触发场景\r\n\r\n- 用户要求“复核、核查、核验、法律幻觉检测、verify legal citation、fact-check legal”。\r\n- 即将输出正式法律意见、诉讼文书、合规审查结论，且文本包含法规/法条/案号引用。\r\n- 用户提供 `doc` / `docx` 时，先提取纯文本，再调用接口；接口只接收 `text`。\r\n\r\n## API Key\r\n\r\n- 每次调用前检查 `YUANDIAN_API_KEY` 是否存在：`python -c \"import os; print('已配置' if os.environ.get('YUANDIAN_API_KEY') else '未配置')\"`。\r\n- 若未配置，引导用户在本机自行配置，不要要求用户在对话中粘贴完整 Key。\r\n- 可写入与本 `SKILL.md` 同目录的 `.env`，但调用前必须显式加载；仅写入文件不会自动生效。\r\n- `.env` 不得提交进 git。\r\n\r\n## 接口调用\r\n\r\n接口：`POST https://open.chineselaw.com/open/hall_detect`\r\n\r\n请求要求：\r\n\r\n- Header: `Content-Type: application/json; charset=utf-8`\r\n- Header: `Accept: application/json`\r\n- Header: `X-API-Key: ${YUANDIAN_API_KEY}`\r\n- Body: `{ \"text\": \"待核验/抽取的法律文本\" }`\r\n\r\n调用约定：\r\n\r\n1. 始终把请求体写入 `body.json`，避免长中文文本在命令行中转义失败。\r\n2. 请求结果保存为 `response.json`，同时记录 `HTTP_STATUS`。\r\n3. 若使用 `.env`，先加载 `YUANDIAN_API_KEY` 再请求。\r\n4. 已验证接口使用 `X-API-Key` 鉴权；若改用 `Authorization: Bearer ...`，服务端会返回 `401 API Key 缺失`。\r\n5. 若 `HTTP_STATUS` 非 2xx 或 `response.json` 不可解析，不编造法规内容；说明失败并建议检查网络、Key 或配额。\r\n\r\n## 响应字段\r\n\r\n成功响应可能没有顶层 `success`。只要 `HTTP_STATUS` 为 2xx 且未出现 `success === false`，并返回 `regulations` / `cases` / `highlighted_text` / `request_id` 等业务字段，即按成功体处理。\r\n\r\n重点字段：\r\n\r\n- 顶层：`request_id`、`highlighted_text`、`chat_model`、`semantic_compare_error`\r\n- `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.要点`\r\n- `cases[]`：`case_number` / `案号`、`content`、`name`、`court`、`judgment_date`、`basic_facts`、`judgment_key_points`、`judgment_result`、`think_tank_content`、`url`\r\n\r\n若某次响应未出现 `law_exists`、`source_no_specific_clause`、`think_tank_clause_missing` 等可选字段，跳过对应分支，不据此反推。\r\n\r\n## 数据示例\r\n\r\n```json\r\n{\r\n  \"regulations\": [\r\n    {\r\n      \"name\": \"《中华人民共和国民法典》\",\r\n      \"clause\": \"第九百七十九条\",\r\n      \"content\": \"无因管理费用可依据《中华人民共和国民法典》第九百七十九条请求偿还。\",\r\n      \"extract_reg_id\": \"f6e139eb-61d4-4c78-8f98-6eb6b184bed9\",\r\n      \"think_tank_content\": \"管理人没有法定的或者约定的义务，为避免他人利益受损失而管理他人事务的，可以请求受益人偿还必要费用……\",\r\n      \"validity_status\": \"现行有效\",\r\n      \"semantic_compare\": {\r\n        \"结论\": \"不一致\",\r\n        \"语义相似度\": 40.0,\r\n        \"说明\": \"用户表述遗漏核心构成要件。\",\r\n        \"要点\": [\"遗漏无义务\", \"遗漏为避免他人利益受损失\"]\r\n      }\r\n    },\r\n    {\r\n      \"name\": \"《中华人民共和国合同法》\",\r\n      \"clause\": \"第五十二条\",\r\n      \"validity_status\": \"失效\",\r\n      \"semantic_compare\": { \"结论\": \"不一致\", \"语义相似度\": 30.0 }\r\n    }\r\n  ],\r\n  \"cases\": [\r\n    {\r\n      \"case_number\": \"（2021）沪0115民初888888号\",\r\n      \"content\": \"参考（2021）沪0115民初888888号判决。\",\r\n      \"name\": \"\",\r\n      \"court\": \"\",\r\n      \"judgment_date\": \"\"\r\n    }\r\n  ]"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn78acyn6bzwx85xt363v6ben186j5d0\",\n  \"slug\": \"legal-verify\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1779255824031\n}"},{"path":"skill-card.md","content":"## Description:\n\n校验文本中的法律引用，抽取法规、法条、案例和案号，并通过权威来源比对语义一致性与法规时效性，输出准确、时效风险、语义不一致或未命中的判定。\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[doudoudou12138-design](https://clawhub.ai/user/doudoudou12138-design)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nLegal 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.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Confidential or privileged legal text may be sent to the disclosed chineselaw.com API.\n\nMitigation: Use the skill only when that service is approved for the matter, and avoid privileged or highly confidential material unless approval is explicit.\n\nRisk: API keys or generated request and response files may expose secrets or sensitive legal text.\n\nMitigation: Keep YUANDIAN_API_KEY out of chats and source control, and delete or protect body.json and response.json after use.\n\nRisk: Failed or incomplete API responses could otherwise lead to unsupported legal claims.\n\nMitigation: Do not fabricate legal authority when the API fails or returns no authoritative source content; report the failure or missing result instead.\n\n## Reference(s):\n\n- [ChineseLaw hall_detect API endpoint](https://open.chineselaw.com/open/hall_detect)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance]\n\n**Output Format:** [Markdown table with concise text and API-backed citation-check results]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Uses YUANDIAN_API_KEY and may create local body.json and response.json files during citation checks.]\n\n## Skill Version(s):\n\n1.0.0 (source: server release metadata and SKILL.md metadata)\n\n## Ethical Considerations:\n\nUsers 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."}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"校验文本内容中的法律引用是否正确：自动抽取文中引用的法规/法条和案例/案号，与权威来源比对语义一致性，核验法规时效性，输出\"一致/不一致/未命中\"判定及权威原文。当用户要求复核、校验、核查法律引用准确性，询问法律文本是否存在幻觉，或请求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","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":913,"uniquenessScore":56,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-12T01:05:04.305Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-12T01:05:04.305Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-13T14:16:53.979Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"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!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"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","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}