Converts HTML/CSS to native Bricks data for page or template insertion, handling resource reconciliation and warning review.
Ships in bricks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
For a known empty page body, write semantic HTML/CSS and call commit-html-css-page-import once with one page identifier, complete html and css, documentPurpose: "page-content", replaceExisting: false, and a new stable idempotencyKey. Import sibling page sections only: omit <main> because Bricks owns that landmark, and never embed a site-wide <header> or <footer> in a normal page. For the interior of an empty Bricks header/footer template, use documentPurpose: "template-content" and omit the automatic landmark. Do not call version, context, status, discovery, repository, changeset, the generic dispatcher, raw converter, or explicit preview first.
The ability checks the current design system, previews the conversion, saves it safely, and returns the persisted result. Exact retries reuse the same key.
If the result has autoApplied: true, require committed: true and transactionState: "committed"; the compact default response is authoritative. Request responseFormat: "detailed" only when complete design snapshots and preview data are needed. If it has nextAction: "review_warnings", inspect every warning and the frozen preview; responses that require warning acknowledgement remain detailed automatically. Call apply-html-css-page-import with the returned previewToken, the same idempotencyKey, and acknowledgeWarnings: true only after review. On errors or policy violations, revise the source and use a new idempotency key. Render-check desktop and mobile after persistence.
Check partial and omittedElements even on a successful commit. On an empty target, Bricks can omit elements the caller cannot author (and their descendants), retain the permitted content and its dependencies, and commit automatically when those omissions are the only warnings. Report the omissions and verify that the retained result still meets the brief; do not call it a complete import. Partial replacement of existing content is rejected. Other warnings still require the returned acknowledgement flow. Do not retry by increasing permissions or inventing a skip-policy parameter.
Use documentPurpose: "migration" only when faithfully migrating an external fragment whose semantic wrappers and browser defaults are part of the source contract. It is not an escape hatch for a rejected page shell.
When custom CSS and new globals are forbidden, preview with:
{
"options": {
"preserve_html_defaults": false,
"custom_css_policy": "forbid",
"global_resource_policy": "forbid_creates"
}
}
Do not weaken these policies to make a preview pass. Rewrite unsupported selectors or declarations into native-mappable HTML/CSS and preview the complete candidate again.
For one-off native styling, give elements stable HTML IDs and target those IDs in CSS. Ordinary class selectors propose global Bricks classes and can violate forbid_creates. Put responsive overrides in the supplied CSS with explicit media queries; do not omit the css field when the brief includes responsive behavior. With default Bricks breakpoints, mobile portrait is @media (max-width: 478px). If the site uses custom breakpoints, read design context and use the site's actual width.
<section> creates a Section.<div class="brxe-container"> creates a centered native Container.<div class="brxe-block"> creates a native Block.<a class="brxe-button" href="...">Label</a> creates a linked native Button; a plain <a> remains a Text Link.Do not nest Containers inside Containers or Sections inside Sections. Use Blocks or Divs for inner layout. Make browser-default typography explicit in CSS. When the source uses rem, pass both options.source_root_font_size_px and options.target_root_font_size_px. Pass the same explicit value for both when no scaling is needed; this avoids a normalization warning and second acknowledgement call. Rem normalization does not rescale media-query widths, so author those widths for the target site.
Use convert-html-css-to-bricks-data only when the task needs converted data without immediately replacing one known empty page: snippets, component authoring, CSS-only reconciliation, reusable globals, or manual Bricks-specific wiring. Its output is read-only and must be reviewed before persistence.
For these advanced routes, read full-guide.md before acting. It covers write preconditions, global classes and variables, CSS-only conversion, executable-content safety, source rendering fidelity, dynamic/nestable element limits, and post-conversion quality checks.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bricks, html-to-bricks, page-import, template-import, css-conversion
/bricks:bricks-html-css-to-bricksfrom bricks
npx claudepluginhub codeerhq/bricks-skills --plugin bricks46 skills in this plugin
/bricks-agent-repositoryHandle complex existing-site Bricks edits through advertised repository/workspace workflows when focused abilities cannot express the change./bricks-ai-tabDiagnose Bricks AI connection setup, ability toggles, dispatcher availability and disabled actions. Use for connection/availability problems./bricks-audit-design-systemAudit Bricks classes, variables, palettes and components, or carry out requested cleanup. Report-only audits do not authorize fixes.Other plugins' skills for the same job