小陈陈法律文书

Generate legal documents from Word templates with compliance checks and law citation retrieval.

1|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/qfwc258/trae-skills --skill skill-qfwc258
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 小陈陈法律文书
Source: https://github.com/qfwc258/trae-skills/tree/main/%E5%B0%8F%E9%99%88%E9%99%88%E6%B3%95%E5%BE%8B%E6%96%87%E4%B9%A6
Command: npx skills add https://github.com/qfwc258/trae-skills --skill skill-qfwc258

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, reportlab, jieba, fuzzywuzzy, python-Levenshtein, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve? Drafting legally compliant documents such as complaints, contracts, and applications requires knowledge of official formats and relevant statutes, which is time-consuming and error-prone for non-lawyers. ## Core Features & Use Cases - Dual-Driven Template Matching: Locate templates via keyword matching or AI analysis of case descriptions, searching user Word template folders first and a built-in library of 200+ official templates second. - Compliance Validation and Law Retrieval: Check documents against official court document standards and automatically associate relevant legal statutes. - Multi-Format Export: Generate final documents in Word or PDF, including batch generation for law firms and HR departments. - Use Case: A user describes a loan dispute; the skill finds a civil complaint template, guides the user through filling party information and claims, validates compliance, and exports a court-ready filing. ## Quick Start Generate a civil complaint for a loan dispute using my Word templates in the legal_templates folder and export it as a PDF.

Frequently Asked Questions about 小陈陈法律文书

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a legal document from a Word template in Python?

Place your .docx templates in a folder, build an index with template_finder.py, then fill placeholders using word_template_processor.py with a JSON data payload. Templates without placeholders are analyzed structurally so the AI can reproduce their format.

How to match a legal template from a case description?

Provide keywords or a case narrative to template_finder.py, which searches your user template folder first and then the built-in library of 200+ official templates. If nothing matches, the AI drafts the document directly from the case description.

Can I batch generate contracts from one Word template?

Yes, word_template_processor.py supports a batch action that takes a template and a JSON list of records, outputting one filled document per record. This suits law firms or HR teams generating multiple labor contracts.

Does the legal document generator support PDF export?

Yes, doc_generator.py exports generated content to both Word and PDF formats using python-docx and reportlab. Output follows official court document styles suitable for litigation, notarization, and filing.

What are the limitations of template-based legal document generation?

Matching depends on keyword accuracy and clear file naming, and the local statute database requires manual updates for new laws. Batch generation requires membership, and significant legal matters should still be reviewed by a licensed attorney.