pkulaw

pkulaw is a skill for Claude Code, Codex from netease-youdao/LobsterAI. It costs 438 tokens per session (9,779 once invoked), scanned A, original, MIT.

A search connection to the Pkulaw database of mainland Chinese laws, court decisions, legal documents, and amendment history.

In plain words
What is it for?
It is for legal research, checking citations, comparing old and new provisions, finding similar cases, and supporting contracts or compliance work under mainland Chinese law.
Why use it?
It helps verify the exact wording, status, article number, case number, and applicable version of Chinese legal sources instead of relying on memory.

Skill for Claude CodeCodex

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

Good fit It is for legal research, checking citations, comparing old and new provisions, finding similar cases, and supporting contracts or compliance work under mainland Chinese law.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/netease-youdao/lobsterai/pkulaw
About the project

LobsterAI is an open-source desktop AI agent that operates files, commands, browsers, documents, spreadsheets, slides, messaging channels, and scheduled jobs in a user's working environment. It supports office work, research, and custom multi-agent workflows, while catalogue add-ons extend the agent with additional skills and workflows.

netease-youdao/LobsterAI · 6,247 stars · on GitHub · lobsterai.youdao.com

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 netease-youdao/LobsterAI --skill pkulaw
Clone the repo
git clone --depth 1 https://github.com/netease-youdao/LobsterAI

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/netease-youdao/lobsterai/pkulaw/github.svg)](https://agentmods.dev/skills/netease-youdao/lobsterai/pkulaw)
Your own site
<a href="https://agentmods.dev/skills/netease-youdao/lobsterai/pkulaw"><img src="https://agentmods.dev/badge/skills/netease-youdao/lobsterai/pkulaw/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/netease-youdao/lobsterai/pkulaw"><img src="https://agentmods.dev/badge/skills/netease-youdao/lobsterai/pkulaw.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 438 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,779 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.00438 $0.09779
Opus 5.5 $0.00175 $0.03912
Sonnet 5.5 $0.00088 $0.01956
Haiku 4.5 $0.00044 $0.00978

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

Security

Grade A, and why

pkulaw 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 2d 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/SKILL.md · 318 lines

How it starts

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

北大法宝·法律智能检索

本连接器由法宝 MCP 平台(https://mcp.pkulaw.com )提供,接入北大法宝官方法律数据库:中国大陆法律法规、法条、司法解释、司法案例、检察文书、行政执法文书,以及法规沿革与引用核验。每条结果都附 https://www.pkulaw.com 原文链接,可追溯、可复核。

法律结论只能来自本次工具返回的内容,不凭模型记忆写法名、条号、条文、案号或数额。

本 Skill 只规定流程:先查什么、再核什么、怎么写。各工具的参数怎么填、返回字段是什么意思、结果的可信级别,以工具自身说明为准;本 Skill 与工具说明不一致时,以工具说明为准。

工具名以连接后的 tools/list 为准。本文用短名(如 get_law_article);部分客户端会加连接器前缀(如 mcp__pkulaw__get_law_article),按列表中的完整名称调用。

一、何时使用 / 何时不用

使用

  • 查中国大陆法律法规、法条原文、司法解释,或判断某部法、某一条是否现行有效
  • 法律咨询中找法条依据和类案:劳动争议、婚姻家事、继承、借贷、租赁、合同、侵权、公司股权、刑事罪名与量刑、行政处罚与复议
  • 找指导性案例、公报案例、典型案例,研判裁判倾向
  • 找起诉书、不起诉决定书、抗诉书等检察文书,或行政处罚决定书
  • 查法规改过几次、某一条怎么改的、某个时点适用哪一版、两版差在哪里
  • 合同审查、合规清单、法律意见书、尽职调查中找依据、核依据
  • 核验一段文字中的法规名称、条号、条文和案号,并补上原文链接
  • 涉外合同的法律适用、外国判决在中国大陆的承认与执行、港澳台居民或外国人在中国大陆办事:按中国大陆法检索

不用

场景 回复口径 仍可提供
境外法律本身(美国、英国、香港等法域的具体规定) 本服务只提供中国大陆法律资料,境外法律请咨询相应法域的专业人士 中国大陆的对应规定或冲突规范
预测个案胜负、判几年 无法预测个案结果 相关法条、法定刑幅度、类案裁判倾向、需要准备的证据
推荐律师 请通过律师协会或正规渠道选择执业律师 —
查特定企业或个人的征信、工商登记、失信、犯罪记录、涉诉情况 本服务不提供此类信息,也不按姓名查人 相关制度本身的法律规定
批量导出法规或裁判文书全文、构建数据集 不支持 按细分主题分次列出

提问不清楚时

  • 缺关键事实(如只说「我被坑了」):先追问 1~2 个关键问题(发生了什么、金额多少、在哪个地区),再检索。
  • 一次问多件事:拆开编号逐一作答,每件单独检索,先答能直接判断的。
  • 代写文书(起诉状、律师函等):先检索依据,再给模板,事实部分用【】占位,不编造事实。
  • 非中文提问:检索时改写成中文法律用语,用用户的语言回答,法条原文保留中文。

二、工具清单

用途 工具 什么时候选它
精准取一条 get_law_article 已知法名和条号。法名后写版本(如「公司法(2018修正)」)只取那一版
连续取多条 get_law_articles_by_range 已知法名,要读相邻几条或一节,一次最多跨 10 个条号
按案情找法条 search_law_articles 用户描述事实或问题,说不出法名条号
按条文用词找法条 search_law_articles_by_keyword 找「哪些条文写了某个概念」,如「格式条款」「敏感个人信息」
按主题找法规 search_laws 要相关法规而不要条文,如「某问题有哪些规定」「某法的司法解释」
按标题或文号列法规 search_laws_by_keyword 有标题、文号,或要按时效、位阶、地域、日期筛选;做合规清单;查某法是否现行
法规版本链 list_law_versions 「这部法改过几次、哪一版现行」
某条的沿革 get_law_article_history 「这一条怎么改的、某天适用哪一版、当年是第几条」
某条两版差异 diff_law_article_versions 「两个版本差在哪」
关联法规 list_related_legal_materials 司法解释、上位法与下位法、草案、修改或废止依据
按案情找类案 search_cases 「有没有类似案例、法院怎么判」
按条件查案例 search_cases_by_keyword 有案号、标题、案由、当事人、罪名,或要按参照级别、法院、程序、日期筛选
检察文书 search_procuratorate 起诉书、不起诉决定书、抗诉书、刑事申诉复查决定书
行政执法文书 search_enforcement 行政处罚、行政处理、市场禁入
识别法规引用 recognize_law_citations 一段文字里引用了哪些法规和条款
识别案号 recognize_case_numbers 一段文字里的案号是否在库、对应哪件案例
核验法条引用 verify_law_citations 核对草稿里的法名、条号、条文与原文是否一致
加法规链接 add_law_links 正文已写好,要给法规名和条号加链接
积分余额 get_points_balance 用户问积分,或业务工具提示积分不足
积分用量 get_points_usage 用户问最近用了多少积分、哪个服务最费积分;最多查询近 30 天
开通状态 list_entitlements 用户问开了哪些服务,或业务工具提示服务未开启
问题反馈 submit_feedback 用户要求或同意把数据错误、查不到、报错、结果不相关等问题提交给北大法宝

Read the full file on GitHub · 318 lines

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. 2d ago First seen · 318 lines · 438 tokens per session scan A c9320630bfc8

Subscribe to this mod's changes

pkulaw is a skill published in the GitHub repository netease-youdao/LobsterAI (6,247 stars, last pushed yesterday), licensed MIT. It adds 438 tokens to every session and 9,779 once invoked, about $0.0018 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-12-04.

Related

pkulaw compared with skills from other repositories

pkulaw next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pkulawnetease-youdao/LobsterAISkill6.2kyesterdayMITA438Claude Code, Codex
image-genTGYD-helige/piSkill972d agoApache-2.0A61Claude Code, Codex
civic-publish-gatejmagly/aiwgSkill234todayMITA35Claude Code, Codex
editorial-correction-reviewjmagly/aiwgSkill234todayMITA26Claude Code, Codex
data-analysisUpsonic/UpsonicSkill8.0k5mo agoMITA138Claude Code, Codex
experiment_managementUpsonic/UpsonicSkill8.0k5mo agoMITA0Claude Code, Codex
summarizationUpsonic/UpsonicSkill8.0k5mo agoMITA144Claude Code, Codex