Reads or modifies Bricks responsive breakpoint definitions including custom breakpoints, base row, and mobile-first/desktop-first paradigm.
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.
Bricks ships default breakpoints (desktop, tablet_portrait, mobile_landscape, mobile_portrait) and lets you add custom ones. The full set lives in the bricks_breakpoints option and drives both the builder device-switcher and the generated responsive CSS.
Two tools:
bricks/list-breakpoints: returns { customEnabled, isMobileFirst, baseKey, baseWidth, breakpoints, defaults, breakpointOwnership, globalSettingsOwnership }. baseKey / baseWidth identify the base row; isMobileFirst is derived by core Bricks from the stored breakpoint list before it sorts the list for output.bricks/set-breakpoints: write the full list. Always pass the latest breakpointOwnership as expectedOwnership. If customEnabled is present, also pass the same read's globalSettingsOwnership as expectedGlobalSettingsOwnership. A replacement that removes or renames a key additionally requires allowRemovedBreakpoints: true after reviewing the returned bounded usage evidence.Each breakpoint is an object:
{
key: "tablet_portrait", // machine key, unique: /^[a-z0-9_-]+$/i
label: "Tablet portrait", // shown in builder, required non-empty
width: 991, // integer >= 0: see paradigm below
icon: "bricks-icon-device-tablet", // optional
base: true // omit or false on all other rows
}
Exactly one row must have base: true. The base is the fallback: every other breakpoint is a media query relative to it. base is a boolean on the row itself, not a type enum.
Bricks derives the paradigm from which row is the base, not from a separate setting:
@media (max-width: Npx).0 upward; wider breakpoints layer on as @media (min-width: Npx).list-breakpoints exposes the derived result as isMobileFirst: boolean. There is no cssBreakpointType global setting. If you change the base row, call list-breakpoints after saving and verify isMobileFirst before continuing.
Caution: use bricks/set-breakpoints for reading, restoring, adding, removing, or width changes when you can verify the result immediately. For a desktop-first to mobile-first paradigm switch, stop unless list-breakpoints confirms isMobileFirst: true after the write. Core Bricks derives the paradigm from stored base-row position, and the ability writer also sorts the replacement list before saving (includes/abilities/breakpoints.php:242-249), so the readback is the contract.
A master "use custom breakpoints" toggle (customBreakpoints) in bricks_global_settings controls whether your custom set is applied at all: Bricks falls back to the built-in defaults when it's off. That key is not in the bricks/set-global-settings registry. Use bricks/set-breakpoints with customEnabled: true or customEnabled: false, then verify with list-breakpoints.customEnabled.
The breakpoint and global-settings envelopes are separate authorities. Never derive
either from designSystemVersion, and never reuse one in place of the other. Re-read
after any stale-ownership response instead of retrying the same write.
Switching paradigm rewrites every rendered stylesheet. Regenerate CSS files (bricks/regenerate-css-files) after the write when cssLoading=file: otherwise cached files lag the new media-query semantics. set-breakpoints returns a note field prompting the regen when the flag is set.
set-breakpoints sorts rows by width before saving. Submit a clear complete list, then read back with list-breakpoints and use the returned order and isMobileFirst value as truth for generated CSS.
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.
bricks/list-breakpoints
-> current: [desktop (base, 1279), tablet_portrait (991), mobile_landscape (767), mobile_portrait (478)]
bricks/set-breakpoints
customEnabled: true
expectedOwnership: <list-breakpoints.breakpointOwnership>
expectedGlobalSettingsOwnership: <list-breakpoints.globalSettingsOwnership>
breakpoints:
- { key: "mobile_portrait", label: "Mobile portrait", width: 478 }
- { key: "mobile_landscape", label: "Mobile landscape", width: 767 }
- { key: "tablet_portrait", label: "Tablet portrait", width: 991 }
- { key: "desktop", label: "Desktop", width: 1279, base: true }
- { key: "large_desktop", label: "Large desktop", width: 1600 }
bricks/regenerate-css-files
The explicit base: true stays on desktop, so this remains desktop-first. Verify
the returned isMobileFirst: false; moving the base to the smallest row would be a
separate site-wide paradigm change.
base: true: the write is rejected with bricks_invalid_param (param breakpoints).key for a new breakpoint: Bricks stores per-breakpoint settings under that key and you'll silently merge with the old data.allowRemovedBreakpoints: true when the change is intended.What SKILL.md sets; muted values are Claude Code's defaults
/bricks:bricks-breakpointsfrom 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