Anti-Frankenstein CSS Governance

0•

Prevents fragmented and unmaintainable CSS by enforcing governance standards and identifying styling anti-patterns before code reviews.

The Anti-Frankenstein skill acts as a specialized governance checkpoint for frontend developers to ensure CSS maintainability and consistency. It focuses on eliminating 'Frankenstein CSS'—codebases plagued by hardcoded values, inline styles, and specificity hacks that make scaling difficult. By providing automated detection patterns for hex colors, unauthorized !important flags, and misplaced keyframes, this skill helps teams adhere to design system variables and BEM methodology. It is particularly useful during pre-PR checks to ensure that new styles align with the existing architectural standards of the project.

Key Features

01Identifies unauthorized inline styles in both HTML and JSX components
02Provides quick-check grep commands for rapid architectural audits
03Detects hardcoded hex and RGBA colors to enforce variable usage
040 GitHub stars
05Flags improper use of !important to prevent specificity conflicts
06Audits font-family and keyframe declarations for global consistency

Use Cases

01Refactoring legacy codebases to replace hardcoded values with design system variables
02Pre-Pull Request checks to catch styling anti-patterns before they reach production
03Standardizing frontend contributions across distributed development teams