/website-builder-toolkit:site-bricksfrom website-builder-toolkit
Applies Bricks Builder toolkit rules for WordPress sites: global classes, variables, palettes, theme styles, safe write paths, and naming conventions. Use when reading or writing Bricks sites.
Ships in website-builder-toolkit. 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.
Use this if the site is built with Bricks Builder for WordPress and an agent reads or writes it, through the builder's AI abilities (Bricks 2.4+), an MCP adapter, WP-CLI, or by preparing elements and CSS for a human to paste. Bricks can be used on its own, with its native global classes, variables, color palettes and theme styles, or together with Automatic.css through ACSS's Bricks integration. If the project loads ACSS, read the site-acss skill too: ACSS tokens and utilities then take precedence over hand-built Bricks variables. This adapter covers where the design passes land in Bricks and how to write without breaking the site; build mechanics live in the Bricks Academy (https://academy.bricksbuilder.io/).
Brand values (colors, fonts, scale, radius, voice) come from the project's brand profile (the brand profile (template in the site-brand skill)). In Bricks they are entered once as palette colors, global variables and theme style settings (or in the ACSS dashboard), never repeated as literals on elements.
update_post_meta on the content keys fails or corrupts the tree. Never hand-edit the serialized element array in the database.selectors). Send the complete array, with ids, when changing one entry.children lists. When moving a subtree, also reorder it in the flat array.save: false, render previews), and show generated scales or shades to the user before saving.Bricks ships a native element for most content jobs, each with its own controls, accessibility behavior and dynamic-data support. Building everything from Div and Code elements produces div soup the user cannot edit. Pick the element that carries the job; the element name in the JSON is what the table lists.
heading, text-basic or text, never a Div with text in custom code. Images are image, not backgrounds. Widgets (accordion, tabs, slider, nav) are the nestable elements, not hand-built divs with custom JS. Keep an existing specialized element when editing; do not flatten it to divs.section (100% wide, tag section) arrives with a container inside (centered, theme-style width, default 1100px). Inside a container, block is the full-width flex wrapper for columns and cards; div has no presets and is for grouping or class-based layout. Do not put a raw div where a container or block belongs, and do not re-add widths or centering they already have.
var(--content-width) once. No padding or max-width on individual sections and containers unless deviating, then through --section-space-* and the gap tokens.header, footer, nav, article, aside, ul/li on layout elements; figure/figcaption on Image and Basic Text.button element renders a span by default and an a once a link is set. For an on-page action (open an offcanvas, submit), set its HTML tag to button; a span is not focusable. Navigation CTAs keep the link and use the button class or ACSS btn--*.h1 per page; each section opens with a heading one level down; size via class, not via a different tag. Never use Basic Text with a heading tag or a Heading for non-heading text.slot, not a long property list. Check existing components before creating one.| Content need | Bricks element (name) | Notes |
|---|---|---|
| Page section | Section (section) | Root level only. ACSS or the theme style supplies padding. |
| Content width wrapper | Container (container) | Theme-style width (ACSS: --content-width). At root or inside a section; nest Blocks, not Containers, inside it. |
| Grid of cards | Block (block) or Div (div) with tag ul, grid on its class | The grid parent never loops; the looped card sits inside it. |
| Card | Block (block), tag li or article; usually a component instance | Block is a flex column with align-items: flex-start; stretch children on the class if needed. |
| Heading | Heading (heading), tag h1–h6 | Level by outline. |
| Paragraph | Basic Text (text-basic), tag p | Default tag is div; set p. |
| Rich text | Rich Text (text) | WYSIWYG for mixed headings, lists, inline links, and editor fields from dynamic data. |
| List | Rich Text list, or Div/Block tag ul with Div children tag li | The List element (list) is a styled repeater (title, meta, description), not a general ul. |
| Image | Image (image) | Alt text, srcset, lazy loading. Never a _background image for content. |
| Figure with caption | Image (image), tag figure, caption type set | Default tag is already figure; Bricks keeps it when a caption exists. |
| Video | Video (video) | YouTube, Vimeo, media library or file. Set the iframe title; privacy-enhanced mode where required. |
| Icon | Icon (icon) or SVG (svg) | Prefer SVG sources over icon fonts; color via currentColor. |
| Button / CTA | Button (button) | Tag a with a link, button for actions. |
| Text link | Text link (text-link); inline links inside Basic or Rich Text | Not a Button styled as text. |
| Navigation | Nav (Nestable) (nav-nested); Nav Menu (nav-menu) for a WordPress menu | Mobile toggle is configured on the parent; Dropdown (dropdown) for submenus. |
| Accordion / FAQ | Accordion (Nestable) (accordion-nested) | Bricks handles aria-expanded and keys; do not add duplicate JS. |
| Tabs | Tabs (Nestable) (tabs-nested) | Tab buttons and panels match by order. |
| Slider | Slider (Nestable) (slider-nested) | Loop the slider itself to make one slide per item. |
| Form | Form (form) | Fields, actions and anti-spam per the Academy page; test the email action on the live site. |
| Posts / CPT items | "Use Query Loop" on container, section, block or div (also accordion, slider, tabs) | The looped element is the repeating cell; grid or flex goes on its non-looping parent. |
| Conditional content | Element conditions (_conditions) on any element | Hidden elements are not rendered. OR groups, AND items; verify on the frontend. |
| Reusable pattern | Component (instance { "cid": … }) with properties; Slot (slot) for free content | Properties must be connected to controls; variants as a global-class property. |
Before writing, look it up. When an element or setting is not in this table, fetch the Academy page or the element schema instead of guessing:
https://academy.bricksbuilder.io/builder/elements/layout/: section/, container/, block/, div/https://academy.bricksbuilder.io/builder/elements/basic/: heading/, text-basic/, text/, text-link/, button/, image/, video/, icon/; SVG: https://academy.bricksbuilder.io/builder/elements/media/svg/https://academy.bricksbuilder.io/builder/elements/general/: nav-nested/, accordion-nested/, tabs-nested/, offcanvas/; slider: https://academy.bricksbuilder.io/builder/elements/media/slider-nested/Bricks emits CSS in a fixed order: global variables, theme styles, utility classes, global classes, palette color variables, page custom CSS, then header, content and footer element CSS. Later wins at equal specificity, so element-level CSS beats a global class.
var(--name). No literal hex or px that duplicates an existing variable.any)._cssCustom with %root%) for one-off adjustments the user should still find in the builder. It is the path that needs no extra permissions.<main>, where they can shift layout rules that target the first child.display: none written into element CSS can be stored as the layout setting _display; clearing the CSS then changes nothing. Clear both..hero-eyebrow, search for an existing eyebrow class. Per-page copies of the same component (eight eyebrow classes from eight landing pages) are the main way Bricks design systems rot.space-m); Bricks adds the -- prefix in CSS.Hero: Dark, not hero_dark_v2.The pass rules live in site-design. Bricks-specific landing points:
| Pass | In Bricks |
|---|---|
| Subtract | Delete element settings that restate the class or theme style. Run the design-system audit for unused classes, orphan references and condition-less theme styles; delete only with approval. With ACSS, utility classes are registered as global classes with empty settings: empty is not unused. |
| Spacing | Gaps on the parent (row-gap/column-gap or a gap variable), not margins on children. Spacing values from the spacing scale variables, generated by the scale generator, never hand-authored steps. With ACSS, use its contextual gap tokens. |
| Color | One palette, with each color's raw value pointing at a CSS variable. Shades generated from the base, not hand-picked. Check for duplicate colors across palettes before adding one. Dark sections with ACSS: the bg--* utility, so link and text colors flip with it. |
| Icons | Prefer inline SVG or the Bricks SVG element over icon fonts. Icons take currentColor. Lazy-load plugins can hide SVG images without dimensions; exclude them from lazy loading and verify they render. |
| Copy | Visible text in text and heading elements or component properties the user can edit, not baked into code elements. Apply site-copy and the brand voice. |
| Type | Sizes from the typography scale variables (or ACSS --h* / --text-*). The scale generator derives from the root font size; check that root value before trusting generated px. Real heading levels for structure; visual size via class, not by choosing a different heading tag. |
| Layout | Grid on the parent when it owns the columns, mobile-first if the site's breakpoints are configured mobile-first; otherwise follow the site's breakpoint direction consistently. Watch Bricks defaults: .brxe-div has max-width: 100%, .brxe-block is a flex column with align-items: flex-start. |
| Details | Images are image elements with alt text and srcset, never a div with a background image (invisible to assistive tech, no responsive sources). Buttons use one button class or the ACSS btn--* system. Forms, popups and interactions follow their Academy pages. |
| Motion | Interactions and animation classes respect prefers-reduced-motion; provide a calm variant. Avoid interactions that run on scroll for every element. |
| Verify | On the rendered frontend URL, not the builder or the template preview URL (below). |
When ACSS is installed, its integration registers ACSS utilities and variables inside Bricks. Then:
--space-* or color variable set in Bricks that duplicates ACSS; reference the ACSS names (see the site-acss skill for the list and the warning against inventing names).raw.btn--*, bg--*, --content-gap / --container-gap / --grid-gap). Bricks' own button styles in the theme style should not compete with them.display or flex values, double-quote font families, turn dt/dd into divs and replace images with background divs. Diff the rendered DOM against the source after every import and rebuild lost pieces as native elements and classes.brxe-{id} are not always printed (for example when the element carries a global class), so grep for the actual content, image filename or attribute you changed.dl structure, alt text).site-verify.Patterns slop-lint (in the site-audit skill) could flag in Bricks exports (page JSON, global classes JSON, CSS):
rgb() literals in element or class settings where palette colors existraw value contains no var(conditions array*-eyebrow, *-lede, *-card)var(--…) references to variables not defined in the exported variables list (orphans)_background image and no image element sibling where content images are expected (div-as-image)altText (and not marked decorative)_cssCustom without a selector (%root% or a real selector) or written as a single linedisplay:\s*none in _cssCustom (gets converted to a layout setting)margin-(top|bottom) on children inside flex/grid parents with gaptransition:\s*all, animation without a prefers-reduced-motion guard in custom CSSwp_update_post / update_post_meta on _bricks_page_content keys in agent scriptsdiv as the direct child of a section where a container is expected, or a container nested inside a containerdiv elements without global classes or settings nested more than three levels deep (wrapper soup)code or html elements whose markup contains <h[1-6], <p, <img, <ul, <a or <button that native elements could expressbutton elements with no link and no tag: "button" (renders a non-focusable span); text-basic with a heading taghasLoop) on the element that also carries the grid or flex layout; three or more sibling subtrees with the same element-name signature (should be a loop or a component)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bricks-builder, wordpress, global-classes, theme-styles, acss
Other plugins' skills for the same job
npx claudepluginhub tobiashaas/website-builder-toolkit --plugin website-builder-toolkit16 skills in this plugin
/site-accessibilityCheck a page, screen or component against WCAG 2.2 level AA, with AAA targets where the brand profile asks for them: contrast of the whole brand palette with the bundled script, an axe-core or Lighthouse scan, then a keyboard walk, a screen reader smoke test, zoom, reflow and reduced motion by hand. Use before handing over any page, when building forms, navigation, dialogs or motion, or when asked about accessibility, a11y, barrier-free, barrierefrei, WCAG, BFSG, European Accessibility Act, EAA, EN 301 549, contrast ratio, focus, screen reader, alt text, keyboard./site-acssApply the toolkit rules in projects that use Automatic.css (ACSS): map spacing, color, type, layout and motion to real ACSS tokens and utilities, never invent token names, use bg-- utilities for contextual color, grid-first mobile-first layout. Use whenever a project loads Automatic.css, in any builder./site-auditFind what makes a page, screen, carousel or text read as AI-generated or off-brand: run slop-lint, then walk the tell list on the rendered result and list every finding with where it lives. Use when reviewing agent-built UI or copy, before redesigning, when asked to unslop or de-slop, or when something looks generic, templated or vibe-coded. Triggers on purple gradients, gradient text, glows, emoji icons, sparkles, pill badges, centered heroes, three-card grids, greeting headlines, hype words, fake proof./site-brandCreate or update the brand profile (brand.md) that every toolkit skill and slop-lint read: colors, type, shape, imagery, motion stance, voice, banned words, facts with sources and claims never to make. Use when a project has no brand.md, when starting work for a new brand or client, when existing guidelines (brand guide, website, style sheets, docs) should become a profile, or when the user wants to define or update a voice or design language./site-copyWrite or rewrite copy in a brand's voice without AI tells: headlines, body, UI labels, empty and error states, dashboards, social posts and carousels, in German or English. Uses only facts from the brand profile, never invents numbers, customers or promises. Use whenever text is written or changed, when copy sounds generic, hyped or machine-written, or when applying a voice or tone guide./site-designRework a page, screen, carousel or dashboard so it fits the brand and stops looking generated: subtract first, then spacing, color, icons, copy, type, layout, details, the one moment and motion, in that order, checking each pass before the next. Use after site-direction is confirmed, when fixing audit findings, or when building new UI that must be on-brand. Works with any stack; framework rules come from site-acss, site-etch or site-bricks.