Конвертация юридических документов в Markdown

★ 6.5 · documentation

law-to-markdown is a Claude Code skill that converts legal documents and regulatory files in .txt, .docx, and .pdf formats into structured Markdown through a three-stage pipeline with integrity validation. For PDF and DOCX inputs, the skill first checks whether the mineru-ocr skill is installed and guides the user to install it if not; local fallback via python-docx and pdfplumber is used only with explicit user consent. Stage two applies legal-text hierarchy: law title as `#`, part as `##`, chapter as `###`, section as `####`, and article as `#####`; non-legal documents such as GB standards are explicitly rejected at this stage. Stage three runs two hard-gate sub-checks — text accuracy against stage one output and structural correctness — automatically retrying up to twice on failure. The skill suits developers and legal professionals who need to transform laws, codes, or regulations into a Markdown-based knowledge base or documentation.