Agent skill

styled-jsx-migrate

Migrate a component from plain CSS/CSS Modules/other CSS-in-JS to styled-jsx while preserving behavior, accessibility, and SSR compatibility.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/styled-jsx-migrate

SKILL.md

styled-jsx Migration Skill

Migrate styles safely to styled-jsx.

Steps

  1. Identify current selectors, states, and variants.
  2. Map to styled-jsx:
    • scoped styles:
    • global escapes: with narrow selectors
    • dynamic values: CSS vars or class toggling
  3. Remove dead selectors and reduce specificity.
  4. Ensure the component remains accessible (roles/labels/focus styles).
  5. Update tests/stories accordingly.

Output expectations

  • Provide:
    • Proposed refactor plan
    • New file structure and minimal diff summary
    • Test plan and any risks

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results