bricks
Installation
SKILL.md
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
- Clarify inputs first — settle two things before writing JSON:
- rem base — confirm what
1remequals on the target site (1rem = ? px). Ask the user; default to 16px if unspecified (ahtml { font-size: 62.5% }reset makes it 10px). Allrem/clamp()math and any px→rem conversion from a reference depends on this. → rem base - reference URL — if the user provides one (or names asset URLs), fetch it and reference its images/video/SVG/icons by absolute URL. → references/external-assets.md
- rem base — confirm what
- 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