web-components-conventions

Official

Enforce consistent web-component conventions.

AuthorNosto
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Web components often suffer from inconsistent conventions across projects, making maintenance and collaboration harder.

Core Features & Use Cases

  • Use nosto- prefix for custom element tags to avoid conflicts
  • Register classes via the customElement decorator for reliable registration
  • Define attributes via the @property(...) decorator; attribute names derive from property names and map to kebab-case
  • Prefer connectedCallback and disconnectedCallback lifecycle methods
  • Use private instance methods (#) for element instance logic
  • Use module-level functions for pure logic
  • Include HTMLElementTagNameMap declaration for TypeScript JSX support

Quick Start

Apply these conventions to all files under src/components to ensure consistency.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: web-components-conventions
Download link: https://github.com/Nosto/web-components/archive/main.zip#web-components-conventions

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.