Openzine 标志

Openzine

社区
JosssphZhou
openzine

Turn a PDF or a folder of page images into a page-turning 3D booklet with realistic paper lighting, saved as one HTML file that opens offline with a double-click. Use when someone wants a flipbook, zine, portfolio, lookbook, catalogue, brochure or exhibition booklet made from design pages, slides, scans or a PDF.

概览

发布者JosssphZhou
代码仓库openzine
技能名称openzine
星标数
42
复刻数
4
附带文件
8
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 8 个附带文件

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

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

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

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

OpenZine

OpenZine binds pages into a booklet the reader turns with the mouse, touch or arrow keys. Everything (pages, renderer, paper texture) is inlined into one .html file, so the result can be emailed, uploaded to any static host, or opened from disk without a network connection.

All paths below are relative to this skill's directory, the folder that contains this SKILL.md. The only requirement is Node.js 18 or newer.

Make a book

  1. Find the input: a PDF, or a folder whose image files are the pages. Ask the user which file or folder to use only when it is not clear from the request.

  2. Choose an output path the user will find, next to the input by default (for example portfolio.pdf gives portfolio-book.html). Choose a title: the user's words, else the document name.

  3. Run:

    sh
    node <skill-dir>/scripts/make-book.mjs --input <folder-or-pdf> --out <book.html> --title "<title>"

    Add --lang zh for a Chinese viewer interface; the default is English. Portrait screens (phones, vertical video) open on a single page with a Single / Spread switch; add --portrait spread when the user wants them to open on the two-page spread.

  4. Read the command output. Success ends with Wrote <path> and a line such as 12 page(s), 6 sheet(s), 9.4 MB. Pass every warning on to the user in plain words.

  5. Tell the user where the file is and how to use it: double-click to open, drag or click a page to turn it, hold to keep turning, arrow keys, Home for the cover, End for the back cover. Open it for them when you can (open <file> on macOS, xdg-open on Linux, start on Windows).

The book is done when the HTML file exists and the command exited with code 0.

How pages are bound

  • Page order is the file name in natural order: 2.png comes before 10.png. Rename files to reorder pages.
  • The first page is the front cover. After it, each pair of images is one sheet: back of the previous sheet, front of the next. The last image is the back cover.
  • An odd number of pages gets one blank page at the end so the last sheet has a back.
  • Supported images: PNG, JPG, WebP, AVIF. Other files in the folder are skipped and listed; hidden files are ignored.
  • The page shape is width : height = 1 : 1.377 (for example 1440 × 1983 px). Pages with another ratio are shown whole, centred on a paper-coloured margin, never cropped or stretched. A4 and US Letter PDFs therefore get thin margins. When the user wants edge-to-edge pages, tell them to design pages at 1 : 1.377.
  • About 1440 px wide per page looks sharp. Larger images only make the file bigger. The command warns when the file is over 60 MB.

PDF input

The command converts each PDF page to a 1440 px wide JPG. It uses Poppler's pdftoppm when installed and falls back to pdf.js. --pdf-engine pdftoppm or --pdf-engine pdfjs forces one converter.

When the command fails

The command prints Error: and a reason, then exits with code 1. Fix the cause and run it again:

Message starts withWhat to do
No PDF converter availableInstall Poppler (brew install poppler, sudo apt install poppler-utils, choco install poppler), or run npm install in this skill's directory to enable pdf.js. Ask the user before installing software. If neither is possible, ask the user to export the PDF pages as images and use the folder.
Could not convert <file>The PDF is likely password-protected or damaged. Ask the user for an unlocked copy or exported page images.
<name> is not a readable PNG, JPG, WebP or AVIF imageThe file content does not match its extension. Remove or re-export that file.
No images foundThe folder has no supported images. Check the path or convert the pages to PNG or JPG.
Input not foundCheck the path; quote paths that contain spaces.

If the book opens but stays on "Preparing pages…" or shows "The pages did not load", the browser has WebGL turned off. Ask the user to try a current Chrome, Edge, Safari or Firefox.

Credit

The page-turn renderer, paper shader and paper grain come from Paper's https://paper.design/mono page and remain Paper's copyright; every book links to that page in its footer. Keep that link when you change the viewer. Three.js is MIT-licensed. Details: LICENSE in the OpenZine repository.

附带文件

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

常见问题

Openzine AI 技能有什么作用?

Turn a PDF or a folder of page images into a page-turning 3D booklet with realistic paper lighting, saved as one HTML file that opens offline with a double-click. Use when someone wants a flipbook, zine, portfolio, lookbook, catalogue, brochure or exhibition booklet made from design pages, slides, scans or a PDF.

为什么在 TypingMind 中使用 Openzine?

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

如何在 TypingMind 中安装 Openzine?

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

哪些 AI 模型可以使用 Openzine?

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

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

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

Openzine AI 技能免费吗?

JosssphZhou 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

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

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

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

查看全部

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

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