Legal Industry Report logo

Legal Industry Report

Community
cat-xierluo
legal-industry-report

生成面向公开展示与广泛分发的正式行业法律报告,按月度或季度完成行业全景、政策监管、代表企业、法律风险、服务机会及可追溯信源研究。本技能应在用户需要“行业报告”“月报/季报”“对外展示的行业研究”时使用。不要用于日常客户触达、单一企业尽调、具体客户法律意见或自动发布。

Overview

Publishercat-xierluo
Repositorylegal-skills
Skill namelegal-industry-report
Stars
722
Forks
109
Bundled files
28
LicenseCC-BY-NC
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 28 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by cat-xierluo on GitHub. Read the source before you install it.

Installation

Install the Legal Industry Report AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/cat-xierluo/legal-skills/tree/main/skills/legal-industry-report
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git /tmp/legal-skills
mkdir -p .claude/skills
cp -r /tmp/legal-skills/skills/legal-industry-report .claude/skills/legal-industry-report
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Legal Industry Report in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Legal Industry Report on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Legal Industry Report is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

行业报告

产品定位与路由

生成一份可供不特定潜在客户阅读的正式行业法律报告。典型频率是每月或每季度,目标是建立专业品牌、支持公开分发和形成业务入口;它不是内部速记,也不是针对具体客户的法律意见。

维度legal-industry-reportlegal-client-brief
使用阶段月度/季度全面研究日常/每周增量跟踪
核心关系面向市场与潜在客户维护既有客户关系
信息范围行业全景、结构与趋势截止日前后发生的变化
视觉语气正式、机构化、可长期留存紧凑、易扫读、适合社交渠道
交付状态PUBLIC_REVIEWDRAFT
发布动作律师复核后另行发布律师复核后另行发布

用户要发朋友圈、公众号日常更新,或只追踪最近一个周期时,改用 legal-client-brief。用户要按月/季形成完整行业作品时,使用本技能。

输入与缺口处理

输入必填默认用途
industry是无行业名称及口径
region否全国政策、产业集群与企业范围
period否季度月度或季度报告周期
focus否全景劳动、知识产权、投融资、数据、跨境等
as_of否执行日事实与有效性截点
preferred_sources否规则包用户指定主管部门、协会、数据库或材料
  • 缺 industry:停止并只追问这一项。
  • 行业名称存在多个统计口径:列出候选口径与影响,不自行选第一个。
  • 缺区域或重点:使用默认值,并在“研究边界与方法”写明。
  • 行业规则未命中:使用通用规则,同时标记 needs_custom_pack: true,先补行业问题与信源,不冒充精准行业研究。
  • 外部数据库不可用:切换到官方公开渠道或写“未采集/待复核”,不得补写推测值。

权限与安全边界

本技能会联网检索公开材料,读取本技能模板与用户明确提供的配置,并在用户指定目录写入 Markdown、HTML、PDF 和元数据。查询前对客户、案件和内部经营信息做最小必要脱敏。

本技能不会自动发送、上传、发布、安装依赖、扩张访问权限或读取用户全局 .env。公开报告避免出现真实客户名、未公开经营数据和无必要的自然人身份信息。

首次配置

  1. 复制 config/report-profile.example.md 为 config/report-profile.md,填写品牌、编号、主办律师与视觉主题。
  2. 如需增加细分行业,复制 config/industry-rules.local.example.yaml 为 config/industry-rules.local.yaml。
  3. 如需排除域名,复制 config/source-blacklist.example.txt 为 config/source-blacklist.local.txt。

真实配置由根目录 .gitignore 排除。正式 PDF 前必须补齐 report-profile.md;预览可使用去具体化配置。

研究与生成流程

  1. 固化研究边界:确定 industry / region / period / focus / as_of,写明不覆盖范围。

  2. 解析行业规则:

    bash
    python3 scripts/resolve_industry_rules.py \
      --industry "<行业>" \
      --mode report \
      --output <研究计划.json>

    如存在本地补充,增加 --overlay config/industry-rules.local.yaml。读取输出中的研究问题、必备维度、指标、风险视角、信源角色和时效规则。

  3. 建立证据账本:每个关键结论记录“来源事实 / 模型归纳 / 律师判断 / 待核验事项”,并保留标题、发布者、日期、URL、检索时间和统计口径。

  4. 全面采集:覆盖宏观与规模、产业链、竞争格局、区域集群、政策监管、代表企业、争议风险和法律服务机会。规则包是最低清单,不是结论模板。

  5. 处理冲突:来源口径不一致时并列披露,不平均、不拼接成虚假确定值。

  6. 起草报告:使用 templates/report-skeleton.md。正式报告以解释和证据为主,不写成新闻摘要堆叠。

  7. 运行门禁:

    bash
    python3 scripts/validate_report.py --kind report --input <行业报告.md>
  8. 构建交付件:

    bash
    python3 scripts/build_report.py \
      --kind report \
      --input <行业报告.md> \
      --profile config/report-profile.md
  9. 最终复核:把 PDF 全页渲染为图片,检查封面、章节节奏、中文字体、表格、页码、裁切和空白页;律师再复核事实、有效性、法律判断和公开表达。

信源与判断纪律

  • 按 references/industry-rules.yaml 选择“什么问题应查哪些一手来源”,按 references/source-priority.md 判断证据强度。
  • 官方原文可单独证明其发布内容;行业规模、份额、趋势和影响判断原则上需两个独立来源。
  • 只有一个来源时紧邻结论标注 [单一信源],并写明能证明与不能证明的范围。
  • 每条政策写发布机关、发布日期、施行日期和状态;无法确认有效性时标“待核验”。
  • 每个关键数据写统计期、指标定义、区域口径和来源。转载同一稿件不算独立来源。
  • 上市公司披露只能证明披露主体及文件所述事项;不得自动外推为全行业事实。
  • 企业数据库未返回不等于不存在;使用“未见所查公开来源记录”并列明检索范围。

输出契约

默认生成到 Markdown 所在目录或 output_dir:

  • 行业报告_<industry>_<region>_<period>_<YYYYMMDD>.md:权威源稿。
  • 同名 .html:可检查的渲染中间件。
  • 同名 .pdf:A4 正式复核版。
  • 同名 .meta.json:PUBLIC_REVIEW 状态、生成时间、文件哈希、信源 URL 与配置哈希。

报告必须包含:执行摘要、研究边界与方法、行业结构与市场、竞争格局与代表企业、政策监管与区域、法律风险与争议、服务机会与行动建议、附录与信源。

Hard Fail

出现任一项即不得交付:

  • 残留占位符、[P?] 或独立的 ...。
  • 免责声明缺失或晚于执行摘要。
  • 关键事实无可点击来源,或单一来源未披露。
  • 行业规则未命中却未披露通用回退。
  • 主体识别有多个候选却自动选第一项。
  • 把行业一般信息写成具体客户法律意见。
  • PDF 为空、存在非 A4 页面、明显裁切/重叠/乱码、异常空白页,或未做最终可视复核。

自动门禁只证明结构、信源和文件属性,不证明法律判断正确;律师完成语义复核前保持 NOT_VERIFIED。

依赖

系统依赖

依赖安装方式
Python 3.10+macOS: brew install pythonLinux: sudo apt-get install python3
Chromiumpython3 -m playwright install chromium
Mermaid CLI(可选)npm install -g @mermaid-js/mermaid-cli;缺失时降级为代码块

Python 包

Markdown、PyYAML、BeautifulSoup、Jinja2、Playwright 与 PyMuPDF 统一安装:

bash
python3 -m pip install -r scripts/requirements.txt

脚本在依赖缺失时给出安装提示,不会自动安装。

按需读取

  • 行业规则与信源:references/industry-rules.yaml、references/source-priority.md
  • 企业与隐私纪律:references/data-discipline.md
  • 报告结构:templates/report-skeleton.md
  • 视觉规范:references/design-spec.md、references/palette-presets.md
  • 故障排查:依次运行 validate_industry_rules.py、industry_rules_selftest.py、validate_report_selftest.py

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Legal Industry Report AI skill do?

生成面向公开展示与广泛分发的正式行业法律报告,按月度或季度完成行业全景、政策监管、代表企业、法律风险、服务机会及可追溯信源研究。本技能应在用户需要“行业报告”“月报/季报”“对外展示的行业研究”时使用。不要用于日常客户触达、单一企业尽调、具体客户法律意见或自动发布。

Why use Legal Industry Report on TypingMind?

Because you install it once and use it with any model. Legal Industry Report is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Legal Industry Report in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cat-xierluo/legal-skills/tree/main/skills/legal-industry-report. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Legal Industry Report?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Legal Industry Report?

As many as you like. As long as a model supports skills, you can use Legal Industry Report with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Legal Industry Report AI skill free?

Yes. It is published on GitHub by cat-xierluo under the CC-BY-NC license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇