Dev & Engineering

React Component Conversion Expert

Migrate legacy styled-components to Emotion's css prop pattern with step-by-step guidance.

47/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 1.7k
Last updated
3d ago
License
NOASSERTION
reactemotiontypescriptmigration
+2refactoringcss-in-js

What does this skill do, and when should you use it?

This skill converts React components using @emotion/styled or styled-components to BBC Simorgh's coding standard using Emotion's css prop pattern. It provides a step-by-step guide covering dependency audit, style conversion, TypeScript migration, and linting, with code examples and best practices. Ideal for teams aiming to standardize their React codebase.

Analyzes React component files, detects styled-components usage. Runs a pre-conversion checklist to find missing dependencies. Converts styled components to css() functions in index.styles.ts files, handling theme, media queries, and pixel-to-rem. Transforms .jsx to .tsx, adding type definitions, event handlers, and conditional props. Finally, runs yarn lint --fix and yarn prettier commands.

Good fit
  • Developers migrating React components from styled-components to Emotion css prop
  • Teams enforcing a single styling pattern across a codebase
  • Developers converting JavaScript components to TypeScript with proper typing
  • Projects needing logical CSS properties for RTL support

How do you install this skill?

Before you use it
  • Skill is static documentation, no tests or verification; verify conversion results yourself.
  • No mention of dependency on overseas services; if core functionality depends on unreachable services, mainland users may be affected.
  • Recommend code review and backup before conversion to mitigate risk.
Before you start
Your agent needs
  • Shell / CLI
  • Local filesystem
Install first
  • Node.js
  • Yarn

Clone the repository; the skill is located at .github/skills/convert-webcore-component/SKILL.md. Copy it to your agent skills directory (e.g., ~/.claude/skills/) for use. Requires Node.js and Yarn.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/bbc/simorgh.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/.github/skills/convert-webcore-component" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • Convert this Button component to Simorgh style, file at src/components/Button.jsx

Provide the component file path or code to the AI, then ask to convert it. The AI follows the skill's steps: check dependencies, convert styles and types, then run lint and prettier. Example prompt: 'Convert this Button component to Simorgh style, file at src/components/Button.jsx'.

What are this skill's strengths and limitations?

Pros
  • Detailed step-by-step guidance with code examples
  • Promotes logical CSS properties and mobile-first queries for internationalization
  • Includes TypeScript best practices and common pitfalls
  • Pre-conversion checklist prevents missing dependencies
Limitations
  • Limited to React + Emotion projects, not generic
  • No automated tests; relies on AI correct execution
  • Requires familiarity with React and TypeScript
  • No rollback or verification steps

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
React Component Conversion Expert this page 47 · Use with care ★ 1.7k 3d ago NOASSERTION
Code Clarity Refactor 57 · Use with care ★ 103k 8d ago MIT
Frontend Conventions Skill 50 · Use with care ★ 5.2k 3d ago Apache-2.0
OpenChamber Change Discipline 52 · Use with care ★ 11k 3d ago MIT
React Flow Node Builder ✓ Microsoft · Official 52 · Use with care ★ 2.7k 3mo ago MIT

Compared to using styled-components directly or using Emotion's css prop without a standard, this skill enforces consistency. No specific alternatives like Material-UI are mentioned.

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
47/ 100 5-point scale 2.4 / 5
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
1Trust12 / 25 · 2.4/5

The skill is mainly code conversion guidance, no sensitive data handling or external network access, no malicious intent. However, it does not mention least privilege, user confirmation, rollback, or verifiable source attribution. Hence conservative 12.

2Reliability5 / 20 · 1.3/5

Document provides detailed steps and examples but lacks tests or verification, and static review cannot execute. No error handling or failure feedback mentioned. Give 5.

3Adaptability10 / 15 · 3.3/5

Clear scenario (webcore to Simorgh) and audience, but boundaries and trigger conditions not explicit. Potential overseas service dependency for mainland users not addressed. Give 10.

4Convention9 / 15 · 3.0/5

Well-structured with steps and examples, but lacks versioning, changelog, maintenance responsibility, and install dependencies. Give 9.

5Effectiveness7 / 15 · 2.3/5

Provides clear conversion guide, likely completes core task, but no output validation, and manual conversion may be more flexible, marginal value not proven. Give 7.

6Verifiability4 / 10 · 2.0/5

Only static reading possible, no execution. References given but no independent verification. Give 4.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Aug 07, 2026 Reviewed revision 9530e9ef9829 Review evidence[1][2][3][4][5][6][7][8]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

Does this skill support other styling libraries?
No, it only handles conversion from @emotion/styled and styled-components, not other libraries.
Will it automatically install missing dependencies?
No. The skill requires auditing dependencies first and stops if any are missing, requesting they be imported first.
Do I need to manually review the converted code?
Yes, you should run lint and prettier, but there are no automated tests. Manual review is recommended.
Does this skill require network access?
No, only local file operations and running yarn commands.

More skills from this repository

All from bbc/simorgh

Related skills