Lieflat Gongwen

Writes Chinese government and Party-building documents to style targets measured from real official texts, then checks drafts with a script.

Office & Documentsofficial documentschinesegovernment writingspeechesby larashero3-dotcom2.3kGitHub

What it is

A writing aid for people in China who draft official materials: civil servants, staff at state-owned companies, and community or Party-branch workers. It works entirely in Chinese and covers six kinds of formal documents (research reports, leaders' speeches, work opinions, experience materials, work plans and experience summaries) plus short Party-building and grassroots experience pieces of about 1,000 characters. Statutory notices, requests and replies have no statistics behind them, but seven real State Council documents are included as layout references.

Instead of generic templates, it gives targets measured from a corpus of real official writing: typical length, average sentence length, how often the Chinese list comma appears, how many top-level headings, how often the 'first, second' pattern is used and how many words like must and ensure each type uses. It adds skeleton formulas for each type, a headline technique guide, before-and-after sentence examples, 22 synthetic sample documents and a Python script that compares any draft with the targets.

It always shows a title and outline first and waits for your approval before writing the full text. Missing facts become clearly marked placeholders rather than invented figures, and it warns that the numbers describe typical writing and should not be chased blindly. The original corpus texts are not included for copyright reasons, and some types rest on only eight or ten samples. Classified, major-policy or public-facing texts still need review by your own organization.

What it can do

  • Decides first whether your piece belongs to the short Party-building family or the longer formal-document family.
  • Matches your request to one of six document types and loads that type's length, sentence and wording targets.
  • Proposes a title and layered outline using that type's headline rules, then waits for you to confirm.
  • Writes the full draft within set quotas for strong words, with strict punctuation rules and no invented data.
  • Runs a Python checker on any draft, flagging hard mismatches and softer deviations from the targets.
  • Revises an existing draft in priority order: facts and document type first, structure second, rhythm and wording last.
  • Lists every placeholder for missing numbers, names, dates or quotations you still need to fill in.

When to use it

  • Your department head wants a research report on how local manufacturers use AI by Friday.
  • You need to draft a leader's speech for a city-wide work safety meeting.
  • Your community office must submit a 1,000-character Party-building piece about its new volunteer service.
  • You wrote a work plan, colleagues say it does not read like an official document, and you want to know why.

How it works

  1. 1Works out the document family and type from your request, using length and headings to tell the families apart.
  2. 2Reads that type's row on its parameter card, the matching skeleton section, and the style notes and sample documents in full.
  3. 3Gives you only the title and outline, then stops for your confirmation.
  4. 4Writes the body to the targets, marking missing facts with three standard placeholder types.
  5. 5Runs its Python checker on the draft and hands over the full text, the check report and the placeholder list.

Try asking

“Write a research report in Chinese official style on how local manufacturers are adopting AI.”
“Draft a leader's speech for our city's work safety meeting.”
“Write a short Party-building experience piece about our community's elderly volunteer team.”
“Check whether this work plan reads like a proper official document and fix the problems.”

How to install

Install with the skills CLI (recommended)

Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.

npm
npx skills add larashero3-dotcom/lieflat-gongwen
pnpm
pnpm dlx skills add larashero3-dotcom/lieflat-gongwen

Install manually

Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the lieflat-gongwen folder and upload it in the Skills section of Settings.

Terminal
git clone --depth 1 https://github.com/larashero3-dotcom/lieflat-gongwen.git ~/.claude/skills/lieflat-gongwen

Then just ask in plain language, for example: “Write a research report in Chinese official style on how local manufacturers are adopting AI.”