诉讼文书起草 logo

诉讼文书起草

Community
pa1nrui1
诉讼文书起草

基于"六来源体系"和请求权基础分析,起草起诉状、答辩状、代理词、质证意见、保全申请书等诉讼文书。整合《法律文书汇编》(郑州市律师协会2023年度优秀法律文书汇编)格式标准,按总控当前事项记录和复盘台账衔接。当用户发送客户编号并提及"起诉状"、"答辩状"、"代理词"、"质证"、"保全"等指令时触发使用。

Overview

Publisherpa1nrui1
Repositorylegal-skills
Skill name诉讼文书起草
Stars
112
Forks
18
Bundled files
15
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.

  • 15 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 前,必须先遵循:

  • skills/legal/法律工作总控/references/practice-profile.md
  • skills/legal/法律工作总控/references/matter-workspace-protocol.md
  • skills/legal/法律工作总控/references/document-reading-protocol.md
  • skills/legal/法律工作总控/references/source-boundary-protocol.md
  • skills/legal/法律工作总控/references/ocr-correction-protocol.md
  • skills/legal/法律工作总控/references/pkulaw-mcp-legal-verification-protocol.md

本 Skill 只处理「诉讼文书起草」专业任务;案件隔离、事项路径、文件读取、OCR 复查、来源披露、缺口归档、法规/案例/Wiki 核验和复盘台账更新均按法律工作总控共享协议执行。

旧规则废止(强制)

  • 旧文中直接写死的客户目录、阶段目录、旧式台账写入、旧本地读取协议均不作为执行规则。
  • 事项路径、当前事项、系统记录、业务文件区和复盘台账统一以法律工作总控 matter-workspace-protocol.md 为准。
  • 不得静默写入复盘台账;确需更新时,先确认属于复盘台账更新并向用户说明。

诉讼文书起草Skill

轻量入口

本文件是瘦身后的触发入口,只保留任务边界、执行顺序和按需读取索引。完整流程、模板、清单、专项规则和长示例已迁移至 references/完整流程.md。

何时使用

  • 用户明确提到「诉讼文书起草」或本 Skill frontmatter 描述中的任务。
  • 用户请求生成、审查、分析、计算、管理或推进与「诉讼文书起草」对应的法律工作成果。
  • 法律工作总控或上游 Skill 路由到本 Skill。

执行顺序

  1. 先按法律工作总控确认当前事项、业务文件区、系统记录区和来源边界。
  2. 判断用户任务是否可以用本轻量入口完成;如只是路由、状态判断或简短提示,不默认读取完整流程。
  3. 需要生成正式文书、报告、清单、计算结果、可视化、专项审查或复杂分析时,按需读取 references/完整流程.md 的相关章节。
  4. 读取外置细节时,只读取当前任务需要的章节;不要为一个小问题整篇加载完整流程。
  5. 输出前同步披露已读取材料、已核验内容、未核验/存疑内容、法规案例检索状态和需要用户判断事项。

要素式起诉状输出规则

模板登记中已覆盖案由的法院要素式起诉状必须使用 DOCX 母版克隆填充链路,不得退回传统段落式起诉状模板或普通 HTML 表格重制格式。答辩状和“实例”文件不适用本规则。

当前强制适用案由:

  • 民间借贷纠纷

  • 离婚纠纷

  • 买卖合同纠纷

  • 金融借款合同纠纷

  • 物业服务合同纠纷

  • 银行信用卡纠纷

  • 机动车交通事故责任纠纷

  • 劳动争议纠纷

  • 融资租赁合同纠纷

  • 保证保险合同纠纷

  • 证券虚假陈述责任纠纷

  • 业务侧输出 complaint-data.json,记录当事人、送达、诉请、事实、担保、证据和落款字段,并为字段标注来源或缺口。

  • 导出侧输出 fill-plan.json,使用表格坐标和锚点定位字段;多个“姓名:”“电话:”“日期:”等重复锚点必须用表格坐标区分。

  • 正式 Word 由 法律文书模板与导出/scripts/fill_docx_template.py 克隆母版并填充;输出必须是清洁 DOCX,不得含 w:ins、w:del 或 trackRevisions。

  • 质控以 法律文书模板与导出/scripts/run_template_clone_qc.py 和 health_check.py --expect-clean-clone 为准;未通过时退回字段、填充计划或模板登记修正。

生成起诉状业务输入前,先运行案由分流校验;案由精确命中上表时必须输出 complaint-data.json、fill-plan.json、qc-meta.json,未命中时走普通 HTML 技术路线,案由相近但不精确时先确认案由。

bash
python scripts/complaint_business_gate.py route --case-cause "民间借贷纠纷" --doc-type "民事起诉状"
python scripts/complaint_business_gate.py check-output --case-cause "民间借贷纠纷" --output-kind template_clone --complaint-data complaint-data.json

使用结构化案件材料包做回归或工作草稿抽取时,先运行材料抽取脚本生成业务输入和来源记录;脚本只使用材料包明示字段,缺失内容必须进入 known_gaps,不得自动补全。

bash
python scripts/material_to_complaint_input.py --materials materials.json --out /tmp/complaint-input

使用真实文件做回归或工作草稿抽取时,必须先读取文件并生成结构化材料包;文件读取失败、图片 OCR 不可用或存在不可确认内容时,不得继续生成起诉状输入。

bash
python scripts/files_to_material_packet.py --files 当事人信息.docx 事实证据.pdf --case-cause "民间借贷纠纷" --out /tmp/file-to-complaint

证据目录格式门禁

涉及证据目录时,必须先读取 诉讼文书起草/templates/证据目录格式.md。证据目录默认使用 第一组证据、证明目的 等分组文本段落结构;未经用户明确覆盖不得改成表格版。用户要求“直接用表格”时,应先作为格式偏离确认事项记录,不得跳过模板读取、材料完整读取、读取复查摘要和出稿前审查。

输出计划或门禁拦截说明中必须原样出现 未经用户明确覆盖不得改成表格,不得改写成“未经你确认”等泛化表述。

按需读取索引

  • references/完整流程.md:瘦身前完整正文,含详细流程、模板索引、专项规则、交互规范和注意事项。
  • references/:本 Skill 的专业规则、清单、方法论和外置参考材料。
  • templates/:文书、报告、表格等输出模板;仅在需要生成对应成果时读取。
  • assets/、scripts/、checklists/、reference/:如目录存在,仅在完整流程或当前任务明确需要时读取。

输出底线

  • 不跳过用户提供的材料;读取失败必须说明。
  • 不用模型记忆替代法律法规核验;引用法规、案例、Wiki 或网页搜索时必须标注来源和核验状态。
  • 材料不足时提示缺口,不悄悄补全。
  • 需要写入系统记录、复盘台账、飞书文档或飞书日历时,按总控和对应飞书 Skill 规则执行。

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?

基于"六来源体系"和请求权基础分析,起草起诉状、答辩状、代理词、质证意见、保全申请书等诉讼文书。整合《法律文书汇编》(郑州市律师协会2023年度优秀法律文书汇编)格式标准,按总控当前事项记录和复盘台账衔接。当用户发送客户编号并提及"起诉状"、"答辩状"、"代理词"、"质证"、"保全"等指令时触发使用。

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 👇