design-system-generalizer
Installation
SKILL.md
Design System Generalizer
When to use
- One route is the "golden" reference (e.g. /settings)
- Other routes drift from tokens or component reuse
- Planning incremental migration PRs
Instructions
python scripts/scan_patterns.py --route /golden --project-root <root>python scripts/diff_violations.py --golden /golden --target /other --project-root <root>- Use
--checkon diff to exit non-zero when target has hex colors or missing route files. - Propose small PRs: never whole-app rewrite in one shot.