frontend-components

adigunners 的头像作者 adigunners

纯JavaScript和HTML的UI组件最佳实践。在创建或修改HTML元素、构建可重用JavaScript模块或结构化DOM组件时使用此技能。在处理.html文件、管理UI状态或渲染的js/ JavaScript模块或创建模块化、可重用UI模式时应用。

📖 中文导读:纯JavaScript和HTML的UI组件最佳实践。在创建或修改HTML元素、构建可重用JavaScript模块或结构化DOM组件时使用此技能。在处理.html文件、管理UI状态或渲染的js/ JavaScript模块或创建模块化、可重用UI模式时应用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: Frontend Components description: 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.

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