legal-agreement-writer

Generates formal Chinese legal agreement documents in Word format using docx-js.

1|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/qfwc258/trae-skills --skill legal-agreement-writer-qfwc258
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: legal-agreement-writer
Source: https://github.com/qfwc258/trae-skills/tree/main/legal-agreement-writer
Command: npx skills add https://github.com/qfwc258/trae-skills --skill legal-agreement-writer-qfwc258

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx.

What problem does it solve? Drafting formal Chinese legal documents such as settlement agreements and contracts requires strict adherence to formatting conventions—specific fonts, Chinese numeral numbering, capitalized amounts, and structured clauses—which is tedious and error-prone when done manually. ## Core Features & Use Cases - Standard Legal Formatting: Applies A4 page setup, 仿宋/宋体 fonts, centered bold titles, and proper margins per Chinese legal document conventions. - Structured Document Sections: Generates party information, case background, numbered clauses (一、二、三...), and signature blocks with date fields. - Chinese Capital Amounts: Formats monetary values using formal Chinese uppercase numerals (壹、贰、叁) alongside Arabic figures. - Use Case: A user needs an enforcement settlement agreement (执行和解协议) between two parties; the Skill produces a properly formatted .docx file with party details, case reference, debt resolution clauses, and signature areas. ## Quick Start Ask the assistant to create a Chinese enforcement settlement agreement in Word format with the parties' names, case number, and settlement amount.

Frequently Asked Questions about legal-agreement-writer

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

FAQPage Schema
How do I create a Chinese legal agreement in Word format?

Provide the parties' names, case details, and agreement terms, and the Skill generates a .docx file using the docx-js library. The output follows Chinese legal formatting standards including 仿宋 font, centered bold titles, and numbered clauses.

What formatting standards apply to Chinese legal documents?

Chinese legal documents use A4 paper, 仿宋 or 宋体 fonts, size 二号 bold centered titles, and size 三号 or 四号 body text. Clauses are numbered with Chinese numerals (一、二、三), and monetary amounts must appear in both Chinese uppercase characters and Arabic numerals.

Which library does this use to generate Word documents?

It uses docx-js, the Node.js docx library, to programmatically build documents with defined paragraph styles, page margins, and font settings. The generated document is written to a .docx file via Packer.toBuffer.

What types of legal documents can be generated?

The Skill supports enforcement settlement agreements (执行和解协议), contracts, settlement agreements, mediation agreements, and similar formal documents. The SKILL.md also lists civil complaints, defense statements, and authorization letters as applicable document types.

What are the limitations of generated legal documents?

Generated documents are formatting templates and do not constitute legal advice. Users must verify party information, case numbers, court names, and amounts for accuracy, and have the content reviewed by a qualified legal professional before signing.