scholaraio: Skill for Claude Code

.claude/skills/document/SKILL.md

document is a skill for Claude Code from ZimoLiao/scholaraio. It costs 43 tokens per session (1,262 once invoked), scanned A, original, MIT.

A toolset for creating and inspecting editable Word, PowerPoint, and Excel files. It also checks document structure, such as headings, tables, slide boundaries, text overflow, sheets, and charts.

In plain words
What is it for?
Use it to generate reports, presentations, and spreadsheets; add tables, images, charts, and styles; and inspect the resulting DOCX, PPTX, or XLSX files.
Why use it?
It helps turn written content or data into downloadable Office files and catch common layout or structure problems before delivery. The inspection focuses on file structure and heuristic layout warnings.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is ZimoLiao/scholaraio's own configuration. It tells Claude Code how to work on scholaraio itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything scholaraio configures →

Part of the scholaraio plugin — 44 skills, 1 hook shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to ZimoLiao/scholaraio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ZimoLiao/scholaraio/main/.claude/skills/document/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ZimoLiao/scholaraio

Made for: Claude Code.

Or install scholaraio, the plugin that ships this one along with the rest of its 44 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for document

README.md
[![agentmods](https://agentmods.dev/badge/skills/zimoliao/scholaraio/document/github.svg)](https://agentmods.dev/skills/zimoliao/scholaraio/document)
Your own site
<a href="https://agentmods.dev/skills/zimoliao/scholaraio/document"><img src="https://agentmods.dev/badge/skills/zimoliao/scholaraio/document/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for document

Your own site · 80×15
<a href="https://agentmods.dev/skills/zimoliao/scholaraio/document"><img src="https://agentmods.dev/badge/skills/zimoliao/scholaraio/document.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,262 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.01262
Opus 5.5 $0.00017 $0.00505
Sonnet 5.5 $0.00009 $0.00252
Haiku 4.5 $0.00004 $0.00126

Measured 1mo ago against content hash 1a828499ea69, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

document scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/document/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Office 文档生成与检查

Capability Routing

当前 Agent 原生能力优先,但必须先做能力检查:按最终交付物路由,不按 Agent 品牌路由。若当前会话实际提供内容写作、演示设计、图表或版式能力,就由当前使用的 Agent 原生能力先完成内容与视觉方案。只有用户需要可下载、可复现的 DOCX/PPTX/XLSX 文件时,才使用本 skill 的 Office API 和检查闭环。

Output Contract

用户要的产物 默认实现 必做检查
正式报告、综述、简报 python-docx → DOCX 标题层级、段落、表格、图片、样式
汇报、演示、答辩 python-pptx → PPTX 页数、shape 边界、文字溢出警告、图片、表格
数据表、统计、清单 openpyxl → XLSX sheet、数据范围、冻结窗格、格式、图表

把用户交付物写到 workspace/ 下;正式文件默认放 workspace/reports/,系统生成图表默认放 workspace/_system/figures/。不要把产物写到仓库根目录。

Workflow

  1. 明确最终格式、受众、语言、模板、页数或篇幅,以及是否需要可编辑源文件。
  2. 使用当前会话实际可用的原生能力完成内容、故事线和视觉方案;需要文献数据时再组合 ScholarAIO 的检索或写作 skill。
  3. 只读取与目标格式对应的实现参考:
  4. 用一个可重复运行的 Python 脚本生成文件。脚本与产物都放在对应 workspace 中,避免散落临时代码。
  5. 运行 scholaraio document inspect <file>;发现结构问题或溢出警告时,修改脚本、重新生成并再次检查。
  6. 若当前会话实际具备 Office/PDF 渲染或页面预览能力,再对所有页面或幻灯片做视觉检查。否则明确说明只完成了结构检查和启发式布局检查,不要声称已经视觉验收。
  7. 向用户提供最终文件路径、格式和已完成的检查。

Inspection Commands

scholaraio document inspect workspace/reports/report.docx
scholaraio document inspect workspace/reports/presentation.pptx
scholaraio document inspect workspace/reports/data.xlsx

document inspect 是结构化检查器:

  • PPTX:报告每页 shape 的位置、尺寸和内容,并给出边界/文字溢出启发式警告。
  • DOCX:报告章节、段落、表格、图片和样式结构。
  • XLSX:报告 sheet、数据范围、冻结窗格、合并单元格、预览和图表。

它不能代替完整的 Office 渲染器。无警告不等于视觉布局一定正确。

Composition Rules

前置任务 组合方式
绘制流程图或论文图 /draw 生成 SVG/PNG,再嵌入 Office 文件
搜索或整理论文 /search、/workspace 或写作 skill 先生成有来源的内容
文献综述或论文章节 /literature-review 或 /paper-writing 先完成内容,再封装 DOCX
普通演示稿 先完成故事线与逐页内容,再生成 PPTX

Quality Gates

  • 保留输入数据、生成脚本和最终 Office 文件,使交付可重复生成。
  • 不编造引用、图表数据或缺失内容;无法核验的内容必须标注。
  • DOCX 使用语义化标题样式,不用手工字号假装标题层级。
  • PPTX 统一页面尺寸、边距、标题层级和视觉网格,避免默认模板堆字。
  • XLSX 保留原始数据精度,显式设置数字格式、冻结表头和筛选范围。
  • 检查结果失败或出现警告时,先修复再交付;不能修复时明确列出剩余问题。

Simple Conversion Escape Hatch

Read the full file on GitHub · 89 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -1 lines 1a828499ea69
  2. 2mo ago First seen · 90 lines · 43 tokens per session scan A 31c65824fe9b

Subscribe to this mod's changes

document is a skill published in the GitHub repository ZimoLiao/scholaraio (584 stars, last pushed 10d ago), licensed MIT. It adds 43 tokens to every session and 1,262 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

document compared with skills from other repositories

document next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
documentZimoLiao/scholaraioSkill58410d agoMITA43Claude Code
dcf-modelNousResearch/hermes-agentSkill261kyesterdayMITA14Claude Code, Codex
gogopenclaw/openclawSkill394kyesterdayMITA20Claude Code, Codex
xlsxasgeirtj/system_prompts_leaksSkill71k2d agoCC0-1.0A206Claude Code, Codex
audit-xlsanthropics/financial-servicesSkill41k9d agoApache-2.0A104Claude Code
google-drive-sheetsyc-software/qmSkill16kyesterdayMITA32Claude Code, Codex
excel-basic-statistics-and-routingOpenSenseNova/SenseNova-SkillsSkill6.0k3d agoMITA46Claude Code, Codex