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/maintenance.md

View on GitHub
# 画像维护与体检

目录
- 一、读写约定细则
- 二、体检项目
- 三、体检单示例

## 一、读写约定细则

### (一)找文件

1. 依次找:工作目录 `.gongwen/`、用户目录 `~/.gongwen/`、对话开头粘贴的文本。
2. 两处都有的,以工作目录为准,并告诉用户“用户目录下还有一份,本次未读取”。
3. 改动写回读取时的那一份,不另建第二份。
4. 用户直接给出画像文件(上传或指定路径,不在 `.gongwen/` 下)的,按该文件处理,改完写回原处;改前照(三)备份到 `.gongwen/历史/`;最后问用户是否移入 `.gongwen/`,以便其他 skill 自动读取,移不移由用户决定。网页环境照常输出完整新版本。

### (二)变更单

```text
变更单(单位画像.md)
[修改]写作角色和默认模式:院办秘书;高效模式 → 党办干事;严谨模式(来源:用户告知,2026-10-16)
[新增]内部文种:签报,科室向院领导请示用(来源:《某医院签报管理规定》第三条)
[删除]红线与禁用表述中“联系人钱某电话”一句(来源:画像体检,含个人信息)
以上 3 条,同意后写入,其余字段不动。
```

1. 一条只改一个字段或一个条目,写清原内容、新内容、来源。
2. 一次列完再请用户确认;用户可以只同意其中几条。
3. 用户说过“直接改”的,照变更单写入,变更单仍在对话中列出。

### (三)备份和维护记录

1. Agent 环境修改已有文件前,复制到 `.gongwen/历史/<原文件名>-<YYYYMMDD-HHMM>.md`;同名备份已存在的加 -v2。
2. 每个文件末尾一节维护记录,一次改动一行:`- 2026-10-16:改写作角色 1 条、新增内部文种 1 条(用户告知;gongwen-profile)`。日期写当天日期,网页环境不确定的留空。
3. 标题级别照 `references/_shared/profiles/profile-template.md` 使用规则第 7 条:领导偏好卡文件用一级标题“# 维护记录”,放在全部卡之后,不属于任何一张卡,文件里只保留这一节;单位画像、禁用词、文风参数用“## 维护记录”。
4. 用户手工改过文件的,照用户的版本继续维护,不恢复成旧版。

### (四)领导偏好卡放多位领导

1. 同一个文件,每张卡以“# 领导偏好卡(职务)”开头,如“(院长)”“(分管副院长)”。
2. 起草 skill 按讲话人或署名领导的职务取对应的卡,取不到的按无偏好卡处理并写进所作假设(profile-template.md 第二部分);本 skill 建卡时职务说不清的,问用户。
3. 领导调任的,不删卡,在卡首“适用对象”后写“(2026-10 调任,暂停使用)”,由用户决定是否删除。

### (五)不写入的内容

人名、电话、证件号、住址;患者、学生、群众的任何个人信息;对领导或同事个人的评价;未公开的经营数据和业务数据;原文段落和整句。

## 二、体检项目

| 序号 | 检查项 | 怎么查 | 级别 |
|---|---|---|---|
| 1 | 关键字段缺失 | “单位类型”“写作角色和默认模式”为空,会触发无画像降级(`references/_shared/profiles/roles.md` 第九节) | P1 |
| 2 | 其他字段空缺 | 18 个字段逐个看;空着的列出,说明读取时会用单位类型默认值。模板新增的字段(如信息报送要求)没有的,按空缺处理 | P2 |
| 3 | 个人信息 | 人名(“某某院长”带真名)、手机号、证件号、住址 | P0 |
| 4 | 对个人的评价 | 偏好卡中“脾气”“性格”“不喜欢某人” | P0 |
| 5 | 与单位类型默认值不同 | 对照 `references/_shared/profiles/units/` 对应文件第二、三、四、六部分:发文体系、可用文种、决策程序、红线 | 本单位实际如此的不列;明显不合常规的 P1 待核实;社区写了发文字号的 P2 |
| 6 | 维护记录过期 | 最后一次维护超过 12 个月 | P2 |
| 7 | 制度文件过旧 | 本单位制度文件印发超过 5 年,或画像未写版本年份 | P2 |
| 8 | 偏好卡对象可能变动 | 卡首更新日期超过 12 个月;用户提到领导调整 | P2 |
| 9 | 文风参数过旧或样本不足 | 样本都在 3 年以前;样本少于 3 篇;人工估算 | P2 |
| 10 | 文件之间矛盾 | 禁用词与偏好卡“常用”冲突;画像角色与偏好卡适用对象不符 | P1 |
| 11 | 篇幅偏好超上限 | 只查通知、意见、实施方案等文件类篇幅偏好;总结、汇报材料、讲话不适用本项(jianfu.md 第三部分第 6 条),画像写“年度总结不超过6000字”的不列。部署专项工作的文件超过 4000 字,部署综合性工作以外的其他文件超过 5000 字(`references/_shared/rules/jianfu.md` 第一、三部分)。部署综合性工作的文件不设上限,超过 5000 字只作 P2 提示 | 党政机关、基层、社区 P1,依据写“减负规定第2条”;医院、高校、中小学、国企不受该条字数直接约束,给 P2,依据写“参照减负规定第2条” |
| 12 | 字段名被改动 | 字段名与模板不一致,其他 skill 读不到 | P1 |
| 13 | 政治性提法条目无依据 | 禁用词中的提法条目没有写上级原文出处 | P1 |

第 5 项的常见情形:
- 公立医院决策程序只写院长办公会,没有党委会:公立医院实行党委领导下的院长负责制(`references/_shared/profiles/units/yiyuan.md` 第四部分),列 P1 待核实。
- 国有企业重大事项没有党委前置研究:对照 guoqi.md 第四部分,列 P1 待核实。
- 社区画像写了发文字号:社区一般没有发文字号,列 P2 请用户确认。
- 高校学院画像写“可对校外正式行文”:对照 gaoxiao.md 第二部分,列 P1 待核实。

## 三、体检单示例

以下为虚构示例。

```text
画像体检单(2026-10-16)
总体:单位画像已填 13/18 个字段;发现 P0 1 条、P1 1 条、P2 4 条。

| 序号 | 级别 | 文件和字段 | 问题 | 依据 | 建议改法 |
|---|---|---|---|---|---|
| 1 | P0 | 单位画像·红线与禁用表述 | 写有办公室主任姓名和手机号 | guardrails.md 第一条第 3 款 | 删去姓名电话,只写“办公室主任” |
| 2 | P1 | 单位画像·决策程序 | 只写院长办公会,没有党委会 | yiyuan.md 第四部分 | 请对照院内议事规则补充 |
| 3 | P2 | 单位画像·篇幅偏好 | 部署专项工作的文件不超过8000字,超出常用上限 | 参照减负规定第2条(jianfu.md 第一、三部分;医院不受该条字数直接约束) | 建议改为不超过4000字,或写明适用范围 |
| 4 | P2 | 单位画像·本单位制度文件 | 公文处理办法为2014年版 | 印发超过 5 年 | 请确认是否已修订 |
| 5 | P2 | 单位画像·维护记录 | 最后维护为2023-11 | 超过 12 个月 | 请确认各字段是否仍然准确 |
| 6 | P2 | 单位画像·印发机关、内部文种等 5 个字段 | 空缺 | 模板第一部分 | 可按问卷补充,不补时按单位类型默认值 |

请告诉我改哪几条(如“改 1、2、3”),我列出变更单,您同意后再改。
```
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