by wpgaurav
Agent skill for Bricks Builder: paste-ready JSON for layouts, templates, query loops, popups, ACF and WooCommerce, verified against the Bricks source. Works with Claude Code, Codex, Cursor and Copilot.
# Add to your Claude Code skills
git clone https://github.com/wpgaurav/bricks-skillsGuides for using ai agents skills like bricks-skills.
bricks-skills is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by wpgaurav. Agent skill for Bricks Builder: paste-ready JSON for layouts, templates, query loops, popups, ACF and WooCommerce, verified against the Bricks source. Works with Claude Code, Codex, Cursor and Copilot. It has 145 GitHub stars.
bricks-skills's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/wpgaurav/bricks-skills" and add it to your Claude Code skills directory (see the Installation section above). bricks-skills ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh bricks-skills against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Generate complete Bricks designs as JSON that pastes or imports cleanly on the first try.
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.
1rem equals on the target site (1rem = ? px). Ask the user; default to 16px if unspecified (a html { font-size: 62.5% } reset makes it 10px). All rem/clamp() math and any px→rem conversion from a reference depends on this. → rem base_ style key and its exact value shape → references/style-settings.mdClipboard (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, or 0 for root elements.parent + children (ids must cross-reference exactly).section; never nest a section inside anything.| 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 |
| External assets from a reference URL (any image/video/SVG/icon, hotlink vs re-host) | references/external-assets.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.
children id exists as a node whose parent points back. No orphans, no duplicates.{"hex": "#222"} or {"raw": "var(--x)"}), typography keys are CSS property names ("font-size", not fontSize), box-shadow offsets nest under values, gradients use colors: [{color, stop}]. When unsure, check style-settings.md — do not guess shapes.setting:breakpoint:pseudo with 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."3rem", "100%", "24px". Bare numbers get px appended by Bricks.tag settings on sections/blocks (header, nav, article, aside, footer), one h1 per page, descending heading levels._cssGlobalClasses must have its full class object in the top-level globalClasses array.1rem = 16px silently. Ask the user; default to 16px only when they don't answer. Convert any px values lifted from a reference using the confirmed base.url, never id — when a reference URL or asset URLs are given, resolve every asset to an absolute URL and reference it via the media control's url/external (attachment ids don't resolve cross-site). Respect licensing — don't hotlink copyrighted/brand assets into production. → references/external-assets.mdpython3 -m json.tool file.json or equivalent)parent/children reference resolves; ids unique, 6-char alphanumericsource: "bricksCopiedElements" + version present (clipboard format)_cssGlobalClasses id has a matching object in globalClasseshasLoop: true + query.objectType present; filters point at a real query element id via filterQueryId{acf_*} matches the user's field names)An AI skill for one-shotting Bricks Builder designs as JSON — hero sections, full landing pages, headers/footers, query loops with faceted filters, ACF-driven layouts, conditions, animations, and popups. Every settings key and value shape is verified against the Bricks 2.3.6 theme source, not guessed.
Want the agent to edit the live site, not just hand you JSON? Pair this skill with Site Agent, my free WordPress MCP plugin that runs Bricks' own abilities on Bricks 2.4+. How it works.
bricks-skills/ ← the repo is the skill
├── SKILL.md ← start here: workflow, rules, routing table
├── references/ ← 20 focused references (loaded on demand)
│ ├── json-formats.md clipboard / template / postmeta formats + validation
│ ├── style-settings.md every _setting + exact JSON value shapes
│ ├── elements.md full element catalog + nestable structures
│ ├── layout-recipes.md grids, heroes, cards, overlap, sticky, full pages
│ ├── query-loops.md hasLoop + query JSON for posts/terms/users
│ ├── query-filters.md live search, facets, sort, AJAX pagination
│ ├── dynamic-data.md {tags}, filters, args, {echo:}
│ ├── acf-providers.md ACF deep dive (repeaters, groups, flexible) + Meta Box etc.
│ ├── conditions.md _conditions JSON (incl. dynamic data conditions)
│ ├── interactions.md _interactions, full animation list, recipes
│ ├── popups.md popup settings, triggers, limits, AJAX context
│ ├── templates.md template types, conditions, header behaviors
│ ├── components-classes.md components, global classes/variables, palettes
│ ├── theme-styles.md theme styles, breakpoints, CSS pipeline
│ ├── external-assets.md reference remote images/video/SVG/icons by URL
│ └── forms / woocommerce / hooks / custom-elements / assets-permissions
└── patterns/ ← 17 validated, paste-ready JSON files (see INDEX.md)
The repo is the skill: a SKILL.md router → on-demand references/ → paste-ready patterns/. Give it to any AI tool two ways:
SKILL.md (it routes to the right reference on demand).SKILL.md + the one reference your task needs into the chat. The references are self-contained.Grab the files once:
git clone https://github.com/wpgaurav/bricks-skills.git
Install as a global skill (available in every project):
git clone https://github.com/wpgaurav/bricks-skills.git ~/.claude/skills/bricks
Claude auto-loads it whenever your request looks like a Bricks task — just ask. Update later with git -C ~/.claude/skills/bricks pull. For one project only, clone into .claude/skills/bricks/ inside that project — or simply run claude inside the repo (its CLAUDE.md routes automatically).
As a Skill — Pro/Max/Team/Enterprise with code execution enabled:
zip -r bricks.zip bricks-skills -x '*.git*'bricks.zip.Any plan — create a Project, upload SKILL.md and the references/*.md you need as project knowledge, then add "Follow SKILL.md for all Bricks tasks" to the project instructions.
Custom GPT — Create a GPT → Configure → Knowledge → Upload files and add SKILL.md plus the reference files (upload bricks.zip if you hit the file limit). In Instructions paste: "You author Bricks Builder JSON. Always follow SKILL.md and the matching file in references/."
Project / single chat — attach SKILL.md plus the reference for your task (e.g. references/query-loops.md) and ask.
Codex reads AGENTS.md. Clone the repo, then add a pointer (don't paste the whole skill — AGENTS.md is size-capped):
# Bricks Builder
For any Bricks Builder task, follow the skill at ./bricks-skills/SKILL.md and its references/.
Put that in your project's AGENTS.md, or in ~/.codex/AGENTS.md (with an absolute path to the clone) to make it global.
Clone the repo into your project, then add .cursor/rules/bricks.mdc:
---
description: Bricks Builder JSON authoring
alwaysApply: false
---
For any Bricks Builder task, follow ./bricks-skills/SKILL.md and the files in ./bricks-skills/references/.
Output paste-ready JSON using the verified value shapes from those docs.
Cursor attaches it automatically when relevant, or type @bricks to force it. You can also @-mention SKILL.md directly in chat. (Cursor reads AGENTS.md too.)
Clone the repo into your project, then create .github/copilot-instructions.md:
For any Bricks Builder (WordPress) work, follow ./bricks-skills/SKILL.md and the matching file
in ./bricks-skills/references/. Always output paste-ready JSON with verified value shapes.
Copilot picks it up automatically across VS Code, JetBrains, GitHub.com, and the CLI. For file-scoped rules, use .github/instructions/bricks.instructions.md with an applyTo: glob. In chat you can also attach #file:SKILL.md.
Open the repo (or your project with the clone inside) as a workspace, then use whichever assistant you have:
.github/copilot-instructions.md (above) and/or attach #file:SKILL.md.@-mention or attach SKILL.md in the chat, or use the skill / AGENTS.md / rules files from the other sections.Tip: keeping SKILL.md open in a tab gives most assistants the context for free.
Clone the repo, then either reuse the AGENTS.md pointer (project, or global ~/.config/opencode/AGENTS.md) — or list the files in opencode.json (globs and remote URLs both work):
{
"$schema": "https://opencode.ai/config.json",
"instructions": ["./bricks-skills/SKILL.md", "./bricks-skills/references/*.md"]
}
It's all plain Markdown, so it works anywhere — Gemini, Windsurf, Aider, Zed, JetBrains AI, and more:
AGENTS.md? (Zed, Aider, Gemini CLI, Jules, Windsurf…) Drop in the one-line pointer to bricks-skills/SKILL.md.SKILL.md into the system prompt / custom instructions, plus the single reference your task needs — the routing table in SKILL.md tells you which. Self-contained, no internet required."Build a SaaS landing page: split hero, logo strip, 3-col features, pricing, FAQ, CTA. Brand color #6d28d9."
"Create a filterable course archive — search, category filter, price sort, AJAX pagination — as paste-ready JSON."
"Team section from my ACF repeater
team_members(photo, name, role, linkedin_url)."
You get a .json file: paste it into the builder (clipboard format) or import it via Bricks → Templates (template format).
Pasting works for one section. When you want the agent to read the page, change it and check the result itself, connect it to the site with Site Agent, my free WordPress MCP plugin. It's the first route I'd pick for Bricks, for three reasons:
{
"name": "site-agent-run-bricks-ability",
"arguments": {
"ability_name": "bricks/get-page-elements",
"parameters": { "postId": 42, "responseFormat": "summary" }
}
}
Clients sign in through WordPress with OAuth (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code, Gemini, Zed). Tools that change things stay off until you switch them on. On Bricks 2.3.x, generate the JSON with this skill and paste or import it by hand. Staging first, always.
The skill is free and works without any of this. These are products I build, and each one covers something a layout skill can't.
| You want to | Use | Why it fits |
|---|---|---|
| Let the agent edit the site, not just the chat | Site Agent (free) | Runs Bricks' own abilities over MCP. See Push it into a live Bricks site. |
| Give every section the same look | Design Systems Library | Agent-ready design systems: tokens, a DESIGN.md rulebook, components, fonts and live demos. Map the tokens to Bricks global variables and classes once (see components-classes.md), and every layout the agent writes uses the same palette, type and radius. |
| Run a Woo |