Chalk Labs
Need help deploying legal-text-format?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/laubeing-droid-legal-text-format
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: legal
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/legal-text-format
What's inside
- Skill name
legal-text-format- Description
- 法律文本清洗与格式化工具,自动识别条文/案例类型,去除推广冗余,输出规范排版。
- License
- MIT
- Instructions
- 82 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (14)
- CHANGELOG.md
- SKILL.md
- .gitkeep · archive/
- examples.md · references/
- final_fix.py · scripts/
- fix_case_headers.py · scripts/
- fix_case_headers2.py · scripts/
- fix_nanjing_cases.py · scripts/
- fix_remaining.py · scripts/
- fix_targeted.py · scripts/
- format_legal_cases.py · scripts/
- format_step2.py · scripts/
- format_step2_v2.py · scripts/
- postprocess_step2.py · scripts/
SKILL.md (first lines)
# 法律文本格式化
将来源各异的法律文本转换为统一规范格式,保证原始信息完整的同时清除杂乱。
## 一、处理对象
### (一) 法律条文
包括法律法规原文、司法解释、部门规章等。格式化后按编章节条层级呈现。
### (二) 法律案例
包括裁判文书、典型案例、法院公告等。保留当事人信息脱敏后的案例事实与裁判要旨。
### (三) 混合文本
含法律与非法律内容的复合文本(如公众号文章、培训讲稿),提取法律核心部分并标注来源。
## 二、格式化规则
### (一) 公共规则
- 去除推广信息:广告、引流话术、二维码、外链
- 统一标点:中文上下文使用全角标点
- 统一缩进:段落首行缩进两字符(法律条文层级除外)
- 修正换行:合并不当断行,保留有意分段
### (二) 条文专用规则
- 层级标识:编→章→节→条→款→项
- 条号格式:"第一条""第二条"
- 保留原条号,不自行编序
### (三) 案例专用规则
- 当事人信息替换为通用指代
- 保留案件编号与审理法院
- 保留"经审理查明""本院认为"等裁判文书结构标记
## 三、处理流程
1. 自动识别文本类型(条文/案例/混合)
2. 按类型应用对应规则清洗
3. 内容完整性校验:对比格式化前后的关键信息量
4. 输出至归档目录
## 四、归档与溯源
输出按时间戳组织:
```
archive/{YYYYMMDD}_{主题}/
├── {日期}_{主题}_raw.md # 原始文本
└── {日期}_{主题}_formatted.md # 格式化文本
```
保留原始文件确保可溯源比对。
## 五、来源协作
支持接收来自抓取类技能(如 wechat-article-fetch)的文本作为输入,由本技能专注完成格式化清洗。
## 六、使用方式
```
/legal-text-format [粘贴法律文本]
```
或:
```
/legal-text-format @文章原文.md
```
## 七、参考文件
- `references/examples.md`:格式化前后对比示例
- `scripts/`:Python 辅助脚本
---
格式化结果为文本排版参考,不改变原文法律含义。From laubeing-droid/unified-legal-ai-cn, MIT.
More from laubeing-droid/unified-legal-ai-cn
- 0.549score
docx
laubeing-droid
Word文档全生命周期处理工具。支持新建文档(docx-js)、编辑现有文档(OOXML)、审阅修订(标记批改痕迹)、内容解析与格式保真。本技能应在用户需要创建、修改、审阅或提取.docx文件内容时使用。
SkillCFreshness: C★ 16Claude Code +9 - 0.549score
new-case
laubeing-droid
法律案件/咨询项目初始化工具。根据案件类型自动创建标准化目录结构、生成管理文件(案件信息看板/工时记录/期限管理/待办事项),并对材料进行自动分类归档。本技能应在用户需要新建诉讼案件或法律咨询项目时使用。
SkillCFreshness: C★ 16Claude Code +9 - 0.549score
pptx
laubeing-droid
PPT演示文稿创建与编辑工具。支持从零新建(html2pptx)、基于模板创建、编辑现有PPT(OOXML)、幻灯片重排与文本替换。本技能应在用户需要制作、修改或分析.pptx文件时使用。
SkillCFreshness: C★ 16Claude Code +9 - 0.549score
patent-analysis
laubeing-droid
系统化分析中国专利文件,覆盖七种业务场景。本技能应在用户需要对发明专利或实用新型进行技术要点提取、侵权比对、稳定性评估、FTO排查、规避设计或价值评价时使用。
SkillCFreshness: C★ 16Claude Code +9 - 0.549score
opc-legal-counsel
laubeing-droid
面向一人公司、小微企业和AI创业团队的常年法律顾问技能,覆盖公司治理、合同财税、劳动用工、AI产品合规、数据与知识产权等领域,提供风险诊断和行动清单。
SkillCFreshness: C★ 16Claude Code +9 - 0.546score
contract-copilot
laubeing-droid
中文商业合同智能审查与起草助手,分层扫描交易结构、合同形式、条款语言,输出风险清单与修订批注。
SkillCFreshness: C★ 16Claude Code +9 - 0.546score
legal-qa-extractor
laubeing-droid
从律师与客户的沟通记录中批量提取法律问答对,脱敏后输出结构化Q&A,支持增量扫描与归档。
SkillCFreshness: C★ 16Claude Code +9 - 0.546score
litigation-analysis
laubeing-droid
判决书深度解析与上诉/再审决策支持工具,覆盖起诉状、判决书、庭审笔录全流程分析。
SkillCFreshness: C★ 16Claude Code +9 - 0.544score
xlsx
laubeing-droid
Excel电子表格创建与编辑工具。支持公式构建、格式设置、数据分析、可视化图表与公式重算。本技能应在用户需要处理.xlsx/.xlsm/.csv等表格文件时使用。
SkillCFreshness: C★ 16Claude Code +9 - 0.543score
litigation-legal
laubeing-droid
案件管理、证据三性审查、诉讼文书起草、保全和管辖分析
SkillCFreshness: C★ 16Claude Code +9 - 0.543score
ip-legal
laubeing-droid
商标检索、专利分析、著作权保护、开源合规审查
SkillCFreshness: C★ 16Claude Code +9 - 0.543score
commercial-legal
laubeing-droid
合同审查、交易文件起草、合同风险分层与业务化摘要
SkillCFreshness: C★ 16Claude Code +9
Signals
- Stars
- 16
- Forks
- 4
- Open issues
- 1
- Last commit (this folder)
- Jun 5, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from laubeing-droid
- 0.549score
patent-analysis
laubeing-droid
系统化分析中国专利文件,覆盖七种业务场景。本技能应在用户需要对发明专利或实用新型进行技术要点提取、侵权比对、稳定性评估、FTO排查、规避设计或价值评价时使用。
SkillCFreshness: C★ 16Claude Code +9 - 0.549score
pptx
laubeing-droid
PPT演示文稿创建与编辑工具。支持从零新建(html2pptx)、基于模板创建、编辑现有PPT(OOXML)、幻灯片重排与文本替换。本技能应在用户需要制作、修改或分析.pptx文件时使用。
SkillCFreshness: C★ 16Claude Code +9 - 0.549score
opc-legal-counsel
laubeing-droid
面向一人公司、小微企业和AI创业团队的常年法律顾问技能,覆盖公司治理、合同财税、劳动用工、AI产品合规、数据与知识产权等领域,提供风险诊断和行动清单。
SkillCFreshness: C★ 16Claude Code +9 - 0.549score
docx
laubeing-droid
Word文档全生命周期处理工具。支持新建文档(docx-js)、编辑现有文档(OOXML)、审阅修订(标记批改痕迹)、内容解析与格式保真。本技能应在用户需要创建、修改、审阅或提取.docx文件内容时使用。
SkillCFreshness: C★ 16Claude Code +9 - 0.549score
new-case
laubeing-droid
法律案件/咨询项目初始化工具。根据案件类型自动创建标准化目录结构、生成管理文件(案件信息看板/工时记录/期限管理/待办事项),并对材料进行自动分类归档。本技能应在用户需要新建诉讼案件或法律咨询项目时使用。
SkillCFreshness: C★ 16Claude Code +9 - 0.546score
litigation-analysis
laubeing-droid
判决书深度解析与上诉/再审决策支持工具,覆盖起诉状、判决书、庭审笔录全流程分析。
SkillCFreshness: C★ 16Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get legal-text-format running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
legal-text-format skill. Agent Mart. https://agentmart.dev/skills/laubeing-droid-legal-text-format (last updated 2026-10-24)