law-to-markdown

Convert legal texts from TXT, DOCX, and PDF into structured Markdown.

19|3|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/LawMotion-AI/Vibe-Lawyering --skill law-to-markdown-lawmotion-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: law-to-markdown
Source: https://github.com/LawMotion-AI/Vibe-Lawyering/tree/main/agent-skills/legal-assistant-skills/law-to-markdown
Command: npx skills add https://github.com/LawMotion-AI/Vibe-Lawyering --skill law-to-markdown-lawmotion-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pdfplumber, python-docx, and includes scripts (resource) components.

What problem does it solve?

Converts legal texts into clean, machine-friendly Markdown to streamline review, editing, and AI-assisted processing.

Core Features & Use Cases

  • PDF/DOCX/TXT input support with automatic formatting into a legally structured Markdown document.
  • Mineru-ocr integration for PDF/DOCX extraction, with explicit user consent for local fallback engines.
  • Stage-based workflow producing stage1, stage2, and stage3 artifacts along with an audit report for traceability.
  • Use case: a legal team converts statutes and standards into searchable Markdown to enable faster analysis and collaboration.

Quick Start

Provide a legal document file (.txt/.docx/.pdf) and receive a structured Markdown file with legal headings and an accompanying audit report.

Frequently Asked Questions about law-to-markdown

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert legal PDFs to Markdown while preserving document structure?▼

The Skill converts legal PDFs to Markdown by using mineru-ocr for extraction and applying a staged formatting workflow to produce structured Markdown with legal headings and an audit report.

What is the best way to extract text from legal DOCX files for AI-assisted processing?▼

The best way to extract text from legal DOCX files for AI processing is using this Skill, which structures content into machine-friendly Markdown via a stage-based workflow producing traceable stage1, stage2, and stage3 artifacts.

Does the legal text conversion require mineru-ocr, or can it fall back to local engines?▼

Legal text conversion primarily uses mineru-ocr for PDF and DOCX inputs, but it can fall back to local engines with explicit user consent when mineru-ocr is unavailable.

Can I use text normalization to clean up statutes and standards before analysis?▼

Yes, you can use text normalization to clean statutes and standards, as the Skill converts legal texts into clean, machine-friendly Markdown to streamline review, editing, and AI-assisted analysis.

What outputs and artifacts are generated when converting legal documents to Markdown?▼

Converting legal documents to Markdown generates stage1, stage2, and stage3 artifacts representing the staged formatting workflow, plus an audit report for traceability, all stored under a markdown/ directory.

Why does the Markdown conversion include an audit report for legal documents?▼

The Markdown conversion includes an audit report for legal documents to ensure traceability and verify the accuracy of the stage-based formatting workflow applied during extraction and text normalization.