What problem does it solve?
Chinese courts now require complaints filed in the Supreme Court's official element-style format (法〔2025〕82 号), and manually reformatting an existing complaint into these rigid templates is slow and error-prone. This Skill converts a lawyer's existing complaint (Markdown, docx, or conversational description) into a court-ready element-style Word document with pixel-level format fidelity.
Core Features & Use Cases
- Three-stage pipeline: case-cause matching against 113 official template trees, LLM-based element extraction into a reviewable elements.json, then deterministic lxml-based OOXML rendering that preserves fonts, tables, and checkboxes.
- Full coverage of 68 case causes: 26 finely-tuned causes (divorce, private lending, IP infringement, labor disputes, enforcement applications, etc.) plus generic-level rendering for the rest, with automatic party blocks, mediation sections, and signature dates.
- Layout gate with fail-safe publishing: candidate DOCX files are validated via LibreOffice real PDF rendering (A4 geometry, table centering, continuous page numbers, blank-page detection) before atomically replacing any existing output.
- Use Case: A lawyer has a conventional complaint for a private lending dispute. The Skill matches cause 09-private-lending, extracts parties/claims/facts into elements.json for human review, then renders a court-submittable 要素式起诉状.docx.
Quick Start
Convert my attached conventional complaint markdown into an official element-style complaint Word document for a private lending dispute.