Agent skill

Case Retrieval

by THUYRan in THUYRan/Legal-Skills-Chinese

Trigger this skill when the user needs to find similar cases, related judgments, or adjudicative rules relevant to a current legal issue.

No licenceAuto-check passedLegal & Compliance

Install Case Retrieval

skills CLI
$ npx skills add THUYRan/Legal-Skills-Chinese --skill case-retrieval -a claude-code

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

GitHub CLI
$ gh skill install THUYRan/Legal-Skills-Chinese case-retrieval --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/THUYRan/Legal-Skills-Chinese.git skills-src && mkdir -p .claude/skills && cp -r skills-src/English/skills/case-retrieval .claude/skills/case-retrieval && 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
case-retrieval
GitHub stars
868
Token cost
~18k tokens
SKILL.md length
9,047 words
Files
2
Skills in repo
71
Repo updated
First seen
Licence
None found

At a glance

Trigger this skill when the user needs to find similar cases, related judgments, or adjudicative rules relevant to a current legal issue.

  • Works in 3 steps: Search-engine retrieval: Google, Baidu,… → WeChat article search: Almost every… → Preliminary database search: “Like-case…
  • This skill when the user needs to find similar cases
  • SKILL.md covers Overview Table, Legal Disclaimer, I. Retrieval Foundations and… and II. Pre-Retrieval Preparation:…, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Case Retrieval is an agent skill from THUYRan/Legal-Skills-Chinese. Trigger this skill when the user needs to find similar cases, related judgments, or adjudicative rules relevant to a current legal issue. Typical triggers include: the user expressly asks to find similar cases or precedents; supporting a legal argument with prior judgments; case outcome prediction that requires reference to like cases; drafting legal documents that need citation of authoritative cases; analyzing judicial practice trends on a legal issue; comparing adjudicative positions of different courts or…

Its SKILL.md is about 18k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `README.md`).

It sits in Legal & Compliance, covering Legal research, Policy and terms drafting and Citation management.

When your agent uses it

  • This skill when the user needs to find similar cases
  • Related judgments
  • Adjudicative rules relevant to a current legal issue
  • Include: the user expressly asks to find similar cases

Example prompts

  • “/case-retrieval”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Search-engine retrieval: Google, Baidu, etc., with keywords such as “XX adjudicative view, XX adjudicative holding, XX big-data report, XX…
  2. WeChat article search: Almost every specialized legal issue has been analyzed and compiled in WeChat public accounts
  3. Preliminary database search: “Like-case retrieval” features on platforms such as PKULaw (北大法宝), Wolters Kluwer China Law (威科先行), and Faxin…

What it can do on your machine

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

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    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 no API keys, tokens, secrets or passwords.

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

Context cost

Case Retrieval loads about 18k tokens when it runs. Until then it costs about 191 tokens; SKILL.md has 9,047 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~191
When it runs · the whole SKILL.md, loaded when a task matches
~18k

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 passed

The automated check found no risky patterns in SKILL.md.

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); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 9,047 words (~18,025 tokens).

“Like-case retrieval means searching for and applying cases that are similar to the pending case in basic facts, disputed issues, and legal application, and that have already taken effect as judgments of a people’s court. Under China’s statute-based system, like-case…”

— opening of SKILL.md by THUYRan
name
case-retrieval

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in English/skills/case-retrieval of THUYRan/Legal-Skills-Chinese.

  • SKILL.md
  • README.md

Open the folder on GitHubat commit c31ef1f

Compare with similar skills

Case Retrieval 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.

Case Retrieval compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Case Retrieval this skillTHUYRan/Legal-Skills-Chinese868—~18kAutomated safety check: PassNone
Tw Legal RAGaa0101181514/tw-legal-rag327—~580Automated safety check: PassCustom licence
Contract Drafterrohasnagpal/legal-ai-skills175—~3.6kAutomated safety check: PassMIT
Statute Guidelawve-ai/awesome-legal-skills8361 repos~6.5kAutomated safety check: PassAGPL-3.0
Legal Design Assessmentlawve-ai/awesome-legal-skills836—~3.7kAutomated safety check: PassCC-BY-4.0
Icc Jeanne Sulzerlawve-ai/awesome-legal-skills836—~1.6kAutomated safety check: PassCustom licence

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.

    327 GitHub stars~580 tokensUpdated 4 days ago
    Legal & ComplianceAuto-check passed
  • Contract Drafter

    rohasnagpal/legal-ai-skills

    Drafts a complete contract from a term sheet, negotiated heads or plain instructions — parties, recitals, definitions, operative clauses, schedules and boilerplate — in a specified posture and…

    175 GitHub stars~3.6k tokensUpdated 7 days ago
    Legal & ComplianceAuto-check passed
  • Statute Guide

    lawve-ai/awesome-legal-skills

    First-pass framework for reading, interpreting, and structuring statutory analysis of US federal, state, and local law.

    836 GitHub starsUsed in 1 repo~6.5k tokens
    Legal & ComplianceAuto-check passed
  • Legal Design Assessment

    lawve-ai/awesome-legal-skills

    Audits a legal document against legal design principles. An agent skill from lawve-ai/awesome-legal-skills.

    836 GitHub stars~3.7k tokensUpdated 6 days ago
    Legal & ComplianceAuto-check passed
  • Icc Jeanne Sulzer

    lawve-ai/awesome-legal-skills

    Research, drafting, and analysis involving the International Criminal Court (Rome Statute system).

    836 GitHub stars~1.6k tokensUpdated 6 days ago
    Legal & ComplianceAuto-check passed
  • Droit Etrangers Asile

    lawve-ai/awesome-legal-skills

    Expertise complète en droit français des étrangers, de l'asile et de la nationalité — entrée et visas, séjour (CESEDA livre IV, AES, étranger malade, regroupement familial, métiers en tension)…

    836 GitHub stars~4.4k tokensUpdated 6 days ago
    Legal & ComplianceAuto-check passed

More from THUYRan/Legal-Skills-Chinese

All 71 skills in this repo
  • 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.

    868 GitHub stars~5k tokensUpdated 1 mo ago
    Auto-check passed
  • Case Lifecycle Planning

    THUYRan/Legal-Skills-Chinese

    Case full-lifecycle planning skill. An agent skill from THUYRan/Legal-Skills-Chinese.

    868 GitHub stars~1k tokensUpdated 1 mo ago
    Auto-check passed
  • Legal Abductive Reasoning

    THUYRan/Legal-Skills-Chinese

    Legal abductive reasoning skill for generating and evaluating the most reasonable explanatory hypotheses when evidence is incomplete or facts are ambiguous.

    868 GitHub stars~4k tokensUpdated 1 mo ago
    Auto-check passed
  • Teleological Interpretation

    THUYRan/Legal-Skills-Chinese

    Teleological interpretation skill (目的解释). An agent skill from THUYRan/Legal-Skills-Chinese.

    868 GitHub stars~4.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Trial Scheduling And Deadline Monitoring

    THUYRan/Legal-Skills-Chinese

    A skill your agent uses when the user needs to track or be reminded of hearing schedules, enforcement schedules, evidence-submission deadlines, appeal deadlines, service deadlines, preservation…

    868 GitHub stars~2k tokensUpdated 1 mo ago
    Auto-check passed
  • Analogical Reasoning

    THUYRan/Legal-Skills-Chinese

    Trigger this skill when the AI agent must handle any of the following situations: 1.

    868 GitHub stars~14k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Case Retrieval

What does Case Retrieval do?

Trigger this skill when the user needs to find similar cases, related judgments, or adjudicative rules relevant to a current legal issue. Case Retrieval is an agent skill from THUYRan/Legal-Skills-Chinese. Trigger this skill when the user needs to find similar cases, related judgments, or adjudicative rules relevant to a current legal issue.

When should I use Case Retrieval?

Case Retrieval fits situations like: this skill when the user needs to find similar cases; related judgments; adjudicative rules relevant to a current legal issue; include: the user expressly asks to find similar cases.

How do I install Case Retrieval in Claude Code?

Run `npx skills add THUYRan/Legal-Skills-Chinese --skill case-retrieval -a claude-code`. Or copy the skill folder (English/skills/case-retrieval in THUYRan/Legal-Skills-Chinese) into .claude/skills/case-retrieval in your project. Claude Code loads it when a task matches its description.

How do I install Case Retrieval in Codex?

Run `npx skills add THUYRan/Legal-Skills-Chinese --skill case-retrieval -a codex`. Or copy the skill folder (English/skills/case-retrieval in THUYRan/Legal-Skills-Chinese) into .agents/skills/case-retrieval in your project. Codex loads it when a task matches its description.

Can I use Case Retrieval 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 THUYRan/Legal-Skills-Chinese --skill case-retrieval -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/case-retrieval, .gemini/skills/case-retrieval, .github/skills/case-retrieval and .opencode/skills/case-retrieval in your project.

What does Case Retrieval need to run?

SKILL.md names no scripts, command-line tools or credentials: Case Retrieval is instructions for the agent only.

Does Case Retrieval 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 Case Retrieval safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Case Retrieval use?

No licence was found for Case Retrieval or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Case Retrieval use?

About 18k tokens (SKILL.md is roughly 72k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Case Retrieval?

Skills that share tags, products or a category with Case Retrieval: Tw Legal RAG (aa0101181514/tw-legal-rag, 327 stars), Contract Drafter (rohasnagpal/legal-ai-skills, 175 stars), Statute Guide (lawve-ai/awesome-legal-skills, 836 stars) and Legal Design Assessment (lawve-ai/awesome-legal-skills, 836 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Case Retrieval?

THUYRan (a GitHub user) maintains it in THUYRan/Legal-Skills-Chinese, which has 868 GitHub stars. The repository holds 71 skills in this directory. The repository was last updated on August 22, 2026.

Source: THUYRan/Legal-Skills-Chinese on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.