# Skill: Law To Markdown (law-to-markdown) Description: 将法条/规范文件(.txt/.docx/.pdf)转为 Markdown。适用于用户要求“法条转 markdown”“pdf/docx 转 markdown”。处理 .pdf/.docx 时先检查是否已安装 mineru-ocr skill;未安装先引导安装,安装后优先用 mineru-ocr;仅在用户明确同意时... Repository: https://github.com/zh-xx/legal-assistant-skills Skill Path: law-to-markdown Branch: main License: Apache-2.0 Version: latest ## Supported Agents & Install Guides ### Claude Code Global Location: ~/.claude/skills/law-to-markdown/SKILL.md Project Location: /.claude/skills/law-to-markdown/SKILL.md Manual Steps: 1. Create the skill folder: mkdir -p ~/.claude/skills/law-to-markdown 2. Copy the SKILL.md file into that folder. 3. Copy any supporting files (scripts/, references/) into the same folder. 4. Reload skills in Claude Code with the /reload-skills command. Agent Prompt: Please install the "Law To Markdown" skill from https://github.com/zh-xx/legal-assistant-skills. 1. Clone or download the repository from https://github.com/zh-xx/legal-assistant-skills 2. Copy the folder "law-to-markdown" to ~/.claude/skills/law-to-markdown/SKILL.md 3. The skill files should now be at: ~/.claude/skills/law-to-markdown/SKILL.md 4. Confirm what was installed and verify the SKILL.md file exists. --- ### Codex CLI Global Location: ~/.codex/AGENTS.md Project Location: /AGENTS.md Manual Steps: 1. Copy the skill's instructions to your project's AGENTS.md file at the repo root. 2. For global use, add them to ~/.codex/AGENTS.md instead. 3. Codex reads AGENTS.md files from the repo root down to your current directory. 4. Restart your Codex session to pick up the changes. Agent Prompt: Please install the "Law To Markdown" skill from https://github.com/zh-xx/legal-assistant-skills. 1. Clone or download the repository from https://github.com/zh-xx/legal-assistant-skills 2. Copy the folder "law-to-markdown" to ~/.codex/AGENTS.md 3. The skill files should now be at: ~/.codex/AGENTS.md 4. Confirm what was installed and verify the SKILL.md file exists. --- ### Cursor Global Location: Cursor Settings → Rules (global rules UI) Project Location: /.cursor/rules/.mdc Manual Steps: 1. Create the rules directory: mkdir -p .cursor/rules/ 2. Save the skill as a .mdc file with YAML frontmatter (description, globs). 3. Example: .cursor/rules/my-skill.mdc 4. Cursor auto-loads .mdc files from .cursor/rules/ on session start. Agent Prompt: Please install the "Law To Markdown" skill from https://github.com/zh-xx/legal-assistant-skills. 1. Clone or download the repository from https://github.com/zh-xx/legal-assistant-skills 2. Copy the folder "law-to-markdown" to Cursor Settings → Rules (global rules UI) 3. The skill files should now be at: Cursor Settings → Rules (global rules UI) 4. Confirm what was installed and verify the SKILL.md file exists. --- ### Gemini CLI Global Location: ~/.gemini/skills/law-to-markdown/SKILL.md Project Location: /.gemini/skills/law-to-markdown/SKILL.md Manual Steps: 1. Create the skill folder: mkdir -p ~/.gemini/skills/law-to-markdown 2. Copy the SKILL.md file and any supporting files into that folder. 3. Or run: gemini skills install to install from a GitHub URL. 4. Use --scope workspace to install into the project instead of globally. Agent Prompt: Please install the "Law To Markdown" skill from https://github.com/zh-xx/legal-assistant-skills. 1. Clone or download the repository from https://github.com/zh-xx/legal-assistant-skills 2. Copy the folder "law-to-markdown" to ~/.gemini/skills/law-to-markdown/SKILL.md 3. The skill files should now be at: ~/.gemini/skills/law-to-markdown/SKILL.md 4. Confirm what was installed and verify the SKILL.md file exists. ---