legal-text-format

Format legal statutes and case documents into standardized Markdown.

557|80|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/cat-xierluo/legal-skills --skill legal-text-format
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: legal-text-format
Source: https://github.com/cat-xierluo/legal-skills/tree/main/skills/legal-text-format
Command: npx skills add https://github.com/cat-xierluo/legal-skills --skill legal-text-format

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of converting raw legal texts, such as statutes or case documents, into a standardized, readable Markdown format, while removing extraneous promotional content.

Core Features & Use Cases

  • Automated Formatting: Applies specific rules for legal statutes and case documents to ensure consistency.
  • Content Cleaning: Removes promotional material, advertisements, and other non-essential text.
  • Use Case: You've scraped several legal case summaries from a website. Use this Skill to clean them up, format them consistently, and prepare them for inclusion in a legal database or report.

Quick Start

Format the provided legal text into a standardized Markdown document.

Frequently Asked Questions about legal-text-format

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

FAQPage Schema
How do I convert case law texts and statutes into standardized Markdown?

To format legal texts into Markdown, this Skill uses automated type identification to distinguish between statutes and case documents, then applies specific formatting rules to ensure consistent structure and content integrity.

How do I clean promotional content from scraped legal case summaries?

Cleaning promotional content from scraped legal case summaries involves automated content cleaning that removes advertisements and extraneous non-essential text, ensuring the final Markdown document maintains content integrity.

What is the best way to format raw legal documents for a database?

Formatting raw legal documents for a database involves applying standardized Markdown rules that clean extraneous promotional material and normalize statutes and case documents into a consistent, readable structure for inclusion in legal reports.

Does the formatting process support both case documents and statutes?

The formatting process supports both case documents and statutes by using automated type identification to detect the document category and apply the specific formatting rules required for each legal text type.

Can I use this to prepare scraped legal texts for a report?

You can use this to prepare scraped legal texts for a report by cleaning up the raw content, formatting statutes and case summaries consistently in Markdown, and ensuring content integrity is maintained throughout the document.

How does automated type identification work for legal texts?

Automated type identification for legal texts works by analyzing raw input to detect whether it is a statute or a case document, which then triggers the application of specific formatting rules designed for that particular legal text type.