frontend-components

UI component best practices for vanilla JavaScript and HTML. Use this skill when creating or modifying HTML elements, building reusable JavaScript modules, or structuring DOM components in this static website. Apply when working on .html files, JavaScript modules in js/ that manage UI state or rendering, or when creating modular, reusable UI patterns.

⭐2stars🔀0forks📁View on GitHub🕐Updated Jan 3, 2026

When & Why to Use This Skill

This Claude skill provides comprehensive guidance on frontend component architecture using vanilla JavaScript and HTML. It focuses on implementing modular, reusable UI patterns and structured DOM manipulation to ensure high-quality, maintainable code in static web environments without the overhead of heavy frameworks.

Use Cases

  • Refactoring monolithic HTML structures into smaller, reusable sections to improve project scalability and readability.
  • Developing state-managed JavaScript modules for complex UI elements such as interactive leaderboards, data tables, and countdown timers.
  • Establishing single-responsibility patterns for DOM manipulation logic to ensure clean interfaces and easier debugging.
  • Creating a library of composable and configurable UI components that can be easily integrated across multiple static web pages.
  • Standardizing frontend coding practices for vanilla JS projects to maintain consistency in UI rendering and state management.
nameFrontend Components

When to use this skill

  • When creating or modifying HTML structure in index.html, winners.html, or other pages
  • When building JavaScript modules that manage UI components (ui-module.js, ui-manager.js, winners-module.js)
  • When implementing reusable UI patterns like leaderboards, countdown timers, or data tables
  • When structuring DOM manipulation logic with single responsibility and clear interfaces
  • When creating modular JavaScript components with configurable options
  • When building composable UI elements that combine smaller components
  • When refactoring monolithic HTML into smaller, reusable sections

Frontend Components

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle frontend components.

Instructions

For details, refer to the information provided in this file: frontend components