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.
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
- Prefer passing props/variants to the child first.
- If the child is third-party or cannot be changed, prefer :global(...) in a narrow way.
- 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).
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?