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.
npx skills add NEU-ZHA/legal-ai-skills --skill pkulaw-mcp-case-retrievalgit clone --depth 1 https://github.com/NEU-ZHA/legal-ai-skillsWrote 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.
[](https://agentmods.dev/skills/neu-zha/legal-ai-skills/pkulaw-mcp-case-retrieval)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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。
必须遵守的规则
- 未成功拿到 MCP 返回前,不得写出具体案号、法院名称、裁判日期或裁判要旨。
- 只允许基于当次返回内容做摘要,不得用模型记忆补齐案例细节。
- 关键词路径下,
title与fulltext至少有一项;具体参数名仍以tools输出为准。 - 出现
401/403、无结果、超时或工具不存在时,只能说明失败原因与下一步建议。 - 不得把
case-semantic当默认入口;它约 125 积分,只能在关键词路径不足且能说明缺口时升级一次。
默认路由
按下面顺序判断:
- 用户给了明确关键词、案由词、争点词:
- 先走
case-keyword
- 先走
- 用户给的是一整段争议描述,希望找类似案子:
- 先提炼案由、争点、核心事实、法律关系等关键词,再走
case-keyword
- 先提炼案由、争点、核心事实、法律关系等关键词,再走
- 关键词结果太少:
- 换案由词、争点词、合同类型、法院层级或核心事实词后重试
- 两轮有理由的关键词仍缺少事实相似案例:
- 只升级调用一次
case-semantic,并记录为什么升级
- 只升级调用一次
不要因用户提供整段案情就直接走语义检索。先由 AI 提炼关键词,通常 25 积分路径已经足够。
推荐工作流
- 先把用户问题收敛成“想看哪类案例样本”。
- 选择
case-keyword。 - 用
tools确认真实<toolName>与参数名。 - 完成一次检索。
- 只整理当次返回里的案号、法院、裁判日期、摘要、链接等信息。
- 若结果不足,先做一次有理由的关键词补检索;仍不足才升级语义,不并发调用。
失败与降级
允许的失败输出
当前未拿到法宝案例检索结果。
失败原因:
- [未认证 / 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返回为准
输出结构
按下面结构输出最稳:
- 问题重述
- 检索路径(关键词或语义,为什么这样选)
- 关键案例片段
- 样本观察
- 待复核点
补充材料
- 示例见 examples.md
- 法规检索见 pkulaw-mcp-law-retrieval
- 总路由见 pkulaw-mcp-legal-research
- npm CLI 包
@pkulaw/mcp-cli:https://gitee.com/pkulaw/pkulaw-mcp-cli · npm
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.
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.
- 12d ago First seen · 125 lines · 122 tokens per session scan A 2ddccfc0764d
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.
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.
regulatory-research-fallback
Fallback workflow for regulatory research when web extraction tools fail on government PDFs.
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.
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.
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…
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…