refactor-html
CommunityModernize React/TSX with UI components.
Authoryahsan2
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill streamlines the process of updating React/TSX codebases by ensuring consistency with project standards, improving maintainability, and enhancing user interface quality.
Core Features & Use Cases
- Component Integration: Replaces raw HTML with pre-defined UI components from
packages/ui/src/components/ui/. - Semantic Coloring: Migrates primitive Tailwind color classes to semantic DaisyUI color tokens for better theming.
- Style Extraction: Identifies and suggests the extraction of repetitive styling patterns into reusable components.
- Use Case: Refactor a legacy React page component that uses many raw
divandbuttonelements with custom Tailwind classes into a version that utilizes the project'sButtonandAlertcomponents, applying semantic colors liketext-errorinstead oftext-red-500.
Quick Start
Refactor the provided React component to use existing UI components and semantic DaisyUI colors.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: refactor-html Download link: https://github.com/yahsan2/static-admin/archive/main.zip#refactor-html Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.