office-pdf SKILL.md skillA
office-pdf from huiliyi37/tianshu-harness is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add huiliyi37/tianshu-harness/office-pdf@git:20260720.5237f6cPins git:20260720.5237f6c in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- huiliyi37/tianshu-harness
- Path
plugins/office-pdf/skills/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260720.5237f6c, committed Jul 20, 2026
- Size
- 2,327 bytes
- Repository stars
- 1,254
- License
- Apache-2.0
生成与读取 PDF 文档(报告、合同、交付文档)——原生 pdfkit 渲染,自动解析系统 CJK 字体支持中文,支持 heading/paragraph/table/code/list 内容块与页码页脚.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Office PDF(PDF 生成与读取) 参考 anthropics/skills(Apache 2.0)提炼,适配天枢 `office-pdf` 插件。 ## 何时使用 - 需要交付**正式文档**:报告、合同、方案书、白皮书、发票式单据 - 用户明确要求 PDF 格式导出 - 只需快速读内容时用 `pdf_read` 抽取现有 PDF 文本进上下文 不需要 PDF 时别用——纯 Markdown 交付更轻。 ## CJK 字体行为(重要) - 内容含中文/日文/韩文字符时,插件**自动按平台候选列表解析系统字体**(macOS PingFang/Hiragino、Windows 雅黑/黑体/宋体、Linux Noto Sans CJK/文泉驿) - 找不到任何候选字体时会**显式警告**("未找到 CJK 字体"),不会静默产出乱码——看到警告要告知用户,并建议安装 Noto Sans CJK 或改用英文交付 - 代码块始终用 Courier(等宽),CJK 字体只作用于正文/标题/表格/列表 ## 内容块速查 | 块 | 字段 | 说明 | |----|------|------| | `heading` / `h1` | `text` | 16pt 章节标题 | | `h2` / `h3` | `text` | 14/12pt 子标题 | | `paragraph` / `text` | `text` | 10pt 正文,两端对齐 | | `table` | `headers`, `rows` | 带边框表格,均分列宽 | | `code` | `text` | Courier 8pt 代码块 | | `list` | `items`, `ordered?` | `•` 或 `1.` 编号,悬挂缩进 | 其他参数:`title`(文档标题)、`page_numbers: true`(页脚居中页码,中文内容自动用"第 X 页 / 共 Y 页",否则 "Page X of Y")。 ## 生成纪律 1. **大文档先列大纲**:超过 3 个章节时,先把 heading 结构列给用户确认,再一次生成——避免反复重写整个 content 数组 2. **结构化优先**:能用 table 呈现的数据不写成段落;能用 list 的不写成流水句 3. **生成后自查**:用 `pdf_read` 读回产出,确认中文渲染正常、章节完整、无占位符残留(lorem / xxxx / TODO) 4. **页码是加分项**:正式交付文档默认带 `page_numbers: true`
Read the whole file at its exact version.
How to install
mdr add huiliyi37/tianshu-harness/office-pdf@sha256:0be692e137b2b420The line at the top of this page pins the label git:20260720.5237f6c, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_v5r3uadsgiu6igxn)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Jul 20, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (2327 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
huiliyi37/tianshu-harness · 1,254 stars · license Apache-2.0 · pushed 2026-10-31 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_v5r3uadsgiu6igxn GET https://markdownregistry.com/api/v1/resolve?ref=huiliyi37/tianshu-harness/office-pdf GET https://markdownregistry.com/api/v1/blob/0be692e137b2b42097c63d0d9d3e61d9e156a4f57e27bd1adc4bcefc817770c5
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.