본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)31k · #9325

heroui-migration

하는 일

이 스킬은 웹 앱을 HeroUI 버전 2에서 버전 3으로 옮기는 과정을 안내합니다. 제거된 프로바이더와 새로운 컴포넌트 구조 같은 주요 변경 사항을 설명합니다.

사용하는 경우

  • ✓HeroUI 버전 2를 사용하는 앱을 버전 3으로 업그레이드하고 싶을 때.
  • ✓버전 3에서 구조가 바뀐 컴포넌트를 업데이트해야 할 때.
  • ✓HeroUI의 공식 마이그레이션 가이드를 찾고 싶을 때.

스킬 링크

https://github.com/heroui-inc/heroui/blob/v3/skills/heroui-migration/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/heroui-inc/heroui/blob/v3/skills/heroui-migration/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“앱을 HeroUI v2에서 v3로 업그레이드하는 것을 도와주세요. 가장 많이 바뀐 컴포넌트부터 시작해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 많은 버전 2 패턴이 더 이상 작동하지 않으므로, 아무것도 바꾸기 전에 공식 마이그레이션 문서를 읽습니다. 그다음 컴포넌트별로 업데이트를 적용합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

HeroUI v2 to v3 Migration Guide

This skill helps agents migrate HeroUI v2 applications to v3. HeroUI v3 introduces breaking changes: compound components, no Provider, Tailwind v4, and removed hooks.


Installation

curl -fsSL https://heroui.com/install | bash -s heroui-migration

CRITICAL: Always Fetch Migration Docs Before Applying

Do NOT assume v2 patterns work in v3. Always fetch migration guides before implementing changes.

Key v2 → v3 Changes

Feature v2 (Migrate From) v3 (Migrate To)
Provider <HeroUIProvider> required No Provider needed
Component API Flat props: <Card title="x"> Compound: <Card><Card.Header>
Event handlers onClick onPress
Styling classNames prop className prop
Hooks useSwitch, useDisclosure, etc. Compound components, useOverlayState
Packages @heroui/system, @heroui/theme @heroui/react, @heroui/styles

Accessing Migration Documentation

For migration details, examples, and step-by-step guides, always fetch documentation:

Using Scripts

# List all available component migration guides
node scripts/list_migration_guides.mjs

# Get main migration workflow (full or incremental)
node scripts/get_migration_guide.mjs full
node scripts/get_migration_guide.mjs incremental

# Get component-specific migration guides
node scripts/get_component_migration_guides.mjs button
node scripts/get_component_migration_guides.mjs button card modal

# Get styling migration guide
node scripts/get_styling_migration_guide.mjs

# Get hooks migration guide
node scripts/get_hooks_migration_guide.mjs

Direct URLs

Migration docs (preview): use a concrete guide URL from the examples below, and never fetch a URL that still contains a placeholder.

Examples:

  • Full migration: .../agent-guide-full.mdx
  • Incremental: .../agent-guide-incremental.mdx
  • Button: .../button.mdx
  • Styling: .../styling.mdx
  • Hooks: .../hooks.mdx

Override base URL with HEROUI_MIGRATION_DOCS_BASE when docs are merged to production.

MCP Alternative

When using Cursor or other MCP clients, configure the Migration MCP server for tool-based access:

{
  "mcpServers": {
    "heroui-migration": {
      "url": "https://migration-mcp.heroui.com"
    }
  }
}

Migration Strategies

Full Migration

  • Best for: Projects that can dedicate focused time; teams comfortable with temporarily broken code
  • Migrate all component code first (project broken during migration)
  • Switch dependencies to v3
  • Complete styling migration

Incremental Migration

  • Best for: Projects that must stay functional; large codebases migrating gradually
  • Set up coexistence (pnpm aliases or component packages)
  • Migrate components one-by-one
  • Both v2 and v3 coexist during migration

Always fetch the agent guide before starting: node scripts/get_migration_guide.mjs full or incremental


Core Principles

  1. Fetch first: Use scripts to get migration guides before applying changes
  2. Compound components: v3 uses Card.Header, Card.Title, Button with children—not flat props
  3. No Provider: Remove HeroUIProvider when migrating
  4. onPress not onClick: All interactive components use onPress
  5. Workflow: Analyze → Migrate components → Switch deps → Styling migration

Migration Workflow Summary

  1. Create migration branch
  2. Analyze project (HeroUI imports, component usage)
  3. Fetch main guide: node scripts/get_migration_guide.mjs full
  4. Migrate components in batches (fetch component guides per batch)
  5. Switch dependencies to v3
  6. Fetch styling guide: node scripts/get_styling_migration_guide.mjs
  7. Apply styling updates

Preview Mode

This skill targets the staging deployment of the docs/migration branch. Once docs are merged to main and live on heroui.com, set HEROUI_MIGRATION_DOCS_BASE=https://heroui.com/docs/react/migration or update the default in scripts.

자주 묻는 질문

아직 HeroUI 프로바이더가 필요한가요?

아닙니다. 버전 3에서는 프로바이더 컴포넌트가 필요하지 않습니다.

컴포넌트 구조에서 무엇이 바뀌었나요?

컴포넌트가 이제 헤더 섹션이 있는 카드처럼 복합 구성 요소로 이루어지며, 단순한 title 속성 대신 사용합니다.

스타일 변경도 다루나요?

네. 버전 3은 Tailwind 버전 4를 사용하고 classNames 대신 className 속성을 쓴다는 점을 짚어 줍니다.

상세 정보

작성자의 원본 설명

HeroUI v2 to v3 migration guide for agents. Use when migrating HeroUI v2 apps to v3, upgrading components, or accessing migration documentation. Keywords: HeroUI migration, v2 to v3, migration guide, upgrade HeroUI.

repo: heroui-inc/heroui

인기도

GitHub 스타
31k
순위
#9325
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬