Skip to content

duyunzhoudyz/dyz-gongwen-skills / skills/gongwen-format

gongwen-format

Verified

按 GB/T 9704-2012 把公文正文排成 Word,有红头、信函、纪要、命令(令)、白头、材料、简报七种版式,支持联合行文版头、附件另面、预印红头纸套打;检查、修复 docx 的页边距、字体、行距、页码;把核稿意见写成 Word 批注;无 Python 时给手动设置清单。用户说“排版”“套红头”“转成 Word”“按国标调格式”“格式乱了帮我改”“页码怎么设”时使用。只管格式不改内容:起草转对应起草 skill,压缩改写转 gongwen-polish,去 AI 味转 gongwen-humanize,去免责对冲转 gongwen-direct,核稿转 gongwen-review。

FileKindSize
README.mdmarkdown10.0 KB
SKILL.mdskill md21.1 KB
assets/gbt9704_params.jsonconfig20.0 KB
evals/evals.jsonconfig18.7 KB
evals/files/交接卡-平安建设总结-正文.txtmarkdown965 B
evals/files/信函-正文.txtmarkdown611 B
evals/files/信函-版式信息.jsonconfig166 B
evals/files/医院-单位画像.mdmarkdown805 B
evals/files/医院-院内通知-正文.txtmarkdown700 B
evals/files/卫健简报-两篇稿件.txtmarkdown1016 B
evals/files/国企-单位画像.mdmarkdown624 B
evals/files/国企-通知-正文.txtmarkdown646 B
evals/files/学校-监考安排-正文.txtmarkdown688 B
evals/files/学校-通知-正文.txtmarkdown585 B
evals/files/年终总结-正文.txtmarkdown1.2 KB
evals/files/核稿意见.jsonconfig1.4 KB
evals/files/格式混乱的情况报告.docxbinary36.3 KB
evals/files/涉密材料-正文.txtmarkdown221 B
evals/files/白头请示-正文.txtmarkdown701 B
evals/files/社区-情况报告-正文.txtmarkdown577 B
evals/files/简报-正文.txtmarkdown1.0 KB
evals/files/简报-版式信息.jsonconfig364 B
evals/files/红头通知-正文.txtmarkdown1.5 KB
evals/files/红头通知-版式信息.jsonconfig284 B
evals/files/纪要-正文.txtmarkdown910 B
evals/files/纪要-版式信息.jsonconfig119 B
evals/files/请示-缺落款-正文.txtmarkdown339 B
evals/files/高校-单位画像.mdmarkdown509 B
evals/files/高校-请示-正文.txtmarkdown603 B
evals/trigger.jsonconfig1.9 KB
manifest.jsonconfig976 B
references/_shared/README.mdmarkdown110 B
references/_shared/guardrails.mdmarkdown12.6 KB
references/_shared/profiles/roles.mdmarkdown16.1 KB
references/_shared/profiles/units/dangzheng.mdmarkdown7.9 KB
references/_shared/profiles/units/gaoxiao.mdmarkdown11.2 KB
references/_shared/profiles/units/guoqi.mdmarkdown12.7 KB
references/_shared/profiles/units/jiceng.mdmarkdown9.3 KB
references/_shared/profiles/units/shequ.mdmarkdown8.8 KB
references/_shared/profiles/units/yiyuan.mdmarkdown13.2 KB
references/_shared/profiles/units/zhongxiaoxue.mdmarkdown10.6 KB
references/_shared/rules/doc-types.mdmarkdown28.1 KB
references/_shared/rules/gbt15834.mdmarkdown13.3 KB
references/_shared/rules/gbt15835.mdmarkdown10.6 KB
references/_shared/rules/gbt9704.mdmarkdown17.2 KB
references/_shared/rules/jianfu.mdmarkdown12.5 KB
references/_shared/rules/tiaoli.mdmarkdown15.3 KB
references/_shared/style/ai-tone.mdmarkdown10.2 KB
references/_shared/style/defensive.mdmarkdown8.1 KB
references/_shared/style/output-format.mdmarkdown9.0 KB
references/check-items.mdmarkdown16.1 KB
references/layouts.mdmarkdown20.8 KB
references/manual-setup.mdmarkdown13.9 KB
references/meta-fields.mdmarkdown11.6 KB
scripts/annotate_docx.pyscript9.7 KB
scripts/build_docx.pyscript76.1 KB
scripts/check_docx.pyscript74.7 KB
scripts/extract_docx.pyscript16.2 KB
scripts/fix_docx.pyscript28.3 KB
scripts/gw_docx.pyscript50.0 KB
scripts/gw_fonts.pyscript24.2 KB
scripts/gw_format.pyscript15.9 KB
scripts/gw_layout.pyscript56.6 KB
scripts/gw_verify.pyscript6.1 KB
scripts/preview_docx.pyscript11.1 KB
scripts/secret_check.pyscript8.9 KB

references/_shared/profiles/units/dangzheng.md

View on GitHub
# 单位类型画像:党政机关

适用于省、市两级党委、人大、政府、政协机关及其工作部门。县乡两级见 `jiceng.md`。

## 一、规则基线与参照依据

| 依据 | 适用方式 | 要点 |
|---|---|---|
| 《党政机关公文处理工作条例》(中办发〔2012〕14号) | 直接适用 | 15 个文种、行文规则、拟制程序;详见 `references/_shared/rules/tiaoli.md` |
| GB/T 9704-2012《党政机关公文格式》 | 直接适用 | 版式要素、特定格式;详见 `references/_shared/rules/gbt9704.md` |
| GB/T 15834-2011、GB/T 15835-2011 | 直接适用 | 标点、数字用法 |
| 《整治形式主义为基层减负若干规定》(2024 年 8 月) | 直接适用 | 发文计划管理、篇幅上限、开门见山、不照搬上位文件 |
| 本机关公文处理实施细则、发文管理规定 | 用户提供时优先 | 代字、签发权限、会签范围 |

## 二、发文体系

| 发文主体 | 发文机关标志示例 | 发文字号示例 |
|---|---|---|
| 党委 | 中共某市委员会文件 | X委发〔2026〕N号 |
| 党委办公厅(室) | 中共某市委办公室文件 | X委办发〔2026〕N号 |
| 政府 | 某市人民政府文件 | X政发〔2026〕N号 |
| 政府办公厅(室) | 某市人民政府办公室文件 | X政办发〔2026〕N号 |
| 工作部门 | 某市某局文件 | X某发〔2026〕N号 |
| 函件 | 信函格式,版头为机关全称 | X政函〔2026〕N号、X某函〔2026〕N号 |

代字以本机关规定为准,上表只示意结构。

1. **两套体系**:党委、政府各成体系。属于党委、政府各自职权范围内的工作,不得联合行文(《条例》第十七条)。
2. **部门行文**:党委、政府的部门依据职权可以相互行文;部门内设机构除办公厅(室)外不得对外正式行文(第十七条)。部门不得向下级党委、政府发布指令性公文;部门之间未协商一致的,不得向下行文(第十六条)。
3. **内部文种**:处室向本机关领导请示、报告用签报或呈批件(各机关名称不一),只在机关内部运转,不编正式发文字号。
4. **签发**:重要公文和上行文由机关主要负责人签发(第二十二条);上行文标注签发人(第九条)。

## 三、常用文种与典型材料清单

| 频次 | 法定文种 | 常用材料 |
|---|---|---|
| 几乎每周 | 通知、函、纪要 | 信息专报、汇报材料、领导讲话 |
| 每月或每季 | 请示、报告、通报、意见、批复 | 实施方案、调研报告、督查通报、季度工作分析 |
| 每年 | 报告(年度工作) | 工作要点、年度总结与计划、述职述责述廉、民主生活会对照检查材料、党建工作报告 |
| 事件触发 | 通报、通告、决定 | 巡视巡察、审计、督查整改方案和整改报告;迎检汇报;突发事件信息 |
| 少用 | 决议、命令(令)、公报、公告、议案 | 按机关职权使用,如政府向同级人大提出议案 |

## 四、决策程序与行文特点

1. **拟制流程**:起草,征求意见或会签,办公厅(室)审核,负责人签发。审核重点见《条例》第二十条:行文理由和依据;是否符合方针政策和法律法规;与现行公文是否衔接;涉及其他部门职权的是否协商一致;文种、格式和人名、地名、时间、数字是否准确。
2. **集体决策**:重大事项经党委(党组)会议、政府常务会议等集体讨论决定。议题材料写明依据、方案、征求意见情况和需决定事项。
3. **行文规则**:一般不越级;请示一文一事、原则上主送一个上级机关;报告不夹带请示;除上级负责人直接交办外,不以本机关名义向上级负责人个人报送公文(第十四条、第十五条)。
4. **特点**:口径要与上级文件一致;征求意见轮次多;讲话稿要体现讲话人身份和本地特点。

## 五、术语表

| 术语 | 解释 |
|---|---|
| 会签 | 文稿涉及其他部门职权时,由相关部门负责人签署意见 |
| 征求意见 | 发文前听取相关部门、下级单位意见,采纳情况一般要作说明 |
| 发文计划管理 | 发文实行计划管理、总量管控和立项制度,年度发文一般只减不增(减负规定) |
| 一致性评估 | 制发文件前评估是否与为基层减负要求一致(减负规定) |
| 签发人 | 上行文须标注,一般为机关主要负责人 |
| 签报、呈批件 | 机关内部向领导请示、报告的文书,不对外 |
| 归口管理 | 某类事项由指定部门统一负责,行文前先确认归口部门 |
| 双重领导 | 受双重领导的机关向一个上级机关行文,必要时抄送另一个上级机关 |
| 信息专报 | 向上级报送的政务信息,按采用情况计分 |
| 巡视巡察 | 党内监督方式,反馈问题后须报整改方案和整改情况报告 |
| 对标对表 | 对照上级部署逐条落实、不漏项 |

## 六、红线与禁忌

1. 政治性提法与党章、中央文件原文不一致,或自行“更新”提法。
2. 越级行文、多头主送、报告夹带请示、未协商一致向下行文。
3. 照搬照抄上位文件,配套文件不提具体落实措施(减负规定第 2 条)。
4. 以“红头”变“白头”、正式改便笺、多文合一等方式规避发文数量管理(减负规定第 1 条)。
5. 工作秘密、未公开文件内容输入联网 AI 工具,或写入公开稿件。
6. 数据口径与统计部门、上级通报不一致。

## 七、年度写作节点

| 时间 | 节点与材料 |
|---|---|
| 1–2 月 | 地方两会(政府工作报告相关材料);年度工作会议讲话;工作要点 |
| 3 月 | 全国两会后的学习贯彻材料 |
| 4 月、10 月 | 一季度、前三季度工作分析 |
| 6–7 月 | 上半年总结;“七一”党建材料 |
| 11–12 月 | 年终总结、次年计划、述职述责述廉 |
| 年底至次年年初 | 民主生活会对照检查材料(以组织部门当年通知为准) |

## 八、版式差异

1. 严格执行 GB/T 9704-2012,是其他单位类型的参照基准。
2. 函用信函格式,纪要用纪要格式,命令用命令格式(GB/T 9704-2012 第 10 章)。
3. 上行文在版头标注签发人;平行文、下行文不标。
4. 联合行文时发文机关标志可并用联合发文机关名称,也可只用主办机关名称(GB/T 9704-2012 7.2.3)。

## 九、文风特点

1. 通知、请示、函、批复、通报等开门见山,一般不写形势背景、重要意义;讲话稿、工作方案、总结、调研报告可按文种惯例写简短背景(不超过一段);除部署综合性工作外,文件一般不超过 5000 字,部署专项工作或者具体任务的文件一般不超过 4000 字。
2. 措施写到“谁来做、做什么、何时完成”,不停留在原则表述。
3. 会议主报告或主要负责同志讲话不超过 1 小时(减负规定),按每分钟约 200 字估算篇幅。
4. 层次清楚,常用“一是……二是……”;小标题可用对仗,但须与正文内容对应。

## 十、对各 skill 的提示

| skill | 提示 |
|---|---|
| gongwen-draft | 先判文种和行文方向;向不相隶属机关请求批准用函;部门不得向下级政府发指令性公文 |
| gongwen-report | 总结按“主要工作和成效、存在问题、下一步打算”组织;问题部分写真问题,不写成变相表扬 |
| gongwen-speech | 区分会议类型(部署、推进、总结);领导人讲话和上级精神只用用户提供的原文 |
| gongwen-implement | 任务表与上级文件逐条对应;本地措施缺失时按上级要求和文种常规写出可执行措施,不照抄上级原文 |
| gongwen-review | 重点过政治关、政策关、权限关、程序关;核对会签和征求意见是否完成 |
| gongwen-format | 区分文件格式、信函格式、纪要格式;上行文核对签发人 |
canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall