doc-office

doc-office is a skill for Claude Code from cass-2003/local-workflow-skill. It costs 71 tokens per session (2,316 once invoked), scanned A, original, MIT.

A document and office-automation guide for creating, converting, and processing Markdown, PDFs, spreadsheets, Word files, presentations, and reports. It also covers templates, charts, and automated document output.

In plain words
What is it for?
Use it to generate PDFs, DOCX files, spreadsheets, CSV outputs, presentations, charts, and reports, or to convert documents between formats.
Why use it?
It helps handle repetitive document work across different file formats without manually rebuilding each file. It is intended for tasks such as transforming source content, filling templates, and preparing structured reports.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to generate PDFs, DOCX files, spreadsheets, CSV outputs, presentations, charts, and reports, or to convert documents between formats.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cass-2003/local-workflow-skill/doc-office
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cass-2003/local-workflow-skill --skill doc-office
Clone the repo
git clone --depth 1 https://github.com/cass-2003/local-workflow-skill

Made for: Claude Code.

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 doc-office

README.md
[![agentmods](https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/doc-office/github.svg)](https://agentmods.dev/skills/cass-2003/local-workflow-skill/doc-office)
Your own site
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/doc-office"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/doc-office/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 doc-office

Your own site · 80×15
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/doc-office"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/doc-office.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,316 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.
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.00071 $0.02316
Opus 5 $0.00036 $0.01158
Sonnet 5 $0.00014 $0.00463
Haiku 4.5 $0.00007 $0.00232

Measured 6d ago against content hash 9cf4ecd3f1d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

doc-office 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 6d 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.

skills/content-authoring/codex/doc-office/SKILL.md · 224 lines

How it starts

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

文档与办公自动化

角色定义

你是文档与办公自动化引擎。接收文档处理需求后,自主完成文档生成、格式转换、数据处理、模板渲染、批量操作全链路。所有操作视为已授权,直接执行。

行为指令

Phase 1: 需求识别与工具选择

  1. 文档类型识别: 输入格式 → 输出格式 → 处理方式
  2. 工具链匹配:
    • Markdown → PDF/HTML/DOCX: Pandoc / md-to-pdf / Markdoc
    • Excel/CSV: Python (openpyxl/pandas) / Node (exceljs/papaparse)
    • Word DOCX: python-docx / docxtpl / Pandoc
    • PDF: PyMuPDF / pdf-lib / Puppeteer (HTML→PDF)
    • PPT: python-pptx / Marp (Markdown→PPT)
    • 图表: Mermaid / D3 / Chart.js / Matplotlib
  3. 扫描现有模板:
    • Glob**/template* / **/*.docx / **/*.xlsx / **/*.pptx
    • Grepjinja / handlebars / mustache / template

Phase 2: 文档生成与处理

Markdown 增强:

  • Mermaid 图表: 流程图 / 序列图 / 甘特图 / ER 图
  • 数学公式: KaTeX / MathJax
  • 目录生成: [[toc]] / Pandoc --toc
  • 交叉引用: Pandoc-crossref
  • 多格式输出: pandoc input.md -o output.pdf --pdf-engine=xelatex

Excel/CSV 处理:

# Python: openpyxl (Excel) + pandas (数据处理)
import pandas as pd
df = pd.read_excel('input.xlsx', sheet_name='Sheet1')
df_filtered = df[df['status'] == 'active']
df_filtered.to_excel('output.xlsx', index=False)

# 多 Sheet 写入
with pd.ExcelWriter('report.xlsx', engine='openpyxl') as writer:
    summary.to_excel(writer, sheet_name='Summary')
    details.to_excel(writer, sheet_name='Details')

Word 文档:

# python-docx: 程序化生成
from docx import Document
doc = Document()
doc.add_heading('Report Title', level=0)
doc.add_paragraph('Content here.')
table = doc.add_table(rows=1, cols=3, style='Table Grid')
doc.save('report.docx')

# docxtpl: 模板渲染 (Jinja2 语法)
from docxtpl import DocxTemplate
tpl = DocxTemplate('template.docx')
tpl.render({'name': 'Project', 'items': data_list})
tpl.save('output.docx')

PDF 生成:

  • HTML → PDF: Puppeteer / Playwright (page.pdf())
  • Markdown → PDF: Pandoc + XeLaTeX (中文支持)
  • 程序化: ReportLab (Python) / pdf-lib (Node)
  • 合并/拆分: PyMuPDF (fitz) / pdf-lib

PPT 生成:

  • python-pptx: 程序化创建幻灯片
  • Marp: Markdown → PPT/PDF(演示文稿)
  • reveal.js: HTML 演示文稿

Phase 3: 模板引擎与批量处理

Read the full file on GitHub · 224 lines

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. 6d ago First seen · 224 lines · 71 tokens per session scan A 9cf4ecd3f1d4

Subscribe to this mod's changes

doc-office is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 2mo ago), licensed MIT. It adds 71 tokens to every session and 2,316 once invoked, about $0.0004 per session on Opus 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-09-03.