技能图谱SKILLSGROVE
技能图谱/办公文档/revolover00/Claude-clone/pdf-documents

pdf-documents

安装

$npx skills add https://github.com/revolover00/Claude-clone --skill pdf-documents
$git clone --depth 1 https://github.com/revolover00/Claude-clone.git /tmp/Claude-clone && mkdir -p ~/.claude/skills && cp -r /tmp/Claude-clone/skills/builtin/pdf-documents ~/.claude/skills/pdf-documents
请帮我安装这个 Agent Skill:https://github.com/revolover00/Claude-clone/tree/1e465ee963ae98afa83b11bb6e2d3e8c912b2613/skills/builtin/pdf-documents ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MITGenerates publication-quality PDF documents with headings, paragraphs, bullet lists, tables, images, and page numbers. Use when users ask to create PDF files, printable summaries, invoices, brochures, or whitepapers. Features built-in RTL and Arabic font support. Triggers: create pdf, generate pdf, pdf document, export to pdf, make a pdf, إنشاء ملف pdf, مستند بي دي إف, تقرير pdf, وثيقة pdf.
以下 SKILL.md 内容转载自 revolover00/Claude-clone(提交 1e465ee),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 Author 所有。许可证:skills/builtin/pdf-documents/LICENSE.txt。仅展示说明文件,附带脚本请在原仓库查看。

PDF Documents Creation (.pdf)

Use the server function create_document({ format: "pdf", title, spec }) to generate a standalone PDF document.

How to fill the spec

  1. Structure First: Organize pages cleanly:

    • Clear Title
    • Section headings (level: 1 | 2 | 3)
    • Paragraphs with bold: true or regular text
    • Bullet lists (items: string[])
    • Tables (headers: string[], rows: string[][])
    • Page numbers (pageNumbers: true)
    • Explicit page breaks ({ "type": "page_break" })
  2. Concise Text: Keep text scannable and well-spaced.

  3. Arabic & RTL Handling:

    • For Arabic text, set rtl: true.
    • The PDF generator automatically applies Arabic font embedding (Kacst) and right-to-left layout alignment.

Example Call

{
  "format": "pdf",
  "title": "Business Proposal Summary",
  "spec": {
    "rtl": false,
    "pageNumbers": true,
    "elements": [
      { "type": "heading", "level": 1, "text": "Project Overview" },
      { "type": "paragraph", "text": "This proposal provides an end-to-end roadmap for modernization." },
      { "type": "bullet_list", "items": ["Phase 1: Architecture audit", "Phase 2: Cloud migration"] },
      { "type": "table", "headers": ["Phase", "Duration", "Cost"], "rows": [["Phase 1", "2 weeks", "$8,000"], ["Phase 2", "6 weeks", "$24,000"]] }
    ]
  }
}
查看许可证全文(MIT)
MIT License

Copyright (c) 2026 Author

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.