MCP Server Builder
anthropics/skills
Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.
元典法律检索与精选报告。查询中国法律法规、案例或围绕案件争点查找依据时使用;优先直接调用可用的元典 MCP,无 MCP 时使用 API。轻量理解问题、筛除不适用候选,按需生成可追溯报告。不要用于替代完整证据审查、诉讼方案或正式法律意见。
$ npx skills add cat-xierluo/legal-skills --skill yuandian-law-search -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install cat-xierluo/legal-skills yuandian-law-search --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/yuandian-law-search .claude/skills/yuandian-law-search && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "yuandian-law-search" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/yuandian-law-search into .claude/skills/yuandian-law-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yuandian-law-search", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/cat-xierluo/legal-skills/tree/main/skills/yuandian-law-searchType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add cat-xierluo/legal-skills --skill yuandian-law-search -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install cat-xierluo/legal-skills yuandian-law-search --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/yuandian-law-search .agents/skills/yuandian-law-search && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "yuandian-law-search" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/yuandian-law-search into .agents/skills/yuandian-law-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yuandian-law-search", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cat-xierluo/legal-skills --skill yuandian-law-search -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install cat-xierluo/legal-skills yuandian-law-search --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/yuandian-law-search .cursor/skills/yuandian-law-search && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "yuandian-law-search" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/yuandian-law-search into .cursor/skills/yuandian-law-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yuandian-law-search", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/cat-xierluo/legal-skills.git --path skills/yuandian-law-search--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add cat-xierluo/legal-skills --skill yuandian-law-search -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install cat-xierluo/legal-skills yuandian-law-search --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/yuandian-law-search .gemini/skills/yuandian-law-search && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "yuandian-law-search" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/yuandian-law-search into .gemini/skills/yuandian-law-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yuandian-law-search", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install cat-xierluo/legal-skills yuandian-law-searchInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add cat-xierluo/legal-skills --skill yuandian-law-search -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/yuandian-law-search .github/skills/yuandian-law-search && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "yuandian-law-search" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/yuandian-law-search into .github/skills/yuandian-law-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yuandian-law-search", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cat-xierluo/legal-skills --skill yuandian-law-search -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install cat-xierluo/legal-skills yuandian-law-search --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/yuandian-law-search .opencode/skills/yuandian-law-search && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "yuandian-law-search" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/yuandian-law-search into .opencode/skills/yuandian-law-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yuandian-law-search", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
yuandian-law-search元典法律检索与精选报告。查询中国法律法规、案例或围绕案件争点查找依据时使用;优先直接调用可用的元典 MCP,无 MCP 时使用 API。轻量理解问题、筛除不适用候选,按需生成可追溯报告。不要用于替代完整证据审查、诉讼方案或正式法律意见。
Yuandian Law Search is an agent skill from cat-xierluo/legal-skills. 元典法律检索与精选报告。查询中国法律法规、案例或围绕案件争点查找依据时使用;优先直接调用可用的元典 MCP,无 MCP 时使用 API。轻量理解问题、筛除不适用候选,按需生成可追溯报告。不要用于替代完整证据审查、诉讼方案或正式法律意见。
Its SKILL.md is about 880 tokens, which your agent loads only when the skill is triggered. The skill folder holds 68 other files, including scripts and reference files (for example `CHANGELOG.md`, `README.md` and `endpoints/01-law-vector-search.md`).
It works with Model Context Protocol. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit db2c58c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/, which the agent can run.
Shell commands in SKILL.md call:
brewapt-getFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
YD_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Yuandian Law Search loads about 882 tokens when it runs, and up to ~14k if it reads all its reference files. Until then it costs about 35 tokens; SKILL.md has 158 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
敏。原始文书、客户材料、Key 和归档不提交公开仓库。不要输出 `scripts/.env` 内容或把 Key 写入命令。脚本) | macOS:`brew install python`;Linux:`sudo apt-get install python3` |需要 API 时从环境变量 `YD_API_KEY` 或 `scripts/.env` 读取 Key,缺失时按 [API 入口](references/09-api-usage.md) 提示配置;不因 Key 缺失阻止使用现成 MCP 或整Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from cat-xierluo/legal-skills at commit db2c58c, republished under its MIT licence (© cat-xierluo). 158 words, ~882 tokens.
.claude/skills/yuandian-law-search/SKILL.md (or your agent's skills folder). This skill also uses 67 other files; get the full folder from GitHub.把中间层用于两件事:把问题问准,把返回材料选准。普通检索直接执行;不要把思维模型变成每次必填的表格。
普通对话不生成 research-plan.json、selected-sources.json,不运行合同校验,不强制拉详情、不自动语义加关键词双查。不要为凑正反两面另发请求:一次返回可以同时包含支持和反向材料。
YD_STRATEGY=aggressive/balanced/economical 是历史兼容配置,不再指挥法律检索,也不再改变 CLI 检索参数。不要先读取策略、更改用户配置或批量执行旧流程。只保留能改变检索或选材的判断,不要求展示内部推理全过程:
例如“提前退租能否没收保证金”,需要区分普通房屋租赁与融资租赁,并将“保证金是否构成违约金”作为待验证问题,不能预先认定。房屋过户与尾款问题,要比较同时履行还是先后履行;客户名单纠纷要看信息内容、保密措施及使用行为,不能只看“员工离职”。
涵摄是判断方式,不是固定输出工序。 只有多争点相互牵制、决定性依据冲突、用户明确要求深度案件研究/完整检索计划时,才按需加载 深度研究。不得仅因有案件事实或代理立场就升级。
先指出首轮尚未解决的缺口,再选择一个对应动作:
| 观察到的问题 | 有必要时的下一步 |
|---|---|
| 已知法名条号/案号,需要确定文本 | 精确详情;已有完整可核对文本则不重复取 |
| 结果混入近邻案型 | 补关键事实、换表达或使用该接口支持的过滤 |
| 语义结果主题对,但履行顺序/裁判命题不对 | 用已经发现的裁判用语做关键词/字段复检 |
| 零命中 | 检查参数、缩短过窄表达或换检索方式;不宣称“无类案” |
| 返回文本不足以支撑拟引用结论 | 只核验准备采用的来源;取得不到就披露未核实 |
| 缺的是案件事实或证据 | 提示补充,不用更多查询代替补证 |
已解决用户问题、没有新有效材料、或下一步超预算时停止并说明边界。关键词技巧和场景示例仅在需要时读 查询修正、检索示例。
MCP 连接配置/可选归档见 MCP 指南。不要为归档把整份工具响应重新手写成 JSON;有文件再用 ingest --input,没有则保留工具调用和来源链接即可。
CLI 默认写 archive/ 原始 JSON、per-call Markdown,通常另写工作目录副本;这些是候选底稿,不是正式报告。普通 API 检索优先加 --no-report 避免底稿冒充交付。
--no-report:不写 Markdown,仍写 archive JSON。--no-cwd-report:仅不写工作目录 Markdown。--no-archive:关闭全部检索留存;仍读取已有缓存,新查询不再入缓存,后续可能重复扣费。此开关不代替用户明确发起的 consolidate 报告写入。--archive-dir/YD_ARCHIVE_DIR:重定向归档。归档失败只告警,不吞响应、不自动重试。请求发送至 open.chineselaw.com,来源链接可能位于 ydzk.chineselaw.com;用最少必要事实,先脱敏。原始文书、客户材料、Key 和归档不提交公开仓库。不要输出 scripts/.env 内容或把 Key 写入命令。
MCP 路径只需客户端已配置元典工具,无本地 Python 或 API Key 前置要求。API/归档/报告脚本使用 Python 3 标准库,无第三方 Python 包。
| 依赖 | 安装方式 |
|---|---|
| Python 3(仅本地脚本) | macOS:brew install python;Linux:sudo apt-get install python3 |
需要 API 时从环境变量 YD_API_KEY 或 scripts/.env 读取 Key,缺失时按 API 入口 提示配置;不因 Key 缺失阻止使用现成 MCP 或整理已有结果。
© cat-xierluo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 67 other files (scripts, references) in skills/yuandian-law-search of cat-xierluo/legal-skills.
Open the folder on GitHubat commit db2c58c
Yuandian Law Search next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Yuandian Law Search this skillcat-xierluo/legal-skills | 720 | — | ~882 | Automated safety check: Notes | MIT | |
| MCP Server Builderanthropics/skills | 180k | 63 repos | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| MCP Server BuildershareAI-lab/learn-claude-code | 78k | 4 repos | ~1.2k | Automated safety check: Pass | MIT | |
| MCP Integration for Pluginsanthropics/claude-plugins-official | 38k | 11 repos | ~3.1k | Automated safety check: Pass | Apache-2.0 | |
| MCP Developmentcoollabsio/coolify | 63k | 1 repos | ~949 | Automated safety check: Pass | MIT | |
| Analyze Logsactivepieces/activepieces | 25k | 1 repos | ~1.6k | Automated safety check: Pass | MIT |
anthropics/skills
Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.
shareAI-lab/learn-claude-code
Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.
anthropics/claude-plugins-official
Explains how to bundle Model Context Protocol servers in a Claude Code plugin, covering config files, stdio, SSE, HTTP and WebSocket server types, and authentication.
coollabsio/coolify
A skill your agent uses for Laravel MCP development. An agent skill from coollabsio/coolify.
activepieces/activepieces
Analyze application logs from the .evlog/logs/ directory. An agent skill from activepieces/activepieces.
ComposioHQ/composio
Route and complete Composio work across Composio For You and Composio Platform.
cat-xierluo/legal-skills
Converts a lawyer's ordinary complaint or a described case into the Supreme People's Court's elements-style Word template, with layout checks on the result.
cat-xierluo/legal-skills
Analyzes raw lecture transcripts for verbal tics, pacing, time use and promise follow-through, with optional slide-by-slide comparison and cross-session tracking.
cat-xierluo/legal-skills
Detects and rewrites machine-sounding patterns in the body text of Chinese articles while keeping the author's facts, headings and legal terms intact.
cat-xierluo/legal-skills
Finds GitHub projects mentioned in articles or screenshots and stars them, tracks updates to your starred repos, and builds an HTML dashboard to browse them.
cat-xierluo/legal-skills
Sets up or incrementally updates AGENTS.md and CLAUDE.md for legal professionals, with a minimal safety baseline and a check that a new session loads and follows the rules.
cat-xierluo/legal-skills
Chinese-language skill that organizes a case file into a multi-role mock trial with judge, parties and clerk, producing a transcript, issue review and a to-strengthen list.
Works with
元典法律检索与精选报告。查询中国法律法规、案例或围绕案件争点查找依据时使用;优先直接调用可用的元典 MCP,无 MCP 时使用 API。轻量理解问题、筛除不适用候选,按需生成可追溯报告。不要用于替代完整证据审查、诉讼方案或正式法律意见。. Yuandian Law Search is an agent skill from cat-xierluo/legal-skills.
Yuandian Law Search fits situations like: tasks that involve MCP servers.
Run `npx skills add cat-xierluo/legal-skills --skill yuandian-law-search -a claude-code`. Or copy the skill folder (skills/yuandian-law-search in cat-xierluo/legal-skills) into .claude/skills/yuandian-law-search in your project. Claude Code loads it when a task matches its description.
Run `npx skills add cat-xierluo/legal-skills --skill yuandian-law-search -a codex`. Or copy the skill folder (skills/yuandian-law-search in cat-xierluo/legal-skills) into .agents/skills/yuandian-law-search in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cat-xierluo/legal-skills --skill yuandian-law-search -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/yuandian-law-search, .gemini/skills/yuandian-law-search, .github/skills/yuandian-law-search and .opencode/skills/yuandian-law-search in your project.
Going by SKILL.md and its folder, Yuandian Law Search needs the command-line tools its instructions call (brew and apt-get) and credentials named YD_API_KEY. Our summary lists: Python 3; A credential in YD_API_KEY.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file; runs commands with sudo), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Yuandian Law Search is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 882 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Yuandian Law Search: MCP Server Builder (anthropics/skills, 180k stars), MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars), MCP Integration for Plugins (anthropics/claude-plugins-official, 38k stars) and MCP Development (coollabsio/coolify, 63k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
cat-xierluo (a GitHub user) maintains it in cat-xierluo/legal-skills, which has 720 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on October 10, 2026.
Source: cat-xierluo/legal-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.