pkulaw-mcp-case-retrieval

pkulaw-mcp-case-retrieval is a skill for Claude Code, Codex from NEU-ZHA/legal-ai-skills. It costs 122 tokens per session (1,598 once invoked), scanned A, original, MIT.

A search workflow for finding similar court cases and published judicial decisions. It starts with keyword searches and uses semantic search only when two reasonable keyword attempts do not find sufficiently similar facts.

In plain words
What is it for?
Use it to find cases by legal issue, dispute type, facts, case number, or other search terms for later legal analysis.
Why use it?
It helps locate verifiable case examples without treating a small set of results as proof of how a court will decide.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find cases by legal issue, dispute type, facts, case number, or other search terms for later legal analysis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neu-zha/legal-ai-skills/pkulaw-mcp-case-retrieval
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 NEU-ZHA/legal-ai-skills --skill pkulaw-mcp-case-retrieval
Clone the repo
git clone --depth 1 https://github.com/NEU-ZHA/legal-ai-skills

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 pkulaw-mcp-case-retrieval

README.md
[![agentmods](https://agentmods.dev/badge/skills/neu-zha/legal-ai-skills/pkulaw-mcp-case-retrieval/github.svg)](https://agentmods.dev/skills/neu-zha/legal-ai-skills/pkulaw-mcp-case-retrieval)
Your own site
<a href="https://agentmods.dev/skills/neu-zha/legal-ai-skills/pkulaw-mcp-case-retrieval"><img src="https://agentmods.dev/badge/skills/neu-zha/legal-ai-skills/pkulaw-mcp-case-retrieval/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 pkulaw-mcp-case-retrieval

Your own site · 80×15
<a href="https://agentmods.dev/skills/neu-zha/legal-ai-skills/pkulaw-mcp-case-retrieval"><img src="https://agentmods.dev/badge/skills/neu-zha/legal-ai-skills/pkulaw-mcp-case-retrieval.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,598 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00122 $0.01598
Opus 5.5 $0.00049 $0.00639
Sonnet 5.5 $0.00024 $0.00320
Haiku 4.5 $0.00012 $0.00160

Measured 17d ago against content hash b5ffb56a8624, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pkulaw-mcp-case-retrieval 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 17d 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/pkulaw-mcp-case-retrieval/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

北大法宝 MCP:司法案例检索

这个 Skill 只负责一件事:把类案样本与裁判线索找出来,并按可复核的方式交给后续分析或备忘环节。

当前覆盖两个原生 MCP 服务:

路径 serverId 什么时候优先用
关键词检索 case-keyword 用户已给出案由词、争点词、标题词,想返回案例列表
语义检索 case-semantic 两轮合理关键词仍找不到事实相似样本,作为升级路径

如果任务已经明确是“只查法规”,请转到 pkulaw-mcp-law-retrieval。如果已有完整案号,先把案号作为关键词用 case-keyword 检索;没有精确匹配或需要从长文本批量识别时,再转 pkulaw-mcp-case-number。

先看边界

  • 本 Skill 的目标是找样本、看裁判线索,不是直接替用户做胜诉承诺或给出确定裁判结论。
  • 检索到的少量样本不能直接概括成“法院一定怎么判”。
  • 若用户要形成正式类案备忘或办案备忘,建议把结果继续交给组合型 Skill。

必须遵守的规则

  1. 具体案号、法院、日期和裁判要旨须有实际取得的可靠原文支持,用户提供的判决书及法院原文也可作为来源。
  2. 按实际取得的来源做摘要,不得用模型记忆补齐案例细节,也不得将网页结果称为 MCP 返回。
  3. 关键词路径下,title 与 fulltext 至少有一项;具体参数名仍以 tools 输出为准。
  4. 认证失败、超时或工具不存在时停止该接口,按需用用户材料、法院原文或其他已授权来源继续;没有依据的部分标待核。正常返回但召回不足时按下列成本路由补检。
  5. 不得把 case-semantic 当默认入口;它约 125 积分,只能在关键词路径不足且能说明缺口时升级一次。

默认路由

按下面顺序判断:

  1. 用户给了明确关键词、案由词、争点词:
    • 先走 case-keyword
  2. 用户给的是一整段争议描述,希望找类似案子:
    • 先提炼案由、争点、核心事实、法律关系等关键词,再走 case-keyword
  3. 关键词结果太少:
    • 换案由词、争点词、合同类型、法院层级或核心事实词后重试
  4. 两轮有理由的关键词仍缺少事实相似案例:
    • 只升级调用一次 case-semantic,并记录为什么升级

不要因用户提供整段案情就直接走语义检索。先由 AI 提炼关键词,通常 25 积分路径已经足够。

推荐工作流

  1. 先把用户问题收敛成“想看哪类案例样本”。
  2. 选择 case-keyword。
  3. 用 tools 确认真实 <toolName> 与参数名。
  4. 完成一次检索。
  5. 只整理当次返回里的案号、法院、裁判日期、摘要、链接等信息。
  6. 若结果不足,先做一次有理由的关键词补检索;仍不足才升级语义,不并发调用。

失败与降级

允许的失败输出

当前未拿到法宝案例检索结果。

失败原因:
- [未认证 / Token 失效 / 无订阅 / 无结果 / 工具不存在 / 命令报错]

建议动作:
- 检查 `pkulaw-mcp` 配置与 Token
- 检查对应服务是否已订阅
- 将争议点改写得更具体后重试

允许的降级方式

  • case-keyword 结果太宽 -> 增加案由词、争点词、法院层级或核心事实词
  • case-keyword 结果太少 -> 换同义词、案由词、法律关系词后重试
  • 仍无结果 -> 尝试用户提供判决书或可靠网页原文;仍缺样本时明确说明,不凭空概括裁判倾向

终端复现与排障

如需在终端复现,请先安装 @pkulaw/mcp-cli;安装后命令为 pkulaw-mcp。

pkulaw-mcp tools case-keyword
pkulaw-mcp case-keyword <toolName> --title "房屋租赁"
pkulaw-mcp tools case-semantic

说明:

  • <toolName> 必须以 pkulaw-mcp tools <serverId> 的输出为准
  • 当前实测工具名为 get_case_list,但正式环境中仍应以 tools/list 返回为准

输出结构

按下面结构输出最稳:

  1. 问题重述
  2. 检索路径(关键词或语义,为什么这样选)
  3. 关键案例片段
  4. 样本观察
  5. 待复核点

Read the full file on GitHub · 125 lines

Files

What ships with it

3 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. 17d ago Changed b5ffb56a8624
  2. 1mo ago First seen · 125 lines · 122 tokens per session scan A 2ddccfc0764d

Subscribe to this mod's changes

pkulaw-mcp-case-retrieval is a skill published in the GitHub repository NEU-ZHA/legal-ai-skills (68 stars, last pushed 18d ago), licensed MIT. It adds 122 tokens to every session and 1,598 once invoked, about $0.0005 per session on Opus 5.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-30.

Related

Other skills, from other repositories

fto-triage

Freedom-to-operate triage — a structured first look at potentially blocking patents, not an FTO opinion. Use when a product, process, or feature is being evaluated for blocking patents, when asked whether anything stops a launch, or to build a claim-chart first pass against the most plausible patents before patent…

anthropics/claude-for-legal · 81 tokens

legal-hold

Issue, refresh, release, or report on legal holds — drafts the hold notice as .docx, updates legalhold fields in log.yaml, and calendars the next refresh. Use when the user says "issue a hold", "refresh hold", "release hold", or asks for a portfolio-wide hold status report.

anthropics/claude-for-legal · 68 tokens

specification-writing

A workflow for writing complete patent specifications from patent claims and an invention disclosure. It adapts the document to a chosen jurisdiction, such as the US, Europe, or China.

wanshuiyin/Auto-claude-code-research-in-sleep · 49 tokens

terms-of-service

Draft terms of service and a companion privacy notice matched to the product's form and feature modules, not legal advice, delivered as a Word document.

genspark-ai/genoffice · 32 tokens

x-scorecard

OpenSSF Scorecard for assessing open source project security. Check security best practices and compliance. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 57 tokens

ai-risk-management

Apply the NIST AI Risk Management Framework (AI RMF 1.0) and adjacent guidance to AI / ML systems — model lifecycle governance, fairness and bias evaluation, robustness, transparency, accountability, third-party model risk, monitoring for drift, and AI incident response. Broader than prompt-injection (which is the…

briiirussell/cybersecurity-skills · 180 tokens