legal-client-brief

Generate daily, weekly, or event-triggered legal client briefs with WeChat Moments and official account drafts.

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

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 maintaining existing client relationships need to deliver frequent, incremental legal updates without rebuilding full industry research each time, while ensuring every draft passes source whitelist, case verification, and manual review gates before publication.

Core Features & Use Cases

  • Three-Channel Draft Package: Produces a full client brief, a WeChat Moments post, and a WeChat official account article from one incremental research window, all marked DRAFT for manual lawyer review.
  • Deterministic Validation Gates: Scripts enforce whitelisted source URLs, case citation fields (case number, court, judgment date, verification link), date-window compliance, and DRAFT markers before building HTML and A4 PDF outputs.
  • Industry Rule Packs: Built-in YAML registry covers manufacturing, AI/data, healthcare, energy, real estate, consumer, cross-border trade, and fintech with watch events and relevance questions per industry.
  • Use Case: A lawyer serving tech manufacturing clients runs a weekly brief: the skill resolves the industry rule pack, drafts three channel documents covering only new changes since the last cutoff, validates all sources against the whitelist, and builds a compact A4 PDF draft package for manual review and publishing.

Quick Start

Ask the agent to generate this week's client brief for your configured audience profile with period start and end dates, then review the DRAFT package it produces locally.

Frequently Asked Questions about legal-client-brief

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

FAQPage Schema
How do I generate a weekly legal client brief with this skill?

Configure report-profile.md, audience-profile.md, and sources-whitelist.txt first, then run the single-period workflow: resolve industry rules, draft the three channel documents, and call build_report.py with --kind brief, cadence, and period dates to produce the validated DRAFT package.

What outputs does the legal client brief workflow produce?

It produces three DRAFT Markdown files (full brief, WeChat Moments copy, official account article), plus HTML, A4 PDF, a metadata JSON binding content and config hashes, and a manual review checklist.

Can this skill publish directly to WeChat or send messages automatically?

No. The skill never sends WeChat messages, emails, or client system notifications and never removes the DRAFT marker. All publishing actions are performed manually by the lawyer outside the skill.

Why does the build fail with whitelist or case evidence errors?

Validation hard-fails if any URL falls outside sources-whitelist.txt, if a case lacks case number, court, judgment date, verification link and date, or if content falls outside the declared period window. Fix the cited items or rewrite the section to state no verifiable cases were included.

What is the difference between legal-client-brief and legal-industry-report?

legal-client-brief tracks only incremental changes within a short window for existing client touchpoints and outputs three channel drafts. legal-industry-report produces comprehensive monthly or quarterly industry research as a single formal publication.

What dependencies are required to render the PDF brief?

Install the Python packages from scripts/requirements.txt and run playwright install chromium for HTML-to-PDF rendering. Mermaid CLI is optional; without it, diagrams degrade to code blocks.