Gongwen DNA skill
A skill that teaches agents Chinese official writing from a 1.02M-character corpus: seven genres and parameter checks.
- 2,507 ★ on the repository
- Last commit
Minimal access
Why this level
- The skill only reads corpus files and runs a local check script on the Python standard library.
Install
- Works in
In your terminal, with SkillFoxx CLI
npx skillfoxx add skills/gongwen-dnaDetects the agents on your machine, shows the access level and pins the version.
Other ways to install
Access and checks
How we reviewMinimal accessThe tool runs nothing and makes no network calls.
- The skill only reads corpus files and runs a local check script on the Python standard library.
This is third-party code. Review the repository files before installing.
What it does
The skill derives the style of Chinese official documents from corpus statistics of 1.02 million characters and turns it into measurable parameters. The agent reproduces seven genres: research report, leader's speech, work opinion, experience material, work plan, experience summary and party-building material. Folders hold the corpus by genre, a parameter card, headline and sentence libraries, and examples. `scripts/check_params.py` checks a finished text against the ranges. Missing data is left as a `【待补:xx】` placeholder.
Who it is for. Staff of Chinese agencies and companies who draft reports and plans in Chinese and want to verify style with numbers.
Good fit when
- A work plan in the official Chinese register is being prepared.
- A leader's speech needs the typical sentence-length distribution.
- An agent gets a draft and is asked to adjust it to corpus ranges.
- A text is checked by script against genre parameters.
Not a fit when
- You need fixed-form statutory documents such as notices, requests and replies.
- The text is not in Chinese.
- A legally vetted document is required without editorial review.
Example request
Write a work plan on rolling out e-services in the 工作方案 genre, mark gaps with 【待补:xx】 and check parameters with the script.Limitations
The skill does not write fixed-structure documents such as notices, requests, replies and letters. The materials, corpus and README are in Chinese. The repository license is undetermined (NOASSERTION), so check the terms before publishing texts. The agent leaves a note for the author and invents no missing facts or figures. The corpus consists of open texts from 2026, so phrasing reflects current practice and will age.
How to disable. Delete `~/.claude/skills/lieflat-gongwen` or the folder in your agent's skills directory. Nothing else is created on the machine.
FAQ
Which genres are covered?
Seven: research report, leader's speech, work opinion, experience material, work plan, experience summary and party-building material. Fixed-form acts are excluded.
What does the 待补 placeholder mean?
A deliberate gap where your local figures belong. The agent does not invent data and leaves space for the author.
Are dependencies needed?
No. The core has none, and the self-check script uses only the Python standard library.
Which agents does it work with?
The README names Codex and Claude Code, plus other agents that read `agents.md`.
How do I check a finished text?
Run `python3 scripts/check_params.py` on the text file. The script compares parameters such as sentence length and enumeration density with the genre ranges.
Discussion
No questions or reviews yet.
Related
SkillsHuman Writing
human-writing
A skill for lively Chinese writing: helps the agent write and edit so a specific person seems to speak, not a model
A skill for writing in Chinese: goal and facts first, then platform, tone and a self-check of the draft before delivery.
A skill that translates and polishes English into Chinese by the Ye Zinan method, removes translationese and pairs paragraphs.
An editor skill for Chinese text: removes filler, repetition and template phrasing, keeping facts, certainty and author voice
Ten skills for Chinese-language text: finds signs of machine writing across 25 dimensions and edits only on your command
qu-ai-wei (去 AI 味)
qu-ai-wei
A skill that edits Simplified Chinese: cuts stock phrases and calques while keeping facts, numbers and the author's voice
README in short
The Chinese README explains genre coverage, shows three examples with parameter checks, describes the corpus study and installation. The repository includes sample texts for all seven genres.