# Mqc legal relation master

> Mqc legal relation master is an open-source agent skill for design and media. Turns case documents into a legal relationship diagram with editable exports. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/MiaoQichuan/new-litigation-visualization/tree/main/plugins/mqc-nlv/skills/mqc-legal-relation-master
- **Repository:** https://github.com/miaoqichuan/new-litigation-visualization
- **GitHub stars:** 182
- **License:** AGPL-3.0
- **Skill name:** mqc-legal-relation-master
- **Collection:** https://github.com/MiaoQichuan/new-litigation-visualization
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [legal and government](https://ai-powered.com/categories/legal-and-government)
- **Listing updated:** 2026-12-03

## About

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 五种可继续编辑的源文件，三种风格（奇川风 / 白描 / 歸藏风）每次只出所选的一种。适用于诉前梳理、起诉与答辩的事实部分、庭前准备与向当事人汇报。

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/MiaoQichuan/new-litigation-visualization/tree/HEAD/plugins/mqc-nlv/skills/mqc-legal-relation-master)
- [No network calls found in its scripts](https://github.com/MiaoQichuan/new-litigation-visualization/tree/HEAD/plugins/mqc-nlv/skills/mqc-legal-relation-master)
- [Includes binary files](https://github.com/MiaoQichuan/new-litigation-visualization/tree/HEAD/plugins/mqc-nlv/skills/mqc-legal-relation-master)
- [License: AGPL-3.0](https://github.com/MiaoQichuan/new-litigation-visualization/tree/HEAD/plugins/mqc-nlv/skills/mqc-legal-relation-master)

## Features

- **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

## Install

### Claude Code

This skill ships in the `mqc-nlv` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add MiaoQichuan/new-litigation-visualization
/plugin install mqc-nlv@mqc-nlv
```

Or copy only this skill to `~/.claude/skills/mqc-legal-relation-master`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/mqc-legal-relation-master` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/mqc-legal-relation-master` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/MiaoQichuan/new-litigation-visualization.git --path plugins/mqc-nlv/skills/mqc-legal-relation-master
```

Or copy the folder to `~/.gemini/skills/mqc-legal-relation-master` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/mqc-legal-relation-master`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/MiaoQichuan/new-litigation-visualization.git
```

Then 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.

## 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.

## Alternatives

- [Mqc litigation visual redraw](https://ai-powered.com/skills/mqc-litigation-visual-redraw): Mqc litigation visual redraw is an open-source agent skill for design and media.
- [Mqc legal chart master](https://ai-powered.com/skills/mqc-legal-chart-master): Mqc legal chart master is an open-source agent skill for files and documents.
- [Mqc timeline master](https://ai-powered.com/skills/mqc-timeline-master): Mqc timeline master is an open-source agent skill for files and documents.
- [Mqc legal courseware master](https://ai-powered.com/skills/mqc-legal-courseware-master): Mqc legal courseware master is an open-source agent skill for legal and government.
- [Mqc trial confrontation master](https://ai-powered.com/skills/mqc-trial-confrontation-master): Mqc trial confrontation master is an open-source agent skill for legal and government.
- [Mqc fact chronology master](https://ai-powered.com/skills/mqc-fact-chronology-master): Mqc fact chronology master is an open-source agent skill for legal and government.
- [Mqc chronicle master](https://ai-powered.com/skills/mqc-chronicle-master): Mqc chronicle master is an open-source agent skill for legal and government.
- [PPTX](https://ai-powered.com/skills/pptx): PPTX is a free agent skill for files and documents.

---
Source: https://ai-powered.com/skills/mqc-legal-relation-master
