legal-search

legal-search is a skill for Claude Code, Codex from open-octo/octo-agent. It costs 99 tokens per session (2,561 once invoked), scanned A, original, MIT.

A research aid for finding and citing current mainland Chinese laws, administrative regulations, judicial interpretations, and guiding cases. It distinguishes binding legal rules from cases that courts should refer to but are not legally binding in the same way.

In plain words
What is it for?
Use it to locate specific legal provisions, verify their current status, and prepare citations with the document name, issuing details, effective date, article number, and exact wording.
Why use it?
It reduces the risk of relying on outdated rules, incorrect quotations, or vague claims about what the law says.

Skill for Claude CodeCodex

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

Good fit Use it to locate specific legal provisions, verify their current status, and prepare citations with the document name, issuing details, effective date, article number, and exact wording.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/open-octo/octo-agent/legal-search
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 open-octo/octo-agent --skill legal-search
Clone the repo
git clone --depth 1 https://github.com/open-octo/octo-agent

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-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/open-octo/octo-agent/legal-search/github.svg)](https://agentmods.dev/skills/open-octo/octo-agent/legal-search)
Your own site
<a href="https://agentmods.dev/skills/open-octo/octo-agent/legal-search"><img src="https://agentmods.dev/badge/skills/open-octo/octo-agent/legal-search/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-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/open-octo/octo-agent/legal-search"><img src="https://agentmods.dev/badge/skills/open-octo/octo-agent/legal-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,561 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.00099 $0.02561
Opus 5 $0.00049 $0.01281
Sonnet 5 $0.00020 $0.00512
Haiku 4.5 $0.00010 $0.00256

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

Security

Grade A, and why

legal-search 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 8d 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.

internal/skills/experts/legal-search/SKILL.md · 162 lines

How it starts

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

系统性地找到、核实、引用现行有效的中国大陆法律依据,而不是凭印象说"法律规定 大概是这样"。核心纪律:只引用你真正检索到、能看到原文的规范,检索不到就 如实说检索不到,不用训练知识里的印象填空。

检索范围与位阶

按效力层级从高到低系统检索,遇到冲突时高位阶优先:

层级 制定机关 效力
法律 全国人大及其常委会 最高(低于宪法)
行政法规 国务院 低于法律
司法解释 最高人民法院、最高人民检察院 具有法律效力,各级法院必须适用
部门规章 国务院各部委 低于行政法规
地方性法规/地方政府规章 省级/设区市人大、政府 仅在其行政区域内有效
指导性案例 最高人民法院/最高人民检察院发布 具有参照效力(应参照,非强制适用)
典型案例 最高人民法院等发布 仅供参考,不具法律约束力

不要混淆"司法解释"(有法律效力)和"指导性案例"(有参照效力)——这是最常见 的检索错误之一。

官方免费检索渠道

优先用这些,不臆测某条规定的具体内容:

渠道 网址 用途
国家法律法规数据库 flk.npc.gov.cn 法律、行政法规官方原文
全国人大官网 www.npc.gov.cn 法律文本
国务院官网 www.gov.cn 行政法规原文
中国裁判文书网 wenshu.court.gov.cn 公开裁判文书
人民法院案例库 rmfyalk.court.gov.cn 最高法权威案例
最高人民法院官网 www.court.gov.cn 司法解释、指导性案例、典型案例
北大法宝 www.pkulaw.cn 综合法规数据库(部分内容需订阅)

检索失败、找不到权威原文时,明确告诉用户"未能检索到官方原文",不要退而用训练 知识里的印象替代——这比"检索不到"更容易造成错误依赖。

法条引用六要素

每一条法律依据都必须包含以下要素,不能只写"根据XX法规定":

要素 说明 示例
文件名称 完整名称 《中华人民共和国劳动合同法》
文号 制定机关和文件编号 主席令第65号
生效时间 何时生效/最近一次修订 2008年1月1日起施行
条款编号 具体到条(能到款、项更好) 第四十七条
原文引用 逐字引用条文原文,不要转述 "经济补偿按劳动者在本单位工作的年限,每满一年支付一个月工资的标准向劳动者支付……"
效力状态 有效/已修改/已废止 有效

引用司法解释时额外标注发布机关和文号格式(如"法释〔2020〕17号");引用地方性 规定时标注适用的行政区域范围(如"仅适用于上海市")。

案例引用规范与真实性铁律

这是最重要的纪律:绝不编造案例(案号、案情、裁判结果都不能编)。

每个案例引用必须包含:案例名称、案例类型(指导性案例/典型案例/公报案例/公开 判决书)、来源(发布机关或收录平台)、发布/判决日期、裁判要点(逐字或准确概括 原文)、相关法条、效力说明。

来源优先级(从高到低):

优先级 来源 效力
最高 最高人民法院指导性案例 具有参照效力,各级法院审理类似案件应参照
最高人民法院公报案例 具有参考价值
最高人民检察院指导性案例 具有参照效力
中国裁判文书网公开判决 需核实真实性(有真实案号和判决日期)
律师事务所专业文章中援引的案例 仅作参考,需核实
禁止 匿名来源、社交媒体、未经核实的案例、学术论文中未标注案号的案例 不可使用

禁止行为:

  • 编造案例(包括案号、案情、裁判结果)
  • 用"某案例""某公司"等模糊表述而不注明真实来源
  • 把推测或假设当作真实案例呈现
  • 把"典型案例"标注成"具有参照效力"(只有指导性案例才有)

检索不到真实案例支撑某个论点时,如实说"未检索到可靠的支撑案例",不要为了让 分析看起来完整就编一个。

条文互引梳理

标注法条之间的引用关系,帮助使用者理解规范体系:

  • 纵向引用(下位法引用上位法):如"《劳动合同法实施条例》第二十五条依据 《劳动合同法》第四十七条"
  • 横向引用(同位法内部):如"《劳动合同法》第八十七条的赔偿金计算引用了 第四十七条的经济补偿计算方式"
  • 司法解释引用法律:如"最高人民法院《关于审理劳动争议案件适用法律问题 的解释(一)》第一条依据《劳动争议调解仲裁法》"

Read the full file on GitHub · 162 lines

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. 8d ago First seen · 162 lines · 99 tokens per session scan A 987c45ee2c4c

Subscribe to this mod's changes

legal-search is a skill published in the GitHub repository open-octo/octo-agent (99 stars, last pushed yesterday), licensed MIT. It adds 99 tokens to every session and 2,561 once invoked, about $0.0005 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-09-03.

Related

Other skills, from other repositories

uspto-database

Access USPTO APIs for patent/trademark searches, examination history (PEDS), assignments, citations, office actions, TSDR, for IP analysis and prior art searches.

synthetic-sciences/openscience · 40 tokens

fda-database

Query openFDA API for drugs, devices, adverse events, recalls, regulatory submissions (510k, PMA), substance identification (UNII), for FDA regulatory data analysis and safety research.

synthetic-sciences/openscience · 43 tokens

ha-mac-control

Hope Agent native macOS desktop control — the standard maccontrol status / diagnostics / apps / dock / spaces / snapshot / visual / windows / menu / clipboard / dialog loop, target-first action rules, no-blind-coordinate policy, and recovery for stale AX/window/menu/dialog state. Load whenever using maccontrol, or…

shiwenwen/hope-agent · 139 tokens

ha-skill-creator

Create, edit, improve, or audit Hope Agent skills. Use when the user wants to: (1) create a new skill from scratch, (2) edit or improve an existing skill, (3) review or clean up a SKILL.md file, (4) run evaluations to test skill effectiveness, (5) optimize skill descriptions for better trigger accuracy. Trigger…

shiwenwen/hope-agent · 106 tokens

ha-browser

Hope Agent browser automation — the standard status → tabs → snapshot → act loop, stale-ref recovery rules, and what to do when login / 2FA / captcha / camera-prompt / dialog blocks progress. Load this skill whenever you reach for the browser tool. Trigger on: user asks the agent to open / control / click / scrape /…

shiwenwen/hope-agent · 140 tokens

ha-logs

A read-only troubleshooting skill for querying Hope Agent’s local SQLite databases, which store logs, conversations, and background-job status.

shiwenwen/hope-agent · 183 tokens