From 17c12cadc597c700b701fa473d1641616a90ae63 Mon Sep 17 00:00:00 2001 From: Yige Date: Sun, 6 Dec 2026 11:39:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(pdf):=20=E5=B0=86=20Markdown=20=E8=BD=AC=20?= =?UTF-8?q?PDF=20=E4=BA=A4=E6=8E=A5=E7=BB=99=E5=86=85=E7=BD=AE=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E5=B7=A5=E5=85=B7=20(#467)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 中文 PDF 技能 1.0.3 在中英文技能说明和市场目录中加入 Markdown 转 PDF 的内置入口。已声明的 `ExportDocument` 可直接调用。需要发现工具时先确认 `ToolCatalog` 可用。只有目录确认已获授权、会话提供 `LoadTools` 且用户要求转换时才加载。只询问能力时报告声明或查询结果,目录和声明都缺席时说明当前会话无法核实。 市场 i18n、严格目录元数据及翻译新鲜度检查通过。隔离 macOS Electron 使用随包候选验证了读取 PDF 技能、精确查询、按需加载和首次导出成功,产物通过签名、页数及正文检查。 ## English PDF skill 1.0.3 adds Markdown-to-PDF discovery to both locales and the marketplace listing. A declared `ExportDocument` can be called directly. The skill checks that `ToolCatalog` is available before an exact lookup and only loads the authorized tool for conversion when `LoadTools` is available. Capability questions use the declaration or catalog result and report when the current session cannot verify availability. Market i18n, strict catalog metadata, and translation freshness checks passed. An isolated macOS Electron run with the bundled candidate verified skill loading, exact discovery, on-demand declaration, and first-attempt export. The PDF passed signature, page count, and text checks. (cherry picked from commit 5f1ffcd6996671ef30213a9723bf56083ee09789) --- skills/pdf/SKILL.md | 52 +++++++++++++++++------------ skills/pdf/SKILL.zh-CN.md | 18 ++++++++-- skills/pdf/catalog-metadata.v1.json | 14 ++++---- 3 files changed, 53 insertions(+), 31 deletions(-) diff --git a/skills/pdf/SKILL.md b/skills/pdf/SKILL.md index dcaed20..a9b1cbe 100644 --- a/skills/pdf/SKILL.md +++ b/skills/pdf/SKILL.md @@ -2,15 +2,14 @@ license: "Anthropic Source Available License" name: pdf description: >- - Use this skill whenever the user wants to do anything with PDF files. This - includes reading or extracting text/tables from PDFs, combining or merging - multiple PDFs into one, splitting PDFs apart, rotating pages, adding - watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, - extracting images, and OCR on scanned PDFs to make them searchable. If the - user mentions a .pdf file or asks to produce one, use this skill. Use when - 用户提到 PDF、读取PDF、合并PDF、拆分PDF、填写表单、加水印、提取文字、 - 扫描识别。 -version: 1.0.2 + Export Markdown to PDF with DesireCore's built-in ExportDocument tool or check + whether it is available in the current session. Use for creating PDFs, reading + or extracting text, tables, and images, merging or splitting PDFs, rotating + pages, adding watermarks, filling forms, encrypting or decrypting PDFs, and OCR + on scanned PDFs. + 适用于 Markdown 转 PDF、查找内置 PDF 导出工具、创建、读取、合并、拆分 PDF、 + 填写表单、添加水印、提取文字和扫描识别。 +version: 1.0.3 type: procedural risk_level: low status: enabled @@ -22,7 +21,7 @@ tags: - ocr metadata: author: anthropic - updated_at: '2026-04-13' + updated_at: '2026-12-06' i18n: default_locale: en-US source_locale: zh-CN @@ -31,21 +30,20 @@ metadata: - en-US zh-CN: name: PDF 文档处理 - short_desc: 读取、创建、合并、拆分和填写 PDF 文档 + short_desc: 导出 Markdown 为 PDF,读取、创建、合并、拆分和填写 PDF 文档 description: >- - Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. Use when 用户提到 PDF、读取PDF、合并PDF、拆分PDF、填写表单、加水印、提取文字、 扫描识别。 + 使用 DesireCore 内置 ExportDocument 将 Markdown 导出为 PDF,也可查询本次会话能否使用该工具。支持创建 PDF、提取文字、表格和图片、合并、拆分、旋转、添加水印、填写表单、加密和解密,以及扫描件 OCR。 body: ./SKILL.zh-CN.md - source_hash: sha256:15805c1921ac2c1e + source_hash: sha256:ed191f48b08a9e77 translated_by: human en-US: name: PDF Document Processing - short_desc: Read, create, merge, split, and fill PDF documents + short_desc: Export Markdown to PDF and read, create, merge, split, and fill PDFs description: >- - Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. Use when the user mentions PDF, reading PDFs, merging PDFs, splitting PDFs, filling forms, adding watermarks, extracting text, or OCR. + Export Markdown to PDF with the built-in ExportDocument tool and check its availability in the current DesireCore session. Supports creating PDFs, extracting text, tables, and images, merging, splitting, rotation, watermarks, form filling, encryption and decryption, and OCR on scanned PDFs. body: ./SKILL.md - source_hash: sha256:15805c1921ac2c1e - translated_by: ai:claude-opus-4-7 - translated_at: '2026-05-03' + source_hash: sha256:ed191f48b08a9e77 + translated_by: human market: icon: >-