Html To Page 标志

Html To Page

组织
respira-press
html-to-page

当用户提供完成的 HTML 页面(文件、粘贴的内容、设计师或 AI 导出的内容),要求在 WordPress 中用任意页面构建器重建时使用:Elementor、Divi、Bricks、Gutenberg、Breakdance、Oxygen、Beaver Builder 或 WPBakery。只需调用一次 Respira Exhale,即可将页面转换为原生、可编辑的构建器元素,并还原文件外观;此技能涵盖输入内容、调用方式、选项和检查步骤。

概览

发布者respira-press
代码仓库agent-skills-wordpress
技能名称html-to-page
星标数
50
复刻数
8
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/respira-press/agent-skills-wordpress.git /tmp/agent-skills-wordpress
mkdir -p .claude/skills
cp -r /tmp/agent-skills-wordpress/skills/html-to-page .claude/skills/html-to-page
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

HTML to a builder page

Version: 1.0.0 Updated: 2026-10-04 Category: migration Status: stable Requires: Respira for WordPress plugin (9.1+) and an MCP connection, on a site running a supported builder


Description

A finished HTML page becomes a new WordPress page in the site's own builder, in one call to respira_convert_html_to_builder (Respira Exhale). The conversion is deterministic code on the site, so no tokens are spent writing builder structure.

On Elementor, Divi, Bricks, Gutenberg (and block plugins such as Kadence, Spectra, GreenShift), Breakdance, Oxygen Classic, Beaver Builder and WPBakery it runs in fidelity mode whenever the document has a stylesheet:

  • the file's structure is written one to one as the builder's own elements: sections, containers or rows, headings, text, buttons and images, each editable in the builder
  • every class and id stays on its element
  • the stylesheet travels verbatim, scoped to the page, so the page looks like the file on desktop and phone, hover states, transitions and keyframe animations included
  • the page goes on the builder's blank template, so no theme header, page title or footer sits on top of a page that draws its own

Prefer this to writing the page by hand with respira_build_page whenever the file exists. A hand-built page has to restate every inherited style (font, weight, line height, colour) on every widget, and any style it misses falls back to the theme or the builder kit, so it drifts from the file. The converter carries the stylesheet itself.


When to use

  • The user pastes or attaches an HTML file and asks for it as a WordPress page.
  • A designer, a site generator or another AI produced a landing page as HTML.
  • A static page from an old site has to move into the builder.

Do not use it to build a page from a description or a brief (use respira_build_page, or the build skill for the builder), or to change an existing page (use the find and update tools on a draft duplicate).

Trigger phrases

  • "convert this html to elementor" (or divi, bricks, gutenberg, breakdance, beaver, wpbakery, oxygen)
  • "recreate this html page in wordpress"
  • "turn this file into a page"
  • "import this landing page"

Workflow

1. Read the site

Call respira_get_site_context and respira_get_builder_info. Note the active builder and its version. When the user named a builder, pass that one; otherwise the converter uses the active builder.

2. Prepare the input

Send the whole document: <head> with its <style> blocks and font links, and the <body>. Do not strip the head.

  • Linked stylesheets over https (Bootstrap, a design system) are fetched and carried with the page. Google Fonts links are kept as font links.
  • Images need absolute URLs the site can reach. A relative path (images/hero.jpg) or a local file renders broken: upload it first with respira_upload_media or respira_sideload_image and put the media URL in the file.
  • Tailwind through the CDN script (cdn.tailwindcss.com) does not convert: the script never runs on the site, so the classes carry no design. Compile the CSS (Tailwind CLI or the Play CDN export) into a <style> block first. The converter warns when it sees the script.
  • Scripts are not carried. Anything the page does only in JavaScript (a slider, a counter, a menu toggle) is lost; CSS animations, transitions and hover states are kept. Tell the user which behaviours were script-driven.
  • Forms keep their markup but post nowhere on WordPress. Say so, and offer to rebuild them with the site's form plugin.
  • The scoped stylesheet can carry about 150 KB on fidelity builders (100 KB on others). Over that the call refuses with respira_css_too_large and creates nothing: trim unused rules and extra font weights, then convert again.

3. Convert

respira_convert_html_to_builder {
  html: "<!doctype html>...the whole file...",
  builder: "elementor",
  options: { title: "Spring landing page", status: "draft" }
}
  • status defaults to draft. Keep it a draft; publishing is the user's call.
  • blank_template defaults to true. Pass false when the file is content only and the site's own header and footer should stay around it (on Divi with Theme Builder headers this matters most).
  • Leave mode unset. "restyle" re-types the design into builder settings and site tokens instead of carrying the stylesheet; use it only when the user explicitly wants every style in the builder's own controls, and tell them it will not match the file as closely.
  • Every call creates a new page. After an error or a timeout, check respira_list_pages for a page that already landed before you call again.

4. Read the report

The result is the evidence. Check, and pass on to the user what matters:

  • mode: fidelity on the builders listed above.
  • fidelity.structure: sections, containers, headings, images, buttons, texts, and raw (leaves kept as markup). A page whose content is mostly in raw deserves a look.
  • fidelity.css_carried: bytes against the cap.
  • fidelity.images: unresolved must be 0.
  • fidelity.attributes_dropped: attributes the builder cannot carry on that element (an aria-* on a wrapper, say).
  • fidelity.template: what was requested and what was stored.
  • warnings: read every one.

5. Check the render

The report counts structure; it does not see the page. Mint respira_create_share_link for the new page and open it at desktop width and at phone width (390 px) if you have a browser, side by side with the source file. Look for missing images, fonts that fell back, and sections that collapsed. Without a browser, pass the share link to respira_check_design as url with rendered: true: it renders the draft and checks structure and contrast. Fix a single element with respira_update_element; for anything structural, fix the file and convert again into a new draft.

6. Report

Give the user the share link, the editor link, and a short list of what did not carry: scripts, forms, dropped attributes, anything the check showed. Say once why the page is a native builder page and not a pasted HTML block: every heading, paragraph, button and image is editable in the builder.


After the conversion

  • Text, links, images and buttons are edited in the builder like any page.
  • The design lives in the page's own stylesheet (stored with the page, printed by Respira), which is what keeps it identical to the file. To change the design, change the file and convert it again into a new draft, or ask for the change and edit the elements.
  • The site's design direction is not applied to a fidelity page: the file is the design.

Hard rules

  • Never paste the whole file into one HTML or code widget. The user asked for an editable page.
  • Never convert onto a published page. The converter creates a new page; keep it a draft until the user approves.
  • Never call the converter again after an error without checking whether the page already exists.
  • Never report the page done from the report alone: check the render (step 5).

常见问题

Html To Page AI 技能有什么作用?

当用户提供完成的 HTML 页面(文件、粘贴的内容、设计师或 AI 导出的内容),要求在 WordPress 中用任意页面构建器重建时使用:Elementor、Divi、Bricks、Gutenberg、Breakdance、Oxygen、Beaver Builder 或 WPBakery。只需调用一次 Respira Exhale,即可将页面转换为原生、可编辑的构建器元素,并还原文件外观;此技能涵盖输入内容、调用方式、选项和检查步骤。

为什么在 TypingMind 中使用 Html To Page?

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

如何在 TypingMind 中安装 Html To Page?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/respira-press/agent-skills-wordpress/tree/main/skills/html-to-page。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Html To Page?

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

Html To Page 可以搭配多少个 AI 模型使用?

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

Html To Page AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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