法律文书出稿前审查

From pa1nrui1/legal-skills · View interactive version

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

How to use this skill

Skill file

法律文书出稿前审查

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

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

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

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

触发条件

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

输入

普通线性文书必须提供:

preflight-meta.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": []
}

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

审查命令

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

审查规则

自动修正边界

允许自动修正:

禁止自动修正:

输出状态

审查报告必须包含:

状态含义:

闭环推进

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.