/scrinium:documentfrom scrinium
Generates Word, PowerPoint, and Excel documents using python-docx, python-pptx, and openpyxl APIs, then inspects them for layout issues, overflow, and missing elements.
Ships in scrinium. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
直接用 Python API 生成 Word / PowerPoint / Excel 文档,并通过 scrinium document inspect 检查文档结构和布局。
适用:
不适用:
scrinium export docx,见 /export skill).md 即可,无需 Office 文档)生成:不要用 scrinium export docx(那个只是简单的 Markdown 转换器)。本 skill 直接编写 Python 脚本调用 Office 库 API,类似 draw skill 直接调用 Inkscape API 画图。
检查:生成后必须用 scrinium document inspect <file> 检查文档,确认布局、内容、图片尺寸无误,再交付给用户。
输出目录:workspace/ 下(如 workspace/reports/、workspace/figures/)。
默认主题唯一定义在 scrinium/presentation/theme.py 的 DEFAULT_THEME。生成脚本从 scrinium.presentation.pptx_style 导入样式组件,在创建 presentation 前用 configure_theme() 配置;可从 templates/starter/build_report.py 复制最小示例开始。
用户的定制主题放在 preferences/theme/<name>/theme.py,通过 replace(DEFAULT_THEME, ...) 覆盖所需字段,Logo 等资源放在该主题自己的 assets/ 下。生成的 PPTX 留在对应报告 workspace 的相应子目录。可选的逐页预览由报告根据当前环境自行安排,预览产物放在报告的 preview/。
用户要求新建主题时,先确认主题名称和本次希望定制的字体、主题色、Logo、页脚等内容,未指定的属性沿用默认主题,不必逐项追问。随后在对应主题目录中定义主题对象,把引用资源放入该主题的 assets/,并在报告生成脚本中导入该对象、传给 configure_theme()。
开始制作 PPT 前,优先参考当前自定义主题的 preferences/theme/<name>/style-guide.md 的指导,如果没有,参考 scrinium/presentation/style-guide.md。
| 需求 | 格式 | 库 |
|---|---|---|
| 报告 / 综述 / 简报 / 论文 | DOCX | python-docx |
| 汇报 / 演示 / 答辩 | PPTX | python-pptx |
| 数据表 / 统计 / 列表 | XLSX | openpyxl |
用户未指定时按内容性质选择,默认 DOCX。
详细 API 速查与可运行模板见 reference.md(三个库的导入方式、文档结构模板、API 速查表、TOC 字段、表格样式、图表等),写生成脚本时按需加载,不必预读。
scrinium search — 搜索论文scrinium show --layer 2/3 — 获取摘要/结论scrinium top-cited — 高引论文scrinium topics <tag> — 主题(标签)下的论文scrinium workspace show <name> — 工作区论文列表workspace/figures/workspace/:
workspace/
└── reports/
├── research_brief.docx
├── presentation.pptx
└── paper_stats.xlsx
scrinium document inspect <file> 检查生成结果
# 检查 PPTX:逐页输出 shape 位置/尺寸/文字/图片信息 + 溢出警告
scrinium document inspect presentation.pptx
# 检查 DOCX:段落/标题/表格/图片结构 + 样式摘要
scrinium document inspect report.docx
# 检查 XLSX:Sheet 概览 + 数据预览 + 图表列表
scrinium document inspect data.xlsx
输出内容:
| 格式 | 检查项 |
|---|---|
| PPTX | 每页 shape 类型、位置(英寸)、尺寸、文字预览、图片大小、表格维度、溢出检测 |
| DOCX | 标题层级、段落内容、表格结构、嵌入图片、样式统计 |
| XLSX | Sheet 列表、数据范围、冻结窗格、合并单元格、表头预览、数据预览、图表类型和标题 |
scrinium document editable report.pptx 准备用户可编辑副本;已有副本时先确认其中是否有人工修改。scrinium document diff report.pptx report_editable.pptx(需要结构化结果时加 --json),查看文本、位置、字体与段落等属性、页序、增删、Notes,以及主题、母版、媒体和嵌入对象等包级差异;纯元数据单独标记。| 组合 | 流程 |
|---|---|
| draw + document | draw 生成 PNG/SVG → doc.add_picture() 嵌入 DOCX/PPTX |
| search + document | 搜索结果 → 表格写入 DOCX/XLSX |
| literature-review + document | 生成综述内容 → 带 TOC 的正式 Word 文档 |
| paper-writing + document | 论文章节 → 排版完整的 Word 文件 |
| topics + document | 主题分析 → 可视化报告(PPTX 幻灯片) |
对于简单的 Markdown → DOCX 转换(不需要高级排版),仍可使用:
scrinium export docx --input file.md --output file.docx
用户说:"帮我总结一下文献库,写个简报到 Word 文件"
→ 调用 top-cited、topics、insights 收集数据 → 参照 reference.md 写 python-docx 脚本生成带标题、目录、表格、图片的 DOCX
用户说:"把 phd-thesis 工作区的论文做成 PPT 给导师汇报"
→ 调用 workspace show phd-thesis 获取论文列表 → 按主题分组 → 参照 reference.md 写 python-pptx 脚本生成幻灯片
用户说:"导出所有论文的统计数据到 Excel"
→ 遍历 data/papers/*/meta.json 提取字段 → 参照 reference.md 写 openpyxl 脚本生成带筛选和图表的 XLSX
用户说:"画一个流程图然后嵌入到报告里"
→ 先用 draw skill 生成 PNG → 再用 python-docx 的 add_picture() 嵌入 DOCX
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
office-documents, docx, pptx, xlsx, report-generation, document-inspection
38 skills in this plugin
/arxivUse when the user wants to browse arXiv preprints, search arXiv directly, fetch a PDF by arXiv ID or URL, or send a preprint straight into the ingest pipeline./auditAudit paper data quality in the knowledge base and take over repairs. Rule-based checks surface missing fields, filename issues, DOI duplicates, and title mismatches with per-issue fix hints; agent/subagents then verify against the original text and fix meta.json directly. Use when the user wants to check data quality, find problems, or fix metadata issues./bioinformaticsUse when working on bioinformatics toolchains such as alignment, variant calling, phylogenetics, or protein-structure analysis, especially when the agent must route across BLAST, minimap2, samtools, bcftools, MAFFT, IQ-TREE, or ESMFold./citation-checkVerify citations in AI-generated or human-written text against the local knowledge base. Catches hallucinated references, wrong metadata, and missing papers. Use when the user wants to check if citations are real and accurate./citationsView top-cited papers ranking and refresh citation counts from APIs. Use when the user asks about highly cited papers, citation rankings, or wants to update citation data./curateCurate papers with tags in batch — build and maintain a healthy tag vocabulary, tag untagged papers via subagents, and review vocabulary quality. Tags are the library's topic layer (see the /topics skill). Use when the user wants to tag papers / batch-organize the library with tags / tidy up the tag vocabulary.npx claudepluginhub wszqkzqk/scrinium --plugin scriniumOther plugins' skills for the same job