Skip to content

duyunzhoudyz/dyz-gongwen-skills / skills/gongwen-profile

gongwen-profile

Verified

建立和维护单位画像,即 .gongwen/ 下的单位画像、领导偏好卡、禁用词、文风参数四个文件:分轮问卷或从本单位公文处理办法、已发文件中提取,完成完整建档;读本单位历史稿学文风参数;对比原稿和领导改稿(或带修订痕迹的 docx)归纳领导偏好,录入口述偏好;增删禁用词;给画像做体检。用户说建个完整的单位画像、把我们的公文处理办法录进去、学学我们单位的文风、领导改过的稿子你学一下、记住领导不爱用“打造”、加个禁用词、看看画像缺什么时使用。只建档不写稿:起草交对应起草 skill,按批注改稿交 gongwen-polish,3 问简版建档由 gongwen 完成。

FileKindSize
README.mdmarkdown7.2 KB
SKILL.mdskill md26.7 KB
evals/evals.jsonconfig31.6 KB
evals/files/原稿-期中家长会讲话.txtmarkdown738 B
evals/files/已有单位画像(某镇).mdmarkdown1.4 KB
evals/files/已有禁用词(某局).mdmarkdown481 B
evals/files/已有领导偏好卡(总经理).mdmarkdown1016 B
evals/files/已有领导偏好卡(校长).mdmarkdown898 B
evals/files/待体检单位画像(某学院).mdmarkdown1007 B
evals/files/改稿-期中家长会讲话(校长修改).txtmarkdown624 B
evals/files/某公司历史稿/某公司2025年经营工作总结.txtmarkdown699 B
evals/files/某公司历史稿/某公司董事会经营情况报告(内部资料).txtmarkdown486 B
evals/files/某公司花脸稿/原稿-三季度经营分析汇报.txtmarkdown1.2 KB
evals/files/某公司花脸稿/改稿-三季度经营分析汇报(总经理修改).txtmarkdown983 B
evals/files/某医院公文处理办法和议事规则节选.txtmarkdown1.2 KB
evals/files/某医院护理部三季度工作汇报(院长修订稿).docxbinary2.7 KB
evals/files/某局历史稿/某局2025年工作总结.txtmarkdown1.6 KB
evals/files/某局历史稿/某局2026年上半年工作总结.txtmarkdown1.3 KB
evals/files/某局历史稿/某局关于优化营商环境工作情况的汇报.txtmarkdown985 B
evals/files/某局历史稿/某局迎接市委督查工作汇报.txtmarkdown924 B
evals/files/某局已发文件(2025年).txtmarkdown808 B
evals/files/某社区历史通知/关于2026年高龄津贴发放对象的公示.txtmarkdown614 B
evals/files/某社区历史通知/关于开展燃气安全入户检查的通知.txtmarkdown618 B
evals/files/某社区历史通知/致辖区居民的一封信.txtmarkdown795 B
evals/files/某街道政务信息/某街道三色预警破解老旧小区物业难题.txtmarkdown645 B
evals/files/某街道政务信息/某街道网格+志愿守护独居老人.txtmarkdown523 B
evals/trigger.jsonconfig2.4 KB
manifest.jsonconfig1.3 KB
references/_shared/README.mdmarkdown110 B
references/_shared/guardrails.mdmarkdown12.6 KB
references/_shared/profiles/profile-template.mdmarkdown10.8 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/edit-patterns.mdmarkdown5.0 KB
references/intake.mdmarkdown7.3 KB
references/maintenance.mdmarkdown7.1 KB
references/style-params.mdmarkdown4.5 KB
scripts/draft_diff.pyscript42.0 KB
scripts/gongwen_lint.pyscript156.2 KB
scripts/lint_rules.jsonconfig108.7 KB
scripts/secret_check.pyscript8.9 KB
scripts/secret_marks.pyscript7.7 KB
scripts/style_patterns.jsonconfig77.4 KB
scripts/style_profile.pyscript42.5 KB

references/intake.md

View on GitHub
# 完整建档:分轮问卷与制度文件、已发文件提取

字段名和填写说明以 `references/_shared/profiles/profile-template.md` 第一部分为准。

## 一、分轮问卷

### (一)轮次

每轮最多 3 问,放在回复末尾;跳过、补位和首轮交付规则见 SKILL.md 功能一第三步。

| 轮次 | 问什么(对应字段) | 跳过条件 |
|---|---|---|
| 第一轮 基本情况 | 单位类型(含级别);层级与隶属;写作角色和默认模式(问岗位,部门名不算岗位) | 已有简版画像或交接卡已写明 |
| 第二轮 发文体系 | 发文字号格式(含是否党政两套代字);红头或白头、印发机关;内部文种(签报、呈批件) | 用户说“我们不发正式文件”时只问内部文种 |
| 第三轮 写作习惯 | 常写文书;决策程序;篇幅偏好(常写文书有信息、简报的,改问信息报送要求,篇幅偏好顺延) | 角色是业务科室兼职写作的,决策程序可跳过 |
| 第四轮 约束和配套 | 红线与禁用表述;本单位制度文件;是否要建领导偏好卡、文风参数 | 用户说“就这些”时整轮跳过 |

“单位名称或代号”“发文机关标志”“可用文种”不单独问,用户顺带说了就填,没说的留空。

### (二)问法

1. 每题带选项,选项取自单位类型画像,用户可只回“一样”。
2. 一题只问一件事,不追问细节;用户答得含糊的照原话记,起草说明“待核实”一行请其确认;加引号的说法、代字照原样记。

示例(第二轮,市直部门):
1. 发文字号是不是党组、行政两套?如党组“X党组发〔2026〕N号”、行政“X发〔2026〕N号”。不一样的话,照真实编号格式写给我(序号写 N)。
2. 处室向局领导请示用什么?签报、呈批件,还是直接打报告?
3. 局机关发文用红头,处室局内通知用白头,你们也是吗?

### (三)答案落到字段

| 用户的回答 | 写入 |
|---|---|
| “一样”“对” | 选项内容,来源写“用户确认” |
| 说了具体写法 | 照原话,来源写“用户告知” |
| “不清楚”“回头问问” | 留空,列入待补事项 |
| “我们没有发文权” | 发文字号格式写“无(用户告知)”;以什么名义行文列入待补或下一轮再问,不替用户补 |
| 前后两次说法不一 | 取后一次,起草说明“待核实”一行写明前后说法不一 |

## 二、从制度文件和已发文件提取

### (一)字段与条文对照

| 字段 | 一般在哪一章 | 找这些词 |
|---|---|---|
| 发文机关标志 | 公文格式、版头 | 发文机关标志、版头、文件格式 |
| 发文字号格式 | 公文格式、发文字号 | 发文字号、机关代字、六角括号、年份 |
| 红头或白头 | 公文种类、格式 | 文件格式、信函格式、便函、部门通知 |
| 印发机关 | 版记 | 印发机关、印发日期 |
| 党政两套代字 | 发文权限、行文规则 | 党委发文、行政发文、联合行文 |
| 可用文种 | 公文种类 | 公文种类主要有、适用于 |
| 内部文种 | 签报管理、请示报告 | 签报、呈批件、请示单、会签 |
| 决策程序 | 议事规则、“三重一大” | 前置研究、党委会、院长办公会、校长办公会、董事会 |
| 篇幅偏好 | 文风、精简文件 | 篇幅、字数、不超过、精简 |
| 信息报送要求 | 信息工作、政务信息 | 信息报送、采用、计分、时限 |
| 红线与禁用表述 | 保密、信息公开、宣传 | 不得、严禁、保密、对外发布 |
| 写作角色和默认模式 | 制度文件里没有 | 只能问 |

### (二)提取规则

1. 只记条文写明的内容,括注文件名和条款号;条文只写“参照国家有关规定”的,字段留空,不替它展开。
2. 写明“试行”而不知是否转正的,同超过 5 年的一样,括注年份版本,起草说明“待核实”一行请确认是否修订。
3. 一份文件里前后矛盾的,两种都记,括注条款号,起草说明“待核实”一行请确认。

制度文件没写时不自己补,写成:发文字号格式:(留空,起草说明待补事项写“制度文件未规定发文字号格式,请补充一个真实编号的格式”)

### (三)从已发文件提取

用户给了本单位已发的红头文件(有版头和版记即可)时,只看版式,不看内容:

| 文件部位 | 对应字段 | 怎么写 |
|---|---|---|
| 版头 | 发文机关标志;红头或白头 | 照录机关名称加“文件”;党委、行政两种版头都有的分别写 |
| 发文字号 | 发文字号格式;党政两套代字 | 代字照录,年份写“年”,序号写 N,如“X教发〔年〕N号” |
| 版记 | 印发机关 | 照录“印发机关”一栏的名称 |
| 标题末尾的文种 | 可用文种 | 只记出现过的文种,不据此推断“只用这几种” |

1. 来源写“据某年已发文件版式(n 份)”;只有 1 份的,起草说明“待核实”一行说明仅据 1 份。
2. 与制度文件不一致的,两种都记,括注条款号,起草说明“待核实”一行请确认。
3. 有密级或内部标注的,按 SKILL.md 开工检查第 1 条停下,不提取。

## 三、各单位类型的问法和要点

| 单位类型 | 问卷中给的选项 | 另外要问 | 常见误填 |
|---|---|---|---|
| 党政机关 | 党委、政府、办公厅(室)、部门各自代字;处室用签报或呈批件 | 上行文由谁签发 | 把部门内设机构写成可以对外行文 |
| 基层 | 乡镇或街道代字;党委、政府两套 | 是否有当地减负清单、信息报送积分要求 | 把上级部门的代字当成本级 |
| 社区 | 一般无发文字号;以居委会、村委会名义发通知、告知书 | 通知张贴在哪里、是否发居民群 | 编一个发文字号 |
| 公立医院 | 党委、行政两套代字;科室向院领导用签报;重要事项先院长办公会再党委会 | 院内办法对签报会签的要求 | 把党政联席会写成决策会议 |
| 高校 | 校级和部门两级;部门不对校外正式行文;校内请示走党政办 | 学院能否发文、学院代字 | 学院直接对校外行文 |
| 中小学 | 校发;党组织会议、校长办公会;报教育局用请示、报告 | 教育局对篇幅、报送渠道的要求 | 照抄党政机关的 15 个文种 |
| 国有企业 | 党委、行政两套代字;签报;党委前置研究,再到董事会或经理层;议案 | 前置研究事项清单是否单独印发;所属层级(集团、子公司) | 把前置研究写成代替董事会决策 |

## 四、完整画像的写法要点

字段名和顺序照 profile-template.md 第一部分完整版,一字不改;有值的字段括注来源;问不到的冒号后留空;末尾加“## 维护记录”。虚构片段:

```markdown
- 发文字号格式:党组 X教党组发〔年〕N号;行政 X教发〔年〕N号(《某区教育局公文处理办法》第九条)
- 篇幅偏好:
- 决策程序:重要事项先经局长办公会讨论,再由局党组会议研究决定(《某区教育局工作规则》第七条)

## 维护记录
- 2026-10-16:完整建档,制度文件提取 8 个字段,问卷补 6 个字段(gongwen-profile)
```
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