LLM-optimized skill documentation and development resources for Bricks Builder WordPress theme.
Just paste the link https://github.com/wpgaurav/bricks-skills to your AI assistant and tell it to read the skill files and it will take care of everything for you.
These skill files teach AI assistants how to work with Bricks Builder. Here's how to use them with different tools:
If you're using Claude Code in your terminal:
- Open this folder in your terminal
- Run
claudeto start Claude Code - Claude automatically reads
CLAUDE.mdand understands the skills - Just ask: "Create a hero section with Bricks Builder"
- Open this folder in VS Code
- The
CLAUDE.mdfile provides context to AI extensions - For best results, open a skill file (e.g.,
bricks-layouts.md) in a tab - Ask your AI assistant to create Bricks layouts
- Copy the skill file content - Open the skill you need (e.g.,
bricks-layouts.md) - Paste into chat - Start a new conversation and paste the skill content
- Ask your question - Now the AI understands Bricks format
Example workflow:
1. Copy contents of bricks-layouts.md
2. Paste into Claude/ChatGPT/Gemini
3. Ask: "Create a pricing table with 3 tiers using Bricks Builder"
4. Copy the JSON output
5. In Bricks Builder, right-click in structure panel and paste
- Open this folder as your project
- The AI will read
CLAUDE.mdfor context - Reference skill files in your prompts: "Using bricks-layouts.md, create a mobile-first grid"
Want to create a card grid?
- Tell your AI: "Read bricks-layouts.md and create a 3-column card grid with hover effects"
- Copy the generated JSON
- In Bricks Builder, right-click in the structure panel
- Select "Paste" or use Ctrl/Cmd+V
- Elements and global classes are pasted together
bricks/- Bricks Builder theme source (not included - paid product)
For best results, add the Bricks theme files to a bricks/ folder in this repository. This allows the AI to reference actual element implementations, understand control structures, and provide more accurate code suggestions.
To add Bricks source:
- Purchase Bricks from bricksbuilder.io
- Download the theme zip
- Extract to
bricks/folder in this repository - The
.gitignorealready excludes it from version control
| Skill | Description |
|---|---|
| bricks-layouts.md | Ready-to-paste sections, JSON formats, Core Framework CSS classes |
| bricks-elements.md | Building custom elements with controls and rendering |
| bricks-templates.md | Creating and managing templates programmatically |
| bricks-hooks.md | Complete filter and action reference |
| core-framework.css | Utility-first CSS framework reference |
Bricks uses two distinct JSON formats:
For pasting directly into the builder via clipboard:
{
"content": [
{
"id": "sec001",
"name": "section",
"parent": 0,
"children": ["con001"],
"settings": {
"_cssGlobalClasses": ["padding-vertical-xl"]
}
}
],
"source": "bricksCopiedElements",
"sourceUrl": "https://example.com",
"version": "2.0.1",
"globalClasses": [],
"globalElements": []
}Full templates with metadata for importing via Bricks Templates system:
{
"id": 1195,
"name": "header-new",
"title": "Header New",
"type": "header",
"header": [...elements...],
"global_classes": [...]
}Each element requires:
| Property | Description |
|---|---|
id |
Unique 6-character alphanumeric ID |
name |
Element type (section, container, heading, etc.) |
parent |
Parent element ID or 0 for root |
children |
Array of child element IDs |
settings |
Element-specific settings |
Layout: section, container, block, div
Content: heading, text, text-basic, button, image
Navigation: nav-nested, dropdown, toggle
Interactive: slider-nested, accordion, form
Append breakpoint suffix to any setting:
| Breakpoint | Suffix | Max Width |
|---|---|---|
| Desktop | (none) | - |
| Laptop | :laptop |
1366px |
| Tablet Landscape | :tablet_landscape |
1024px |
| Tablet Portrait | :tablet_portrait |
991px |
| Mobile Landscape | :mobile_landscape |
767px |
| Mobile Portrait | :mobile_portrait |
478px |
Example:
{
"_direction": "row",
"_direction:tablet_portrait": "column",
"_gridTemplateColumns": "repeat(3, minmax(0, 1fr))",
"_gridTemplateColumns:mobile_portrait": "repeat(1, minmax(0, 1fr))"
}These skills are designed for use with LLM assistants (Claude, GPT, etc.) to:
- Generate layouts - Create Bricks JSON markup from design descriptions
- Build custom elements - Create PHP element classes with controls and rendering
- Set up query loops - Configure posts, terms, and user loops
- Add hooks - Implement filters and actions for customization
- Optimize styling - Use Core Framework utility classes effectively
"Create a 3-column responsive grid of feature cards using Bricks Builder. Each card should have an icon, heading, and description with hover effects."
"Build a custom Bricks element for displaying team members with image, name, role, and social links."
"Add a filter to modify the Posts element query to only show posts from the last 30 days."
The LLM will reference bricks-layouts.md, bricks-elements.md, and bricks-hooks.md to generate proper code.
wp bricks regenerate_assets # Regenerate CSS files- Official: https://academy.bricksbuilder.io/
- Developer Docs: https://academy.bricksbuilder.io/collection/developer/
- Theme source code: Proprietary (Bricks Builder license)
- Skill documentation: MIT