One-click Generation of Element-based Documents: From Traditional Complaint Forms to Element-based Documents

Introduction

Since the courts introduced element-based litigation documents, lawyers often have to transcribe items item-by-item against blank templates: party information, litigation claims, and factual reasons must be extracted from existing complaints and then filled into fixed fields and checkboxes. It is no exaggeration to say that a single document takes at least half an hour to complete, and it is difficult for solo practitioners to afford to hire an assistant solely for format conversion.

The following introduces the community Skill on SkillHub, “Element-based Document One-Click Generation”: it chains “Identify Cause of Action → Select Template → Extract Elements → Fill Table” into a workflow that can be triggered within an Agent, changing the manual template-matching process into an automated output after uploading a traditional complaint.

What is this

“Element-based Document One-Click Generation” is an Agent Skill designed for legal practice scenarios. Its coordinate is @user_a82a2273/element-lawsuit-generato, the current version is 1.0.0, the source is community, the category is professional, and it is maintained by the publisher user_a82a2273. The page is marked as requires_api_key=false, meaning no separate API Key configuration is needed after installation.

The core problem it solves is converting the traditional complaints held by lawyers into the element-based documents required by the courts—automatically identifying the cause of action, matching the corresponding template, extracting elements from the original text, and writing them into the template. This includes regional positioning filling and checkbox handling, rather than requiring manual copy-pasting item by item in Word.

Core Features

The following capabilities are derived from the official SkillHub introduction; technical details not separately expanded upon on the page are not speculated upon.

  1. Cause of Action Identification & Template Matching: Determines the cause of action based on the uploaded traditional complaint and matches the corresponding element-based template.
  2. Element Extraction & Filling: Extracts structured elements from the body of the complaint and writes them into the corresponding fields of the template.
  3. Coverage: Officially supports 9 types of documents and 58 causes of action; the template library contains 104 templates across 11 major fields.
  4. Layout Details: Supports precise filling via regional positioning and intelligent handling of checkboxes to reduce manual selection.

Current statistics from the SkillHub page (based on scraped data): Rating 100000, Downloads 1128.

Installation and Activation

The Skill follows the standard SKILL.md format. The official installation prompt is: first read the SkillHub installation instructions, then install this Skill coordinate.

1. Install SkillHub CLI (if not already installed)

Check if it is installed:

command -v skillhub && skillhub --version

If not installed, follow the official documentation to execute the full installation (CLI + Default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If only the CLI is needed:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Documentation: https://skillhub.cn/install/skillhub.md.

2. Install this Skill

During installation, you must use --dir to point to the skills directory currently used by your Agent. Otherwise, it will default to ./skills/, and the Agent may not recognize it.

skillhub install user_a82a2273/element-lawsuit-generato --dir <your skills directory>

You can also ask the AI in a conversation to install it according to the official prompt, using an equivalent expression:

Please install `@user_a82a2273/element-lawsuit-generato` according to https://skillhub.cn/install/skillhub.md.

3. Skills directories for various clients (excerpt)

The common paths provided in the official installation documentation are as follows. Please select based on the client you are actually using:

Client skills Directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project
Gemini CLI ~/.gemini/skills/

After installing to the correct directory, restart or refresh the Skill list according to your Agent’s instructions so that “Element-based Document One-Click Generation” appears in the available skills.

Typical Usage

The official page does not provide step-by-step screenshots or fixed CLI subcommands; the reproducible workflow comes from the introduction’s description of how it works:

  1. In an Agent session with this Skill enabled, prepare the traditional format complaint (usually document content that can be uploaded or pasted).
  2. State the goal: generate the element-based document corresponding to the cause of action, or directly use the Skill name to trigger the “Element-based Document One-Click Generation” capabilities.
  3. The Skill completes cause of action identification, template matching, element extraction, and filling, outputting the completed element-based document. Fields involving checkboxes are handled by the Skill according to the “intelligent handling” logic described in the introduction, without the need for manual selection in the template.

If a specific cause of action is not within the officially claimed coverage of 58 causes of action or 104 templates, you should first verify the Skill description or switch to a complaint expression that matches the cause of action to avoid forcing an incorrect template.

Applicable Scenarios & Notes

Who is it for

  • Solo practitioners or small law firms, legal consultants who need to frequently convert traditional complaints into element-based documents but do not want to spend a lot of time on layout.
  • Legal practitioners already working in Agent environments that support SkillHub skills, such as Cursor, Claude Code, or Codex.

Usage Notes

  • The source is community. The generated documents still require the lawyer to personally review the facts, the basis of the claim, and the legal grounds; automated filling cannot replace professional judgment.
  • Scraped data shows the page installation count is 0, which may be related to SkillHub’s statistical caliber or display delay; take the success of your local skillhub install as the standard.
  • No API Key is required, but the Agent itself may still consume model quota; pay attention to desensitization of sensitive case materials and local compliance requirements.

Conclusion

“Element-based Document One-Click Generation” consolidates the repetitive tasks of “identifying the case, finding the template, copying elements, and changing checkboxes” in element-based documents into a single Agent workflow: upload a traditional complaint, generate a draft with one click as much as possible within the scope of 9 document types and 58 causes of action, and rely on 104 templates across 11 major fields for matching and filling.

Skill details and installation entry:

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye