What problem does it solve?
This Skill solves the problem of outdated, inconsistent JavaScript patterns in makeup-js modules that reduce code maintainability, hinder performance, and create friction for contributors.
Core Features & Use Cases
- End-to-end module modernization: Guides refactoring of source code, unit tests, and README documentation for any core or UI module in the makeup-js monorepo.
- Strict API preservation: Includes guardrails to prevent breaking changes to public functions, classes, events, and options during refactoring.
- Modern pattern adoption: Identifies opportunities to replace deprecated APIs (like keyCode), legacy syntax (like var and Object.assign), and verbose patterns with readable ES+ equivalents.
- Use Case: For example, use this Skill to modernize the makeup-roving-tabindex module by replacing keyCode with KeyboardEvent.key, converting Object.assign calls to spread syntax, and updating tests to use modern mocking without altering its public behavior.
Quick Start
Use the refactor-module skill to modernize the makeup-next-id core module to current JavaScript patterns while preserving its existing public API and test compatibility.