Agent skill

Moot Court Simulation Builder

by cat-xierluo in 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.

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

SKILL.md written in Chinese; this summary is our English description.

Install Moot Court Simulation Builder

skills CLI
$ npx skills add cat-xierluo/legal-skills --skill moot-court -a claude-code

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

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

At a glance

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 in 5 steps: 接收材料并确定演练范围 → 建立书记员记录与角色材料包 → 准备角色并自动推进发言 → …
  • Rehearsing a civil or criminal case argument before a real hearing
  • SKILL.md covers 1. 接收材料并确定演练范围, 2. 建立书记员记录与角色材料包, 3. 准备角色并自动推进发言 and 4. 异常与续接, plus 2 more sections
  • Calls python3 and brew

What it does

This skill turns existing case materials into a sourced, respondable, reviewable mock trial. The main agent doubles as scheduler and clerk and dispatches separate judge and party-side agents; subagents never message each other directly, and nothing resumes automatically once the main session ends. It first reads intake guidance to pull case type, jurisdiction, instance level, your side, claims or charges, and the material scope and time budget from context, asking only about gaps that would change the role setup or scope.

Civil cases default to judge, plaintiff and defendant roles; criminal cases to judge, prosecution and defense; each follows its own hearing reference. A clerk script (Python 3.9+, standard library only) starts a hearing run from a materials manifest, keeping public materials apart from each side's private ones; a party sees the public record and filed statements, never the other side's private strategy, and the judge gets no private material either. Formal turns follow a dispatch, hand-off, submit and commit cycle where only the clerk commits to the record, and the three-role setup names where it omits witnesses or experts. It is not for a verdict, legal advice, or drama without a case file.

When your agent uses it

  • Rehearsing a civil or criminal case argument before a real hearing
  • Running a mock cross-examination to find weak points in a case
  • Producing an issue-by-issue review and a list of evidence gaps to strengthen

Example prompts

  • “基于这份案卷组织一次民事模拟庭审,我方是原告。”
  • “Run a mock trial on this criminal case file and give me a list of what to strengthen.”
  • “法官角色提问环节,重点压一下证据链第3条的薄弱点。”

Requirements

  • Python 3.9 or newer with only the standard library
  • A case materials file (manifest plus public and private documents)

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. 接收材料并确定演练范围
  2. 建立书记员记录与角色材料包
  3. 准备角色并自动推进发言
  4. 异常与续接
  5. 庭后复核与交付

What it can do on your machine

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

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

    Shell commands in SKILL.md call:

    • python3
    • brew

    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

Moot Court Simulation Builder loads about 1.4k tokens when it runs, and up to ~24k if it reads all its reference files. Until then it costs about 38 tokens; SKILL.md has 204 words of instructions outside code blocks.

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

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); the scripts in this folder 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 204 words (~1,356 tokens).

“将现有材料组织成一次有来源、有回应、可复盘的模拟庭审。默认由主 Agent 兼任调度员与书记员,分派独立的法官和双方角色 Agent。无需 Subagent 相互发消息:主 Agent 收稿、入卷,再派发下一发言。文件不自行唤醒 Agent,主会话结束后不会自动继续。”

— opening of SKILL.md by cat-xierluo, CC-BY-NC-4.0
name
moot-court
version
1.2.4
author
杨卫薪律师(微信ywxlaw)
homepage
https://github.com/cat-xierluo/legal-skills
license
CC-BY-NC

Read the full SKILL.md on GitHub

Files

SKILL.md and 31 other files (scripts, references, assets) in skills/moot-court of cat-xierluo/legal-skills.

  • SKILL.md
  • CHANGELOG.md
  • DECISIONS.md
  • LICENSE.txt
  • TASKS.md
  • assets/civil-case.example.json
  • assets/claude-stream.example.jsonl
  • assets/criminal-case.example.json
  • assets/semantic-probe-reviewer.json
  • references/blind-probe.md
  • references/checklist.md
  • references/civil-hearing.md
  • references/clerk-protocol.md
  • references/criminal-hearing.md
  • references/drill.md
  • references/evaluation.md
  • references/information-model.md
  • references/intake.md
  • references/procedure-profiles.md
  • … and 13 more

Open the folder on GitHubat commit f844ebe

Compare with similar skills

Moot Court Simulation Builder 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.

Moot Court Simulation Builder compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Moot Court Simulation Builder this skillcat-xierluo/legal-skills721—~1.4kAutomated safety check: PassCC-BY-NC-4.0
Tw Legal RAGaa0101181514/tw-legal-rag328—~580Automated safety check: PassCustom licence
USPTO Patent and Trademark Datadavila7/claude-code-templates33k11 repos~4.6kAutomated safety check: PassMIT
Litigation Deadline Calendarlawve-ai/awesome-legal-skills847—~4.3kAutomated safety check: PassMIT
Hard Predict Futuredavepoon/buildwithclaude3.6k—~4.2kAutomated safety check: PassMIT
Demand Intakeanthropics/claude-for-legal9.6k2 repos~3.2kAutomated safety check: PassApache-2.0

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
  • USPTO Patent and Trademark Data

    davila7/claude-code-templates

    Searches USPTO patent and trademark data through its APIs: patent search, PEDS examination history, assignments, citations, office actions and TSDR status.

    33k GitHub starsUsed in 11 repos~4.6k tokens
    Legal & ComplianceAuto-check passed
  • Litigation Deadline Calendar

    lawve-ai/awesome-legal-skills

    Calendar litigation and arbitration deadlines from a scheduling order.

    847 GitHub stars~4.3k tokensUpdated 8 days ago
    Legal & ComplianceAuto-check passed
  • Hard Predict Future

    davepoon/buildwithclaude

    Activate this agent for any future-oriented question that requires deep quantitative analysis, historical precedents, and structured scenario planning.

    3.6k GitHub stars~4.2k tokensUpdated yesterday
    Legal & ComplianceAuto-check passed
  • Demand Intake

    anthropics/claude-for-legal

    Official

    Pre-drafting context gathering for a demand letter — parties, facts, basis, leverage, BATNA, and privilege filters — written to a structured intake.md the demand-draft skill reads.

    9.6k GitHub starsUsed in 2 repos~3.2k tokens
    Legal & ComplianceAuto-check passed
  • Demand Received

    anthropics/claude-for-legal

    Official

    Triage an inbound demand letter — extract fields, cross-check the portfolio, assess merit, present response options with a recommendation, and hand off to matter-intake or demand-intake if…

    9.6k GitHub starsUsed in 2 repos~3.4k 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.

    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
  • SVG Article Illustrator

    cat-xierluo/legal-skills

    Creates SVG illustrations for a Markdown article as animated SVG, static SVG or PNG files, and places them in the text at planned positions.

    721 GitHub stars~981 tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Moot Court Simulation Builder

What does Moot Court Simulation Builder do?

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. This skill turns existing case materials into a sourced, respondable, reviewable mock trial. The main agent doubles as scheduler and clerk and dispatches separate judge and party-side agents; subagents never message each other directly, and nothing resumes automatically once the main session ends.

When should I use Moot Court Simulation Builder?

Moot Court Simulation Builder fits situations like: rehearsing a civil or criminal case argument before a real hearing; running a mock cross-examination to find weak points in a case; producing an issue-by-issue review and a list of evidence gaps to strengthen.

How do I install Moot Court Simulation Builder in Claude Code?

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

How do I install Moot Court Simulation Builder in Codex?

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

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

What does Moot Court Simulation Builder need to run?

Going by SKILL.md and its folder, Moot Court Simulation Builder needs the command-line tools its instructions call (python3 and brew). Our summary lists: Python 3.9 or newer with only the standard library; A case materials file (manifest plus public and private documents).

Does Moot Court Simulation Builder 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 Moot Court Simulation Builder 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Moot Court Simulation Builder use?

Moot Court Simulation Builder is published under the CC-BY-NC-4.0 licence (declared in SKILL.md).

How many tokens does Moot Court Simulation Builder use?

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

What are the alternatives to Moot Court Simulation Builder?

Skills that share tags, products or a category with Moot Court Simulation Builder: Tw Legal RAG (aa0101181514/tw-legal-rag, 328 stars), USPTO Patent and Trademark Data (davila7/claude-code-templates, 33k stars), Litigation Deadline Calendar (lawve-ai/awesome-legal-skills, 847 stars) and Hard Predict Future (davepoon/buildwithclaude, 3.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Moot Court Simulation Builder?

cat-xierluo (a GitHub user) maintains it in cat-xierluo/legal-skills, which has 721 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.