bricks

为 Bricks Builder(WordPress)创建布局、模板和完整设计,并以可直接粘贴的 JSON 格式输出。适用于区块、页面、页眉/页脚、查询循环、ACF/动态数据、分面筛选器、条件设置、交互/动画、弹窗、WooCommerce 模板、自定义元素或钩子等任何 Bricks 任务。已基于 Bricks 2.3.6 源码验证。

仓库最近推送
GitHub Stars
145
Forks
23
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "bricks":https://skillpi.com/zh/skills/deepskill-aa97f67108e31008d0f253e93b56bb87d50077d9fbc65e1988564e943435f5e8。安装前核对上游来源和版本:https://github.com/wpgaurav/bricks-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

为 Bricks Builder(WordPress)创建布局、模板和完整设计,并以可直接粘贴的 JSON 格式输出。适用于区块、页面、页眉/页脚、查询循环、ACF/动态数据、分面筛选器、条件设置、交互/动画、弹窗、WooCommerce 模板、自定义元素或钩子等任何 Bricks 任务。已基于 Bricks 2.3.6 源码验证。

0 下载

介绍来源: third_party · wpgaurav · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: bricks
description: 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.

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

  1. Clarify inputs first — settle two things before writing JSON:
    • rem base — confirm what 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
    • 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
  2. Pick the format — clipboard paste vs template import vs programmatic insert → references/json-formats.md
  3. Plan structure — semantic section → container → blocks tree; pick elements from the catalog → references/elements.md
  4. Style with settings — every _ style key and its exact value shape → references/style-settings.md
  5. Wire data — dynamic tags, query loops, filters as needed (see routing table)
  6. 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, or 0 for root elements.
  • The array is flat — hierarchy lives entirely in parent + children (ids must cross-reference exactly).
  • Root elements are usually section; never nest a section inside 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
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.

Non-Negotiable Rules

  1. Flat tree integrity — every children id exists as a node whose parent points back. No orphans, no duplicates.
  2. Verified value shapes only — colors are objects ({"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.
  3. Responsive grammar — 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.
  4. Units are strings — "3rem", "100%", "24px". Bare numbers get px appended by Bricks.
  5. Spacing scale discipline — pick a scale (or the site's global variables) and stick to it across the design.
  6. Real structure, no filler — semantic tag settings on sections/blocks (header, nav, article, aside, footer), one h1 per page, descending heading levels.
  7. Global classes ride along — any id listed in an element's _cssGlobalClasses must have its full class object in the top-level globalClasses array.
  8. 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.
  9. Confirm the rem base before using rem — never assume 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.
  10. Reference external assets by absolute 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.md

Validation Checklist (run before delivering)

  • [ ] JSON parses (python3 -m json.tool file.json or equivalent)
  • [ ] Every parent/children reference resolves; ids unique, 6-char alphanumeric
  • [ ] source: "bricksCopiedElements" + version present (clipboard format)
  • [ ] Every _cssGlobalClasses id has a matching object in globalClasses
  • [ ] Value shapes match style-settings.md (spot-check colors, typography, spacing)
  • [ ] Responsive keys use valid breakpoint names
  • [ ] Query loops: hasLoop: true + query.objectType present; filters point at a real query element id via filterQueryId
  • [ ] Dynamic data tags exist for the stated field provider (e.g. {acf_*} matches the user's field names)

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • Comprehensive solution for Bricks Builder JSON generation covering layouts, templates, and full designs
  • Solves real-world WordPress development problems with verified compatibility against Bricks 2.3.6
  • Extensive feature coverage including ACF, WooCommerce, query loops, filters, and dynamic data
触发精准90/100

亮点

  • Clear and precise trigger description defining exact scope and use cases
  • Well-defined boundaries that won't easily overlap with other Skills
  • Multiple specific application scenarios clearly outlined
结构规范95/100

亮点

  • Excellent structured workflow with clear phases and validation steps
  • Comprehensive documentation with proper frontmatter and reference system
  • Detailed format specifications and element node structures provided
执行可靠90/100

亮点

  • Verified against actual Bricks 2.3.6 source code ensuring compatibility
  • Extensive validation checklist prevents execution errors
  • Clear parameter definitions and value shape specifications prevent misuse
证据可验 (前四项均值)93/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • example.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。