ordinary-to-element-complaint
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "ordinary-to-element-complaint" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-19aae30e80cdc16fb2513a945b488c335f3be08257a7edba75b1458742a5a586. Verify the upstream source and version against https://skillhub.cn/skills/user_be14e1bc/baogm001 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Converts ordinary civil complaints into the Supreme People’s Court 'element-based complaint template' (based on the financial loan contract dispute template). Used when users submit an ordinary complaint (docx/pdf) and request an element-based complaint, reformatting into the element-table template, or handling multiple plaintiffs/defendants; the script clones and expands parties according to the template while preserving original table lines and layout.
Introduction source: third_party · user_be14e1bc · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: ordinary-to-element-complaint
description: 将普通民事起诉状转换为最高人民法院《要素式起诉状示范文本》(以金融借款合同纠纷模板为基底)。当用户提供普通起诉状(docx/pdf)并要求生成要素式起诉状、按要素式表格模板重排、或处理多原告/多被告的要素式文书时使用。脚本会在保留原模板表格线与布局的前提下,自动按模板格式克隆扩充多个当事人。
agent_created: true普通起诉状 → 要素式起诉状
Overview
本 skill 把一份自由格式的「普通民事起诉状」转换成最高人民法院推广的
要素式起诉状(当前内置模板为「金融借款合同纠纷」示范文本)。转换以
assets/template.docx 为唯一版式来源:表格线、合并单元格、列宽、字体等
原始布局一律保留,绝不重建表格;当原告 / 被告 / 第三人数量大于 1 时,
按模板既有格式克隆对应的当事人行(重复同名标签行,不做重新编号)。
确定性填充由 scripts/fill_element_complaint.py 完成;从普通起诉状中
抽取结构化信息由 AI 完成(见下方工作流)。
When to use
- 用户给出一份普通起诉状(自由叙述式),要求产出要素式 / 表格式起诉状。
- 用户明确要求「要素式」「按示范文本填写」「多原告/多被告」。
- 案件类型为借款、买卖、劳动争议等可用同一套最高院要素式表单的情形 (金融借款合同纠纷模板通用,其它案由改副标题即可)。
Workflow
1. 读取普通起诉状
用 Read 工具读取用户提供的 .docx(或先转成文本)。若是 PDF,先抽取文本。
辨认:当事人(原/被告/第三人,自然人或法人)、诉讼请求、事实与理由、
管辖约定、调解意愿等。
2. 判定案由与当事人类型
- 案由写入
case_type(如「金融借款合同纠纷」「民间借贷纠纷」)。 - 每个当事人判定
type:自然人或法人(含非法人组织)。
3. 抽取字段
按 references/schema.md 的字段表,把每位当事人的信息映射到对应 fields。
- 自然人:姓名 / 性别 / 出生日期 / 民族 / 住所地 / 证件类型 / 证件号码 / 联系电话。
- 法人:名称 / 住所地 / 法定代表人 / 统一社会信用代码 /
org_type(类型勾选项) /ownership(所有制性质勾选项)等。
4. 抽取要素章节
把诉讼请求、约定管辖、事实与理由、调解意愿等,整理成 sections 字典:
键为行首标签子串(模板标签常有空格,脚本会自动忽略空格做匹配),
值为要写入单元格的文本(自行带上 ☑ / □)。
5. 产出 JSON
按 references/schema.md 的结构写出数据文件(如 data.json)。
6. 运行填充脚本
依赖 python-docx。若运行环境缺失,先安装:
pip install python-docx
然后运行:
python scripts/fill_element_complaint.py \
--template assets/template.docx \
--data data.json \
--out 要素式起诉状_输出.docx
7. 校验
打开输出文档,确认:当事人数量与输入一致;多当事人已按模板格式克隆
(自然人在前、法人在后);表格线 / 合并单元格完整;勾选项 ☑ 正确;
诉讼请求 / 事实等要素项已填。
关键规则(务必遵守)
- 保留布局:脚本只替换单元格内的文字,不改
tcPr/tblPr,因此表格线、 合并、列宽零丢失。不要另起炉灶用代码重建表格。 - 字体字号与模板一致:填充时不强制任何字体/字号。新增 run 继承模板首个
run 的
<w:rPr>(有则用、无则交样式继承),标题/落款保留模板的 「方正小标宋_GBK」大字号,正文单元格与模板同样采用样式继承——输出与原模板 字体字号逐字一致。切勿调用set_run_font之类的强制覆盖。 - 多当事人:数量 > 1 时脚本自动克隆当事人行,重复同名标签(如多个 「被告(自然人)」),不重新编号——与最高院示范文本既有排版一致。 当事人在组内顺序固定为「自然人 → 法人」。
- 模板即版式:所有版式信息来自
assets/template.docx;修改版式请改模板文件, 不要改脚本里的文字结构。 - 原告分组追加在表格末尾;被告分组插入在「第三人」之前;第三人分组插入在 「诉讼请求」之前。
Resources
assets/template.docx— 要素式起诉状空白模板(唯一版式来源,请勿改动其表格线)。scripts/fill_element_complaint.py— 读取模板 + JSON,输出填好的要素式 docx。references/schema.md— JSON 数据模型与字段说明、完整示例。
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决法律文书标准化痛点,提升要素式起诉状制作效率
- 目标用户明确,场景具体,具备实际专业价值
Highlights
- 触发条件清晰完整,覆盖多种变体(docx/pdf、多当事人等)
- When to use 章节有效补充边界场景
Highlights
- 结构完整,Phase/步骤清晰,有出口校验条件
- 包含端到端命令行示例,frontmatter 完整规范
Areas to improve
-
引用文件缺失风险 Reported severity: Minor
依赖 assets/template.docx 和 references/schema.md 文件,但未说明这些文件缺失时的处理机制
Recommendation: 建议在 Workflow 或关键规则中增加对必需资源文件缺失的提示或自动检测机制
Highlights
- 工具来源明确(python-docx),提供完整安装与运行指令
- 关键规则强调保留原始布局与字体继承,避免常见执行错误
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 56
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.