Skip to content

duyunzhoudyz/dyz-gongwen-skills / skills/gongwen-data

gongwen-data

Verified

为公文整理数据、出图表,包括报表体检(空值、合并单元格、合计校验、单位和时段口径冲突),汇总下级报表,计算同比、环比、增速、百分点、占比、拉动、完成率、平均值并附算式,把数据写成能直接进公文的句子,在本机生成黑白灰 Excel 图表,数据不出本机,缺的数标【待补】。用户说合并科室月报、汇总下面报的表、查查合计对不对、算同比环比、百分点怎么写、这组数写成一段话、做个柱状图折线图时使用。整篇总结和分析报告交 gongwen-report,装有行业包时,本行业专用文书交对应行业包;成稿核数字交 gongwen-review,整改台账转 Excel 交 gongwen-rectify。

FileKindSize
README.mdmarkdown6.3 KB
SKILL.mdskill md18.9 KB
evals/evals.jsonconfig24.0 KB
evals/files/某区政务服务中心2026年1—9月办件量统计.csvother277 B
evals/files/某医院2026年8月五官片区科室月报.csvother314 B
evals/files/某医院2026年9月内科片区科室月报.csvother498 B
evals/files/某医院2026年9月各科室医疗质量指标.csvother1.8 KB
evals/files/某医院2026年9月外科片区科室月报.csvother406 B
evals/files/某医院2026年9月妇儿片区科室月报.csvother324 B
evals/files/某医院2026年9月科室月报应报名单.txtmarkdown251 B
evals/files/某医院2026年三季度不良事件上报明细.csvother1.2 KB
evals/files/某县2026年1—9月各镇(街道)规模以上工业产值.csvother337 B
evals/files/某小学2026年春季学期学生体质健康测试统计表.csvother372 B
evals/files/某社区2026年1—9月关爱独居老人走访台账汇总.csvother301 B
evals/files/某集团2026年1—9月子公司经营指标表.csvother367 B
evals/files/某集团丙公司2026年1—8月经营快报.csvother324 B
evals/files/某集团乙公司2026年1—9月经营快报.csvother301 B
evals/files/某集团甲公司2026年1—9月经营快报.csvother303 B
evals/trigger.jsonconfig2.3 KB
manifest.jsonconfig1.4 KB
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/data-expression.mdmarkdown13.1 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/calc-sheet.mdmarkdown5.2 KB
references/chart-guide.mdmarkdown3.3 KB
references/inspect-checklist.mdmarkdown5.7 KB
references/scripts.mdmarkdown8.9 KB
references/units.mdmarkdown4.3 KB
scripts/chart_tool.pyscript31.7 KB
scripts/data_tool.pyscript144.0 KB
scripts/fact_diff.pyscript57.4 KB
scripts/gongwen_lint.pyscript156.2 KB
scripts/lint_rules.jsonconfig108.7 KB
scripts/secret_check.pyscript8.9 KB
scripts/style_patterns.jsonconfig77.4 KB

references/chart-guide.md

View on GitHub
# 公文图表

公文里的图要能黑白打印、看清数、查到出处。

## 一、选图

| 要说明的 | 用 | 不用 |
|---|---|---|
| 各单位、各科室比大小 | 柱状图;类别超过12个或名称长的用条形图,按数值从大到小排 | 饼图、折线图 |
| 一个指标按月、按年的变化 | 折线图;不超过12期也可用柱状图 | 按数值排序 |
| 今年与去年同期逐月对比 | 两条折线(实线和虚线) | 双坐标轴 |
| 总量由哪几部分构成 | 饼图(不超过6类,小类并为“其他”),或堆积柱状图 | 部分相加不等于总体的数据 |
| 突出本单位在全市的位置 | 条形图,本单位深灰、其他浅灰 | 彩色 |

比率、平均数不画饼图和堆积图;不同单位的指标(户和天、万元和%)分开出图。

## 二、图上必须有的

1. 图题写清时段和指标,如“2026年1—6月各街道(乡镇)新登记经营主体”;只用前N项的,图题或图注写“前10位”。
2. 纵轴标题写“单位:户”;图下写“数据来源:登记注册系统”,没给的写【待补:数据来源】并列入待补。
3. 柱、点上标数值,免去对刻度估读。
4. 纵轴从0开始;有负数的画在0以下,不截断纵轴。
5. 合计、小计、“其中”和平均行不入图;空值留空不画成0。

## 三、黑白灰

1. 系列用深灰、中灰、浅灰区分,柱子加黑色细边框;折线用实线、虚线、点线和不同标记区分。
2. 不用彩虹色、渐变、阴影、三维和背景图;网格线用浅灰细线。
3. 用户要彩色(如投影用)的,在 Excel 中自行改色;交付稿仍按黑白灰。
4. 只在本机的 Excel、WPS 或 `scripts/chart_tool.py` 出图,不用在线图表网站和远程渲染的图表插件。

## 四、不能运行脚本时:图表规格卡和手工步骤

起草说明之后先给“附:图表规格卡”,再附操作步骤。

```text
图表规格卡
图1 2026年1—6月新登记经营主体前10位街道(乡镇)
类型:条形图,从大到小排列
分类:街道(乡镇)(10个)
数值:新登记经营主体(单位:户)
数据:东湖街道612,滨江街道547,……
数据来源:登记注册系统
样式:深灰色条,黑色细边框,标数据标签,纵轴从0开始
```

Excel(2016及以上)操作步骤:
1. 把规格卡数据粘贴到两列(分类、数值),首行写列名。
2. 选中数据,“插入”→“图表”,选“簇状条形图”(或柱形图、折线图、饼图)。
3. 点图表右上角“+”:勾选“数据标签”;只有一个系列时取消“图例”;勾选“坐标轴标题”,纵轴标题改为“单位:户”。
4. 双击柱子→“填充”选深灰纯色,“边框”选黑色实线。
5. 双击数值轴→“坐标轴选项”→“最小值”填0;条形图要第一项在最上面,双击分类轴勾选“逆序类别”。
6. 图表标题改为图题;图下方单元格写“数据来源:……”。

WPS 表格:步骤相同,菜单为“插入”→“全部图表”;数据标签在“图表元素”勾选;“逆序类别”在“设置坐标轴格式”→“坐标轴选项”。

放进 Word:在 Excel 复制图表,在 Word “选择性粘贴”为增强型图元文件;排进国标公文的交 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