Authors global design tokens (fonts, colors, spacing, typography) across a Bricks site. Guides style ownership decisions between theme styles, global classes, variables, and custom CSS.
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.
Read when SKILL.md points to them.
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.
For a build or redesign, decide style ownership before adding resources. Preserve existing exceptions; a focused edit does not authorize a sitewide cleanup.
A saved setting is not proof of effective CSS: check the actual consuming element's schema and render output. A global class control may not apply to every element type.
These defaults follow Theme styles and Global CSS classes.
For an existing uploaded font, list-custom-fonts returns items with family IDs.
Native typography stores the selected family as custom_font_<id> in font-family.
Applying that font changes theme/class/element controls, not the font family record.
Use get-custom-font({ fontId }) when face details are needed.
Call bricks/get-design-context. You are looking for three answers:
--space-{size} variable naming, t-shirt or numeric scale: match it.)Also inspect variableCategories. If a category already has a scale config, use that category ID and prefix. Do not create fs-* variables when the typography category prefix is text-, and use the generator for changes to that scale. Exact local values can still be appropriate when the brief requires a value outside the scale; do not redefine the shared scale for one exception.
A fresh Bricks install can have no saved design-system resources: no custom theme style, classes, components, or saved variables. Bricks still exposes a built-in default color palette fallback in the builder and in list-color-palettes; do not tell users Bricks has no default palette. If it returns empty, create only the resources the task needs. Use bricks-seed-design-system when a full foundation is requested, not for every isolated edit.
Global design writes no longer share one coarse version precondition. Immediately before a focused write, call the matching focused read and pass its complete returned ownership data unchanged:
create-global-class has no resource ownership parameter;
pass expectedCategoryOwnership only when assigning a category.
batch-create-global-classes requires resource expectedOwnership and category
ownership when categorized. Updates/deletes require the target row's
itemOwnership as expectedOwnership plus lockOwnership.variableOwnership and categoryOwnership; category
writes replace the complete category list and must preserve opaque fields.ownership for creates and target itemOwnership for
updates/deletes. Chain each successful response's new ownership into sequential
palette mutations.itemOwnership for update/delete. Fetch the specific
style when editing settings; a summary digest still covers the complete hidden row.expectedDesignSystemVersion and now also
the complete current expectedComponentDigest.Deletion acknowledgement flags (allowOrphans) are mandatory where documented and
do not replace ownership. On any stale precondition, re-read and rebase; do not
manufacture ownership data from get-design-context.version.
list-global-revisions /
restore-global-revision) unless disableGlobalDataHistory is on. Before a
destructive change, confirm the item already has entries; history starts when
2.5 first runs. Confirm the target version with the user before restoring.bricks_conflict_duplicate_global_class_name if the name is taken. Read the existing one before retrying..button or .hero-text is a useful default..button-red: create a base class and a modifier class that sets only the color. Bricks supports class combinations natively.bricks/render-elements on a minimal element using the class to verify CSS output before committing settings programmatically.bricks/get-global-class-usage. Zero saved assignments does not prove the class is unused.For variable/category writes or fluid scales, read Variable and scale contracts. Reuse existing categories and scale prefixes; use the generator rather than inventing static replacements for generated scale steps.
For palette/color changes or generated shades, read Palette and shade contracts. Reuse an existing palette before creating another.
conditions when creating: use [{ main: "any" }] for a site-wide base, or a more specific condition such as postType, ids, terms, or archiveType.postType beats any, and exact ids beats postType.conditions: [{ main: "any" }] so defaults actually render.delete-theme-style for cleanup; it returns the removed style in beforeDelete.itemOwnership. Fetch the
exact style with get-theme-styles({ style: id }) before changing settings.acknowledgeStyleRemoval: true after reviewing the returned bounded impact
evidence. This acknowledgement belongs to delete, not update.bricks_conflict_duplicate_component_name on collision..button and var(--space-m), those references follow it wherever it's instanced.usageCount leaves orphan pointers. The builder renders missing components as a placeholder. Either replace the usages first or explicitly accept the orphans with the user.extract-component-from-elements over copying element trees. The extraction rewrites ids cleanly and swaps the source subtree to a component instance in one write, with a revision snapshot.See the bricks-components skill for slots, nested components, and property binding specifics.
list-color-palettes, then create-color with its resource ownership and the intended raw variable reference.generate-color-shades with save: false; re-run with save: true and the preview's saveOwnership as expectedOwnership.dark (and optional transparent for tints).list-color-palettes to verify.generate-scale-variables with save: false: review output with user.set-global-variables.list-global-variables to verify.For building a full design system from an empty site, use the bricks-seed-design-system skill. For cleanup of an existing one, use bricks-audit-design-system.
Use the live get-style-manager / set-style-manager contract for root font size,
fluid viewport bounds and default mode. The setter replaces the complete option:
read and preserve unrelated keys. Changing the rem basis or scale bounds is a
site-wide decision, not a local spacing fix.
For custom pseudo-class choices, use list-pseudo-classes / set-pseudo-classes
with current ownership. Preserve existing selectors; removal acknowledgement does
not prove existing styles are unused. Verify hover, focus and responsive states
where the changed resource is consumed. Existing framework naming/scales take
precedence over introducing a parallel scheme.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bricks, design-tokens, theme-styles, global-classes, wordpress-styling
/bricks:bricks-design-systemsfrom bricks
npx claudepluginhub codeerhq/bricks-skills --plugin bricks46 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.Other plugins' skills for the same job