/etchwp:html-generationfrom etchwp
Generates semantic HTML for Etch components with BEM classes and ACSS-aware class output. Handles element selection, heading hierarchy, placeholder content, accessibility attributes, and image performance.
Ships in etchwp. 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.
Produces semantic HTML output for Etch components. Class output follows the canonical Class Convention in etch-conventions: BEM names everything, ACSS styles when present.
Before generating, read the ACSS mode from .etch-components/config.json (established by the acss-detection skill — run it if the file or acss key is missing):
@${CLAUDE_PLUGIN_ROOT}/skills/css-generation/references/acss-classes.md first, then grep docs/automaticcss-docs.md (full ACSS 4.x docs — the authority) and add the confirmed class to the reference file. A class you cannot confirm in either file does not exist — never invent one. BEM hook comes first in the class attribute: class="pricing-table__grid grid--3 gap--m".This skill generates component HTML. It is responsible for:
<section>, <article>, <nav>, <header>, <footer>)aria-label on landmarks, alt on images, role where neededloading="lazy" decoding="async" on images (loading="eager" for hero images)When generating HTML for a component:
Select based on component type:
hero, features, testimonials, pricing, cta, custom → <section>header → <header>footer → <footer><article>Always add aria-label with a descriptive label derived from the component description.
The component name in kebab-case becomes the block class on the outer element:
<section class="pricing-table" aria-label="Pricing plans">
ACSS mode ON: add section-level utilities here when needed (e.g. section padding variants from acss-classes.md). ACSS mode OFF: this stays the only class.
Nest a <div class="{block}__container"> inside the outer element. This div constrains content width. In Etch output paths the Section/Container pair already carries Etch's default layout — do not add width/padding utilities that duplicate it.
<section class="pricing-table" aria-label="Pricing plans">
<div class="pricing-table__container">
...
</div>
</section>
| Content | HTML | BEM class | Typical ACSS utilities (mode ON) |
|---|---|---|---|
| Main heading (hero) | <h1> | {block}__heading | — |
| Main heading (non-hero) | <h2> | {block}__heading | — |
| Subheading | <p> | {block}__subheading | — |
| Body text | <p> | {block}__text | — |
| Primary CTA | <a href="#"> | {block}__cta | btn--primary (+ size variant) |
| Secondary CTA | <a href="#"> | {block}__cta-secondary | btn--outline or none (text link) |
| Unordered list | <ul role="list"> | {block}__list | gap utilities |
| List item | <li> | {block}__item | — |
| Image | <img> | {block}__image | width utilities if needed |
| Icon (SVG) | <svg aria-hidden="true"> | {block}__icon | — |
| Card/item wrapper | <article> or <div> | {block}__card / {block}__item | padding utilities |
| Grid wrapper | <div> or <ul role="list"> | {block}__grid / {block}__list | grid--* + gap--* (see etch-conventions/references/grid-system.md) |
| Actions wrapper | <div> | {block}__actions | flex + gap utilities |
The utilities column is indicative — always resolve the actual class names against acss-classes.md. ACSS mode OFF: the utilities column does not apply.
Infer content from the component name and description:
Headings: Use contextual text appropriate to the section type:
Images: Always use https://placehold.co/{width}x{height} URLs with dimensions appropriate to context:
https://placehold.co/1920x1080<svg> placeholders with aria-hidden="true" (not img)https://placehold.co/64x64https://placehold.co/600x400https://placehold.co/120x40Pricing: Use realistic tiers — Starter $19/mo, Pro $49/mo, Enterprise Custom
Testimonials: Use realistic names and roles — Jane Doe, CEO at Acme Corp; John Smith, Marketing Director at Example Inc; Sarah Wilson, Product Manager at Tech Co
Repeating items: Claude decides item count per section type based on what looks complete for that layout (typically 3 for features, testimonials, pricing; 4 nav columns in footer)
<section>, <nav>, <header>, <footer> must have aria-label<img> elements must have descriptive alt text (empty alt="" for decorative images)<img> elements must have loading="lazy" decoding="async" width="{w}" height="{h}" (hero images use loading="eager")role="list" on <ul>aria-label with full text ("19 dollars per month")aria-expanded, aria-controls, aria-labelaria-hidden="true" and hidden attributearia-hidden="true"acss-classes.md — an unverifiable class is a generation error; fix before shipping.<svg> elements with placeholder paths for icons, not <etch:svg /> (which is builder-specific, not valid in standalone HTML).For complete HTML templates per section type, read @${CLAUDE_PLUGIN_ROOT}/skills/etch-conventions/references/section-patterns.md.
Templates show the exact BEM class structure, semantic elements, and accessibility attributes for each of the 7 section types: hero, features grid, testimonials, pricing, CTA, footer, and header/navigation.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
html-generation, semantic-html, bem, acss, etch-components, accessibility
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-connectorOther plugins' skills for the same job