legal-research-providers

legal-research-providers is a skill for Claude Code, Codex from kingselyjoe/legal-research-dsh. It costs 74 tokens per session (699 once invoked), scanned A, original, MIT.

A connector for authorised legal databases, including databases such as Pkulaw that provide laws, court decisions, and academic literature. It imports results from MCP or command-line tools into a structured research record.

In plain words
What is it for?
Use it to create database connection settings, check provider access, import saved JSON results, and track whether imported legal sources have been verified against their originals.
Why use it?
It keeps database access, source fields, duplicate handling, permissions, and later source verification organised without bypassing logins or access limits.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present.

Good fit Use it to create database connection settings, check provider access, import saved JSON results, and track whether imported legal sources have been verified against their originals.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kingselyjoe/legal-research-dsh/legal-research-providers
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kingselyjoe/legal-research-dsh --skill legal-research-providers
Clone the repo
git clone --depth 1 https://github.com/kingselyjoe/legal-research-dsh

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for legal-research-providers

README.md
[![agentmods](https://agentmods.dev/badge/skills/kingselyjoe/legal-research-dsh/legal-research-providers/github.svg)](https://agentmods.dev/skills/kingselyjoe/legal-research-dsh/legal-research-providers)
Your own site
<a href="https://agentmods.dev/skills/kingselyjoe/legal-research-dsh/legal-research-providers"><img src="https://agentmods.dev/badge/skills/kingselyjoe/legal-research-dsh/legal-research-providers/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for legal-research-providers

Your own site · 80×15
<a href="https://agentmods.dev/skills/kingselyjoe/legal-research-dsh/legal-research-providers"><img src="https://agentmods.dev/badge/skills/kingselyjoe/legal-research-dsh/legal-research-providers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 699 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.00699
Opus 5 $0.00037 $0.00349
Sonnet 5 $0.00015 $0.00140
Haiku 4.5 $0.00007 $0.00070

Measured 12d ago against content hash de61a9137767, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

legal-research-providers scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/legal-research-providers/SKILL.md · 59 lines

What it actually says

法律数据库接入

开始前完整读取并遵守 ../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
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 59 lines · 74 tokens per session scan A de61a9137767

Subscribe to this mod's changes

legal-research-providers is a skill published in the GitHub repository kingselyjoe/legal-research-dsh (2 stars, last pushed 21d ago), licensed MIT. It adds 74 tokens to every session and 699 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

wechat-prohibited-word

A compliance checker for WeChat public-account content. It scans text, files, images, or web pages for restricted or sensitive wording and suggests safer replacements.

redfox-data/redfox-community-dsh · 46 tokens

xiaohongshu-prohibited-word

A Xiaohongshu content checker that finds platform-prohibited or sensitive words in text, documents, images, and web pages. Xiaohongshu is a Chinese social platform with rules that can limit or reject posts containing certain terms.

redfox-data/redfox-community-dsh · 86 tokens

contract-guardian

A contract-review workflow that checks agreements for risks, links important findings to relevant laws, and produces a written review. It covers common agreements such as sales, leases, loans, services, contracting, and intellectual property.

lawyerllsx-dotcom/Legal-Workflow-Chain · 245 tokens

法律周报

A legal-news briefing workflow that finds recent court and legal-practice articles, scores them against selected criteria, and archives chosen items in a local Obsidian notes folder. Obsidian is a local note-taking application.

lawyerllsx-dotcom/Legal-Workflow-Chain · 242 tokens

legal-research

A Chinese-language legal research workflow for finding laws, regulations, court cases, compensation standards, and legal grounds.

lawyerllsx-dotcom/Legal-Workflow-Chain · 87 tokens

legal-citation-comprehensive

A Chinese and foreign legal-citation tool for checking, completing, explaining, and formatting footnotes under the second edition of a legal citation manual. It handles laws, cases, legal documents, and academic sources when the relevant source material is provided.

lawyerllsx-dotcom/Legal-Workflow-Chain · 119 tokens