What problem does it solve?
This Skill identifies and resolves inconsistent frontend styling across pages, reducing duplicated CSS, mismatched component dimensions, scattered hardcoded values, and visual layout shifts.
Core Features & Use Cases
- Style Reuse Governance: Detects identical or highly similar style blocks across pages and recommends extracting them into shared CSS or reusable components.
- Component Alignment: Compares buttons, tabs, inputs, tags, list items, cards, and fixed-height containers across pages, then proposes consistent size tiers and design tokens.
- Hardcoded Value Migration: Finds raw colors, dimensions, typography values, radii, and shadows and maps them to SCSS or CSS variables.
- Uniapp-Aware Auditing: Normalizes rpx values correctly without applying inappropriate pixel-grid checks.
- Safe Refactoring: Defaults to report-only auditing, provides dry-run diffs, preserves business logic, and requires confirmation before applying changes.
- Use Case: When buttons, tabs, and cards have different dimensions across a uniapp project, use this Skill to generate a governance report and consolidate the styles into shared tokens and public styles.
Quick Start
Ask the AI to audit the current project for duplicated styles, component inconsistencies, and hardcoded values, then write the governance report to the project's docs directory.