Agent skill

New Case

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

将案件/咨询/商标/专利材料整理成标准化目录结构,并可从用户描述或已有本地目录学习个人文档规范,存入不公开的本地覆盖配置。支持诉讼、咨询、商标和专利四种预设。本技能应在用户需要创建新案件、初始化或整理案件目录,或说“学习我的目录习惯”“以这些项目为模板”时使用。不要用于:单独生成法律文书、进行法律研究、证据分析等非案件初始化任务。

CC-BY-NC-4.0Auto-check passedLegal & Compliance

Install New Case

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

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

GitHub CLI
$ gh skill install cat-xierluo/legal-skills new-case --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/new-case .claude/skills/new-case && 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
new-case
GitHub stars
720
Token cost
~3k tokens
SKILL.md length
678 words
Files
21 (incl. references, assets)
Skills in repo
62
Repo updated
First seen
Licence
CC-BY-NC-4.0

At a glance

将案件/咨询/商标/专利材料整理成标准化目录结构,并可从用户描述或已有本地目录学习个人文档规范,存入不公开的本地覆盖配置。支持诉讼、咨询、商标和专利四种预设。本技能应在用户需要创建新案件、初始化或整理案件目录,或说“学习我的目录习惯”“以这些项目为模板”时使用。不要用于:单独生成法律文书、进行法律研究、证据分析等非案件初始化任务。

  • Works in 6 steps: 新建诉讼案件档案,需要建立标准化目录结构 → 已有诉讼案件材料,需要整理成统一格式 → 整理潜在客户咨询材料,建立咨询档案 → …
  • Legal & Compliance work in your project
  • SKILL.md covers 适用场景, 触发方式, 工作流程 and 参考文档, plus 4 more sections
  • Calls pdftotext

What it does

New Case is an agent skill from cat-xierluo/legal-skills. 将案件/咨询/商标/专利材料整理成标准化目录结构,并可从用户描述或已有本地目录学习个人文档规范,存入不公开的本地覆盖配置。支持诉讼、咨询、商标和专利四种预设。本技能应在用户需要创建新案件、初始化或整理案件目录,或说“学习我的目录习惯”“以这些项目为模板”时使用。不要用于:单独生成法律文书、进行法律研究、证据分析等非案件初始化任务。

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 24 other files, including reference files and assets (for example `CHANGELOG.md`, `assets/consultation.yaml` and `assets/litigation.yaml`).

It sits in Legal & Compliance.

When your agent uses it

  • Legal & Compliance work in your project

Example prompts

  • “学习我的目录习惯”
  • “以这些项目为模板”
  • “/new-case”

Workflow steps

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

  1. 新建诉讼案件档案,需要建立标准化目录结构
  2. 已有诉讼案件材料,需要整理成统一格式
  3. 整理潜在客户咨询材料,建立咨询档案
  4. 接收新案件/新咨询,需要快速搭建框架
  5. 接收商标新业务(注册/异议/复审/无效/变更),需要建立知产专用目录结构
  6. 接收专利新业务(发明/实用新型/外观/无效/复审/检索/PCT/变更/年费),需要建立知产专用目录结构

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

    Shell commands in SKILL.md call:

    • pdftotext

    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

New Case loads about 3k tokens when it runs, and up to ~11k if it reads all its reference files. Until then it costs about 44 tokens; SKILL.md has 678 words of instructions outside code blocks.

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

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 678 words (~3,000 tokens).

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

Read the full SKILL.md on GitHub

Files

SKILL.md and 20 other files (references, assets) in skills/new-case of cat-xierluo/legal-skills.

  • SKILL.md
  • CHANGELOG.md
  • LICENSE.txt
  • assets/consultation.yaml
  • assets/litigation.yaml
  • assets/patent.yaml
  • assets/trademark.yaml
  • config/local-conventions.example.yaml
  • references/classification-guide.md
  • references/extraction-rules.md
  • references/local-conventions.md
  • references/naming-conventions.md
  • templates/case-info.md
  • templates/consultation-info.md
  • templates/deadline-yaml.md
  • templates/patent-info.md
  • templates/patent-task-list.md
  • … and 4 more

Open the folder on GitHubat commit db2c58c

Compare with similar skills

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

New Case compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
New Case this skillcat-xierluo/legal-skills720—~3kAutomated safety check: PassCC-BY-NC-4.0
Paper to Chinese Patent DrafterYuan1z0825/nature-skills47k1 repos~1.1kAutomated safety check: PassApache-2.0
C15tc15t/c15t1.9k1 repos~1.6kAutomated safety check: PassApache-2.0
Contract Reviewevolsb/claude-legal-skill4641 repos~3.6kAutomated safety check: PassMIT
Legal Clinic Client Intakeanthropics/claude-for-legal9.6k3 repos~3.2kAutomated safety check: PassApache-2.0
Paper To Cn Patentsnipp-zha/Paper-to-patent-Skill1071 repos~959Automated safety check: PassNone

Similar skills

  • Paper to Chinese Patent Drafter

    Yuan1z0825/nature-skills

    Drafts Chinese invention patent applications and technical disclosures from research papers or inventor materials, tying each claim feature to source evidence.

    47k GitHub starsUsed in 1 repo~1.1k tokens
    Legal & ComplianceAuto-check passed
  • C15t

    c15t/c15t

    Work with c15t consent management docs, APIs, and integrations for Next.js, React, and JavaScript.

    1.9k GitHub starsUsed in 1 repo~1.6k tokens
    Legal & ComplianceAuto-check passed
  • Contract Review

    evolsb/claude-legal-skill

    Review legal contracts, NDAs, employment agreements, SaaS terms, and M&A documents.

    464 GitHub starsUsed in 1 repo~3.6k tokens
    Legal & ComplianceAuto-check passed
  • Legal Clinic Client Intake

    anthropics/claude-for-legal

    Official

    Structures a legal clinic client intake interview and produces a case summary with cross-area issue spotting, conflict flags and triage classification.

    9.6k GitHub starsUsed in 3 repos~3.2k tokens
    Legal & ComplianceAuto-check passed
  • Paper To Cn Patent

    snipp-zha/Paper-to-patent-Skill

    Convert scientific papers, theses, technical reports, source code, figures, or research manuscripts into evidence-grounded Chinese invention patent drafts.

    107 GitHub starsUsed in 1 repo~959 tokens
    Legal & ComplianceAuto-check passed
  • Employment Contract Templates

    ynulihao/AgentSkillOS

    Create employment contracts, offer letters, and HR policy documents following legal best practices.

    618 GitHub starsUsed in 12 repos~4.1k tokens
    Legal & ComplianceAuto-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.

    720 GitHub stars~2.5k tokensUpdated today
    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.

    720 GitHub stars~2.2k tokensUpdated today
    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.

    720 GitHub stars~2.9k tokensUpdated today
    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.

    720 GitHub stars~2k tokensUpdated today
    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.

    720 GitHub stars~2.3k tokensUpdated today
    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.

    720 GitHub stars~1.4k tokensUpdated today
    Auto-check passed

Questions about New Case

What does New Case do?

将案件/咨询/商标/专利材料整理成标准化目录结构,并可从用户描述或已有本地目录学习个人文档规范,存入不公开的本地覆盖配置。支持诉讼、咨询、商标和专利四种预设。本技能应在用户需要创建新案件、初始化或整理案件目录,或说“学习我的目录习惯”“以这些项目为模板”时使用。不要用于:单独生成法律文书、进行法律研究、证据分析等非案件初始化任务。. New Case is an agent skill from cat-xierluo/legal-skills.

When should I use New Case?

New Case fits situations like: legal & Compliance work in your project.

How do I install New Case in Claude Code?

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

How do I install New Case in Codex?

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

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

What does New Case need to run?

Going by SKILL.md and its folder, New Case needs the command-line tools its instructions call (pdftotext).

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

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

How many tokens does New Case use?

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

What are the alternatives to New Case?

Skills that share tags, products or a category with New Case: Paper to Chinese Patent Drafter (Yuan1z0825/nature-skills, 47k stars), C15t (c15t/c15t, 1.9k stars), Contract Review (evolsb/claude-legal-skill, 464 stars) and Legal Clinic Client Intake (anthropics/claude-for-legal, 9.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains New Case?

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.