ui-component-migrator

Migrate UI components between frameworks with structure, state, and style transformation

509 stars

Best use case

ui-component-migrator is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Migrate UI components between frameworks with structure, state, and style transformation

Teams using ui-component-migrator should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/ui-component-migrator/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/code-migration-modernization/skills/ui-component-migrator/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/ui-component-migrator/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How ui-component-migrator Compares

Feature / Agentui-component-migratorStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Migrate UI components between frameworks with structure, state, and style transformation

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# UI Component Migrator Skill

Migrates UI components between different frameworks, handling structure translation, state management conversion, and style migration.

## Purpose

Enable UI framework migration for:
- Component structure translation
- State management migration
- Lifecycle method conversion
- Event handling transformation
- Style migration

## Capabilities

### 1. Component Structure Translation
- Convert component syntax
- Transform templates
- Migrate component props
- Handle slots/children

### 2. State Management Migration
- Convert local state
- Migrate global state (Redux/Vuex/etc)
- Transform state updates
- Handle computed properties

### 3. Lifecycle Method Conversion
- Map lifecycle methods
- Convert to hooks/composition API
- Handle initialization
- Transform cleanup logic

### 4. Event Handling Transformation
- Convert event bindings
- Transform handlers
- Migrate custom events
- Handle event modifiers

### 5. Style Migration
- Convert CSS-in-JS
- Migrate scoped styles
- Transform CSS modules
- Handle theme systems

### 6. Test Migration
- Convert component tests
- Update test utilities
- Transform mocking
- Migrate snapshots

## Tool Integrations

| Migration Path | Tools | Integration Method |
|---------------|-------|-------------------|
| React -> Vue | Custom transformers | AST |
| Vue -> React | Custom transformers | AST |
| Angular -> React | Custom transformers | AST |
| Class -> Hooks | React codemods | CLI |
| Options -> Composition | Vue codemods | CLI |

## Output Schema

```json
{
  "migrationId": "string",
  "timestamp": "ISO8601",
  "source": {
    "framework": "string",
    "version": "string"
  },
  "target": {
    "framework": "string",
    "version": "string"
  },
  "components": [
    {
      "sourcePath": "string",
      "targetPath": "string",
      "status": "migrated|partial|failed",
      "transformations": [],
      "manualSteps": []
    }
  ],
  "summary": {
    "total": "number",
    "migrated": "number",
    "partial": "number",
    "failed": "number"
  }
}
```

## Integration with Migration Processes

- **ui-framework-migration**: Primary migration tool
- **framework-upgrade**: Internal framework upgrades

## Related Skills

- `codemod-executor`: Transformation execution
- `framework-compatibility-checker`: Compatibility analysis

## Related Agents

- `framework-upgrade-specialist`: Orchestrates UI migration

Related Skills

styled-components

509
from a5c-ai/babysitter

Styled Components theming, variants, SSR support, and patterns.

react-server-components

509
from a5c-ai/babysitter

React Server Components patterns including streaming, data fetching, client/server component composition, and performance optimization.

component-inventory

509
from a5c-ai/babysitter

Audit and inventory existing UI components in a codebase

qt-qml-component-generator

509
from a5c-ai/babysitter

Generate QML components with proper property bindings, signal/slot connections, and Qt Quick Controls integration

logging-migrator

509
from a5c-ai/babysitter

Migrate logging infrastructure with format standardization, structured logging, and aggregation setup

event-sourcing-migrator

509
from a5c-ai/babysitter

Migrate to event-sourcing architecture with event extraction, store setup, and CQRS implementation

configuration-migrator

509
from a5c-ai/babysitter

Migrate configuration files between formats and versions with environment variable extraction

build-system-migrator

509
from a5c-ai/babysitter

Migrate build systems to modern alternatives with build file conversion and CI/CD integration

authentication-migrator

509
from a5c-ai/babysitter

Migrate authentication systems with credential migration, OAuth2/OIDC setup, and identity provider integration

ink-component-generator

509
from a5c-ai/babysitter

Generate Ink (React for CLI) components for terminal UIs with hooks, state management, and layout components.

process-builder

509
from a5c-ai/babysitter

Scaffold new babysitter process definitions following SDK patterns, proper structure, and best practices. Guides the 3-phase workflow from research to implementation.

Workflow & Productivity

babysitter

509
from a5c-ai/babysitter

Orchestrate via @babysitter. Use this skill when asked to babysit a run, orchestrate a process or whenever it is called explicitly. (babysit, babysitter, orchestrate, orchestrate a run, workflow, etc.)