Handles complex Bricks site edits via repository/workspace workflows when focused abilities cannot express the change. Routes edits through the smallest applicable path.
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.
Treat Bricks as a typed repository while WordPress remains authoritative.
Use this route only when the task environment explicitly announces
bricks.workspace/v1. Treat the projected files as a temporary authorized checkout:
Never infer bricks.workspace/v1 from filenames, a .bricks directory, an
installed skill, or prior tasks. If the host does not announce it, use the ability
routes below.
commit-exact-site-edits.checkout-site-edit-map, then
commit-site-edit-plan when the returned editableOps supports the change.resolve-agent-file, then
commit-agent-file.checkout-site-repository with narrow filters.Never fetch every full document merely to locate one target.
Use commit-exact-site-edits when the live schema supports the requested operation
and the target is an exact ID, unique full name, current text, or label. Supply
expectedValue. Use allowBlindWrite: true only when the user intentionally supplied
the exact target and requested replacement regardless of its current value.
Use only operations advertised by the live schema. Component attribute edits on this
route are limited to role and aria-*; use the canonical file route for broader
custom attributes. Never change a component instance boundary or overwrite content
controlled by a component property.
Call checkout-site-edit-map with the smallest target list that can locate the edit:
{
"targets": [
{ "scope": "page", "postId": 13 },
{ "scope": "design", "resource": "globalVariable", "id": "accent" }
],
"elementIds": ["bbbbbb"]
}
Omit elementIds when they are unknown. Do not substitute unsupported ID arrays or
parameters. Copy each returned selectionRef into one advertised operation and call
commit-site-edit-plan once with a stable idempotency key. Repeat that exact call to
resume safely. Request responseFormat: "summary" unless another edit needs the full
document.
Use preview-site-edit-plan with resourcePath and selectionDigest only when the
user asks for a dry run. Fall back to canonical files when the map is truncated or
does not support the required element, property, link, attribute, or structural edit.
When the target is not exact, call checkout-site-repository with the narrowest
useful query, postTypes, designKinds, includeDocuments, includeDesign,
includeDependencies, and perPage. Follow cursors only while later results may
matter. After selecting a target, continue with the smallest edit route above.
Call bricks/resolve-agent-file with an exact scope, query, and optional
resourceKinds. Proceed only when it returns one target and a canonical document.
Follow its editingContract for canonical keys, native style shapes, responsive
suffixes, flat-tree ordering, and preservation rules. Commit the target and requested
edit through bricks/commit-agent-file with one stable idempotency key. Prefer compact
readback; request the full document only when another edit needs it.
Preserve every unrelated element in a replacement file. If the live commit schema
advertises removeElementIds, name each element you intentionally remove; its
descendants are implied. An omission error means restore the missing content
unless the user asked for its removal.
For custom attributes, preserve ordered _attributes records shaped as { "id"?: string, "name": string, "value": string }. The returned editing contract is authoritative.
There is no atomic whole-site transaction across WordPress hooks, assets, caches, and plugins. Keep each step safe if later work fails:
in_progress; success is committed with authoritative readback for every changed step.failed_before_commit, partial_commit, or manual_recovery. Re-read and re-plan; never assume rollback.Split work above 25 resources into independently valid batches. For renames or reference migrations, use dependency hints to narrow authoritative consumer reads; hints are not proof that a resource is unused.
What SKILL.md sets; muted values are Claude Code's defaults
/bricks:bricks-agent-repositoryfrom bricks
npx claudepluginhub codeerhq/bricks-skills --plugin bricks46 skills in this plugin
/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.Other plugins' skills for the same job