Pdf 标志

Pdf

组织
cubeplexai
pdf

当 PDF 的视觉品质和设计风格很重要时使用此技能。创建(从头生成):“制作 PDF”“生成报告”“撰写提案”“创建简历”“精美的 PDF”“专业文档”“封面页”“精致的 PDF”“可交付给客户的文档”。填写(完成表单字段):“填写表单”“填写这份 PDF”“完成表单字段”“将值写入 PDF”“这份 PDF 有哪些字段”。重新排版(为现有文档应用设计):“重新排版这份文档”“应用我们的样式”“将 Markdown/文本转换为 PDF”“让这份文档更美观”“重新设计这份 PDF”。此技能采用基于 Token 的设计系统,根据文档类型确定颜色、字体排版和间距,并将设计贯穿每一页。生成的文件可直接用于打印。当外观效果很重要时,优先使用此技能,而不仅仅是在需要生成任何 PDF 时使用。

概览

发布者cubeplexai
代码仓库cubeplex
技能名称pdf
星标数
533
复刻数
46
附带文件
10
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 10 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 cubeplexai 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Pdf AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/cubeplexai/cubeplex/tree/main/backend/skills/preinstalled/pdf
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cubeplexai/cubeplex.git /tmp/cubeplex
mkdir -p .claude/skills
cp -r /tmp/cubeplex/backend/skills/preinstalled/pdf .claude/skills/pdf
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Pdf,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Pdf。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Pdf 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

pdf

Skill directory

load_skill returned a path field — the sandbox directory holding this skill's scripts and design references. Use it verbatim; never construct the path yourself:

bash
export SKILL_DIR="<the `path` value from load_skill>"

Invoke scripts through $SKILL_DIR and write output files to the working directory, never into $SKILL_DIR.

Three tasks. One skill.

Read $SKILL_DIR/design/design.md before any CREATE or REFORMAT work.


Route table

User intentRouteScripts used
Generate a new PDF from scratchCREATEpalette.py → cover.py → render_cover.js → render_body.py → merge.py
Fill / complete form fields in an existing PDFFILLfill_inspect.py → fill_write.py
Reformat / re-style an existing documentREFORMATreformat_parse.py → then full CREATE pipeline

Rule: when in doubt between CREATE and REFORMAT, ask whether the user has an existing document to start from. If yes → REFORMAT. If no → CREATE.


Content constraints (CREATE / REFORMAT)

  • Length. Explicit word count → ±20%; explicit page count → match exactly; a stated minimum → never exceed 2x it. No padding with bullet lists. Resume/CV: 1 page unless told otherwise.
  • Citations. Data claims need real, verifiable sources — search before writing, never fabricate. In-text superscript marks (<super>[N]</super>) correspond 1:1 with the bibliography block; format GB/T 7714 (Chinese) / APA (English). Details: design/design.md → Citations.
  • Chinese documents. CJK body first-line indent and the cover CJK font chain are automatic; never use <i> on Chinese text — use <b>. Details: design/design.md → CJK typography.

Route A: CREATE

Full pipeline — content → design tokens → cover → body → merged PDF.

bash
bash "$SKILL_DIR/scripts/make.sh" run \
  --title "Q3 Strategy Review" --type proposal \
  --author "Strategy Team" --date "October 2025" \
  --accent "#2D5F8A" \
  --content content.json --out report.pdf

Doc types: report · proposal · resume · portfolio · academic · general · minimal · stripe · diagonal · frame · editorial · magazine · darkroom · terminal · poster

TypeCover patternVisual identity
reportfullbleedDark bg, dot grid, Playfair Display
proposalsplitLeft panel + right geometric, Syne
resumetypographicOversized first-word, DM Serif Display
portfolioatmosphericNear-black, radial glow, Fraunces
academictypographicLight bg, classical serif, EB Garamond
generalfullbleedDark slate, Outfit
minimalminimalWhite + single 8px accent bar, Cormorant Garamond
stripestripe3 bold horizontal color bands, Barlow Condensed
diagonaldiagonalSVG angled cut, dark/light halves, Montserrat
frameframeInset border, corner ornaments, Cormorant
editorialeditorialGhost letter, all-caps title, Bebas Neue
magazinemagazineWarm cream bg, centered stack, hero image, Playfair Display
darkroomdarkroomNavy bg, centered stack, grayscale image, Playfair Display
terminalterminalNear-black, grid lines, monospace, neon green
posterposterWhite bg, thick sidebar, oversized title, Barlow Condensed

Cover extras (inject into tokens via --abstract, --cover-image):

  • --abstract "text" — abstract text block on the cover (magazine/darkroom)
  • --cover-image "url" — hero image URL/path (magazine, darkroom, poster)

Color overrides — always choose these based on document content:

  • --accent "#HEX" — override the accent color; accent_lt is auto-derived by lightening toward white
  • --cover-bg "#HEX" — override the cover background color

Font selection (optional — agent should choose based on document content):

bash
bash "$SKILL_DIR/scripts/make.sh" run --title "..." --type report --body-font noto-serif ...
Font nameCharacter supportBest for
noto-sansCJK + Latin (default for most docs)Tech, business, general, Chinese reports
noto-serifCJK + LatinAcademic, annual reports, editorial, Chinese long-form
noto-sans-latinLatin onlyEnglish-only modern/clean docs
noto-serif-latinLatin onlyEnglish-only scholarly/classic docs
liberationLatin only (Arial/Times-compatible)Formal contracts, resumes, corporate
monospaceLatin onlyTerminal, developer docs, code-heavy reports

Default font by doc type: most types → noto-sans; academic/magazine/darkroom → noto-serif; terminal → monospace.

--display-font overrides heading/title font independently of body font. When omitted, display font matches body font.

Accent color selection guidance:

You have creative authority over the accent color. Pick it from the document's semantic context — title, industry, purpose, audience — not from generic "safe" choices. The accent appears on section rules, callout bars, table headers, and the cover: it carries the document's visual identity.

ContextSuggested accent range
Legal / compliance / financeDeep navy #1C3A5E, charcoal #2E3440, slate #3D4C5E
Healthcare / medicalTeal-green #2A6B5A, cool green #3A7D6A
Technology / engineeringSteel blue #2D5F8A, indigo #3D4F8A
Environmental / sustainabilityForest #2E5E3A, olive #4A5E2A
Creative / arts / cultureBurgundy #6B2A35, plum #5A2A6B, terracotta #8A3A2A
Academic / researchDeep teal #2A5A6B, library blue #2A4A6B
Corporate / neutralSlate #3D4A5A, graphite #444C56
Luxury / premiumWarm black #1A1208, deep bronze #4A3820

Rule: choose a color that a thoughtful designer would select for this specific document — not the type's default. Muted, desaturated tones work best; avoid vivid primaries. When in doubt, go darker and more neutral.

content.json format: a top-level JSON array of block objects, one entry per element in the document, e.g. [{...}, {...}]. A {"blocks": [...]} wrapper object is also accepted. The table below lists the block types.

BlockUsageKey fields
h1Section heading + accent ruletext
h2Subsection headingtext
h3Sub-subsection (bold)text
bodyJustified paragraph; supports <b> <i> markuptext
bulletUnordered list item (• prefix)text
numberedOrdered list item — counter auto-resets on non-numbered blockstext
calloutHighlighted insight box with accent left bartext
tableData table — accent header, alternating row tintsheaders, rows, col_widths?, caption?
imageEmbedded image scaled to column widthpath/src, caption?
figureImage with auto-numbered "Figure N:" captionpath/src, caption?
codeMonospace code block with accent left bordertext, language?
mathDisplay math — LaTeX syntax via matplotlib mathtexttext, label?, caption?
chartBar / line / pie chart rendered with matplotlibchart_type, labels, datasets, title?, x_label?, y_label?, caption?, figure?
flowchartProcess diagram with nodes + edges via matplotlibnodes, edges, caption?, figure?
bibliographyNumbered reference list with hanging indentitems [{id, text}], title?
dividerAccent-colored full-width rule—
captionSmall muted labeltext
pagebreakForce a new page—
spacerVertical whitespacept (default 12)

table col_widths: optional list of per-column widths, one value per column. Fractions summing to 1.0 (e.g. [0.2, 0.5, 0.3]) are the documented format; absolute widths in points/pixels (e.g. [90, 210, 210]) are also accepted and normalized automatically so the table fits the page. If omitted, columns are equal width. Never write values larger than the usable page width — the renderer normalizes them, but extreme values previously made the whole table disappear.

chart / flowchart schemas:

json
{"type":"chart","chart_type":"bar","labels":["Q1","Q2","Q3","Q4"],
 "datasets":[{"label":"Revenue","values":[120,145,132,178]}],"caption":"Q results"}

{"type":"flowchart",
 "nodes":[{"id":"s","label":"Start","shape":"oval"},
          {"id":"p","label":"Process","shape":"rect"},
          {"id":"d","label":"Valid?","shape":"diamond"},
          {"id":"e","label":"End","shape":"oval"}],
 "edges":[{"from":"s","to":"p"},{"from":"p","to":"d"},
          {"from":"d","to":"e","label":"Yes"},{"from":"d","to":"p","label":"No"}]}

{"type":"bibliography","items":[
  {"id":"1","text":"Author (Year). Title. Publisher."}]}

Route B: FILL

Fill form fields in an existing PDF without altering layout or design.

bash
# Step 1: inspect
python3 "$SKILL_DIR/scripts/fill_inspect.py" --input form.pdf

# Step 2: fill
python3 "$SKILL_DIR/scripts/fill_write.py" --input form.pdf --out filled.pdf \
  --values '{"FirstName": "Jane", "Agree": "true", "Country": "US"}'
Field typeValue format
textAny string
checkbox"true" or "false"
dropdownMust match a choice value from inspect output
radioMust match a radio value (often starts with /)

Always run fill_inspect.py first to get exact field names.


Route C: REFORMAT

Parse an existing document → content.json → CREATE pipeline.

bash
bash "$SKILL_DIR/scripts/make.sh" reformat \
  --input source.md --title "My Report" --type report --out output.pdf

Supported input formats: .md .txt .pdf .json


Environment

bash
bash "$SKILL_DIR/scripts/make.sh" check   # verify all deps
bash "$SKILL_DIR/scripts/make.sh" fix     # auto-install missing deps
bash "$SKILL_DIR/scripts/make.sh" demo    # build a sample PDF
ToolUsed byInstall
Python 3.9+all .py scriptssystem
reportlabrender_body.pypip install reportlab
pypdffill, merge, reformatpip install pypdf
Node.js 18+render_cover.jssystem
playwright + Chromiumrender_cover.jsnpm install -g playwright && npx playwright install chromium

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Pdf AI 技能有什么作用?

当 PDF 的视觉品质和设计风格很重要时使用此技能。创建(从头生成):“制作 PDF”“生成报告”“撰写提案”“创建简历”“精美的 PDF”“专业文档”“封面页”“精致的 PDF”“可交付给客户的文档”。填写(完成表单字段):“填写表单”“填写这份 PDF”“完成表单字段”“将值写入 PDF”“这份 PDF 有哪些字段”。重新排版(为现有文档应用设计):“重新排版这份文档”“应用我们的样式”“将 Markdown/文本转换为 PDF”“让这份文档更美观”“重新设计这份 PDF”。此技能采用基于 Token 的设计系统,根据文档类型确定颜色、字体排版和间距,并将设计贯穿每一页。生成的文件可直接用于打印。当外观效果很重要时,优先使用此技能,而不仅仅是在需要生成任何 PDF 时使用。

为什么在 TypingMind 中使用 Pdf?

因为您只需安装一次,就能搭配任何模型使用。Pdf 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Pdf?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/cubeplexai/cubeplex/tree/main/backend/skills/preinstalled/pdf。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Pdf?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Pdf 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Pdf 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Pdf AI 技能免费吗?

是的。cubeplexai 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇