agentleFS
kingselyjoekingselyjoe/legal-research-dsh/skills/legal-research-providers/SKILL.md

legal-research-providers

Skill2 starsChanged 3 months agoMITView on GitHub

接入并管理获授权的法律数据库,将MCP或CLI返回的法规、案例和文献标准化导入研究台账。用户要求连接北大法宝等法律数据服务、生成MCP配置、批量导入或检查数据库接入状态时使用;普通网页检索不触发。

The file

Files
SKILL.md

法律数据库接入

开始前完整读取并遵守 ../legal-research/references/interaction-protocol.md,先解释当前步骤,结束时说明结果、作用和下一步,不向用户粘贴原始 JSON。

统一处理第三方法律数据服务的鉴权边界、字段映射、去重和来源追溯。当前实现北大法宝,其他供应商通过同一Provider接口扩展。

基本规则

  • 只使用用户已经取得授权的账号、Token和数据范围,不抓取网页,不绕过登录、付费墙、频率限制或合同条款。
  • Token只进入环境变量或目标客户端的密钥管理机制,不写进Skill、代码、日志、研究台账或可提交配置。
  • 供应商返回记录默认标记为 provider-record-unverified-against-origin。回到法条原文、裁判文书或论文原文核验后,才能把来源设为 verified。
  • 批量调用可能消耗额度。执行真实查询前说明调用范围;用户没有授权真实调用时,只生成配置模板或处理本地结果文件。

选择接入方式

  • 对话式法规、法条、案例、案号和引文查询使用MCP。
  • Community版允许用户自行运行供应商CLI,再把结构化JSON导入来源台账。自动调用、批量执行和断点续跑由Pro版提供。
  • 已有导出JSON时直接导入,不重复请求外部服务。

先检查环境:

legal-research provider list --json
legal-research provider diagnose pkulaw --json

北大法宝

处理北大法宝时读取 references/pkulaw.md。生成不含真实Token的九服务MCP配置模板:

legal-research provider mcp-config pkulaw --output ./mcp.pkulaw.example.json

导入MCP或CLI保存的JSON:

legal-research --workspace "{workspace}" provider import pkulaw "{result.json}" --resource-type auto --json

导入完成后执行 legal-research-sources,核对来源身份、效力状态、原文链接和精确定位。Provider导入日志保存在 providers/{provider}/imports.jsonl,只记录文件哈希、数量、结果ID和时间,不保存Token。

回到原始法源核验后写回状态:

legal-research --workspace "{workspace}" source verify S0001 \
  --locator "{original-source-url}" --notes "已核对标题、效力和引用位置" --json

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.