Gongwen logo

Gongwen

Community
L-LesterYu
gongwen

中国公文格式化。按照党政机关公文格式标准,规范正文字体、标题层级、页面设置、落款、附件等格式要素。

Overview

PublisherL-LesterYu
RepositoryOpenClaw-hot-skills-zh
Skill namegongwen
Stars
57
Forks
9
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by L-LesterYu on GitHub. Read the source before you install it.

Installation

Install the Gongwen AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/L-LesterYu/OpenClaw-hot-skills-zh/tree/main/skills/gongwen-zh
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/L-LesterYu/OpenClaw-hot-skills-zh.git /tmp/OpenClaw-hot-skills-zh
mkdir -p .claude/skills
cp -r /tmp/OpenClaw-hot-skills-zh/skills/gongwen-zh .claude/skills/gongwen
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Gongwen in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Gongwen on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Gongwen is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

公文格式化技能

按照中国党政机关公文格式标准(GB/T 9704-2012),对文档进行格式化处理。

一、页面设置

项目正式公文非正式公文
上边距3.7 厘米3.7 厘米
下边距3.2 厘米3.2 厘米
左边距2.8 厘米2.8 厘米
右边距2.6 厘米2.6 厘米
页眉1.5 厘米1.5 厘米
页脚2.6 厘米2.6 厘米

二、红头(仅正式公文)

正式公文需套单位红头,红头内容为发文机关全称,如:

×××××××××××文件

三、正文格式

3.1 基本设置

  • 正文字体:仿宋_GB2312
  • 段落首行缩进:2个汉字(约2字符)
  • 行间距:固定值 29 磅
  • 正文与标题之间:空一行

3.2 标题层级与字体

层级格式字体示例
一级标题一、二、三、四黑体 3号一、总体要求
二级标题(一)(二)(三)楷体_GB2312(一)指导思想
三级标题1. 2. 3.仿宋_GB23121. 完善工作机制

3.3 阿拉伯数字处理

全文中的阿拉伯数字可统一为以下两种方式之一:

  • 方式一:统一使用仿宋_GB2312,如:12345
  • 方式二:统一使用 Times New Roman,如:12345

注意:全文保持一致,不可混用。

四、页码格式

公文类型格式位置
正式公文—1—(数字前后加横线)单页靠右,双页靠左
非正式公文1(纯数字)居中

五、落款格式

5.1 落款单位名称

公文类型单位名称示例
正式公文全称宁波市数据局
非正式公文可用简称市数据局
  • 位置:靠右,适当空几个字(美观即可,不必到底)
  • 与正文间距:空 2 行

5.2 落款日期

  • 格式:阿拉伯数字,如 2026年3月13日
  • 位置:对应上方落款单位名称居中

示例:

                    宁波市数据局

                        2026年3月13日

六、附件格式

6.1 附件标注位置

  • 附件与正文之间空 1 行
  • 多个附件的标题与第1个标题位置对齐
  • 附件标题较长时,另起一行与上一行首字对齐

6.2 附件标签

  • "附件"二字:黑体 3号,位于左上角

示例:

附件:

1. ×××××××实施方案
2. ×××××××任务分工表

七、完整格式模板(Markdown → Word 转换参考)

markdown
# ×××××关于×××××的通知

(正文与标题空一行)

  各区县(市)人民政府,市政府各部门、各直属单位:

  (正文内容,仿宋_GB2312,首行缩进2字符,行间距29磅)……

  一、一级标题(黑体3号)

  (一)二级标题(楷体_GB2312)

  1. 三级标题(仿宋_GB2312)

  正文内容……

  
                    落款单位全称(空2行后,靠右)

                        2026年3月13日(居中)


附件:(空1行)

1. 附件标题一
2. 附件标题二

八、Markdown 输出格式约定

当使用此技能格式化文档时,按以下约定输出:

markdown
> **格式说明**
> - 一级标题(一、二、三、四):黑体3号
> - 二级标题((一)(二)...):楷体_GB2312
> - 三级标题(1. 2. 3...):仿宋_GB2312
> - 正文:仿宋_GB2312,段落前空2个汉字
> - 行间距:固定值29磅
> - 页边距:上3.7cm、下3.2cm、左2.8cm、右2.6cm
> - 页眉1.5cm、页脚2.6cm
> - 页码:数字前后加横线(—1—),单页靠右,双页靠左

---

## 一、一级标题

### (一)二级标题

1. 三级标题

  正文内容(注意前面有2个空格缩进)...

九、常见公文类型

类型特点示例标题
通知传达事项、部署工作关于×××的通知
通报表彰先进、批评错误关于×××情况的通报
决定重要事项、重大行动关于×××的决定
意见提出见解、办法关于×××的实施意见
方案具体工作安排×××实施方案
报告汇报工作、反映情况关于×××情况的报告
请示请求指示、批准关于×××的请示
函商洽工作、询问答复关于×××的函

十、注意事项

  1. 字体一致性:全文字体风格保持统一,不可混用
  2. 层级清晰:标题层级一般不超过三级,层级过多时可使用附件
  3. 数字规范:公文中的数字一般使用阿拉伯数字,成文日期用阿拉伯数字
  4. 标点规范:标点符号使用中文全角标点
  5. 引文规范:引用公文应注明发文机关、标题、发文字号

十一、Word 格式化快捷操作

转换为 Word 文档时的快捷设置:

  1. 页面设置:页面布局 → 页边距 → 自定义边距
  2. 行间距:段落 → 行距 → 固定值 → 29磅
  3. 首行缩进:段落 → 特殊格式 → 首行缩进 → 2字符
  4. 字体设置:选中文字 → 字体对话框 → 选择对应字体

本技能依据 GB/T 9704-2012《党政机关公文格式》整理

Frequently asked questions

What does the Gongwen AI skill do?

中国公文格式化。按照党政机关公文格式标准,规范正文字体、标题层级、页面设置、落款、附件等格式要素。

Why use Gongwen on TypingMind?

Because you install it once and use it with any model. Gongwen is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Gongwen in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/L-LesterYu/OpenClaw-hot-skills-zh/tree/main/skills/gongwen-zh. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Gongwen?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Gongwen?

As many as you like. As long as a model supports skills, you can use Gongwen with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Gongwen AI skill free?

Yes. It is published on GitHub by L-LesterYu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇