Agent skill

China Legal Research

by infometa in infometa/workbuddyskills

中国法条、案例、法规、企业风险与引用核验检索工具。Use when the legal expert needs current PRC statutes, cases, regulations, company risk data, or hallucination checks.

MITAuto-check: notesLegal & Compliance

Install China Legal Research

skills CLI
$ npx skills add infometa/workbuddyskills --skill china-legal-research -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install infometa/workbuddyskills china-legal-research --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/infometa/workbuddyskills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/experts/enterprise-legal-team/skills/china-legal-research .claude/skills/china-legal-research && rm -rf skills-src

Use ~/.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/

Facts

Skill name
china-legal-research
GitHub stars
348
Token cost
~483 tokens
SKILL.md length
219 words
Files
43 (incl. scripts, references)
Skills in repo
218
Repo updated
First seen
Licence
MIT

At a glance

中国法条、案例、法规、企业风险与引用核验检索工具。Use when the legal expert needs current PRC statutes, cases, regulations, company risk data, or hallucination checks.

  • The legal expert needs current PRC statutes
  • SKILL.md covers Use when, What was imported, API key and cost rule and Routing, plus 1 more section
  • Needs YD_API_KEY
  • Company risk data

What it does

China Legal Research is an agent skill from infometa/workbuddyskills. 中国法条、案例、法规、企业风险与引用核验检索工具。Use when the legal expert needs current PRC statutes, cases, regulations, company risk data, or hallucination checks. Requires user-provided YDAPIKEY; paid API calls consume credits.

Its SKILL.md is about 480 tokens, which your agent loads only when the skill is triggered. The skill folder holds 43 other files, including scripts and reference files (for example `references/01-law-vector-search.md`, `references/02-law-keyword-search.md` and `references/03-law-detail.md`).

It sits in Legal & Compliance, covering Legal research. The repository describes itself as: WorkBuddy skills / connectors / experts archive for offline study. The licence is MIT.

When your agent uses it

  • The legal expert needs current PRC statutes
  • Company risk data
  • Hallucination checks

Example prompts

  • “/china-legal-research”

Requirements

  • A credential in YD_API_KEY
  • Pre-approved tools (allowed-tools): Read, Bash

What it can do on your machine

Read from SKILL.md and the folder at commit 91b77ea. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/, which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • YD_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

China Legal Research loads about 483 tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 58 tokens; SKILL.md has 219 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~483
With references · SKILL.md plus every file in references/, read only if the agent opens them
~12k

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.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:26
    PI_KEY` environment variable or `scripts/.env`.
  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Bash

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.

SKILL.md

The full file from infometa/workbuddyskills at commit 91b77ea, republished under its MIT licence (© infometa). 219 words, ~483 tokens.

Download SKILL.mdSave it as .claude/skills/china-legal-research/SKILL.md (or your agent's skills folder). This skill also uses 42 other files; get the full folder from GitHub.
name
china-legal-research
description
中国法条、案例、法规、企业风险与引用核验检索工具。Use when the legal expert needs current PRC statutes, cases, regulations, company risk data, or hallucination checks. Requires user-provided YD_API_KEY; paid API calls consume credits.
allowed-tools
Read, Bash

中国法条与案例检索

This skill ports the useful parts of the yuan-dian legal search package into the enterprise legal team. It is the preferred data-backed source for China law questions when the user has configured an API key.

Use when

  • 用户要求查询中国法律条文、法规、司法解释或案例。
  • 专家需要核验法条、案例、裁判要旨是否真实存在。
  • 企业尽调需要查询涉诉、行政处罚、失信、商标、专利、欠税等公开风险线索。
  • 中国本地化分析需要把模型判断落到可追溯来源上。

What was imported

  • scripts/yd_search.py and its updater dependency.
  • 35 endpoint reference documents under references/.
  • No historical archive data and no API key were imported.

API key and cost rule

  • API key must come from YD_API_KEY environment variable or scripts/.env.
  • Do not invent results when the key is missing. Explain that a configured key is required.
  • Core law/case searches may run directly when the user asks for research.
  • High-cost calls such as case detail, enterprise deep dive, and hallucination detection should be confirmed first unless the user already asked for that depth.
  • Report API credit consumption after each call.

Routing

  • 法条依据:use search, keyword, or detail.
  • 案例检索:use case or case-semantic; fetch case-detail only after relevance is clear or user confirms.
  • 企业风险:start with enterprise-search, then enterprise-base / enterprise-summary, then selected enterprise-list dimensions.
  • 引用核验:use hall-detect only when the user asks or when a legal citation will materially affect the conclusion.

Output style

Return concise research findings with source labels, retrieval time, and what still needs lawyer verification. Keep the result usable for the relevant team member rather than dumping raw API JSON.

© infometa, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 42 other files (scripts, references) in experts/enterprise-legal-team/skills/china-legal-research of infometa/workbuddyskills.

  • SKILL.md
  • LICENSE.txt
  • references/01-law-vector-search.md
  • references/02-law-keyword-search.md
  • references/03-law-detail.md
  • references/04-case-semantic-search.md
  • references/05-case-keyword-search.md
  • references/06-case-keyword-search-authority.md
  • references/07-case-detail.md
  • references/08-regulation-search.md
  • references/09-regulation-detail.md
  • references/10-enterprise-search.md
  • references/11-enterprise-detail.md
  • references/12-hall-detect.md
  • references/13-enterprise-search-lightweight.md
  • references/14-enterprise-base-info.md
  • references/15-enterprise-aggregation-summary.md
  • references/16-enterprise-out-invest.md
  • references/17-enterprise-brand.md
  • references/18-enterprise-patent.md
  • … and 23 more

Open the folder on GitHubat commit 91b77ea

Compare with similar skills

China Legal Research 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.

China Legal Research compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
China Legal Research this skillinfometa/workbuddyskills348—~483Automated safety check: NotesMIT
Tw Legal RAGaa0101181514/tw-legal-rag328—~580Automated safety check: PassCustom licence
Design Award SearchSeanJ1ang/design-judge-skills712—~3kAutomated safety check: PassApache-2.0
China Lawyer AnalystCSlawyer1985/china-lawyer-analyst196—~3.3kAutomated safety check: PassNone
Billing And Litigation BudgetTHUYRan/Legal-Skills-Chinese874—~5kAutomated safety check: PassNone
Legal Issue ResearchGolden2002/legal-research-skill156—~6.8kAutomated safety check: PassMIT

Similar skills

  • Tw Legal RAG

    aa0101181514/tw-legal-rag

    Retrieve real Taiwan court judgments with verifiable citations before answering any question about Taiwan law or case law.

    328 GitHub stars~580 tokensUpdated today
    Legal & ComplianceAuto-check passed
  • Design Award Search

    SeanJ1ang/design-judge-skills

    Find and verify award-winning designs in the same or adjacent functional category through eight explicit relevance dimensions: problem and user, core function, sensing technology, intervention…

    712 GitHub stars~3k tokensUpdated 1 mo ago
    Legal & ComplianceAuto-check passed
  • China Lawyer Analyst

    CSlawyer1985/china-lawyer-analyst

    通过中国法律视角分析事件,运用成文法解释、指导案例参照、请求权基础分析等方法, 理解权利义务、评估责任风险、识别法律依据并推荐合规策略。

    196 GitHub stars~3.3k tokensUpdated 8 mo ago
    Legal & ComplianceAuto-check passed
  • Billing And Litigation Budget

    THUYRan/Legal-Skills-Chinese

    A skill your agent uses when the user needs to track or manage attorney hours, expert fees, and investigation costs; control litigation spend; or prepare timesheets or expense statements for clients.

    874 GitHub stars~5k tokensUpdated 1 mo ago
    Legal & ComplianceAuto-check passed
  • Legal Issue Research

    Golden2002/legal-research-skill

    中国法律全领域系统性检索专家. An agent skill from Golden2002/legal-research-skill.

    156 GitHub stars~6.8k tokensUpdated 1 mo ago
    Legal & ComplianceAuto-check passed
  • Tax Law Research

    Serein-81/financial_rag

    Searches current Chinese tax laws, rates and policy changes with Tavily web search, prioritizing government sources and flagging outdated or conflicting results.

    148 GitHub stars~997 tokensUpdated 4 mo ago
    Legal & ComplianceAuto-check: notes

More from infometa/workbuddyskills

All 218 skills in this repo
  • Campus Event Playbook

    infometa/workbuddyskills

    This skill should be used when planning, coordinating, running, or reviewing student-led campus events, including club recruitment, freshman mixers, welcome activities, small talks, competitions…

    349 GitHub stars~861 tokensUpdated today
    Auto-check passed
  • Teachany

    infometa/workbuddyskills

    K-12 interactive courseware creation. An agent skill from infometa/workbuddyskills.

    349 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check: notes
  • Weight Management HTML

    infometa/workbuddyskills

    A skill your agent uses when the adult weight-management MCP needs to be installed/set up in WorkBuddy (connector) or its result must be rendered as a standalone Chinese HTML plan.

    349 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Agent Browser

    infometa/workbuddyskills

    A skill your agent uses when the user needs browser automation, including opening web pages, taking screenshots, extracting page content, clicking elements, filling forms, or testing web flows.

    349 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • AI Research Radar

    infometa/workbuddyskills

    定时任务:每日研究简报。漏掉重要论文和行业报告?每天帮你盯着,关键信息一条不漏 This skill should be used when the user asks about 定时任务:每日研究简报.

    349 GitHub stars~438 tokensUpdated today
    Auto-check passed
  • Check Deck

    infometa/workbuddyskills

    Investment banking presentation quality checker. An agent skill from infometa/workbuddyskills.

    348 GitHub stars~687 tokensUpdated yesterday
    Auto-check passed

Questions about China Legal Research

What does China Legal Research do?

中国法条、案例、法规、企业风险与引用核验检索工具。Use when the legal expert needs current PRC statutes, cases, regulations, company risk data, or hallucination checks. China Legal Research is an agent skill from infometa/workbuddyskills. 中国法条、案例、法规、企业风险与引用核验检索工具。Use when the legal expert needs current PRC statutes, cases, regulations, company risk data, or hallucination checks.

When should I use China Legal Research?

China Legal Research fits situations like: the legal expert needs current PRC statutes; company risk data; hallucination checks.

How do I install China Legal Research in Claude Code?

Run `npx skills add infometa/workbuddyskills --skill china-legal-research -a claude-code`. Or copy the skill folder (experts/enterprise-legal-team/skills/china-legal-research in infometa/workbuddyskills) into .claude/skills/china-legal-research in your project. Claude Code loads it when a task matches its description.

How do I install China Legal Research in Codex?

Run `npx skills add infometa/workbuddyskills --skill china-legal-research -a codex`. Or copy the skill folder (experts/enterprise-legal-team/skills/china-legal-research in infometa/workbuddyskills) into .agents/skills/china-legal-research in your project. Codex loads it when a task matches its description.

Can I use China Legal Research in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add infometa/workbuddyskills --skill china-legal-research -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/china-legal-research, .gemini/skills/china-legal-research, .github/skills/china-legal-research and .opencode/skills/china-legal-research in your project.

What does China Legal Research need to run?

Going by SKILL.md and its folder, China Legal Research needs credentials named YD_API_KEY. Our summary lists: A credential in YD_API_KEY. Its frontmatter pre-approves these tools: Read, Bash.

Does China Legal Research access the network?

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.

Is China Legal Research safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file; pre-approves every shell command (allowed-tools: bash)), 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.

What licence does China Legal Research use?

China Legal Research is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does China Legal Research use?

About 483 tokens (SKILL.md is roughly 1.9k 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 12k tokens, read only when the agent opens those files.

What are the alternatives to China Legal Research?

Skills that share tags, products or a category with China Legal Research: Tw Legal RAG (aa0101181514/tw-legal-rag, 328 stars), Design Award Search (SeanJ1ang/design-judge-skills, 712 stars), China Lawyer Analyst (CSlawyer1985/china-lawyer-analyst, 196 stars) and Billing And Litigation Budget (THUYRan/Legal-Skills-Chinese, 874 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains China Legal Research?

infometa (a GitHub user) maintains it in infometa/workbuddyskills, which has 348 GitHub stars. The repository holds 218 skills in this directory. The repository was last updated on October 9, 2026.

Source: infometa/workbuddyskills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.