/etchwp:section runs instead · from etchwp
Generates paste-into-Etch section markup via the etchwp pipeline, adding data-etch-element and data-etch-context. Uses BEM naming and ACSS utilities, no stylesheet. For building sections in the Etch WordPress builder.
This skill never runs in Claude Code
It ships in etchwp at skills/, but /etchwp:section (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Produces paste-into-Etch section markup. This skill does not re-implement component
generation — it orchestrates the rest of the etchwp plugin and then adds the Etch-builder
metadata that etchwp deliberately strips. Output is a single HTML block the user can paste
straight into the Etch builder, where it shows up as a properly named Section > Container
layer tree.
data-etch-element + base64 data-etch-context on the <section> and its Container
<div> only (never on inner elements).Section Hero, Container).Section > Container. Content nests inside the Container.class="<block>__<elem> <acss-utilities>". Block is always
<kebab-purpose>-section (e.g. hero → hero-section, pricing → pricing-section). The
root <section> carries the bare block (hero-section); every structural element below it
MUST carry its own readable <block>__<elem> class — the Container (hero-section__container),
every wrapper (__header, __body, __footer, __grid), and every leaf (__heading,
__eyebrow, __cta). No structural element ships ACSS-only without a BEM hook. Elements stay
flat (__header, never __header__title); the suffix matches the element's role. Never invent
ACSS class names — look them up in the etchwp acss-classes.md catalog.<style>.This skill lives inside the etchwp plugin and reads its sibling skills directly:
${CLAUDE_PLUGIN_ROOT}/commands/generate.md
${CLAUDE_PLUGIN_ROOT}/skills/html-generation/SKILL.md
${CLAUDE_PLUGIN_ROOT}/skills/etch-conventions/SKILL.md
${CLAUDE_PLUGIN_ROOT}/skills/css-generation/references/acss-classes.md
${CLAUDE_PLUGIN_ROOT}/skills/css-generation/references/acss-tokens.md
${CLAUDE_PLUGIN_ROOT}/skills/etch-conventions/references/section-patterns.md
Follow the etchwp generation pipeline (${CLAUDE_PLUGIN_ROOT}/commands/generate.md +
${CLAUDE_PLUGIN_ROOT}/skills/html-generation, ${CLAUDE_PLUGIN_ROOT}/skills/etch-conventions)
for the requested section, with these constraints:
${CLAUDE_PLUGIN_ROOT}/skills/css-generation/references/acss-classes.md; reference
tokens from ${CLAUDE_PLUGIN_ROOT}/skills/css-generation/references/acss-tokens.md. Never guess
a class.components/<name>/ unless the user passed
--save, and the registry entry is created here (step 5) with files: {} when no files exist.Section > Container > content structure, flat BEM, and accessibility defaults
(aria-label on the section, one <h1> only for a page hero else <h2>, sequential headings,
alt/loading/decoding/width/height on images, aria-hidden="true" on icon SVGs).--site <path> is given, or a site HTML/CSS file is open, scan it for fonts: <link href="…fonts.googleapis…">, @font-face, or --*-font CSS variables. Map to
heading / body / mono roles.@font-face or <style> block. If the fonts aren't already loaded on the site and a
<link>/@font-face is genuinely required, ask the user first.Generate the two attribute strings with the bundled helper (handles base64 + unique refs
deterministically — this is the only error-prone part). The helper lives at
${CLAUDE_PLUGIN_ROOT}/skills/section/scripts/etch-attrs.ts:
bun ${CLAUDE_PLUGIN_ROOT}/skills/section/scripts/etch-attrs.ts '[{"element":"section","name":"Section <Role>"},{"element":"container","name":"Container"}]'
It prints one line per element, e.g.:
data-etch-element="section" data-etch-context="<base64>"
data-etch-element="container" data-etch-context="<base64>"
Insert the first line's attributes into the root <section> tag and the second into the
Container <div class="…__container"> tag. Choose a meaningful Section <Role> name (e.g.
Section Hero, Section Pricing); the Container is named Container.
Manual fallback (if Bun is unavailable): for each element build the compact JSON
{"name":"<name>","structureState":"open","ref":"<ref>"} with exactly that key order and no
spaces, where <ref> is a fresh 7-char [a-z0-9] id unique within the document, then base64-
encode the UTF-8 bytes. (Verified: {"name":"Section","structureState":"open","ref":"evm5ug8"} →
eyJuYW1lIjoiU2VjdGlvbiIsInN0cnVjdHVyZVN0YXRlIjoib3BlbiIsInJlZiI6ImV2bTV1ZzgifQ==.)
--save <file> is given, also write it there..etch-components/registry.json using the etchwp
persistence skill at ${CLAUDE_PLUGIN_ROOT}/skills/persistence/SKILL.md (reuse it — do not
hand-roll registry writes). Without --save this section has no local files: register it with
files: {} rather than inventing components/<name>/… paths.<section data-etch-element="section" data-etch-context="<base64 name:Section Hero>"
class="hero-section section--l" aria-label="Open positions">
<div data-etch-element="container" data-etch-context="<base64 name:Container>"
class="hero-section__container">
<div class="hero-section__header gap--s">
<span class="hero-section__eyebrow text--primary">Career opportunities</span>
<h1 class="hero-section__heading">Build a career that means something.</h1>
</div>
<a class="hero-section__cta btn--primary btn--l" href="#positions">See the positions</a>
</div>
</section>
Only <section> and the Container <div> carry data-etch-*. Block is <purpose>-section; every
structural element below carries a readable <block>__<elem> BEM class plus ACSS utilities.
Fonts come through ACSS font utilities/tokens — no hardcoded families, no stylesheet.
Every ACSS class above is real; treat the example as a shape, not a class list — resolve the
actual utilities for your section against acss-classes.md (then the full ACSS docs) each time.
Note the Container carries no width/padding utility: Etch's Section > Container already applies
content width and gutter.
data-etch-element (section, container); no inner element has
data-etch-context.data-etch-context base64-decodes to valid JSON {name, structureState:"open", ref} with a 7-char ref; the two refs differ.<style>/.css emitted (unless the user explicitly approved CSS).acss-classes.md — or, failing that, in
docs/automaticcss-docs.md (and then added to acss-classes.md). No invented classes.<kebab-purpose>-section, and every structural element (section, container,
wrappers, leaves) carries a readable <block>__<elem> BEM class — no element is ACSS-only..etch-components/registry.json.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub flyingwebie/skills --plugin etchwp9 skills in this plugin
/acss-detectionDetects whether AutomaticCSS (ACSS) is installed for the current project/site and persists the result as the project's ACSS mode. When ACSS is present, generation is FORCED to use ACSS tokens and utility classes. Run before any generation when .etch-components/config.json is missing or has no acss key, and re-run when a new site/tab connects via the Etch Connector.
/css-generationGenerates BEM-scoped CSS with ACSS custom property references for Etch components. Uses &__/&-- stemming compatible with Etch CSS panel. ACSS mode ON: hard gate -- every design value a verified ACSS token, custom CSS only where no utility exists. ACSS mode OFF: local custom-property fallback. Container queries via :has(> &) pattern.
/etch-connectorTransport layer for driving a live Etch builder tab through the Etch Connector CLI (@digital-gravy/etch-connector). Owns the connection lifecycle, the eval contract, persistence (saveAsync) rules, exit-code handling, and the post-push verification loop. Never decides what markup/classes to build -- it receives output from the generation skills and maps it to etch.* API calls. Used by /etch and /library's push action.
/etch-conventionsEtch best practices for component generation. Encodes Section > Container hierarchy, AutoBEM naming alignment, container-query responsive approach, and accessibility defaults. Consult this skill before generating any HTML, CSS, or JS for Etch components.
/etchwpBuild accessible Etch and AutomaticCSS components in Codex, either through a connected Etch builder or as paste-ready sections and standalone files./html-generationGenerates semantic HTML for Etch components. Handles element mapping, landmark selection, heading hierarchy, placeholder content, and accessibility attributes. Class output is ACSS-mode-aware: BEM hooks always; ACSS utility classes added when AutomaticCSS is detected, BEM-only markup (styling in CSS) when it is not.
Other plugins' skills for the same job