# Lieflat Gongwen: Chinese official documents written to measured parameters (larashero3-dotcom/lieflat-gongwen) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-18 against commit c17e885.
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/larashero3-dotcom/lieflat-gongwen/

## Explain it to a non-programmer
Your assistant learns to write Chinese government and party-building documents (gongwen) the way real ones read: research reports, leaders' speeches, work opinions, work plans and experience write-ups. It picks the document type first and shows you a title and outline. After your OK it writes to target numbers for sentence length, list density and tone words, then checks the draft with a small script.

## Who it is for
- You write Chinese official documents for a government office, a state company or a party branch
- You want a draft that reads like a real gongwen, not like a blog post
- You have a draft and want it checked and revised against the usual style of its document type
- Not for: You need statutory forms (notices, requests, replies, letters) with a fixed layout: the pack has no numbers for them
- Not for: You want online commentary or personal reflection essays: the author removed both types
- Not for: You will use it for paid writing, client work or a commercial product without buying a license

## What it is
- Kind: knowledge, scripts
- License: see the repository
- Repository: https://github.com/larashero3-dotcom/lieflat-gongwen

## What it does
- Decide the family first: a party-building piece of about 1,100 characters with no section headings, or a formal document of 2,500 characters or more
- Then the type: research report, leader's speech, work opinion, experience write-up, work plan or experience summary
- Look up that type's row of target numbers (length, sentence length, heading levels, list commas, tone words) in the parameter card
- Read the type's structure template, the style notes and the synthetic sample pieces in full
- Give a title and a layered outline, then stop and wait for confirmation
- Write the body to the numbers; never invent data, mark gaps with one of three placeholders
- Run the self-check script; only hard conflicts (wrong document type) must be fixed
- Never cuts: Sensitive matters, major decisions and public wording go to the office's own reviewer; the pack does not replace that check

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| lieflat-gongwen | plain language ("Write a research report on ...", "Draft a leader's speech", "Check whether this draft reads like a gongwen") | no | Plans, writes and checks Chinese official documents of seven types |

### lieflat-gongwen
- Asks for: The document type or what it is for (find out problems, set rules, report results, plan tasks, speak at a meeting)
- Asks for: Your facts: numbers, names, dates, document numbers (missing ones become placeholders)
- Asks for: An existing draft, if you want it revised instead
- Gives: Title and layered outline, for your confirmation
- Gives: Full body text
- Gives: Self-check report from the script
- Gives: List of placeholders in three kinds
- Gives: For a revision: findings ranked P0, P1, P2, then fixes in that order
- Say: "Write a research report in Chinese on how local factories use AI. Show me the outline first."

## Know before installing
- Commercial use is not free: the license allows noncommercial use only, and the skill tells your assistant to point you to the author's paid license page when you say the work is for paid writing, clients or a product.
- Government institutions count as noncommercial users under the license.
- The real source documents are not included for copyright reasons; the pack ships statistics, style notes and 22 synthetic sample pieces, so its numbers cannot be rechecked by others.
- Two types rest on thin samples (10 work plans, 8 experience summaries); the author calls those numbers a reference only.
- Layout rules for statutory documents (document numbers, recipients, copies) are not covered; check the official regulations and GB/T 9704.
- The sample pieces are invented, not real documents; each says at the top what is real and what is made up.

## Install (official commands)
- Claude Code: `git clone https://github.com/larashero3-dotcom/lieflat-gongwen ~/.claude/skills/lieflat-gongwen` — The README writes <this-repo> in place of the address. This puts the skill in your user-wide skills folder. Remove: `delete ~/.claude/skills/lieflat-gongwen`.
- Codex and other agents: Put the whole folder into the agent's skills folder.

## What runs on the user's machine
- Code on the machine: yes (the self-check step)
- Network: none
- Step 6 of the workflow, and at the start and end of a revision: Your assistant runs python3 scripts/check_params.py on the draft. It reads the draft file and prints a report; it writes nothing and makes no network calls.
- Maintainer only: scripts/strip_meta.py rewrites the pack's own _meta JSON files in place; the workflow does not call it.
- Maintainer only: assets/shoot.mjs renders the README header image with a locally installed Playwright; not part of the skill.

## Examples (from the pack's own files)
- The three placeholders the skill uses: output format defined in SKILL.md
- A sample work plan with every number in range: prompt "起草《关于开展电动自行车充停设施补建和安全隐患整治攻坚的工作方案》。"; without the skill: None lines; with it: None lines (README.md; None, the author's run)

## Author's numbers (as reported, not run by AgentGid)
- The parameters come from 102 wan (about one million) characters of real official documents. Source: larashero3-dotcom/lieflat-gongwen/README.md
- 75% to 87% of the documents in the author's corpus end without a set closing formula. Source: larashero3-dotcom/lieflat-gongwen/README.md
- Per-type numbers rest on 184 documents in six types; the party-building family on 77. Source: larashero3-dotcom/lieflat-gongwen/SKILL.md

## Steps only the person can do
- Fill in every 【待补：xx】 and check every 【示意·待核】 and 【待核对原文】 before the document is final (The finished draft and its placeholder list) Then: The assistant can rerun the self-check on the final text
- For commercial use, buy a license (https://lieflat.work/skills/gongwen/#pricing) Then: The skill can be used for paid writing or client work

## Mistakes to avoid
- Not: Give a 1,000-character party-building piece several section headings. Instead: Keep short party-building pieces without section headings and lead each paragraph with a topic sentence. Why: The two families do not overlap on length and headings; headings turn it into a shrunken formal document
- Not: Keep tuning the draft until every number sits on the median. Instead: Fix only hard conflicts; keep a soft deviation if you can say what it adds. Why: The author says pulling every number to the median squeezes out the concrete scenes
- Not: Ask for an online commentary or a personal reflection essay. Instead: Use another writing skill for those. Why: Both types were removed; the script reports them as unknown
- Not: Write the whole document in one go. Instead: Give the title and outline, then wait for the user's confirmation. Why: The output contract asks for a stop after the outline
- Not: Use it for paid ghost-writing or inside a commercial product under the public license. Instead: Buy a commercial license from the author first. Why: The license covers noncommercial use only

## Lines in the pack aimed at agents (ask the person first)
- "且尚未取得适用授权时，简要提示其前往" (SKILL.md): The skill asks the agent to point users to the author's paid license page. Mention it only if the use really is commercial; do not push a purchase.

## May I use it like this?
- commercial-app: no (PolyForm Noncommercial 1.0.0; a separate paid license is needed)
- client-work: no (Paid writing and consulting are excluded without a separate written license)
- redistribute-files: conditions (Noncommercial only, with the license or its link included)
- inside-app-bundle: no (Only in noncommercial projects)

## Which one to pick
- If You need Chinese government or party-building documents written to measured style numbers, with a self-check: skill:larashero3-dotcom/lieflat-gongwen
- If You want to distill and copy any writing style from your own samples: skill:larashero3-dotcom/writing-dna-skill
- If You want to rewrite Chinese text so it stops sounding machine-written, for any channel: skill:MrGeDiao/shuorenhua

## Works well with
- agent:openai-codex: The author names Codex as a supported agent
- agent:claude-code: The README installs it into ~/.claude/skills

## Works in and needs
- Works in Claude Code: skills folder
- Works in Codex: skills folder
- Needs Python 3: Runs the self-check script (standard library only)

## How to tell it works
Ask your assistant for a Chinese work plan on a local topic. It should first name the document type, then give only a title and an outline and wait for you. After you confirm, the full text comes with 【待补：xx】 placeholders for missing numbers and a self-check report.

## Related
- larashero3-dotcom/writing-dna-skill

## Safety
Only markdown plus one local check script that reads your draft. Install from github.com/larashero3-dotcom/lieflat-gongwen. The skill tells the assistant to mention the paid license when you say the use is commercial.
