legal-industry-report

Generate formal monthly or quarterly industry legal research reports as A4 PDFs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires markdown, pyyaml, beautifulsoup4, jinja2, playwright, pymupdf, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Lawyers and law firms need to produce polished, publicly distributable industry research reports on a monthly or quarterly cadence, but manually researching regulations, verifying sources, and typesetting a professional A4 PDF is slow and error-prone.

Core Features & Use Cases

  • Industry Rule Packs: Resolves the target industry against 8 built-in rule packs with 103 aliases, providing research questions, indicators, legal risk lenses, and official first-hand sources; unknown industries fall back to a common pack flagged as needs_custom_pack.
  • Evidence Discipline: Enforces an evidence ledger separating source facts, research synthesis, lawyer judgment, and pending verification, with single-source conclusions explicitly marked.
  • Deterministic Build Pipeline: Validates the Markdown draft, renders branded HTML via Jinja2 with 5 law-firm color palettes and 4 cover variants, and produces an A4 PDF through Playwright with page-geometry verification and hashed metadata.
  • Use Case: A lawyer asks for a quarterly report on the AI industry in China; the Skill resolves the ai-data rule pack, guides evidence collection from official sources like CAC and the National Data Bureau, then builds a PUBLIC_REVIEW PDF ready for lawyer review before publication.

Quick Start

Ask the assistant to generate a quarterly industry legal report for a chosen industry and region, then follow the prompts to configure your firm profile before building the final PDF.

Frequently Asked Questions about legal-industry-report

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

FAQPage Schema
How do I generate an industry legal research report as a PDF?

Provide the industry name and optionally region, period, and focus. The Skill resolves an industry rule pack, guides evidence collection from official sources, validates the Markdown draft with validate_report.py, and builds the A4 PDF via build_report.py using Playwright.

What industries does the legal report generator support?

It ships with 8 rule packs covering advanced manufacturing, AI and data, healthcare, energy and mobility, construction and real estate, consumer services, cross-border trade, and fintech, with 103 aliases. Unknown industries fall back to a common pack marked needs_custom_pack.

What dependencies are required to render the PDF report?

You need Python 3.10+, the packages in scripts/requirements.txt (Markdown, PyYAML, BeautifulSoup, Jinja2, Playwright, PyMuPDF), and a Chromium browser installed via playwright install chromium. Mermaid CLI is optional for diagrams.

Can the generated report be published automatically?

No. Reports are produced with PUBLIC_REVIEW status and must be reviewed by a lawyer for facts, legal validity, and wording before any publication. The Skill never sends, uploads, or publishes content automatically.

Why does report validation fail with hard-fail errors?

Validation blocks delivery when placeholders remain, the disclaimer is missing or misplaced, key facts lack clickable sources, single-source claims are undisclosed, or the PDF has non-A4 pages, clipping, or garbled text. Fix the flagged issue and rebuild.