legal-text-format SKILL.md skillA
legal-text-format from cat-xierluo/legal-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add cat-xierluo/legal-skills/legal-text-format@v1.2.3Pins v1.2.3 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- cat-xierluo/legal-skills
- Path
skills/legal-text-format/SKILL.md- Versions recorded
- 5
- Latest version
- v1.2.3, committed Oct 3, 2026
- First version recorded
- Apr 15, 2026
- Size
- 11,065 bytes
- Repository stars
- 775
- License
- none declared
将法律文本(法律条文或法律案例)转换为规范的 Markdown 格式,删除推广冗余信息。本技能应在用户需要处理法律条文(如民法典、刑法等)、整理法律案例(如最高法典型案例、裁判文书等)、或从粘贴文本中格式化法律文档时使用。注意:本技能只负责格式化和内容清理,不包含内容抓取能力。内容获取应由其他 skill(如 wechat-article-fetch)完成,AI 会自动判断技能协作顺序。内置 archive 机制,所有结果自包含存储在 skill 目录内。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 法律文本格式化工具
## 概述
将法律文本(法律条文或法律案例)转换为规范的 Markdown 格式,删除推广冗余信息,自动识别文本类型并应用相应的格式化规则。
**核心职责**:只负责格式化和内容清理,不包含内容抓取能力。
## 与其他技能的协作
### 典型工作流程
**场景:用户请求格式化网页上的法律文本**
```
用户请求 → AI 判断来源 → 抓取类 skill 获取内容 → legal-text-format 格式化
```
示例流程:
1. 用户提供微信公众号链接 → AI 使用 `wechat-article-fetch` 抓取 → AI 调用 `legal-text-format` 格式化
2. 用户提供普通网页链接 → AI 使用其他工具抓取 → AI 调用 `legal-text-format` 格式化
3. 用户直接粘贴文本 → AI 直接调用 `legal-text-format` 格式化
**技能职责边界**:
- `wechat-article-fetch` / 其他抓取工具:负责从各种来源获取原始文本内容
- `legal-text-format`:负责对已获取的文本进行格式化和清理
## 核心原则
**内容完整性保证**:除格式调整和去除推广内容外,所有法律案例和法条的实质内容必须完整保留,不得有任何遗漏!
## 工作流程
### 步骤 1:分析文本类型
使用 LLM 分析输入文本:
- 判断是法律条文还是法律案例
- 识别文本结构特征(章节、条款、案号等)
- 确定适合的格式化策略
- 提取主题用于文件命名
**分析提示词参考**:
```text
分析以下文本,判断其类型:
- 如果是法律条文:识别章、节、条的结构
- 如果是法律案例:识别案例标题、案号、案情、裁判结果、典型意义等
- 提取主题用于文件命名
```
### 步骤 2:保存原始内容
将输入的原始内容保存为本地 Markdown 文件:
- 文件位置:`archive/{YYYYMMDD_HHMMSS}_{主题}/`
- 文件命名:`{YYYYMMDD}_{主题}_raw.md`
- 目的:提供溯源依据,便于内容比对验证
**归档目录结构示例**:
```text
archive/20250122_153400_个人信息保护检察公益诉讼典型案例/
├── 20250122_个人信息保护检察公益诉讼典型案例_raw.md # 原始内容
├── 20250122_个人信息保护检察公益诉讼典型案例_formatted.md # 格式化后的内容(步骤4生成)
└── meta.json # 元信息(可选)
…Read the whole file at its exact version.
How to install
mdr add cat-xierluo/legal-skills/legal-text-format@sha256:d2d315170aa116f2The line at the top of this page pins the label v1.2.3, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_zzeyso4bb4lnohdj)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Apr 15, 2026 and Oct 3, 2026, about one every 43 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.2.3 latest | 2026-10-03 | 9c1d065 | 11,065 B | A | view · diff |
| v1.2.2 | 2026-09-09 | 325bfac | 9,668 B | A | view · diff |
| v1.2.1 | 2026-04-20 | 5d099d4 | 9,668 B | A | view · diff |
| v1.2.1 | 2026-04-20 | 94898a3 | 10,383 B | A | view · diff |
| v1.1.0 | 2026-04-15 | 3a71ace | 9,505 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (11065 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
cat-xierluo/legal-skills · 775 stars · license none declared · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_zzeyso4bb4lnohdj GET https://markdownregistry.com/api/v1/resolve?ref=cat-xierluo/legal-skills/legal-text-format GET https://markdownregistry.com/api/v1/blob/d2d315170aa116f2331f8579bc0d6de3af9a73cc62ca32344b0d3b48bab7ffc4
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.