/consolidate
Merge and consolidate duplicate CSS rules and redundant stylesheets.
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/consolidate
Context preview
What this command does when you run it.
Merge and consolidate duplicate CSS rules and redundant stylesheets.
Command definition
consolidate.md/consolidate - Consolidate CSS
Merge and consolidate duplicate CSS rules and redundant stylesheets.
Steps
1. Parse all CSS files and build a map of all rules and their properties 2. Identify duplicate selectors with identical property declarations 3. Find selectors with overlapping properties that can be merged 4. Detect redundant property declarations overridden by later rules 5. Identify opportunities to use CSS custom properties for repeated values 6. Find color values that differ by less than 5% and could be unified 7. Consolidate media queries by grouping same-breakpoint rules together 8. Merge small single-purpose CSS files into logical module files 9. Extract common patterns into utility classes or mixins 10. Verify the consolidated CSS produces identical rendered output 11. Run visual regression tests if available to catch rendering changes 12. Report: files merged, rules consolidated, size reduction percentage
Rules
- Never change the visual output; consolidation must be invisible to users
- Preserve CSS specificity order when merging selectors
- Keep CSS module boundaries intact; do not merge across component scopes
- Convert repeated magic numbers to CSS custom properties
- Maintain source maps for debugging after consolidation
- Process one logical group at a time for safe incremental changes
- Test in multiple browsers after consolidation
The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.
Repo: rohitg00/awesome-claude-code-toolkit
Other commands on rohitg00-claude-code-toolkit.
- /adr
Write an Architecture Decision Record documenting a significant technical decision.
Open command - /design-review
Conduct a structured design review of a module, feature, or system component.
Open command - /diagram
Generate Mermaid diagrams from codebase analysis or description.
Open command - /migrate
Plan and execute a framework or library migration incrementally.
Open command - /plan
Create a structured implementation plan for the requested feature or change.
Open command - /refactor
Perform a systematic refactoring of the specified code area.
Open command

