legal-architecture

生成专业法律结构可视化图,输出为自包含 HTML 文件(内嵌 SVG,浅色主题,适合打印和嵌入文档)。适用于用户要求“画结构图/生成可视化/做流程图/法律图示”时,以及诉讼推理结构(当事人→证据→事实→法律→判决)、合同关系图、法规程序图、证据链图、请求权基础分析图与法律体系层级图等场景。

仓库最近推送
GitHub Stars
181
Forks
22
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "legal-architecture":https://skillpi.com/zh/skills/deepskill-7d1c7307ec1fe82abf0e96ed34a9b8f48fca6166a7566a36783e1793e73a03a6。安装前核对上游来源和版本:https://github.com/zh-xx/legal-assistant-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

生成专业法律结构可视化图,输出为自包含 HTML 文件(内嵌 SVG,浅色主题,适合打印和嵌入文档)。适用于用户要求“画结构图/生成可视化/做流程图/法律图示”时,以及诉讼推理结构(当事人→证据→事实→法律→判决)、合同关系图、法规程序图、证据链图、请求权基础分析图与法律体系层级图等场景。

0 下载

介绍来源: third_party · zh-xx · 1.1 参考来源

SkillPi 解读

能完成的任务
生成专业的法律结构可视化图,输出为自包含 HTML 文件(内嵌 SVG,浅色主题,适合打印和嵌入文档)。适用场景:(1) 用户要求"画结构图""生成可视化""做流程图""法律图示"时;(2) 涉及诉讼推理结构(当事人→证据→事实→法律→判决);(3) 合同关系图(甲乙方权利义务、履约节点、违约责任);(4) 法规程序图(申请→审查→决定→救济);(5) 证据链图、请求权基础分析图、法律体系层级图。Use when the user asks for litigation flow diagrams, contract relationship diagrams, legal reasoning structure diagrams, evidence chain diagrams, or any legal visualization.
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: legal-architecture
description: 生成专业的法律结构可视化图,输出为自包含 HTML 文件(内嵌 SVG,浅色主题,适合打印和嵌入文档)。适用场景:(1) 用户要求"画结构图""生成可视化""做流程图""法律图示"时;(2) 涉及诉讼推理结构(当事人→证据→事实→法律→判决);(3) 合同关系图(甲乙方权利义务、履约节点、违约责任);(4) 法规程序图(申请→审查→决定→救济);(5) 证据链图、请求权基础分析图、法律体系层级图。Use when the user asks for litigation flow diagrams, contract relationship diagrams, legal reasoning structure diagrams, evidence chain diagrams, or any legal visualization.
license: MIT
metadata:
  version: "1.1"
  author: JeeC (adapted from architecture-diagram by Cocoon AI)

Legal Diagram Skill

Create professional legal structure diagrams as self-contained HTML files with inline SVG. Designed for court document analysis, contract review, legal knowledge management, and client presentations. Output is light-themed and print-ready.

Design System

Color Palette

Use these semantic colors for legal component types:

Component Type Fill (rgba) Stroke Use Case
当事人/主体 (Party) rgba(219,234,254,0.9) #2563eb (blue-600) 原告、被告、甲方、乙方、第三人
事实/行为 (Fact) rgba(241,245,249,0.9) #475569 (slate-600) 侵权行为、违约事实、案件经过
证据 (Evidence) rgba(254,243,199,0.9) #b45309 (amber-700) 书证、物证、证人证言、鉴定意见
法律规范 (Law) rgba(209,250,229,0.9) #047857 (emerald-700) 法条、司法解释、行政法规
程序节点 (Procedure) rgba(237,233,254,0.9) #6d28d9 (violet-700) 立案、开庭、举证、质证、裁定
裁判/结论 (Judgment) rgba(254,226,226,0.9) #b91c1c (red-700) 判决主文、责任认定、风险结论
争议焦点 (Issue) rgba(255,237,213,0.9) #c2410c (orange-700) 争议焦点、待查明事实

Typography

Use Inter for all text — clean, professional, print-friendly:

<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">

Font sizes: 12px for primary labels, 10px for secondary, 9px for annotations, 8px for tiny labels.

Visual Elements

Background: #f8fafc with subtle light grid:

<pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse">
  <path d="M 40 0 L 0 0 0 40" fill="none" stroke="#f1f5f9" stroke-width="0.8"/>
</pattern>

Component boxes: Rounded rectangles (rx="6") with 1.5px stroke. Always draw an opaque white background rect FIRST to mask arrows behind boxes:

<rect x="X" y="Y" width="W" height="H" rx="6" fill="white"/>
<rect x="X" y="Y" width="W" height="H" rx="6" fill="rgba(219,234,254,0.9)" stroke="#2563eb" stroke-width="1.5"/>

Arrows — standard flow:

<marker id="arr" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
  <polygon points="0 0, 8 3, 0 6" fill="#94a3b8"/>
</marker>
<line x1="..." y1="..." x2="..." y2="..." stroke="#94a3b8" stroke-width="1.2" marker-end="url(#arr)"/>

Arrows — judgment emphasis (red):

<marker id="arr-red" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
  <polygon points="0 0, 8 3, 0 6" fill="#b91c1c"/>
</marker>

Cross-layer or indirect logical connections: Use dashed lines:

stroke-dasharray="4,3"

Arrow z-order: ALWAYS draw all arrows BEFORE component boxes in the SVG. SVG renders in document order, so arrows drawn first appear behind boxes drawn later.

Layout Patterns

Choose the layout based on content type:

1. 诉讼流程图 (Litigation Flow) — top-to-bottom layered with group boxes

For: case analysis, judgment structure, evidence → fact → law → judgment chain.

PREFERRED PATTERN — dashed group boxes + single vertical arrows:

Each reasoning stage is enclosed in a dashed group box with a badge label straddling its top-left border. Stages connect via a single purely vertical arrow in the center (x=500 for a 1000-wide viewBox). No node-to-node arrows across stages — this avoids visual clutter and false logical implications.

┌─────────────────────────────────┐
│ [当事人]  原告 ●●● 被告          │  ← group box, dashed border
└─────────────────────────────────┘
              ↓  (single arrow at center x)
┌─────────────────────────────────┐
│ [争议焦点] 焦点一  焦点二         │
└─────────────────────────────────┘
              ↓
  ... etc through 证据 → 事实认定 → 法律适用 → 判决结果

Group box SVG pattern (badge label straddles top-left border):

<!-- Group box -->
<rect x="8" y="127" width="984" height="82" rx="8"
      fill="rgba(255,237,213,0.12)" stroke="#fb923c"
      stroke-width="1.2" stroke-dasharray="6,4"/>
<!-- Badge: rect behind text, centered on top border (y = group top - 8) -->
<rect x="14" y="119" width="64" height="16" rx="4"
      fill="rgba(255,237,213,0.95)" stroke="#fb923c" stroke-width="0.8"/>
<text x="46" y="131" fill="#9a3412" font-size="9" font-weight="600"
      text-anchor="middle" font-family="Inter,system-ui">争议焦点</text>

Vertical gap between group boxes: 28–32px. Place one arrow per gap:

<line x1="500" y1="[group_bottom+2]" x2="500" y2="[next_group_top-2]"
      stroke="#64748b" stroke-width="1.5" marker-end="url(#arr)"/>
<!-- Final arrow to judgment box uses red: stroke="#b91c1c" stroke-width="2" marker-end="url(#arr-red)" -->

Within each group box, items are arranged horizontally (no intra-group arrows needed — spatial proximity implies relationship). Reserve arrows for cross-group logical flow only.

2. 合同关系图 (Contract Relationship) — hub-and-spoke or two-column For: contract parties, rights/obligations flow, key clause mapping

甲方 ←→ 合同核心义务 ←→ 乙方
         ↓
    履约条件/违约责任

3. 法律体系图 (Legal Framework) — tree or hierarchical For: legal concepts, regulatory hierarchy, claim basis analysis (请求权基础)

上位法 → 下位法 → 实施细则/司法解释

Spacing Rules

CRITICAL: Avoid element overlaps:

  • Standard component height: 55-60px for single-line, 75-90px for multi-line
  • Minimum vertical gap between rows: 38px
  • Minimum horizontal gap between same-row items: 15px
  • Use equal start/end margins: startX = (viewBoxWidth - totalRowWidth) / 2

Row width calculation:

totalRowWidth = N * boxWidth + (N-1) * gap
startX = (viewBoxWidth - totalRowWidth) / 2

Legend Placement

Place legend BELOW all diagram content, at least 20px below the lowest element. Use a light rounded-rectangle background. Arrange legend items horizontally.

Page Structure

  1. Header — title (with colored status dot), subtitle (case number / date / court)
  2. Diagram card — white card with border-shadow, contains SVG
  3. Info cards — 3-column grid with metadata (parties, evidence summary, judgment key points)
  4. Footer — case number and skill attribution

Output Format

Always produce a single self-contained .html file:

  • Embedded CSS only (Google Fonts link allowed)
  • Inline SVG (no external images or scripts)
  • Light background (#f8fafc) — suitable for printing and embedding in Word/PPT
  • No JavaScript required

File should open and render correctly in any modern browser, and look professional when printed.

当前收录版本

1.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 覆盖诉讼推理、合同关系、法规程序、证据链等高频法律可视化场景
  • 输出专业自包含 HTML/SVG 文件,适合打印和嵌入文档
  • 提供完整设计系统和多种布局模式,满足多样化需求
触发精准95/100

亮点

  • 触发词覆盖全面(画结构图/生成可视化/做流程图/法律图示等)
  • 明确列出具体使用场景(诉讼流程图、合同关系图等)
  • 边界清晰,不易与其他 Skill 重叠
结构规范95/100

亮点

  • 文档结构完整,包含设计系统、布局模式、间距规则
  • frontmatter 完整(name/description/license/metadata)
  • 提供详细 SVG 代码示例和最佳实践
执行可靠95/100

亮点

  • 工具来源明确(基于 architecture-diagram)
  • 参数规范(颜色值、尺寸、字体)
  • 覆盖主要异常(避免重叠、z-order 处理)
  • 输出静态 HTML 无外部依赖,可靠性高
证据可验 (前四项均值)95/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • fonts.googleapis.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。