Agent skill

Legal Visualization

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

Legal Visualization。面向法律业务场景的法律图解与图表生成技能;当用户要求把案件材料、合同材料、合规事项、交易安排、证据链、诉讼流程、时间轴、法律关系、客户汇报、法律服务方案或律师团队工作整理成关系图、流程图、时间轴、证据链、风险图、路线图、PNG/SVG/PDF/.drawio…

CC-BY-NC-4.0Auto-check: warningsDocuments & Office

Install Legal Visualization

The automated check flagged lines worth reading first. See the safety section below.

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

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

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

At a glance

Legal Visualization。面向法律业务场景的法律图解与图表生成技能;当用户要求把案件材料、合同材料、合规事项、交易安排、证据链、诉讼流程、时间轴、法律关系、客户汇报、法律服务方案或律师团队工作整理成关系图、流程图、时间轴、证据链、风险图、路线图、PNG/SVG/PDF/.drawio…

  • Works in 6 steps: 缺失事实必须显式标注:材料中未见的主体、时间、金额、合同、证据,不得出现在图中;必… → 业务条线优先于图型:先识别"诉讼/公司/合规/知产/争议/合同/客户/服务"等业务… → VizSpec.routing 必填:未填… → …
  • Tasks that involve Diagrams
  • SKILL.md covers 硬约束, 默认目标, 依赖 and 工作流, plus 5 more sections
  • Calls python and pip

What it does

Legal Visualization is an agent skill from cat-xierluo/legal-skills. Legal Visualization。面向法律业务场景的法律图解与图表生成技能;当用户要求把案件材料、合同材料、合规事项、交易安排、证据链、诉讼流程、时间轴、法律关系、客户汇报、法律服务方案或律师团队工作整理成关系图、流程图、时间轴、证据链、风险图、路线图、PNG/SVG/PDF/.drawio 时使用;也兼容“法律可视化”“案件事实图”“法律关系图”等说法。先按受众、任务动词和路由规则筛选场景,再生成可交付图片,并保留 draw.io 源文件作为可编辑底稿。本技能不用于事实核验,也不替代法律结论判断。

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 76 other files, including scripts, reference files and assets (for example `CHANGELOG.md`, `assets/examples/multi-party-visual-spec.yaml` and `assets/stability/complex-case-values.json`).

It sits in Documents & Office, covering Diagrams and PDF. It works with draw.io.

When your agent uses it

  • Tasks that involve Diagrams
  • Tasks that involve PDF

Example prompts

  • “/legal-visualization”

Requirements

  • Python 3

Workflow steps

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

  1. 缺失事实必须显式标注:材料中未见的主体、时间、金额、合同、证据,不得出现在图中;必须显式写"待补充/待核/一方主张",禁止补全或推断。
  2. 业务条线优先于图型:先识别"诉讼/公司/合规/知产/争议/合同/客户/服务"等业务条线,再选图型。
  3. VizSpec.routing 必填:未填 routing.primary_scene 与 routing.selection_reason 禁止写 drawio。
  4. 一图一观点:超过 1 个核心观点必须拆主图+附图;时间、计算、程序等 ≥3 类不同语义区域不得自由堆进同一画布,只能拆图或使用已定义容量的分区模板。
  5. 领域校验必须通过:.drawio 在复制、导出和交付前必须通过 scripts/validate_drawio.py;几何重叠、确定性文本溢出、无效容器关系或超长连线标签属于阻断错误;连线标签与独立节点/文字块的估算叠压属于必须目视复核的 warning。
  6. 命中模板必须锁定几何:已有适配模板时,使用 scripts/instantiate_template.py 只替换 value 占位符;随后可用 scripts/apply_visual_roles.py 编译样式,但编译前后每个 mxGeometry…

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

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

    Shell commands in SKILL.md call:

    • python
    • pip

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

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    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 Visualization loads about 2k tokens when it runs, and up to ~44k if it reads all its reference files. Until then it costs about 69 tokens; SKILL.md has 408 words of instructions outside code blocks.

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

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: warnings

The automated check found patterns that need a careful read before installing.

  • WarningTells the agent its actions are pre-authorized / not to stop for confirmationSKILL.md:50
    证据、风险、客户动作、团队动作和用户立场。缺少非关键事实时先合理标注“待补充”,不要停下等待。

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 408 words (~2,018 tokens).

“面向法律业务场景的法律图解与图表生成技能。覆盖案件、非诉项目、合规管理、客户协作、团队办案、客户汇报和法律服务方案,生成可直接提交、汇报或嵌入文档的法律图表。对外英文名使用 Legal Visualization,中文可称“法律可视化”;Skill 标识和目录名统一为 legal-visualization。draw.io / diagrams.net 是默认可编辑底层格式,不是对外定位的边界。”

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

Read the full SKILL.md on GitHub

Files

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

  • SKILL.md
  • CHANGELOG.md
  • LICENSE.txt
  • archive/.gitignore
  • archive/.gitkeep
  • assets/examples/multi-party-visual-spec.yaml
  • assets/stability/complex-case-values.json
  • assets/stability/edge-label-overflow.drawio
  • assets/stability/geometry-overlap.drawio
  • assets/stability/legal-container-near-miss.drawio
  • assets/stability/text-overflow.drawio
  • config/visual-role-registry.json
  • references/advanced-case-patterns.md
  • references/chart-decision-tree.md
  • references/legal-visual-constants.md
  • … and 56 more

Open the folder on GitHubat commit db2c58c

Compare with similar skills

Legal Visualization 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 Visualization compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Legal Visualization this skillcat-xierluo/legal-skills720—~2kAutomated safety check: WarnCC-BY-NC-4.0
Write Leetcuda Bookxlite-dev/LeetCUDA12k—~2.1kAutomated safety check: PassGPL-3.0
Nsfc RoadmapInternScience/DrClaw172—~2.5kAutomated safety check: NotesNone
Nsfc SchematicInternScience/DrClaw172—~3.7kAutomated safety check: NotesNone
Modeling Paper DrawIO Diagramsjihe520/MathModelAgent6.2k—~881Automated safety check: NotesNone
Systems DiagrammingWuXinbo-bo/Math-model-skills111—~6.3kAutomated safety check: PassMIT

Similar skills

  • Write Leetcuda Book

    xlite-dev/LeetCUDA

    把 LeetCUDA kernels/interview 教学源码(base/sgemv/sgemm/hgemm/flashattn/ffpaattn/fp8gemm.cuh/fp4gemm.cuh)+ ffpa-attn CuTe sm120 源码(csrc/cuffpa/cute fp8/fp4,commit 861d75e)写成中文 CUDA 技术书(6 Part 38 章 + CuTe…

    12k GitHub stars~2.1k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Nsfc Roadmap

    InternScience/DrClaw

    当用户明确要求"生成 NSFC 技术路线图/技术路线图绘制/roadmap/flowchart"或需要把标书研究内容转成"可打印、A4 可读"的技术路线图时使用。默认输出可编辑源文件(.drawio)与可嵌入文档的渲染结果(.svg/.png/.pdf);当用户主动提及 Nano Banana/Gemini 图片模型时,可切换为 PNG-only 模式。⚠️…

    172 GitHub stars~2.5k tokensUpdated 6 mo ago
    Documents & OfficeAuto-check: notes
  • Nsfc Schematic

    InternScience/DrClaw

    当用户明确要求"生成 NSFC 原理图/机制图/schematic diagram/mechanism diagram"或需要把标书中的研究机制、算法架构、模块关系转成"可编辑 + 可嵌入文档"的图示时使用。默认输出可编辑源文件(.drawio)与渲染文件(.pdf/.svg/.png);当用户主动提及 Nano Banana/Gemini 图片模型时,可切换为 PNG-only 模式。⚠️…

    172 GitHub stars~3.7k tokensUpdated 6 mo ago
    Documents & OfficeAuto-check: notes
  • Modeling Paper DrawIO Diagrams

    jihe520/MathModelAgent

    Pipeline stage that draws non-data diagrams for a mathematical modeling paper in DrawIO and exports them as PDFs, in Chinese.

    6.2k GitHub stars~881 tokensUpdated 8 days ago
    Documents & OfficeAuto-check: notes
  • Systems Diagramming

    WuXinbo-bo/Math-model-skills

    Meta-model-agent 构建技术路线、方法关系、系统架构与流程示意资产。适用于系统逻辑制图. An agent skill from WuXinbo-bo/Math-model-skills.

    111 GitHub stars~6.3k tokensUpdated 20 days ago
    Documents & OfficeAuto-check passed
  • Draw

    aiskillstore/marketplace

    Vector graphics and diagram creation, format conversion (ODG/SVG/PDF) with LibreOffice Draw.

    433 GitHub starsUsed in 3 repos~1k tokens
    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

Works with

Questions about Legal Visualization

What does Legal Visualization do?

Legal Visualization。面向法律业务场景的法律图解与图表生成技能;当用户要求把案件材料、合同材料、合规事项、交易安排、证据链、诉讼流程、时间轴、法律关系、客户汇报、法律服务方案或律师团队工作整理成关系图、流程图、时间轴、证据链、风险图、路线图、PNG/SVG/PDF/.drawio…. Legal Visualization is an agent skill from cat-xierluo/legal-skills.

When should I use Legal Visualization?

Legal Visualization fits situations like: tasks that involve Diagrams; tasks that involve PDF.

How do I install Legal Visualization in Claude Code?

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

How do I install Legal Visualization in Codex?

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

Can I use Legal Visualization 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-visualization -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-visualization, .gemini/skills/legal-visualization, .github/skills/legal-visualization and .opencode/skills/legal-visualization in your project.

What does Legal Visualization need to run?

Going by SKILL.md and its folder, Legal Visualization needs the command-line tools its instructions call (python and pip). Our summary lists: Python 3.

Does Legal Visualization access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Legal Visualization safe to install?

Our automated static check of SKILL.md flagged 1 warning(s): tells the agent its actions are pre-authorized / not to stop for confirmation. Read the flagged lines before installing; the check is not a guarantee either way. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Legal Visualization use?

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

How many tokens does Legal Visualization use?

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

What are the alternatives to Legal Visualization?

Skills that share tags, products or a category with Legal Visualization: Write Leetcuda Book (xlite-dev/LeetCUDA, 12k stars), Nsfc Roadmap (InternScience/DrClaw, 172 stars), Nsfc Schematic (InternScience/DrClaw, 172 stars) and Modeling Paper DrawIO Diagrams (jihe520/MathModelAgent, 6.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Legal Visualization?

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.