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,544 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,544 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.01544
Opus 5 $0.00061 $0.00772
Sonnet 5 $0.00024 $0.00309
Haiku 4.5 $0.00012 $0.00154

Measured 12d ago against content hash 2ddccfc0764d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 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/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. 未成功拿到 MCP 返回前,不得写出具体案号、法院名称、裁判日期或裁判要旨。
  2. 只允许基于当次返回内容做摘要,不得用模型记忆补齐案例细节。
  3. 关键词路径下,titlefulltext 至少有一项;具体参数名仍以 tools 输出为准。
  4. 出现 401/403、无结果、超时或工具不存在时,只能说明失败原因与下一步建议。
  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. 12d 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 (64 stars, last pushed 23d ago), licensed MIT. It adds 122 tokens to every session and 1,544 once invoked, about $0.0006 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-30.

Related

Other skills, from other repositories

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

regulatory-research-fallback

Fallback workflow for regulatory research when web extraction tools fail on government PDFs.

HKUDS/OpenSpace · 20 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

gesellschaftsrechtliche-satzungen-agb

Für Gesellschaftsrechtliche Satzungen AGB Abgrenzung: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: gesellschaftsrechtliche-satzungen-agb.

Klotzkette/claude-fuer-deutsches-recht · 69 tokens

memstack-business-gdpr

Use this skill when the user says 'GDPR', 'data protection', 'privacy compliance', 'DPA', 'DSAR', 'data subject request', 'cookie consent', 'privacy audit', 'CCPA', or asks 'do I need GDPR for this repo'. Scans the repository to detect what personal data is collected, classifies sensitivity, determines whether GDPR…

cwinvestments/memstack · 121 tokens

nda-review

Use when the user uploads or pastes a non-disclosure agreement and asks for review, redline, risk assessment, or a recommendation on whether to sign. Identifies missing standard protections, one-sided or unusual provisions, and operational issues; produces a structured report with severity ratings and citations to…

LegalQuants/lq-ai · 79 tokens