From Respira WordPress Skills Library
Converts raw HTML/CSS into native Bricks Builder elements, mapping colors, typography, and spacing to design system tokens for drift-resistant output.
How this skill is triggered — by the user, by Claude, or both
Slash command
/respira-wordpress-skills:html-to-bricksThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Version:** 1.0.0
Version: 1.0.0 Updated: 2026-05-24 Category: migration Status: stable Requires: Respira for WordPress plugin 7.1+ + Bricks Builder active + MCP server
Convert raw HTML/CSS — pasted from a design export, a Figma extraction, an existing landing page on another platform, or a competitor's source code — into native Bricks Builder elements. Not a screenshot-to-builder pass; this is a structural conversion that respects Bricks' element schemas, ACSS classes (if installed), and the site's design system.
Resolves [open feature request: HTML to Bricks Builder]. Uses the existing respira_convert_html_to_builder MCP tool, with a Bricks-specific workflow layered on top.
Call respira_get_builder_info. If the active builder is NOT Bricks, stop and tell the user: "This skill targets Bricks Builder. Your active builder is {X}. Use the generic convert html to builder workflow instead, or switch the active builder."
If Bricks is active, capture its version.
Call respira_get_active_site. Ask:
Call respira_get_option('respira_design_system'). If present, capture colors, typography, spacing tokens. The conversion will map raw CSS values (e.g. #2563EB) to design system tokens (e.g. primary) so the converted page is drift-resistant.
Three input modes:
/browse. Do NOT silently re-host external assets; flag external images so the user can decide to mirror them.In all modes, also accept inline <style> blocks and external <link rel=stylesheet> references. For external stylesheets, fetch their text content.
Call respira_convert_html_to_builder with builder=bricks, the HTML, the CSS, and the design-system context.
The MCP tool returns a Bricks element tree. Each element has a name (Bricks element type — section, block, container, heading, text-basic, button, image, etc.) and settings matching the Bricks schema.
For each element in the tree:
settings.color is a hex value matching one of the design system colors, replace with a token referencesettings.typography.font-family matches the design system heading or body family, replace with a token referencesettings.padding, settings.margin, settings.gap are pixel values matching the design system spacing scale, replace with token referencesThis step is the difference between a one-off conversion and a maintainable page. After the conversion, if the user updates the design system, the converted page reflects it.
Call respira_get_option('automatic_css_settings') or check the active theme for ACSS. If ACSS is installed:
padding: 96px 24px → ACSS section padding utilitymax-width: 1280px; margin: 0 auto → ACSS container classThis is optional and gated on ACSS being present. If ACSS isn't installed, fall through to inline settings.
For a new page: call respira_build_page with the Bricks element tree as the page body.
For an existing page: call respira_create_page_duplicate first (SafeEdit), then respira_inject_builder_content against the duplicate.
Output the new (or duplicate) page URL.
Open the new page in the Bricks editor (the URL pattern is /?bricks=run&page_id={id}). Visually verify:
If anything is off, the user can refine in the Bricks editor directly. Common issues to flag:
<details> collapsible → mapped to Bricks accordion)<form> doesn't convert into Bricks Form element 1:1. Flag and ask the user to wire the form fields manually.convert_html_to_builder workflow.Records: site URL hash, Bricks version, HTML input size (bytes), elements converted count, design system bound, ACSS detected, success/failure, total duration. No HTML content, no element names, no page IDs sent.
Endpoint: POST https://www.respira.press/api/skills/track-usage
npx claudepluginhub respira-press/agent-skills-wordpressConverts WPBakery Page Builder pages to Bricks Builder. Parses shortcodes, maps elements, generates migration plan, and writes Bricks JSON. Use for migrating from WPBakery to Bricks.
Converts a page's raw HTML into WordPress block-editor markup using design tokens and a screenshot. Call per-page after extraction to produce `post_content` that renders with the theme's tokens and patterns.
Generates or edits WordPress Gutenberg blocks for the Greenshift/GreenLight plugin and converts data or vanilla HTML+CSS+JS to WordPress blocks.