gongwen-kit SKILL.md skillA

gongwen-kit from imhuhe/gongwen-kit is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add imhuhe/gongwen-kit/gongwen-kit@git:20261023.1bd67c0

Pins git:20261023.1bd67c0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
imhuhe/gongwen-kit
Path
SKILL.md
Versions recorded
8
Latest version
git:20261023.1bd67c0, committed Oct 23, 2026
First version recorded
Oct 16, 2026
Size
7,636 bytes
Repository stars
37
License
MIT

中文公文(党政机关、央国企场景)Word 生成、修复与合规机检:按 GB/T 9704 生成标准 .docx——通知、报告、请示、函、纪要、管理办法等,含红头、发文字号、版记;出稿自动机检(体例、数字、文风);现成 .docx 按国标修复,版式直接改、体例写成修订痕迹、数字只插批注。不适用于合同、简历、普通商务报告等非公文的 Word 文档。Use when creating, fixing, formatting, or machine-checking Chinese official documents (gongwen) as Word files; not for general Word documents.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# gongwen-kit

## 什么时候用它

用户要起草、生成或检查中文公文(通知、请示、报告、函、纪要、管理办法、条例等)
的 Word(.docx)文件时。

**不用它的情形**:合同、简历、普通商务报告、PPT、Excel 等非公文,用通用的 Office 或 Word skill。
同时装了通用 Word skill 时,中文公文一律走本 skill:国标版式和数字机检只在这里,
不要用通用 skill 重做版式,也不要先用通用 skill 出稿再来套格式。

## 先定位工具包

本文件所在的目录就是工具包目录,下文记作 `$KIT`。你的工作目录通常是用户的项目,不是 `$KIT`,
所以命令里不要写相对路径。统一用入口脚本,它从任何目录都能调。

**`$KIT` 只是本文的记号,不是环境变量。** 执行命令前先把它换成 `SKILL.md` 所在目录的绝对路径
(取你加载这个 skill 时看到的路径),每条命令都写完整,不要依赖上一条命令里设过的变量。例如
`SKILL.md` 在 `/Users/me/.agents/skills/gongwen-kit/` 时:

```bash
node "/Users/me/.agents/skills/gongwen-kit/bin/gongwen.js" where   # 打印工具包目录,用来确认路径对不对
```

找不到这个目录就问用户,不要猜。下文 `templates/`、`docs/` 的相对路径都指 `$KIT` 下面。

## 工作流

1. **起稿源脚本**:`node "$KIT/bin/gongwen.js" new --form wen --out 稿子.js`
   (行文体 `wen`;条文体/办法条例 `zhang`);或照 `templates/` 里最近的一份改。
2. **写正文**:只调构件——`letterhead`、`title`、`zhusong`、`p`、`h1`~`h4`、
   `table`、`luokuan`、`fujian`、`fuzhu`、`fujianPage`、`banji`。不手拼 docx 元素、不写 `new Paragraph`。
   长标题按意群分两行给 `title(["上行", "下行"])`;标题与正文都不加空格缩进(样式给)。
   所有构件的用法一页看全:`templates/complete.js`。
3. **出稿**:`node 稿子.js`。写盘后自动跑三道机检(体例、数字、文风)——
   输出全绿才算过,非零退出就去改,别改检查。数字机检分两档:「计数与列举」
   (「以下三点」与实际条数)等拦截项必须改;「提示」开头的正文取值对照不拦稿,
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add imhuhe/gongwen-kit/gongwen-kit@sha256:4a5ffa5d7815f91d

The line at the top of this page pins the label git:20261023.1bd67c0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_siue7m43tbma4aco.svg)](https://markdownregistry.com/a/art_siue7m43tbma4aco)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 8 versions of this file, between Oct 16, 2026 and Oct 23, 2026, more than one a day.

versioncommittedcommitsizeaudit
git:20261023.1bd67c0 latest2026-10-23 1bd67c0 7,636 BA view · diff
git:20261023.607cd712026-10-23 607cd71 7,585 BA view · diff
git:20261023.8b378852026-10-23 8b37885 7,563 BA view · diff
git:20261022.8f9a17d2026-10-22 8f9a17d 7,458 BA view · diff
git:20261016.a54e4af2026-10-16 a54e4af 6,897 BA view · diff
git:20261016.19936bb2026-10-16 19936bb 6,851 BA view · diff
git:20261016.c27654e2026-10-16 c27654e 5,961 BA view · diff
git:20261016.2c24c4a2026-10-16 2c24c4a 5,667 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7636 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

imhuhe/gongwen-kit · 37 stars · license MIT · pushed 2026-10-23 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_siue7m43tbma4aco
GET https://markdownregistry.com/api/v1/resolve?ref=imhuhe/gongwen-kit/gongwen-kit
GET https://markdownregistry.com/api/v1/blob/4a5ffa5d7815f91d4098cc8c1bdded364ab879e2ff7e74be6fd6477bae919fc4

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from imhuhe/gongwen-kit

AGENTS.md AGENTS.md file
imhuhe/gongwen-kit · AGENTS.md
git:20261022.8f9a17d · audit A · 37 stars

Every file in imhuhe/gongwen-kit

Browse by kind, by grade A, or by owner.