Frontend Web Components

Use this skill when the user says 'web component', 'custom element', 'shadow DOM', 'HTML template', 'CustomElementsRegistry', 'ElementInternals', 'form-associated element', 'cross-framework component', 'vanilla web component'. This skill enforces: custom element lifecycle methods, shadow DOM for style encapsulation, <slot> and <template> patterns, ElementInternals for form participation, and attribute/property reflection for cross-framework compatibility. Requires no specific framework — works in any web project. Do NOT use for: Lit-specific components, framework-specific components (React/Vue/Angular), or projects that should use a library-based approach.

j4flmao Updated

File contents

j4flmao/agent-skills/tree/main/skills/frontend/universal/web-components commit 3a1a7802e5

Frequently asked questions

npx skillmds@latest add j4flmao/frontend-web-components