agf-writing-docx-reports

Solid

用 docx-js 写"阅读友好的中文 docx 报告"(决议书 / 评审报告 / 调研 / 分析 / 投标书等高密度报告型文档)。当用户要求把 markdown 内容转 docx 且抱怨"格式混乱 / 不专业 / 看不下去"时启用——pandoc 默认转换难以满足。提供:路径决策 / 设计 token / 可复用 helper 全套 / 11 个 pitfall / 生成-预览闭环。

Data & Documents 480 stars 14 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
89
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 写 docx 报告 — 高密度实战手册 > 重型参考材料(设计 token / spacing 数值 / 9 个 helper / 文档外壳 / 用法示例 / 装配顺序)在 `references/`,按下方索引**按需 Read 全文**,不要凭记忆手写。 ## 何时用本 skill | 信号 | 用本 skill | |---|:--:| | 用户要把 markdown 报告 → docx | ✅ | | 报告是中文 / 含大量表格 / 需要视觉强调(决议 / 警示) | ✅ | | 用户反馈"格式混乱 / 不专业 / 字段被分行 / 段前段后大 / 页边距宽" | ✅ | | 报告需要封面页 / 自动目录 / 页眉页脚 / 警示框 | ✅ | | 只是导出几页纯文本 / 没有表格 | ❌ 用 pandoc 默认即可 | | 要做的是 PPT / Excel | ❌ 转 pptx / xlsx skill | ## 路径决策(3 选 1) | 路径 | 何时选 | 代价 | |---|---|---| | **pandoc 默认** `pandoc x.md -o x.docx` | 内部草稿 / 纯文本为主 / 表格 ≤ 3 个 | 几秒;视觉无控制 | | **pandoc + reference.docx** | 想统一字体 / 标题色但不要 callout | 中等;要先在 Word 里手工调样式做模板 | | **docx-js 全定制**(本 skill 核心) | 正式对外报告 / 高密度表格 / 警示框 / 封面页 | 一次写 ~600 行 JS,复用率 90% | 判定经验:**用户说"格式混乱"基本就是要 docx-js**——根因是 pandoc 的列宽 auto + 无��式覆盖。 ## References 索引(什么时候必读哪份) | 场景 | 必读(Read 全文) | |---|---| | 动手写任何 docx-js 生成脚本前 | [`references/design-tokens-and-helpers.md`](./references/design-tokens-and-helpers.md)——设计 token / spacing 收紧数值 / 9 个可复用 helper + 用法示例 / 文档外壳模板 / 结构化数据→表格技巧 / 装配顺序,全套粘贴即用 | ## 配色铁律 - 标题用 `PRIMARY`(深蓝)不用默认黑——视觉层次靠颜色对比 - "强制不通过 / 警示 / 一票否决"用 `DANGER` + 浅红 BG callout - "事实风险 / 即将逾期"用 `WARN` + 浅黄 BG callout - 表头一律 `PRIMARY_LIGHT` 底,body 用 `ALT_ROW` 隔行底(zebra) - 普通文本辅助信息(注释 / 路径)用 `MUTED` 灰 ## spacing 要点(完整数值表见 references) 段前段后是 docx 最易膨胀的维度:default spacing(before 240+ / after 180+)= 19 页,收紧后 15 页(-21%)。收紧基准:H1=240/120、H2=160/80、H3=120/60、p=40/40、表格周边=30/30、bullet=30/30、cell margins=60/100。 ## 11 个 pitfall(踩过的坑) | # | 坑 | 解决 | |:-:...

Details

Author
pcliangx
Repository
pcliangx/AppGenesisForge
Created
3 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Solid

agf-writing-pptx-reports

用 python-pptx 写"现代化中文制度 / 党政 / 企业宣贯 PPT"(含决议书提报、评审报告、管理办法、培训宣贯等 23 页量级 deck)。当用户要求程序化生成 PPT 且抱怨"老土 / 字体丑 / 表格乱 / 文字溢出 / 中文字体 fallback / 缺架构图"时启用——`python-pptx` 默认 API 一堆坑必须主动避开。提供:路径决策 / 设计 token / 12 个 helper 全套 / 7 个致丑反模式 / 12 个关键技巧 / LibreOffice 渲染验证闭环 / 跨平台中文字体生效 lxml 写法 / 配套 draw.io 画架构图选型(中文字体、配色、8 大坑、嵌入 PPT 链路)。

480 Updated 1 weeks ago
pcliangx
Data & Documents Listed

docx-cn

生成 .docx(docx-js)——Node 实现、中文优先、研究汇报向。内置 Node 运行法 / 共享依赖 NODE_PATH 技巧、中文字体坑、navy 学术配色、结果表(Rel/Gen/Loc/Avg 最佳值标红)模板、以及 Word 排版踩坑(标题/表格/列表/右对齐点引导符/分页/图片)。触发:做 Word / 报告 / 文档 / .docx,尤其涉及中文、实验结果表、指标、中英混排。

1 Updated 1 weeks ago
ssssliug
Data & Documents Listed

doc-atlas

Turn one or more documents (PDF / Word / PPT / Excel / HTML / EPUB / Markdown…) into a single, polished, offline, self-contained HTML dashboard — a left fixed table-of-contents tree and right-side modular content (executive summary, big key-metric cards, logic/relationship diagrams, data charts, conflict comparison, chapter details). Use when the user has document files and wants to "distill / merge / visualize / make sense of / lay out / build a panel from" them. It highly distills the key points so the reader need not open the source, keeps every claim traceable back to file + page, and foregrounds the logic/relationship diagram as the centerpiece.

2 Updated 5 days ago
lemomo-ai