/website-builder-toolkit:site-etchfrom website-builder-toolkit
Provides rules for working with Etch for WordPress sites: safe write paths through the Etch API, avoiding clobbering builder edits, and verifying on the rendered frontend. Use when an agent reads or writes an Etch site.
Ships in website-builder-toolkit. 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.
Use this if the site is built with Etch, the visual development environment for WordPress, and an agent reads or writes the site through Etch's own API (the Etch Connector and the etch.* bridge) or through the Etch REST API. This adapter does not teach the build mechanics; for those, use Kevin Geary's Agentic Toolkit for Etch (https://github.com/kevingeary/gearyco-agentic-toolkit-for-etch) and the Etch documentation (https://docs.etchwp.com/). What follows is where the design passes land in Etch, which write paths are safe, and how to avoid destroying work the user did in the builder. Most Etch sites run Automatic.css; read the site-acss skill alongside this file when they do.
Brand values (colors, fonts, scale, radius, voice) come from the project's brand profile (the brand profile (template in the site-brand skill)). In an Etch plus ACSS project they live in the ACSS dashboard; in a plain Etch project they live in one global variables stylesheet. Never in component classes.
etch.* API or Etch's REST namespace (/wp-json/etch-api/…). Never through WordPress core routes such as wp/v2/pages or wp/v2/templates, and never through direct post-meta or database writes.
document.querySelector(...) edits in the builder iframe. Inspection through CDP (screenshots, rendered HTML, computed styles) is fine; writing is not.home is the blog index, not the start page; the static start page is front-page; page-{slug} beats page.etch.saveAsync() writes the complete block tree the bridge holds for every document opened in that tab session, plus the global style and stylesheet maps as the tab loaded them. There is no merge and no version check: last writer wins.
data-* attribute, class or structure inside the same script run; never store ids across runs.etch.blocks.move), not by delete and recreate, so the user's settings on the block survive.Etch elements are real HTML plus Etch-managed behavior. Ignoring them produces div soup: anonymous divs, raw <img> tags, hand-copied cards. Pick the element that carries the job.
inline-size: 100%, max-inline-size: var(--content-width), centered, flex column, all at zero specificity. Do not re-declare any of it.
--container-gap between a section's child divs and --content-gap inside them. Deviations go through --section-space-* or the gap tokens on the section's class.main or wrapper div around them. Several containers in one section are fine for separate content groups.header, footer, nav, article, aside, ul/ol/li, figure/figcaption. Do not use the deprecated Flex Div (data-etch-element="flex-div").button; a CTA to a URL is an Anchor with ACSS btn--*. Never a href="#" with a click handler.h1 per page, in the first section; each section opens with a heading one level down. Visual size comes from a class. Inside a component, the level is a select prop on a Dynamic Element.ul with the loop around the li. Free-form inner content goes into a slot, not into a growing list of props.| Content need | Etch element (block type) | Notes |
|---|---|---|
| Page section | Section: etch/element, tag section, data-etch-element="section" | Comes with a Container. ACSS supplies padding and gutter. |
| Content width wrapper | Container: etch/element, tag div, data-etch-element="container" | Width and centering are built in; no max-width in its class. Has no gutter, so keep it inside a section. |
| Grid of cards | etch/element tag ul (or div for unrelated panels) with a grid class | Its own block (.feature-list), not __grid. Grid on this parent; the Loop sits inside it. |
| Card | Component instance (etch/component), root tag li or article | Root via Dynamic Element (etch/dynamic-element, <etch:element tag={props.tag}>) when used inside and outside lists. |
| Heading | Heading: etch/element tag h1–h6 (default h2) | Text in an etch/text child. Level by outline. |
| Paragraph | Text: etch/element tag p with an etch/text child | One paragraph per element. Never several paragraphs in one Text. |
| Rich text | HTML element: etch/raw-html (<etch:html />) bound to the field | Only for HTML from the database or a prop. Post content in templates: {@post-content} (etch/post-content). Static copy is built from Heading and Text. |
| List | etch/element tag ul/ol with List Item (li) children | Add role="list" when list styles are removed. |
| Image | Dynamic Image: etch/dynamic-image (<etch:img mediaId=… />) | Alt, srcset, sizes from the media library. Plain Image (etch/element tag img) only for non-library sources. |
| Figure with caption | etch/element tag figure > Dynamic Image + Text with tag figcaption | No dedicated element; never a caption in a bare div. |
| Video | iFrame (etch/element tag iframe) for embeds; tag video for self-hosted | iFrame defaults to full width, 16:9. Set title. The docs page is thin; check it for updates. |
| Icon | SVG: etch/svg (<etch:svg />) | stripColors for monochrome icons so they take currentColor; never on multi-color logos. No icon fonts. |
| Button / CTA | Anchor (tag a) to navigate; Text or Div with tag button to act | ACSS btn--*, not own button classes. |
| Text link | Anchor inside a Text element | Real href. |
| Navigation | Basic Nav / Advanced Nav native component; else tag nav > ul > li > Anchor | Native nav reads its items from a loop in the Loop Manager; edit the loop, not the markup. |
| Accordion / FAQ | Accordion native component (pattern) | Answers go in a slot. Prefer it over a hand-rolled details stack. |
| Tabs | None yet (marked planned in the docs) | Check docs and patterns first; otherwise a component with real button tabs and ARIA roles. |
| Slider | Carousel, Logo Carousel or Scroll Snap native component | Slides from a Loop when the content repeats. |
| Form | The form plugin's block (passed through untouched) or its shortcode in an etch/text node | No native form element. A hand-written form needs labels, a backend and spam protection. |
| Posts / CPT items | Loop: etch/loop ({#loop name as item}) | Ghost element, no DOM. Query in the Loop Manager (WP Query, terms, users, JSON); templates use the main query. |
| Conditional content | Condition: etch/condition ({#if …}) | Ghost element. No else branch and no inline fallbacks: write the negated condition as a second block. Not for defensive checks. |
| Reusable pattern | Component: etch/component; slots {@slot name} (etch/slot-placeholder, filled by etch/slot-content) | Content as props; variants as a select prop on a data-* attribute, not class names built from props. |
Before writing, look it up. When an element, attribute or block type is not in this table, read the Etch docs page, or check Kevin Geary's markup reference (https://github.com/kevingeary/gearyco-agentic-toolkit-for-etch), instead of guessing:
https://docs.etchwp.com/elements/: overview, section, container, div, text, heading, anchor, image, dynamic-image, svg, iframe, html, element (Dynamic Element)etch.styles.*, applied to blocks as classes). Nest states, variants and media queries inside the owning class. One managed style per real component, not one per rule.etch.stylesheets.*) hold only what is global by nature: @font-face, @keyframes, and the rare rule that must target DOM not represented by blocks. They are not tree-shaken and apply to every document. They persist immediately, unlike styles and blocks, which need a save.@keyframes never nest inside a component rule. They go in one global animations stylesheet; components only reference them.:root token sheet, a reset, or the structural :where([data-etch-element=…]) defaults. Etch and ACSS already provide them.to-rem().--empty-element-size: 0 on their class; Etch gives canvas elements a minimum size to stay clickable..feature-card, not .features__card; its children are .feature-card__title. A collection is .feature-list on a ul, not .features__grid.ul/li for collections, article for self-contained items, section > container > content as the default structure. Do not default every wrapper to div..pricing-section), not a generic helper (.section-pad).The pass rules themselves live in site-design. Etch-specific landing points:
| Pass | In Etch |
|---|---|
| Subtract | Remove declarations that restate Etch or ACSS defaults (container width, display:flex; flex-direction:column on containers and sections, list resets, link colors inside bg--* sections). Measure computed defaults first. Delete unused managed styles and dead plugin styles only after confirming zero block usage. |
| Spacing | Containers are already flex columns with a gap; a margin-block on a container's direct child doubles the spacing. Override the container's gap on its class instead. See the site-acss skill for gap tokens. |
| Color | Dark and light surfaces through the ACSS bg--* utility on the block. On a component definition, the utility is attached as a style reference (an empty managed style for that selector), because class attributes on definitions may be stripped. |
| Icons | Monochrome SVG icons inherit currentColor; strip fills only on monochrome marks, never on multi-color logos. Prefer inline SVG blocks over icon fonts. |
| Copy | Text lives in real blocks so the user can edit it in the builder. Never hardcode copy inside a script's innerHTML. Apply site-copy and the brand voice before writing any label, heading, form text or meta description. |
| Type | No font-size on headings or text unless deviating. Fonts: @font-face with weight ranges in one global stylesheet only; ACSS keeps the family variables. Remove duplicate face sources (WordPress Font Library, theme.json). |
| Layout | Grid on the parent when it owns the columns; mobile-first range queries nested inside the class. Etch's flex-column container default is not a reason to use flex; a class overrides the zero-specificity default. |
| Details | Buttons through ACSS btn--*. Header and footer usually live in templates; if several templates carry identical copies, a component instance per template avoids repeating every fix. |
| Motion | Keyframes in the global animations stylesheet; reduced-motion variants required. |
| Verify | On the rendered frontend, never in the builder (below). |
data-* attribute. Not one page-wide script blob.data-loader="3") so a reload proves which version ran, and self-host the assets; no third-party CDNs on production sites where privacy rules apply.Runtime.exceptionThrown, Log.entryAdded).document.fonts.check) and by identity: a wrong cut of the right family also "loads".site-verify.Patterns slop-lint (in the site-audit skill) could flag in Etch projects (scripts and exported CSS):
wp/v2/(pages|posts|templates|template-parts) with POST/PUT in agent scripts (wrong write path for Etch objects)etch.styles.(create|update|delete) or etch.blocks. calls in a script with no saveAsync after themetch.styles.update(<id>, '<string>') with a string second argument (the API expects an object such as { css })saveAsync in a script without a delay between themetch.blocks.*)@keyframes nested inside a class rule@media at the root of a component style instead of nestedrem/px outside to-rem() in managed styles&-- / &__ (Etch convention is flat BEM).section__card, __grid, __list element names for cards and collectionsinnerHTML\s*= with visible copy in widget scriptsdocument.querySelector writes in scripts targeting the builder canvas@font-face in more than one source; @font-face without a weight range for a variable fontcdn.jsdelivr.net, unpkg.com, fonts.googleapis.com) in production assetsetch/element with tag div and no class nested more than three levels deep (div soup)etch/element with tag img whose src points into /wp-content/uploads/ (should be etch/dynamic-image)etch/raw-html or a single etch/text holding static <h1-6>, <p>, <ul>, <img> or <a> markup that native elements could expressetch/element tag a with href="#" or no href (an action needs button); a top-level block whose tag is not section, header or footer; data-etch-element="flex-div"h2 then h4)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub tobiashaas/website-builder-toolkit --plugin website-builder-toolkit16 skills in this plugin
/site-accessibilityCheck a page, screen or component against WCAG 2.2 level AA, with AAA targets where the brand profile asks for them: contrast of the whole brand palette with the bundled script, an axe-core or Lighthouse scan, then a keyboard walk, a screen reader smoke test, zoom, reflow and reduced motion by hand. Use before handing over any page, when building forms, navigation, dialogs or motion, or when asked about accessibility, a11y, barrier-free, barrierefrei, WCAG, BFSG, European Accessibility Act, EAA, EN 301 549, contrast ratio, focus, screen reader, alt text, keyboard./site-acssApply the toolkit rules in projects that use Automatic.css (ACSS): map spacing, color, type, layout and motion to real ACSS tokens and utilities, never invent token names, use bg-- utilities for contextual color, grid-first mobile-first layout. Use whenever a project loads Automatic.css, in any builder./site-auditFind what makes a page, screen, carousel or text read as AI-generated or off-brand: run slop-lint, then walk the tell list on the rendered result and list every finding with where it lives. Use when reviewing agent-built UI or copy, before redesigning, when asked to unslop or de-slop, or when something looks generic, templated or vibe-coded. Triggers on purple gradients, gradient text, glows, emoji icons, sparkles, pill badges, centered heroes, three-card grids, greeting headlines, hype words, fake proof./site-brandCreate or update the brand profile (brand.md) that every toolkit skill and slop-lint read: colors, type, shape, imagery, motion stance, voice, banned words, facts with sources and claims never to make. Use when a project has no brand.md, when starting work for a new brand or client, when existing guidelines (brand guide, website, style sheets, docs) should become a profile, or when the user wants to define or update a voice or design language./site-bricksApply the toolkit rules on sites built with Bricks Builder: global classes, variables, palettes and theme styles instead of element literals, safe write paths, naming, verifying on the frontend, Bricks with or without Automatic.css. Use whenever an agent reads or writes a Bricks site./site-copyWrite or rewrite copy in a brand's voice without AI tells: headlines, body, UI labels, empty and error states, dashboards, social posts and carousels, in German or English. Uses only facts from the brand profile, never invents numbers, customers or promises. Use whenever text is written or changed, when copy sounds generic, hyped or machine-written, or when applying a voice or tone guide.