css-specificity
Installation
SKILL.md
CSS Specificity Analyzer
Analyze CSS files for specificity issues, detect conflicts between rules, and suggest concrete improvements. Conservative approach: report and suggest, never auto-apply changes.
Workflow
- Locate
.cssfiles in the project using Glob (**/*.css) - Run the analyzer script on discovered files:
python3 <skill_dir>/scripts/css_specificity_analyzer.py <file_or_dir> --json - Parse the JSON output
- Present findings grouped by severity (errors first, then warnings)
- For each issue, show the selector, line number, current specificity, and a concrete suggestion
- Wait for user approval before applying any changes