360 Secure SkillHub
360 安全技能中心

read-any-document (Canonizr)

该 Skill 通过 Canonizr CLI 将 PDF、图片和 office 文档转换为 Markdown,支持以 --json 返回带元数据的结构化结果,并可用 health/up/down 检查或启停管线。未说明安装配置、批量处理和转换精度细节。

hmillerbakewell
hmillerbakewell
热度 41.05
最近更新 2026-05-11 17:41:37
分类:效率依赖:代码执行 / 读写文件应用场景:文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add read-document
Metadata
name
read-document
description
Convert any document to markdown using Canonizr

Read any document using the Canonizr pipeline. Supports PDFs, images, office files, and more.

Using Canonizr

You can pass documents to Canonizr via CLI.

canonizr convert document.pdf

The output of the above command is a direct markdown transcript.

Failed attempts to convert a file return an error message. Depending on context you may wish to store the output in an adjacent .md file to avoid re-processing.

Supported file formats include PDFs, images (which will be transcribed), and office files.

Debugging

You can check if the Canonizr pipeline is running by using the CLI:

canonizr health

If the pipeline is not running then your user may not have started it. If you have docker permissions then you can start the service with:

canonizr up

And stop it with:

canonizr down

You can get a full JSON response with metadata (instead of just markdown) using the --json flag:

canonizr convert --json document.pdf