Format Chinese Legal Reports in Word
by siyu liu
Converts a Markdown legal report into a Word file with Chinese legal typography, heading styles, a real table of contents, and a footer with disclaimer and page number.
$2
What it does
- Converts a Markdown report into a formatted Word file
- Applies Chinese legal page setup, fonts and line spacing
- Builds a real table of contents from heading styles
- Keeps tables, bullet lists and bold text intact
- Adds a footer disclaimer and a centred page number
- Lets you swap in your own disclaimer text
About this skill
A legal report that looks unfinished reads as unfinished. This skill turns a Markdown report into a Word file set up the way Chinese legal documents are expected to look: body text at 12pt in Song, justified with a two-character first-line indent, 1.5 line spacing, graded heading styles, tables at 11pt with a bold header row, a table of contents field, and a footer carrying a disclaimer and a centred page number.
Because the headings use real Word heading styles, the table of contents is built by Word from the document structure rather than typed in by hand. Headings, tables, bold runs and bullet lists all survive the conversion, and the bold markers are written into the XML explicitly so python-docx does not drop them when it splits a run.
The disclaimer text can be replaced with your own by passing a text file.
It accepts Markdown only, and expects the first line to be a single top-level heading; without one, no contents block is inserted.
Markdown input only. The document needs Song and Times New Roman installed to render as intended. The contents field has to be refreshed once in Word before it displays.
One Python script, python-docx only, no other dependencies. Reads Markdown, writes .docx. Page setup is A4 with 2.54cm top and bottom margins and 3.17cm left and right. Heading levels 1 to 4 map onto Word Title, Heading 1, Heading 2 and Heading 3, which is what makes the TOC field work.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
Python 3.xpython-docxSong and Times New Roman fonts
Permissions
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.