whatisgithub

What is gongwen-draft?

rimagination/gongwen-draft — explained in plain English

Analysis updated 2026-05-18

25PythonAudience · generalComplexity · 2/5Setup · moderate

In one sentence

An AI assistant skill for drafting, reviewing, and exporting formal Chinese government documents with policy fact-checking built in.

Mindmap

mindmap
  root((gongwen-draft))
    What it does
      Drafts official documents
      Verifies policy citations
      Reviews formatting and facts
      Exports to Word
    Tech stack
      Python
      AI agent skill
    Use cases
      Draft government notices
      Review official drafts
      Export formatted Word files
    Audience
      Government office staff
      Administrative writers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Draft a formal Chinese government notice or report from meeting notes or bullet points.

USE CASE 2

Review an existing official document draft for correct document type, formatting, and policy citations.

USE CASE 3

Export a finished draft to a properly formatted Word document following official conventions.

USE CASE 4

Flag unverifiable policy claims or statistics as unconfirmed instead of stating them as fact.

What is it built with?

Python

How does it compare?

rimagination/gongwen-draftalexrosbach/replibookarlandaren/proagents
Stars252525
LanguagePythonPythonPython
Setup difficultymoderateeasyeasy
Complexity2/52/51/5
Audiencegeneralops devopsvibe coder

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires an AI agent tool that supports installable skills, plus specific Chinese fonts installed for Word export.

So what is it?

gongwen-draft is a skill for AI writing assistants that helps draft, revise, review, and export formal Chinese government and administrative documents, known as gongwen. It is meant to be installed into an AI agent tool so that a user can ask it to draft, check, or export this kind of official paperwork through conversation rather than starting from a blank page. The project supports 23 types of official writing, including the 15 legally defined document types set out in Chinese government document handling regulations, such as decisions, notices, reports, requests for instructions, and meeting minutes, plus 8 more common types of administrative material like work summaries, research reports, and briefing papers. Its core approach is to research and verify facts before writing. When a draft needs to cite policy, leadership statements, or official data, the skill is designed to check authoritative government sources first, such as official government websites and the national laws and regulations database, and to mark anything it cannot verify as unconfirmed rather than presenting it as fact. It also reviews drafts for correct document type, proper chain of authority, factual accuracy, punctuation, formatting, and numbering, and flags information that should be handled as confidential. The skill can export a finished draft to a Word document formatted according to standard Chinese official document conventions, including specific font requirements for different parts of the document. Before exporting, it checks whether the required fonts are installed and will stop rather than silently substitute a different font. A special letterhead style is only produced when the user explicitly requests it and supplies the necessary official information. The README is explicit that the skill must never fabricate an official document, forge an issuing authority, invent policy citations, statistics, or approval status, or pretend a draft is a real document from a real agency. Anything it produces is described as a draft only, still requiring human review, sign off, and confidentiality checks before it becomes official. The project also lists several similar community projects it drew formatting and workflow ideas from.

Copy-paste prompts

Prompt 1
Help me install the gongwen-draft skill for drafting Chinese official documents.
Prompt 2
Explain how gongwen-draft verifies policy citations before writing a draft.
Prompt 3
Show me how gongwen-draft decides which of the 23 document types fits my material.
Prompt 4
Walk me through exporting a gongwen-draft document to Word with the correct fonts.

Frequently asked questions

What is gongwen-draft?

An AI assistant skill for drafting, reviewing, and exporting formal Chinese government documents with policy fact-checking built in.

What language is gongwen-draft written in?

Mainly Python. The stack also includes Python.

How hard is gongwen-draft to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is gongwen-draft for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.