AI Agent Hub
Back to skills
⚖️

One-Click Element-Based Legal Document Generator

Professional Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Install @user_b8af0005/element-complaint-filler using the official guide at https://skillhub.cn/install/skillhub.md.

About this skill

Problem

Element-based court documents depend heavily on local .docx templates. Field positions, merged cells, ghost cells, fonts, and style IDs vary across templates, so manually extracting information from complaints, answers, or source text and pasting it into the form is slow and easy to break. This skill targets element-based legal documents such as private-lending complaints and enforcement applications. It accepts source materials in .doc, .docx, or plain text, and includes template structure references, so users often do not need to upload a template file.

How It Works

The workflow is inspect-first and format-aware. It begins with copy_template to avoid mutating the original file, then uses discover_template_style to detect fonts and style IDs. Next, it reads and parses source materials with read_source, parse_parties, parse_claims, and parse_facts to extract parties, claims, and factual background. Before writing, it analyzes table structure, merged mappings, and ghost cells, then fills values using helpers such as cell_replace, cell_set, cell_skip, cell_gender, fill_natural_person, and fill_legal_entity. The references/ directory includes two validated templates: the element-based private-lending complaint and the enforcement application. When users provide a new template, inspect_template saves the structure dump and field index into references/, building a reusable personal template library.

Boundaries and Caveats

The skill does not invent facts that are absent from the source materials. It prefers preserving original fact descriptions, leaves evidence lists and mediation-willingness fields blank when required, and avoids hardcoding cell coordinates. It is best suited when the case type matches a built-in template or when the user supplies a clear element-based template. Merged cells, pre-filled values, font rendering differences, and inconsistent style IDs all require inspection before editing; otherwise the file may be structurally valid but render incorrectly in Word or WPS.

Use Cases

  • When a private-lending complaint has source pleadings and needs party, amount, and facts filled into the court template.
  • When an enforcement judgment and draft exist, produce a submission-ready enforcement application while preserving formatting.
  • When a user uploads a new court template, extract its table structure and field mapping into a reusable local template library.
  • When a response document contains scattered facts, parse claims and facts and write them into the correct cells.

Best For

  • Lawyers handling private-lending filings who need court-formatted element-based complaints generated quickly.
  • Legal operations staff processing enforcement cases who need to fill judgment details into an enforcement application template.
  • Law-firm assistants preparing pleadings who need party and claim extraction from Word materials into a table.
  • Legal-tech developers maintaining local document templates who need to inspect structure and persist field mappings.