auto-class

Assign semantic class names to HTML tags using underscore-connected identifiers.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/yoshida55/skills --skill auto-class
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auto-class
Source: https://github.com/yoshida55/skills/tree/main/auto-class
Command: npx skills add https://github.com/yoshida55/skills --skill auto-class

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the tedious process of assigning meaningful and consistent class names to HTML tags, improving code readability and maintainability.

Core Features & Use Cases

  • Automatic Class Naming: Generates class names based on HTML structure and semantic meaning.
  • Naming Convention Enforcement: Adheres to strict rules for clarity and consistency (e.g., section_element, section_element_detail).
  • Use Case: You have a block of HTML and need to quickly add semantic class names for CSS styling. This Skill will analyze the HTML and output the same structure with appropriate class names applied.

Quick Start

Apply the auto-class skill to the selected HTML code.

Frequently Asked Questions about auto-class

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically generate semantic class names for my HTML structure?

To automatically generate semantic class names for HTML structure, this Skill analyzes your HTML tags based on their content and structure, then outputs the same HTML with appropriate class names applied. It ensures code readability and maintainability without manual naming effort.

What is the naming convention enforced for HTML class generation?

The naming convention for HTML class generation enforces two-word or three-word identifiers connected by underscores, such as section_element or section_element_detail. It strictly avoids abbreviations and sequential numbering to maintain clear, consistent semantic meaning.

Can I use this to validate HTML structure and suggest semantic tag replacements?

Yes, you can use this to validate HTML structure and suggest semantic tag replacements. The Skill analyzes your provided HTML code to ensure correct structural formatting while simultaneously assigning semantic class names to your tags.

What is the best way to add consistent CSS class names to a block of HTML?

The best way to add consistent CSS class names to a block of HTML is applying this Skill to your selected code. It analyzes the HTML structure and content to automatically output the same block with strict, semantic naming conventions applied for frontend development.

Does this Skill support generating three-word class names for detailed HTML elements?

Yes, this Skill supports generating three-word class names for detailed HTML elements, although it prefers two-word identifiers. It connects these identifiers using underscores to enforce strict naming conventions without abbreviations for frontend development.