Presentation Extract Template 标志

Presentation Extract Template

组织
okou-ai
presentation-extract-template

从 HTML 幻灯片文件、目录或 URL、PPTX、PPT、PDF 或幻灯片图片中提取源文件风格和可编辑的 HTML 布局,然后保存为可复用的 Custom Template。

Add to TypingMind

概览

发布者okou-ai
代码仓库okou-skills
技能名称presentation-extract-template
星标数
81
复刻数
19
附带文件
85
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 85 个附带文件

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

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

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

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

Extract a presentation template

Preserve the original source and save its style, layouts and assets as a reusable HTML package. Extraction uses package checks; deck QA and targeted visual review are for later generation. Rebuild samples only when requested, within that scope. Write package instructions in English; preserve source content and the requested presentation language.

Files in this guideStageIncluded in the saved template
This SKILL.md, references/extract/Extract and record the sourceNo
references/generate/Generate, check and deliver new decksYes, at the same paths
Source helpers in scripts/ and tools/verify-package.mjsPrepare source files, assemble and check the packageNo

The installer copies the generation guides and runtime by an explicit file list. The package's own SKILL.md is its generation entrypoint.

1. Inspect the source

InputExtraction route
HTML file, directory or URLInventory the HTML and reuse its fragments, CSS and assets.
PDF deckPrepare, inspect and assemble through the HTML extraction contract; after PACKAGE_VALID, continue at step 5.
PPTX / PPTRead available structure/style metadata together with the rendered pages.
Slide imagesInfer layouts and styling from the supplied pages.

Keep the original as evidence. Source parsing/conversion and the independent page capture can run together.

Use a new <work-dir> beside the template package. All commands below use fixed subdirectories: source-pages/ for original pages, previews/ for contact sheets and review images, and upload/ for the upload PDF.

Reuse existing ordered captures or supplied slide images at <work-dir>/source-pages/page-001.png, etc. Otherwise, render once:

bash
okou presentation screenshot --input <source.ppt|source.pptx|source.pdf|source.html|html-dir|url> --out <work-dir>/source-pages

Review every page through contact sheets; open individual captures only for details that are unclear at that size. The helper installs Pillow if needed and writes previews to their own directory. For HTML/images without an original PDF, create the upload PDF in the same pass:

bash
python3 scripts/source-derivatives.py --work-dir <work-dir> --contact-sheet --pdf

For PPT/PPTX/PDF, omit --pdf: the original already supplies the upload source. For HTML, use --slides "<slide-selector>" when the source uses a different slide selector from .deck > .slide; use --slides none for one page per HTML file. Read computed CSS once per distinct style, including inherited styles and SVG. Record the original entry file or URL in design-system.md.

Record the filename, aspect ratio, page count, page roles and recurring structures. Check typography against source metadata and label visual estimates as inferred. Archive original-source captures, never reconstruction images.

2. Record the design system

In design-system.md, record typography, foreground/background colours, spacing, safe areas, borders, image crops, required chrome and reusable backgrounds/decorations. Distinguish source observations from inferred adaptations, including unit conversion and aspect-ratio mapping to 16:9.

Use typography.md for source font mapping and layout-inventory.md for source coverage and reusable background recipes.

3. Build the editable package

text
<template-slug>/
  SKILL.md
  design-system.md
  layouts/README.md
  layouts/source-index.json
  layouts/source/<name>.html
  layouts/_shell.html
  styles/template.css
  assets/
  library/                  # supplied neutral layouts and Markdown catalogue
  scripts/                  # supplied fitter and navigation
  tools/                    # source configuration and generation QA
  references/generate/      # generation-only guidance

Create the source index and fragments in one batch; preserve every distinct composition and background variant. Equivalent structures may share a layout with explicit source-page coverage. Keep text, shapes, tables and ordinary charts editable in HTML/CSS/SVG. Use package-relative assets and .deck > .slide > .stage, with a .fit root per slide. Extra data-fit-region hooks are only for genuinely constrained subareas; ordinary flow text needs no extra measurement boundary. All content shares one scale.

layouts/_shell.html is the shared HTML document with one .deck insertion point. The installer supplies a pure-black viewer surround with centered, proportional canvas scaling. Keep source dimensions, backgrounds and styling on .stage and inside it; no separate viewport or resize script is needed. Its .deck can be empty or retain source examples; no need to assemble every source page in it. Complete source-page coverage belongs in source-index.json. Source fragments use paths relative to layouts/, where they are inserted into the shell.

Write tools/qa-config.json with source-derived safe areas, required chrome and approved font fallbacks; follow qa-config.md. Use the runtime hooks when creating the source HTML, so later generation can reuse it directly. Then run from this guide's directory:

bash
node scripts/install-qa.mjs --package <template-slug>

The installer supplies the library, tools, references and shared runtime, including the viewport frame and four-arrow navigation. Keep neutral library layouts separate from the source index; adapt only selected layouts during later generation.

Write the package's SKILL.md with its template identity, source/language caveats, links to design-system.md and layouts/source-index.json, and a Markdown link to references/generate/workflow.md. That supplied workflow contains the generation steps and routes to the other guides; no need to duplicate them. Keep layouts/README.md a short path map linking back to the package's SKILL.md. When refreshing an older package, update its entrypoint links to references/generate/. After READY_TO_PUBLISH, direct future runs to the platform publishing and delivery instructions. Keep QA restrictions scoped to content QA.

4. Check the package

From this guide's directory, run the package verifier. It checks slide/stage/fit structure, generation links, source coverage/configuration, library resources and capture inventory, and rejects extraction files mixed into the saved package:

bash
node tools/verify-package.mjs \
  --package <template-slug> --source-pages <work-dir>/source-pages

No generation QA, interaction pass or runtime test-suite run is needed during extraction. Only for a specific reconstruction risk, compare one or two unchanged compositions with their source captures, using --out <work-dir>/previews/reconstruction for any check screenshots.

5. Save the Custom Template

After the package check passes, prepare the upload source.

Use the original .ppt, .pptx or .pdf as --source. For HTML/images, reuse <work-dir>/upload/source.pdf from step 1. Record this conversion in design-system.md; the package retains editable layouts and assets. No reconstructed export is needed.

bash
okou user-template publish --kind presentation --title "<template name>" \
  --source <original.ppt|original.pptx|original.pdf|work-dir/upload/source.pdf> \
  --pages <work-dir>/source-pages \
  --package <template-slug>

Confirm successful saving and retain any returned template reference; if publishing fails, report that the template was not saved.

附带文件

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

还有 25 个文件。

常见问题

Presentation Extract Template AI 技能有什么作用?

从 HTML 幻灯片文件、目录或 URL、PPTX、PPT、PDF 或幻灯片图片中提取源文件风格和可编辑的 HTML 布局,然后保存为可复用的 Custom Template。

为什么在 TypingMind 中使用 Presentation Extract Template?

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

如何在 TypingMind 中安装 Presentation Extract Template?

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

哪些 AI 模型可以使用 Presentation Extract Template?

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

Presentation Extract Template 可以搭配多少个 AI 模型使用?

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

Presentation Extract Template AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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