Agent skill

styled-jsx-resolve

Use styled-jsx/css resolve to style nested child components from a parent while preserving encapsulation. Use when you need to target a child component’s className from a parent.

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-resolve

SKILL.md

styled-jsx resolve Skill

When a parent must style nested child components without leaking global CSS, use styled-jsx/css "resolve".

Rules

  1. Prefer passing props/variants to the child first.
  2. If the child is third-party or cannot be changed, prefer :global(...) in a narrow way.
  3. Use resolve only when it materially improves scoping and maintainability.

Output expectations

  • Show the parent code using resolve tags from styled-jsx/css.
  • Clearly indicate the scope class returned by resolve and where it is applied.
  • Add a brief test or story demonstrating the styling effect (as feasible).

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