bricks
Generates valid JSON exports for Bricks Builder, enabling fast layout and element creation in WordPress.
Install
mkdir -p .claude/skills/bricks && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11298" && unzip -o skill.zip -d .claude/skills/bricks && rm skill.zipInstalls to .claude/skills/bricks
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Author Bricks Builder (WordPress) layouts, templates, and full designs as paste-ready JSON. Use for any Bricks task — sections, pages, headers/footers, query loops, ACF/dynamic data, faceted filters, conditions, interactions/animations, popups, WooCommerce templates, custom elements, or hooks. Verified against Bricks 2.3.6 source.Key capabilities
- →Generate Bricks Builder layouts as JSON
- →Author query loops and dynamic data templates
- →Configure responsive settings and interactions
- →Validate JSON structure against Bricks requirements
- →Create reusable components and global classes
How it works
The skill generates a flat JSON structure representing Bricks elements, which can be imported directly into the builder to recreate complex designs.
Inputs & outputs
When to use bricks
- →Create custom WordPress layouts
- →Generate query loop templates
- →Build dynamic page sections
About this skill
Bricks Builder JSON Authoring
Generate complete Bricks designs as JSON that pastes or imports cleanly on the first try.
Default Deliverable
Produce an actual .json file in the workspace (not inline JSON) unless the user asks otherwise. Use the project's folder convention if one exists; otherwise bricks-json/{type}-{slug}.json. In the final response state: the file path, which JSON format you used, and the validation checks performed.
Workflow
- Pick the format — clipboard paste vs template import vs programmatic insert → references/json-formats.md
- Plan structure — semantic section → container → blocks tree; pick elements from the catalog → references/elements.md
- Style with settings — every
_style key and its exact value shape → references/style-settings.md - Wire data — dynamic tags, query loops, filters as needed (see routing table)
- Validate — checklist below, then deliver
Format Quick Reference
Clipboard (paste into builder) — the default for sections and page content:
{
"content": [ /* flat array of element nodes */ ],
"source": "bricksCopiedElements",
"sourceUrl": "https://example.com",
"version": "2.3.6",
"globalClasses": [ /* full class objects referenced by _cssGlobalClasses */ ],
"globalElements": []
}
Element node (every entry in content):
{
"id": "abc123",
"name": "heading",
"parent": "xyz789",
"children": [],
"settings": {},
"label": "Optional structure-panel label"
}
id: unique 6-char alphanumeric.parent: parent's id, or0for root elements.- The array is flat — hierarchy lives entirely in
parent+children(ids must cross-reference exactly). - Root elements are usually
section; never nest asectioninside anything.
Task Routing
| Task | Reference |
|---|---|
| Format selection, clipboard/template/meta storage, programmatic insert | references/json-formats.md |
| Element catalog, per-element settings, nestables | references/elements.md |
| Style keys, value shapes (color/typography/border/shadow/gradient/transform), responsive + hover grammar | references/style-settings.md |
| Section/grid/flex recipes, cards, overlays, sticky, full designs | references/layout-recipes.md |
Dynamic data tags {post_title}, args, {echo:} | references/dynamic-data.md |
| ACF (incl. repeaters, groups, flexible content), Meta Box, JetEngine, Pods, CMB2 | references/acf-providers.md |
Query loops (hasLoop + query), post/term/user queries | references/query-loops.md |
| Faceted filters, AJAX pagination, load more, infinite scroll, live search | references/query-filters.md |
Show/hide conditions (_conditions) | references/conditions.md |
Interactions, animations, scroll triggers (_interactions) | references/interactions.md |
| Popups (templates, triggers, limits, AJAX) | references/popups.md |
| Template types, conditions, import/export, header/footer/archive/404 | references/templates.md |
| Components, global classes, global variables, color palette | references/components-classes.md |
| Theme styles, breakpoints, CSS generation order | references/theme-styles.md |
| Form element, actions, validation | references/forms.md |
| WooCommerce templates and elements | references/woocommerce.md |
| PHP: custom elements with controls | references/custom-elements.md |
| PHP: filters and actions | references/hooks.md |
| Asset loading, builder permissions | references/assets-permissions.md |
Ready-to-paste examples (hero, grids, ACF loops, filtered archive, header/footer, popup…): patterns/ — see patterns/INDEX.md.
Non-Negotiable Rules
- Flat tree integrity — every
childrenid exists as a node whoseparentpoints back. No orphans, no duplicates. - Verified value shapes only — colors are objects (
{"hex": "#222"}or{"raw": "var(--x)"}), typography keys are CSS property names ("font-size", notfontSize), box-shadow offsets nest undervalues, gradients usecolors: [{color, stop}]. When unsure, check style-settings.md — do not guess shapes. - Responsive grammar —
setting:breakpoint:pseudowith colons:_padding:tablet_portrait,_background:hover,_margin:mobile_portrait:hover. Default breakpoint keys:tablet_portrait(991),mobile_landscape(767),mobile_portrait(478). Desktop is the bare key. - Units are strings —
"3rem","100%","24px". Bare numbers getpxappended by Bricks. - Spacing scale discipline — pick a scale (or the site's global variables) and stick to it across the design.
- Real structure, no filler — semantic
tagsettings on sections/blocks (header,nav,article,aside,footer), oneh1per page, descending heading levels. - Global classes ride along — any id listed in an element's
_cssGlobalClassesmust have its full class object in the top-levelglobalClassesarray. - Don't invent settings keys — only keys documented in the references or found in the Bricks source. Unknown keys are silently ignored and waste the user's trust.
Validation Checklist (run before delivering)
- JSON parses (
python3 -m json.tool file.jsonor equivalent) - Every
parent/childrenreference resolves; ids unique, 6-char alphanumeric -
source: "bricksCopiedElements"+versionpresent (clipboard format) - Every
_cssGlobalClassesid has a matching object inglobalClasses - Value shapes match style-settings.md (spot-check colors, typography, spacing)
- Responsive keys use valid breakpoint names
- Query loops:
hasLoop: true+query.objectTypepresent; filters point at a real query element id viafilterQueryId - Dynamic data tags exist for the stated field provider (e.g.
{acf_*}matches the user's field names)
When not to use it
- →When the design can be built faster using the visual builder interface
- →When the task involves complex backend logic outside of Bricks
Prerequisites
Limitations
- →Requires manual validation of JSON structure
- →Limited to Bricks Builder element catalog
How it compares
It automates the creation of complex layouts as importable files, ensuring structural integrity and adherence to Bricks-specific settings.
Compared to similar skills
bricks side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| bricks (this skill) | 0 | 2mo | No flags | Advanced |
| blade | 0 | 3mo | No flags | Intermediate |
| sigapp-ui-acuan | 0 | 2mo | No flags | Beginner |
| livewire-development | 25 | 6mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by wpgaurav
View all by wpgaurav →You might also like
blade
pikino84
Convenciones de UI con Blade + Alpine.js + Tailwind para PrintecPOS. Úsalo al crear/editar vistas, componentes Blade, formularios, tablas, modales o cualquier UI del cotizador, panel admin o partner site. Incluye reglas de cache busting y SweetAlert2.
sigapp-ui-acuan
it126sig-hash
Use this skill when working on SIGAPP UI in CodeIgniter views, Bootstrap modals, tabs, dividers, upload/file previews, or siteplan/admin interfaces. It preserves the project UI baseline: Bootstrap primary blue #2057a3, modal detail as the modal styling reference, divider-left section headers, FileAc
livewire-development
spatie
Develops reactive Livewire 4 components. Activates when creating, updating, or modifying Livewire components; working with wire:model, wire:click, wire:loading, or any wire: directives; adding real-time updates, loading states, or reactivity; debugging component behavior; writing Livewire tests; or when the user mentions Livewire, component, counter, or reactive UI.
developing-with-turbo-streams
hotwired-laravel
Basics of developing with Turbo Streams in web applications. Activate when working on projects that utilize Turbo Streams for enhancing user experience through real-time updates, dynamic content changes, and partial page updates without full reloads.
developing-with-turbo-frames
hotwired-laravel
Basics of developing with Turbo Frames in web applications. Activate when working on projects that utilize Turbo Frames for enhancing user experience through partial page updates, scoped navigation, and lazy loading of content within specific sections of a web page.
developing-with-turbo-basics
hotwired-laravel
Basics of developing with Turbo in web applications. Activate when working on projects that utilize Turbo for enhancing user experience through partial page updates, real-time interactions, and seamless navigation without full page reloads.