Logo Html To Page

Html To Page

Tổ chức
respira-press
html-to-page

Dùng khi người dùng gửi một trang HTML hoàn chỉnh (dưới dạng tệp, nội dung dán vào, bản xuất của nhà thiết kế hoặc AI) để dựng lại trên WordPress bằng bất kỳ trình dựng trang nào: Elementor, Divi, Bricks, Gutenberg, Breakdance, Oxygen, Beaver Builder hoặc WPBakery. Chỉ cần một lần gọi Respira Exhale để chuyển trang thành các phần tử gốc, có thể chỉnh sửa và trông giống tệp ban đầu; kỹ năng này hướng dẫn về dữ liệu đầu vào, lời gọi, các lựa chọn và bước kiểm tra.

Tổng quan

Nhà phát hànhrespira-press
Kho mãagent-skills-wordpress
Tên kỹ nănghtml-to-page
Sao
50
Bản fork
8
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được respira-press công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Html To Page trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/respira-press/agent-skills-wordpress/tree/main/skills/html-to-page
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Html To Page trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Html To Page ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Html To Page với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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).

Câu hỏi thường gặp

Kỹ năng AI Html To Page làm được gì?

Dùng khi người dùng gửi một trang HTML hoàn chỉnh (dưới dạng tệp, nội dung dán vào, bản xuất của nhà thiết kế hoặc AI) để dựng lại trên WordPress bằng bất kỳ trình dựng trang nào: Elementor, Divi, Bricks, Gutenberg, Breakdance, Oxygen, Beaver Builder hoặc WPBakery. Chỉ cần một lần gọi Respira Exhale để chuyển trang thành các phần tử gốc, có thể chỉnh sửa và trông giống tệp ban đầu; kỹ năng này hướng dẫn về dữ liệu đầu vào, lời gọi, các lựa chọn và bước kiểm tra.

Vì sao nên dùng Html To Page trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Html To Page là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Html To Page trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/respira-press/agent-skills-wordpress/tree/main/skills/html-to-page. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Html To Page?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Html To Page với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Html To Page với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Html To Page có miễn phí không?

Có. Kỹ năng này được respira-press phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇