Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 78
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-writing

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install government-writing in Claude Code

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

A

No 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 →

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.

government-writing Install

Add to stack

Loading.