What problem does it solve? Writing CSS that stays maintainable as a codebase grows is hard: specificity wars, reactive !important, margin chaos, and dead selectors accumulate quickly. This Skill provides architectural principles, decision trees, and refactoring workflows so stylesheets remain predictable, accessible, and easy to change. ## Core Features & Use Cases - Specificity and Cascade Management: Rules for avoiding ID selectors, using self-chaining and attribute selectors, applying cascade layers correctly, and reserving !important for immutable utilities or documented external boundaries. - Units, Margins, and Layout Guidance: A rem vs px decision framework, single-direction margin patterns, margin collapse rules, and layout algorithm awareness across Flow, Flexbox, and Grid. - Refactoring and Dead Code Detection: The Three I's refactoring workflow (Identify, Isolate, Implement), beacon-based dead CSS detection, and code smell reference tables. - Use Case: When building a new component library, consult the patterns reference to structure classes with single responsibility, keep components margin-free, and define spacing scales with CSS custom properties. ## Quick Start Use the css skill to review my stylesheet and refactor it following specificity, units, and margin best practices.