
Mqc legal relation master
Turns case documents into a legal relationship diagram with editable exports
Mqc legal relation master is an open-source agent skill for design and media. It is available on Claude Code.
- Scripts
- Python
- Platforms
- Claude Code
- GitHub stars
- 182
- Last commit
- License
- AGPL-3.0
- Listing updated
Similar skills
About Mqc legal relation master
Builds a single diagram showing which parties stand in which legal relations, tied to the contract or project they concern. Parties and the objects linking them (contracts, works, payments) are drawn together so each relation has its basis visible. The workflow has the model write a relations file, then a script plans the size, asks the user for the audience and the single style to render, and lays out the graph from a precomputed index.
After layout, the output is checked against a set of geometry rules that read back the final SVG coordinates, so crossings, edges touching nodes, and arrow placement are verified before delivery. Exports cover SVG, PNG, PPTX, VSDX and drawio, with the editable formats re-read to confirm they match the SVG. The skill is written around Chinese legal practice and uses Chinese labels, with a fixed CJK font for PNG rendering.
It expects Python 3 and a local tool to rasterize PNG if that format is chosen. Party and relation names are kept exactly as they appear in the source materials, and emphasis is applied only when the user names specific items.
When your agent uses it
法律关系图大师。把一批案件材料推成一张法律关系图:谁与谁、就哪份合同或哪段工程、发生了什么关系。主体与客体并存,使用者指定的要害以深红标出。布局与走线由索引表查出、判据回读产物验过,出 SVG / PNG / PPTX / VSDX / drawio 五种可继续编辑的源文件,三种风格(奇川风 / 白描 / 歸藏风)每次只出所选的一种。适用于诉前梳理、起诉与答辩的事实部分、庭前准备与向当事人汇报。
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs Python scripts(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- Includes binary files(see the files on GitHub)
- License: AGPL-3.0(see the files on GitHub)
From a static check of its 80 files (1.2 MB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the mqc-nlv plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add MiaoQichuan/new-litigation-visualization
/plugin install mqc-nlv@mqc-nlvOr copy only this skill to ~/.claude/skills/mqc-legal-relation-master:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/MiaoQichuan/new-litigation-visualization.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/mqc-legal-relation-master &&
cp -R "$tmp/plugins/mqc-nlv/skills/mqc-legal-relation-master" ~/.claude/skills/mqc-legal-relation-master &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/mqc-legal-relation-master inside it instead.
Copy the skill folder to ~/.agents/skills/mqc-legal-relation-master to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/MiaoQichuan/new-litigation-visualization.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/mqc-legal-relation-master &&
cp -R "$tmp/plugins/mqc-nlv/skills/mqc-legal-relation-master" ~/.agents/skills/mqc-legal-relation-master &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/mqc-legal-relation-master inside it instead.
Copy the skill folder to ~/.cursor/skills/mqc-legal-relation-master to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/MiaoQichuan/new-litigation-visualization.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/mqc-legal-relation-master &&
cp -R "$tmp/plugins/mqc-nlv/skills/mqc-legal-relation-master" ~/.cursor/skills/mqc-legal-relation-master &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/mqc-legal-relation-master inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/MiaoQichuan/new-litigation-visualization.git --path plugins/mqc-nlv/skills/mqc-legal-relation-masterOr copy the folder to ~/.gemini/skills/mqc-legal-relation-master yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/mqc-legal-relation-master:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/MiaoQichuan/new-litigation-visualization.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/mqc-legal-relation-master &&
cp -R "$tmp/plugins/mqc-nlv/skills/mqc-legal-relation-master" ~/.copilot/skills/mqc-legal-relation-master &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/mqc-legal-relation-master inside it instead.
Get the folder:
git clone --depth 1 https://github.com/MiaoQichuan/new-litigation-visualization.gitThen copy new-litigation-visualization/plugins/mqc-nlv/skills/mqc-legal-relation-master into your agent's skills folder as mqc-legal-relation-master. Agents that support SKILL.md read one folder per skill.
What it does
- Parties and objects together
- Draws people or companies alongside the contracts and works that link them.
- Precomputed layout index
- Looks up layouts from an offline index for small graphs instead of computing them at run time.
- Geometry verification
- Reads back the final SVG coordinates to check crossings, node overlap and arrow placement.
- Multiple editable exports
- Produces SVG, PNG, PPTX, VSDX and drawio files, with editable formats cross-checked.
- Single style output
- Renders only the one style the user picks from the three available.
- Size trimming step
- Asks which parties and relations to keep when a case exceeds nine nodes or twelve edges.
Good for
- Map the parties and contracts in a construction dispute before filing
- Prepare a relationship diagram for a court hearing in black and white
- Explain the legal relations in a case to a client in a colored chart
- Produce an editable PowerPoint version of a litigation relationship diagram
Mqc legal relation master FAQ
What input does the skill need?
The model writes a relations.json file describing parties, objects and relations taken from the case materials, following the format guide in the skill.
Which output formats are produced?
SVG, PNG, PPTX, VSDX and drawio, chosen by the user. By default only SVG and PPTX are produced because they need no external tools.
How many parties can one diagram hold?
Up to 9 nodes and 12 relations by default; larger cases are trimmed first, and more than 16 parties are advised to be split into separate diagrams.
Does Mqc legal relation master need a particular tool?
Python 3 is needed. PNG output requires a local rasterizer, and the skill includes a check command for the environment.
How do I install Mqc legal relation master in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/mqc-legal-relation-master to use it in all your projects, or to .claude/skills/mqc-legal-relation-master in one project. Or install the mqc-nlv plugin, which includes it: /plugin marketplace add MiaoQichuan/new-litigation-visualization, then /plugin install mqc-nlv@mqc-nlv.
Does Mqc legal relation master run scripts?
Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Mqc legal relation master?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Mqc legal relation master?
The closest alternatives to Mqc legal relation master are Mqc litigation visual redraw, Mqc legal chart master, Mqc timeline master, Mqc legal courseware master and Mqc trial confrontation master.
Where this comes from
- Description: from the skill's own SKILL.md.
More from MiaoQichuan/new-litigation-visualization

Builds a sourced, unedited case chronology from litigation files in Word and Excel
- Open source
- 182 GitHub stars
- Legal and government

Builds an interactive single-page case timeline from litigation materials, with source
- Open source
- 182 GitHub stars
- Legal and government

Turns legal case data into statistical charts as SVG and editable PowerPoint
- Open source
- 182 GitHub stars
- Files and documents

Builds legal slide pages with diagrams, statute and case cards, exported as editable PPTX
- Open source
- 182 GitHub stars
- Legal and government

Redraws litigation timelines, flowcharts and party diagrams as court-ready graphics
- Open source
- 182 GitHub stars
- Design and media

Turns raw litigation materials into a court-ready case timeline in several formats
- Open source
- 182 GitHub stars
- Files and documents


