法律文书出稿前审查 logo

法律文书出稿前审查

Community
pa1nrui1
法律文书出稿前审查

在法律业务 Skill 生成正文或要素式字段后、法律文书模板与导出生成本地 Word 前触发。用于审查 draft.html/preflight-meta.json 或 complaint-data.json/fill-plan.json、读取复查摘要、法规校验摘要、来源边界和用户确认记录,决定是否可以进入正式 DOCX 导出;发现问题后必须闭环推进到业务 Skill 整改、用户确认或材料读取流程。

Overview

Publisherpa1nrui1
Repositorylegal-skills
Skill name法律文书出稿前审查
Stars
112
Forks
18
Bundled files
1
LicenseMIT
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.

  • 1 bundled files

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

  • Open source

    Published by pa1nrui1 on GitHub. Read the source before you install it.

Installation

Install the 法律文书出稿前审查 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/pa1nrui1/legal-skills/tree/main/skills/legal/法律文书出稿前审查
  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.

Use it in TypingMind

Enable 法律文书出稿前审查 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 法律文书出稿前审查 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 法律文书出稿前审查 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.

法律文书出稿前审查

本 Skill 是正式本地 Word 输出前的强制闭环审查节点,不替代业务 Skill 的事实判断、法律分析和正文起草。

法律工作总控规则(强制)

执行本 Skill 前,必须先遵循:

  • skills/legal/法律工作总控/references/practice-profile.md
  • skills/legal/法律工作总控/references/source-boundary-protocol.md

本 Skill 继承 practice-profile.md 的子 Skill 执行质量门;材料读取、法规核验、用户确认和来源边界缺失时,不得进入正式导出链路。

触发条件

  • 最终产物是本地 .docx 的法律文书、报告、清单、笔录、意见书、函件、合同或正式交付文件。
  • 普通线性文书:业务 Skill 已生成 draft.html 和 preflight-meta.json,准备进入 法律文书模板与导出。
  • 要素式表单文书:业务 Skill 已生成 complaint-data.json 和 fill-plan.json,准备进入 DOCX 母版克隆填充链路。
  • 用户直接点名业务 Skill 输出 Word 时,也必须先经过本 Skill。

格式测试稿、非正式实验稿可以例外,但必须明确标注不是正式交付。

输入

普通线性文书必须提供:

  • draft.html:语义 HTML,使用 h1、h2、h3、p、section、table 等标签。
  • preflight-meta.json:出稿前元数据,使用“声明 + 证据路径”,不得只写布尔值。

preflight-meta.json 至少包含:

json
{
  "source_skill": "诉讼文书起草",
  "doc_type": "取保候审申请书",
  "output_purpose": "正式交付",
  "profile": "litigation_standard",
  "template_selection_path": ".../template-selection.json",
  "content_template_id": "registered_template_id",
  "content_template_version": "1.0",
  "content_template_sha256": "sha256",
  "profile_id": "litigation_standard",
  "profile_version": "1.0",
  "format_standard": "litigation_standard",
  "matter_path": "...",
  "system_record_path": "...",
  "evidence": {
    "reading_review_path": "...",
    "legal_verification_path": "...",
    "source_boundary_path": "...",
    "user_confirmation_source": "..."
  },
  "required_confirmations": [],
  "known_gaps": []
}

要素式表单文书必须提供:

  • complaint-data.json:结构化字段,字段应有来源或缺口说明。
  • fill-plan.json:字段到 DOCX 母版的表格坐标和锚点映射。
  • qc-meta.json:模板 ID、事项路径、来源记录、读取复查、法规校验和用户确认记录。

审查命令

bash
python scripts/preflight_check.py \
  --html draft.html \
  --meta preflight-meta.json \
  --output-html draft_checked.html \
  --report 出稿前审查报告.md

审查规则

  • 核验 draft.html、preflight-meta.json 和证据路径是否存在、可读、内容匹配。
  • 核验读取复查摘要、法规校验摘要、来源边界记录、用户确认记录是否真实存在。
  • 如正文引用法律、法规、司法解释、案例、裁判规则等内容,必须有法规校验摘要。
  • 如 required_confirmations 非空,必须能在用户确认记录中找到对应确认内容。
  • 检查固定身份信息:
    • 律所:【律所名称】
    • 律师:【律师姓名】
    • 地址:【律所地址】
    • 电话:【联系电话】
    • 邮箱:【电子邮箱】
  • 检查 HTML 结构至少包含标题和正文;含表格时必须保留为真实 table。
  • 检查 profile 是否能匹配 法律文书模板与导出/assets/profiles/ 中的 profile;未命中时使用 fallback_desktop_word。
  • 如 preflight-meta.json 记录了 template_selection_path 或 content_template_id,必须核验模板选择记录、模板版本、模板 sha256、profile 版本和兼容 profile;未登记模板、sha256 不一致、profile 不兼容或解除委托协议误用 entrustment_contract 时,必须阻断。
  • 要素式表单文书检查模板 ID 是否命中 template-clone-manifest.json。
  • 检查 fill-plan.json 中每个字段是否有唯一表格坐标和锚点;重复锚点不得只用全局文本定位。
  • 检查字段缺口、金额、日期、主体、诉请和落款是否已确认;未确认字段不得写入正式字段。

自动修正边界

允许自动修正:

  • 固定身份信息错误或缺漏。
  • 简单 HTML 类名和标签修复。
  • Markdown 表格转 HTML 表格。
  • 明显格式类问题。

禁止自动修正:

  • 事实、金额、日期、案号、诉讼请求、罪名。
  • 授权范围、收费方式、合同核心条款。
  • 法律依据、裁判项、风险结论。
  • 用户尚未确认的实体选择。

输出状态

审查报告必须包含:

  • review_status
  • next_owner
  • next_action
  • return_to_skill
  • revision_items
  • confirmation_questions
  • evidence_required
  • rerun_required

状态含义:

  • PASS:可以进入 法律文书模板与导出。
  • FIXED_PASS:已完成低风险自动修正,可以进入 法律文书模板与导出。
  • NEEDS_BUSINESS_REVISION:退回业务 Skill 整改正文、结构、法律分析或元数据。
  • NEEDS_USER_CONFIRMATION:需要集中向用户确认事实、选择项、授权、收费、诉请、金额或期限。
  • NEEDS_MATERIAL:需要补充材料、重新读取、OCR 或补充读取复查摘要。
  • HARD_BLOCK:存在无法继续推进的根本问题。

闭环推进

  • 不得只拦截问题;必须给出下一步归属和动作。
  • NEEDS_BUSINESS_REVISION:退回 source_skill,按 revision_items 整改后重新运行本 Skill。
  • NEEDS_USER_CONFIRMATION:向用户集中确认 confirmation_questions,写入用户确认记录后重新运行本 Skill。
  • NEEDS_MATERIAL:回到 法律工作总控 的材料读取、OCR、读取复查和法规校验流程。
  • 只有 PASS 或 FIXED_PASS 可以进入 法律文书模板与导出。

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 法律文书出稿前审查 AI skill do?

在法律业务 Skill 生成正文或要素式字段后、法律文书模板与导出生成本地 Word 前触发。用于审查 draft.html/preflight-meta.json 或 complaint-data.json/fill-plan.json、读取复查摘要、法规校验摘要、来源边界和用户确认记录,决定是否可以进入正式 DOCX 导出;发现问题后必须闭环推进到业务 Skill 整改、用户确认或材料读取流程。

Why use 法律文书出稿前审查 on TypingMind?

Because you install it once and use it with any model. 法律文书出稿前审查 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 法律文书出稿前审查 in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/pa1nrui1/legal-skills/tree/main/skills/legal/法律文书出稿前审查. 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 法律文书出稿前审查?

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 法律文书出稿前审查?

As many as you like. As long as a model supports skills, you can use 法律文书出稿前审查 with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the 法律文书出稿前审查 AI skill free?

Yes. It is published on GitHub by pa1nrui1 under the MIT 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 👇