Regenerates Bricks CSS files site-wide and inspects/cleans up orphaned element data. Use after breakpoint changes or bulk style edits.
Ships in bricks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Three admin-only housekeeping abilities mirror Bricks maintenance actions (includes/abilities/maintenance.php):
bricks/regenerate-css-files: rebuild Bricks CSS files.bricks/list-orphaned-elements: scan for element rows whose parent id no longer exists in the same tree.bricks/cleanup-orphaned-elements: remove those orphan rows.bricks/regenerate-css-filesInput schema is empty:
bricks/regenerate-css-files
-> { success: true, generatedFiles: [...], generatedFileCount: 42, cssLoading: "file" }
There is no postIds parameter. The ability runs the site-wide Bricks file-regeneration helper.
Use it after:
cssLoading to file mode and needing the generated files ready.Normal builder saves regenerate the affected post CSS automatically. This ability is the bulk version.
bricks/reindex-filters accepts {}, requires manage_options and rebuilds the
whole query-filter index on every call. See bricks-query-filters for when it
is needed.
An orphan is an element whose parent id references another element that does not exist in the same meta tree.
The list operation is read-only:
bricks/list-orphaned-elements
-> { totalOrphans: 47, totalPosts: 12, orphansByPostId: { "42": [...] } }
Cleanup supports a dry run and sweeps all detected orphans:
bricks/cleanup-orphaned-elements({ dryRun: true })
-> { success: true, dryRun: true, totalCleaned: 47, postsCleaned: 12, message: "Would remove 47 orphaned elements across 12 posts." }
# After review and explicit approval:
bricks/cleanup-orphaned-elements({ dryRun: false })
-> { success: true, totalCleaned: 47, postsCleaned: 12, message: "Removed 47 orphaned elements across 12 posts." }
Destructive unless dryRun: true. Always list first, run the dry run, review the affected posts, and obtain explicit approval before the committing call. There is no MCP parameter for limiting cleanup to a selected post list.
Code-signature regeneration is available in the admin UI. It has no MCP ability. Regeneration can authorize previously quarantined code; require explicit authorization for that operation.
Academy reference: https://academy-preview.bricksbuilder.io/builder/features/code-signatures/
If a
bricks/*ability is not available as a direct tool: first check whether it is outside the fast path and call it throughmcp-adapter-execute-abilitywithability_name: "bricks/<name>". If the dispatcher also rejects it, callbricks-list-ability-statusto check whether a site admin disabled it under Bricks > AI.
What SKILL.md sets; muted values are Claude Code's defaults
46 skills in this plugin
/bricks-agent-repositoryHandle complex existing-site Bricks edits through advertised repository/workspace workflows when focused abilities cannot express the change./bricks-ai-tabDiagnose Bricks AI connection setup, ability toggles, dispatcher availability and disabled actions. Use for connection/availability problems./bricks-audit-design-systemAudit Bricks classes, variables, palettes and components, or carry out requested cleanup. Report-only audits do not authorize fixes./bricks-breakpointsRead or change Bricks responsive breakpoint definitions. Use for breakpoint configuration, not ordinary element styling at an existing breakpoint./bricks-browser-verifyInspect a Bricks page in a browser, compare it with a design or baseline, or verify a completed change. Inspection requests remain read-only./bricks-child-theme-patternsSet up or debug a Bricks child theme, including asset loading and extension registration. Use for theme-level PHP/files, not ordinary Builder edits./bricks:bricks-maintenancefrom bricks
npx claudepluginhub codeerhq/bricks-skills --plugin bricksOther plugins' skills for the same job