Agent skill

Legal Case Analysis

by cat-xierluo in cat-xierluo/legal-skills

本技能应在用户需要基于案件材料、咨询材料、合同资料、证据材料或检索结果进行法律分析、案件研判、风险评估、诉讼策略、刑事案件研判与审查起诉分析、非诉风险判断、客户说明或法律分析报告时使用。它是法律任务的前置分析引擎,不要求每次都生成正式报告。不要用于:单纯 OCR、单纯法条案例检索、单纯 Word 排版转换、仅需包装服务方案且无需新增法律分析的文档生成。

CC-BY-NC-4.0Auto-check passedDocuments & Office

Install Legal Case Analysis

skills CLI
$ npx skills add cat-xierluo/legal-skills --skill legal-case-analysis -a claude-code

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

GitHub CLI
$ gh skill install cat-xierluo/legal-skills legal-case-analysis --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/cat-xierluo/legal-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/legal-case-analysis .claude/skills/legal-case-analysis && 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
legal-case-analysis
GitHub stars
720
Token cost
~1k tokens
SKILL.md length
114 words
Files
26 (incl. references)
Skills in repo
62
Repo updated
First seen
Licence
CC-BY-NC-4.0

At a glance

本技能应在用户需要基于案件材料、咨询材料、合同资料、证据材料或检索结果进行法律分析、案件研判、风险评估、诉讼策略、刑事案件研判与审查起诉分析、非诉风险判断、客户说明或法律分析报告时使用。它是法律任务的前置分析引擎,不要求每次都生成正式报告。不要用于:单纯 OCR、单纯法条案例检索、单纯 Word 排版转换、仅需包装服务方案且无需新增法律分析的文档生成。

  • Works in 10 steps: 先整理事实,再适用法律。 → 先区分证据与陈述,再形成判断。 → 先用 yuandian-law-search… → …
  • Documents & Office work in your project
  • SKILL.md covers 核心原则, 输入, 输出 and 工作方法, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Legal Case Analysis is an agent skill from cat-xierluo/legal-skills. 本技能应在用户需要基于案件材料、咨询材料、合同资料、证据材料或检索结果进行法律分析、案件研判、风险评估、诉讼策略、刑事案件研判与审查起诉分析、非诉风险判断、客户说明或法律分析报告时使用。它是法律任务的前置分析引擎,不要求每次都生成正式报告。不要用于:单纯 OCR、单纯法条案例检索、单纯 Word 排版转换、仅需包装服务方案且无需新增法律分析的文档生成。

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 27 other files, including reference files (for example `CHANGELOG.md`, `examples/contest-sample-analysis.md` and `examples/skill-iteration-evaluation.md`).

It sits in Documents & Office.

When your agent uses it

  • Documents & Office work in your project

Example prompts

  • “/legal-case-analysis”

Workflow steps

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

  1. 先整理事实,再适用法律。
  2. 先区分证据与陈述,再形成判断。
  3. 先用 yuandian-law-search 完成基础法律检索,再基于检索结果进行法律分析。
  4. 先提出检索问题,再引用法律依据。
  5. 诉讼场景优先使用要件式分析:请求权基础、构成要件、事实、证据、证明责任和抗辩逐项对应。
  6. 每个重要结论都应对应事实来源、证据来源或检索依据。
  7. 材料未提及的信息,标注“未提及”或“待补充”,不得自行补全。
  8. 对争议材料同时评价真实性、关联性、合法性和证明目的。
  9. 对涉及时效、期间、新旧法、司法解释变化的问题,必须单独校验。
  10. 不得凭记忆写出具体法条条号、司法解释全称或案号。条号必须来自本次检索结果或用户提供的材料;未经检索时只写规则内容与法律名称(如「著作权法关于法定赔偿的规定」),并标注「条号待检索」。这条适用于报告全文,不限于管辖章节——凭记忆的条号看起来最专业,却是最危险的错误。

What it can do on your machine

Read from SKILL.md and the folder at commit db2c58c. 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.

    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

Legal Case Analysis loads about 1k tokens when it runs, and up to ~20k if it reads all its reference files. Until then it costs about 49 tokens; SKILL.md has 114 words of instructions outside code blocks.

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

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

Its licence (CC-BY-NC-4.0) doesn't allow us to republish the file, so here is its outline and opening line. It has 114 words (~1,022 tokens).

name
legal-case-analysis
homepage
https://github.com/cat-xierluo/legal-skills
author
杨卫薪律师(微信ywxlaw)
version
1.0.0
license
CC-BY-NC

Read the full SKILL.md on GitHub

Files

SKILL.md and 25 other files (references) in skills/legal-case-analysis of cat-xierluo/legal-skills.

  • SKILL.md
  • CHANGELOG.md
  • LICENSE.txt
  • examples/contest-sample-analysis.md
  • examples/skill-iteration-evaluation.md
  • references/analysis-engine-boundary.md
  • references/anonymization-output.md
  • references/argument-risk-assessment.md
  • references/civil-commercial-analysis-workflow.md
  • references/criminal-case-analysis.md
  • references/element-litigation-nine-step.md
  • references/fact-evidence-extraction.md
  • references/issue-spotting.md
  • references/iteration-context.md
  • references/legal-research-bridge.md
  • references/legal-research-result-ingestion.md
  • references/report-depth-control.md
  • references/time-effectiveness-check.md
  • references/workflow.md
  • … and 7 more

Open the folder on GitHubat commit db2c58c

Compare with similar skills

Legal Case Analysis 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.

Legal Case Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Legal Case Analysis this skillcat-xierluo/legal-skills720—~1kAutomated safety check: PassCC-BY-NC-4.0
Markdown Article FormatterJimLiu/baoyu-skills27k6 repos~3.5kAutomated safety check: PassMIT
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
Obsidian MarkdownAtmosphere/atmosphere3.8k20 repos~1.3kAutomated safety check: PassApache-2.0
DOCXrvdbreemen/OTGW-firmware20733 repos~4.3kAutomated safety check: PassProprietary
Word Document Reader and WriterHKUDS/DeepTutor41k—~2.5kAutomated safety check: PassApache-2.0

Similar skills

  • Markdown Article Formatter

    JimLiu/baoyu-skills

    Reformats plain text or Markdown articles with frontmatter, a title, a summary, headings, bold, lists and code blocks, and saves a separate formatted copy.

    27k GitHub starsUsed in 6 repos~3.5k tokens
    Documents & OfficeAuto-check passed
  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • Obsidian Markdown

    Atmosphere/atmosphere

    Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax.

    3.8k GitHub starsUsed in 20 repos~1.3k tokens
    Documents & OfficeAuto-check passed
  • DOCX

    rvdbreemen/OTGW-firmware

    A skill your agent uses whenever the user wants to create, read, edit, or manipulate Word documents (.docx files).

    207 GitHub starsUsed in 33 repos~4.3k tokens
    Documents & OfficeAuto-check passed
  • Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.

    41k GitHub stars~2.5k tokensUpdated 3 days ago
    Documents & OfficeAuto-check passed
  • Crossposting

    wasp-lang/wasp

    Crosspost Wasp blog articles (MDX) to DEV.to and Medium. An agent skill from wasp-lang/wasp.

    19k GitHub stars~1.1k tokensUpdated today
    Documents & OfficeAuto-check passed

More from cat-xierluo/legal-skills

All 62 skills in this repo
  • Elements-Style Complaint Generator

    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.

    721 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check: notes
  • Lecture Performance Review

    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.

    721 GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed
  • De-AI Polish for Chinese Articles

    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.

    721 GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • GitHub Star Manager

    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.

    721 GitHub stars~2k tokensUpdated yesterday
    Auto-check: notes
  • Legal Harness Initializer

    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.

    721 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Moot Court Simulation Builder

    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.

    721 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed

Questions about Legal Case Analysis

What does Legal Case Analysis do?

本技能应在用户需要基于案件材料、咨询材料、合同资料、证据材料或检索结果进行法律分析、案件研判、风险评估、诉讼策略、刑事案件研判与审查起诉分析、非诉风险判断、客户说明或法律分析报告时使用。它是法律任务的前置分析引擎,不要求每次都生成正式报告。不要用于:单纯 OCR、单纯法条案例检索、单纯 Word 排版转换、仅需包装服务方案且无需新增法律分析的文档生成。. Legal Case Analysis is an agent skill from cat-xierluo/legal-skills.

When should I use Legal Case Analysis?

Legal Case Analysis fits situations like: documents & Office work in your project.

How do I install Legal Case Analysis in Claude Code?

Run `npx skills add cat-xierluo/legal-skills --skill legal-case-analysis -a claude-code`. Or copy the skill folder (skills/legal-case-analysis in cat-xierluo/legal-skills) into .claude/skills/legal-case-analysis in your project. Claude Code loads it when a task matches its description.

How do I install Legal Case Analysis in Codex?

Run `npx skills add cat-xierluo/legal-skills --skill legal-case-analysis -a codex`. Or copy the skill folder (skills/legal-case-analysis in cat-xierluo/legal-skills) into .agents/skills/legal-case-analysis in your project. Codex loads it when a task matches its description.

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

What does Legal Case Analysis need to run?

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

Does Legal Case Analysis 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 Legal Case Analysis 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 Legal Case Analysis use?

Legal Case Analysis is published under the CC-BY-NC-4.0 licence (declared in SKILL.md).

How many tokens does Legal Case Analysis use?

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

What are the alternatives to Legal Case Analysis?

Skills that share tags, products or a category with Legal Case Analysis: Markdown Article Formatter (JimLiu/baoyu-skills, 27k stars), Markitdown (ImCa0/just-laws, 781 stars), Obsidian Markdown (Atmosphere/atmosphere, 3.8k stars) and DOCX (rvdbreemen/OTGW-firmware, 207 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Legal Case Analysis?

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.