Individual skill
law-to-markdown
将法条/规范文件(.txt/.docx/.pdf)转为 Markdown。适用于用户要求“法条转 markdown”“pdf/docx 转 markdown”。处理 .pdf/.docx 时先检查是否已安装 mineru-ocr skill;未安装先引导安装,安装后优先用 mineru-ocr;仅在用户明确同意时再用本地回退方案。
auc/skill_library/bundled/law-to-markdown/SKILL.md
Source commit 39054cbca961e435e99f58384e7f72e76269dd2c
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 3, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,067
- Repository last updated
- Jul 29, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- legal Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
Read excerpt
# Law To Markdown
## 处理规则
1. 输入为 `.txt`:直接转存为 `.md`。
2. 输入为 `.pdf` / `.docx`:
- 先检查是否已安装 `mineru-ocr` skill。
- 未安装:提示先安装 `mineru-ocr`,安装地址:
`https://github.com/cat-xierluo/legal-skills/tree/main/skills/mineru-ocr`
- 已安装:优先调用 `mineru-ocr` 处理。
- 调用失败:先提示检查 `mineru-ocr` 配置/Token。
- 仅当用户明确同意时,才使用本地回退(`python-docx` / `pdfplumber`)。
3. 第一阶段完成后默认执行第二阶段格式调整(仅格式,不改原文字符):
- 由调用该 skill 的大模型先判断“法律/非法律”,并把结果传给脚本。
- 若调用方未传结果,则脚本使用硬规则自动识别(`--law-decision auto`)。