About design-system-generalizer
design-system-generalizer is a project skill for comparing routes against a chosen golden reference. It helps teams identify design-token and component-reuse drift and plan incremental migration changes.
Key features
- 01Scans patterns on a reference route
- 02Diffs violations between routes
- 03Checks for hex colors and missing route files
Use cases
- 01Comparing routes with a golden reference
- 02Finding token or component reuse drift
- 03Planning incremental migration PRs
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ heyeddi-com/ heyeddi-skills --skill design-system-generalizerAfter installing, type/design-system-generalizerin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
manifest.jsoncontext/ANTI_PATTERNS.mdEXAMPLES.mdPROSE_ANTI_SLOP.mdVOCABULARY.mdscripts/_skill_cli.pydiff_violations.pyscan_patterns.pyDetails
From the project READMEDesign 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.
Comments
Markdown supported