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.
npx skills add cass-2003/local-workflow-skill --skill doc-officegit clone --depth 1 https://github.com/cass-2003/local-workflow-skillWrote 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.
[](https://agentmods.dev/skills/cass-2003/local-workflow-skill/doc-office)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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: 需求识别与工具选择
- 文档类型识别: 输入格式 → 输出格式 → 处理方式
- 工具链匹配:
- 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
- 扫描现有模板:
Glob—**/template*/**/*.docx/**/*.xlsx/**/*.pptxGrep—jinja/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: 模板引擎与批量处理
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.
- 6d ago First seen · 224 lines · 71 tokens per session scan A 9cf4ecd3f1d4
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.
Other skills, from other repositories
doc-reader
Read any common document/data file — PDF, Word (.docx), Excel (.xlsx/.xls), PowerPoint (.pptx), images (OCR), CSV/TSV, plain text, JSON/YAML/TOML, HTML/XML, and most source-code files. Use the readdocument tool.
skill-doc-delivery
Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.
unified-deliverable-workflow
Generate spreadsheets, diagrams, and PDF reports with iteration budgeting and error recovery.
document-python-direct-exec
Use direct Python execution for reliable spreadsheet and document/PDF generation operations.
document-direct-python
Use direct Python execution for reliable document creation including spreadsheets, PDFs, and structured reports.
document-python-direct
Use direct Python execution for reliable spreadsheet and document/PDF generation operations.