government-writing
Skill by Pinvou
Drafts Chinese party and government official documents (公文) such as notices and opinions, following GB/T 9704-2012 formatting. It is for civil servants and office staff who need compliant .docx output.
Install government-writing
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Pinvou/pinvou-agent /tmp/pinvou-agent && mkdir -p ~/.claude/skills && cp -r /tmp/pinvou-agent/pinvou3-app/src-tauri/resources/common/skill-marketplace/government-writing ~/.claude/skills/government-writingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Pinvou/pinvou-agent /tmp/pinvou-agent && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/pinvou-agent/pinvou3-app/src-tauri/resources/common/skill-marketplace/government-writing ~/.gemini/antigravity-cli/skills/government-writingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill writes Chinese party and government official documents. The built-in types are 通知 (notices) and 意见 (opinions). When a notice circulates a 办法 or 规定, the skill also drafts that regulation in legal-style chapters and articles. It fills the document number, addressee, numbered headings, closing phrases, signature block and disclosure line according to GB/T 9704-2012.
The skill collects the required details first, then drafts the text and runs a self-check. Structured content is sent to the 公文写作 (gongwen) MCP server, which renders a compliant .docx and runs validation before output. Placeholders are used for document numbers and unknown facts, so nothing is invented. The skill is for officials and staff who draft formal Chinese government documents.
Written from the project's SKILL.md and checked against it.
What it can do
- make_gongwenRenders structured fields into a compliant .docx and runs built-in checks before output.
- present_artifactShows the generated .docx as an artifact card in the chat after rendering.
- Notice draftingDrafts 通知 in both the circulation type and the matter-announcement type.
- Opinion draftingDrafts 意见 with three-part structure and layered numbering.
- Regulation attachmentsDrafts 办法 or 规定 as chaptered articles with required closing provisions.
- Document number and layoutApplies the 发文字号 format and standard addressee, signature and disclosure lines.
- Fixed phrase libraryUses standard transition, closing and feedback phrases taken from real documents.
- Self-check checklistChecks title, numbering, signature, date and disclosure lines before output.
What you need
- The 公文写作 (gongwen) MCP server, installed from the plugin center connector page
- The present_artifact tool for showing the output card
Try asking
- 帮我起草一份关于印发《XX办法》的通知
- 请起草一份关于加强XX工作的实施意见
- 把这份通知渲染成合规的 .docx 文件
Good to know
- Built-in types are only 通知 and 意见; 请示, 报告 and 函 need new templates.
- Without the gongwen MCP server, only plain-text drafts are possible, not a compliant .docx.
- Document numbers are left as X placeholders until the issuing agency assigns them.
- Dates and facts the user has not given are marked for confirmation rather than filled in.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: pinvou3-app/src-tauri/resources/common/skill-marketplace/government-writing/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to government-writing
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
government-writing: common questions
Does this skill produce a formatted Word document?
Yes, when the gongwen MCP server is installed, it renders a compliant .docx through make_gongwen. Without that server, it can only produce plain-text drafts.
Which Chinese official document formats does it support?
It supports 通知 and 意见 out of the box, and a 办法 or 规定 as the main attachment of a circulation notice. The source says 请示, 报告 and 函 can be added through templates.
Will it fill in the document number for me?
No. It writes the number with an X placeholder, since the issuing agency assigns the real number after registration.
How do I install government-writing?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is government-writing free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is government-writing safe to use?
It scores 78 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to government-writing?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
