> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/creator/content-creator-ko/sdk7/other/migrate-legacy-sdk6-scenes.md).

# 기존 SDK6 씬 마이그레이션

AI 도우미를 사용해 기존 SDK6 씬을 SDK7로 마이그레이션합니다.

업데이트하고 싶은 오래된 SDK6 씬이 있다면 AI 어시스턴트의 도움을 받아 SDK7로 자동 마이그레이션할 수 있습니다. [Decentraland SDK 스킬](https://docs.decentraland.org/creator/content-creator-ko/sdk7/getting-started/vibe-coding.md#install-skills-for-any-ai-agent) 에는 AI가 단계별로 따르는 전용 마이그레이션 워크플로가 포함되어 있어 코드를 직접 변환할 필요가 없습니다.

이 가이드에서는 전체 과정을 안내합니다.

## 1. 비어 있는 새 SDK7 씬 만들기

비어 있는 새 SDK7 프로젝트로 시작합니다. AI가 기존 코드와 에셋을 이 깔끔한 구조로 옮깁니다.

**방법 A — Creator Hub**

1. Creator Hub를 엽니다.
2. 다음 탭을 선택합니다:  **씬** . 그런 다음 다음을 클릭합니다:  **새 씬**.
3. 다음  **빈 씬**  템플릿을 선택합니다.

**방법 B — 명령줄**

빈 폴더에서 다음 명령을 실행합니다:

```bash
npx @dcl/sdk-commands init
```

그러면 폴더에 SDK7 프로젝트의 기본 파일이 생성됩니다.

## 2. SDK 스킬 설치하기

SDK 스킬은 AI 에이전트가 SDK6에서 SDK7로 올바르게 마이그레이션하는 방법을 비롯해 Decentraland SDK7을 사용하는 방법을 익히도록 합니다.

스킬은 두 가지 방법으로 설치할 수 있습니다.

**방법 A — AI에 설치 요청하기**

씬 폴더에서 AI 어시스턴트를 열고 다음과 같이 말합니다:

> Decentraland SDK 스킬을 설치해 줘.

AI가 명령을 알고 있으므로 스킬을 대신 설치해 줍니다.

**방법 B — 명령줄에서 설치하기**

```bash
npx skills add decentraland/sdk-skills --all
```

여기서  `--all`  플래그는 사용 가능한 모든 스킬을 설치합니다. 이 플래그를 생략하면 설치할 스킬을 선택할 수 있는 대화형 선택기가 열립니다.

사용 가능한 스킬과 작동 방식에 대한 자세한 내용은 다음을 참조하세요:  [AI를 활용한 바이브 코딩](https://docs.decentraland.org/creator/content-creator-ko/sdk7/getting-started/vibe-coding.md#install-skills-for-any-ai-agent).

## 3. AI에 씬 마이그레이션 요청하기

기존 SDK6 프로젝트 파일을 AI가 읽을 수 있는 위치에 둡니다. 예를 들어 컴퓨터의 별도 폴더나 공개 GitHub 저장소에 둘 수 있습니다.

그런 다음 AI에 다음과 같이 요청합니다:

> 이 SDK6 씬을 SDK7로 마이그레이션해 줘.

스킬에는 전체 마이그레이션 절차가 포함되어 있으므로 AI가 다음 작업을 수행합니다:

* SDK6 씬에서 사용되는 진입점과 컴포넌트를 식별합니다.
* 엔티티, 컴포넌트, 시스템을 그에 대응하는 SDK7 요소로 변환합니다.
* 3D 모델, 오디오 및 기타 에셋을 새 프로젝트로 옮깁니다.
* 프로젝트 구성과  `scene.json`  파일을 업데이트합니다.
* 더 이상 사용되지 않는 API를 현재 SDK7에서 대응하는 API로 교체합니다.

## 4. 테스트하고 개선하기

마이그레이션 작업이 끝나면 씬을 미리 보고 직접 플레이해 봅니다.

* Creator Hub에서 다음을 클릭합니다:  **플레이**.
* 명령줄에서 다음을 실행합니다:  `npm run start`.

테스트하면서 다음 사항을 확인합니다:

* 시각적 문제 — 모델 누락, 잘못된 위치나 크기, 손상된 머티리얼.
* 상호작용 문제 — 클릭이 작동하지 않거나, 트리거가 활성화되지 않거나, 대화상자가 표시되지 않는 경우.
* 장면에서 사용했다면 멀티플레이어 또는 네트워킹 문제.
* 미리보기 창의 콘솔 오류.

버그를 발견하면 AI에게 일상적인 표현으로 설명하세요:

> 테이블 위의 빨간 버튼을 눌러도 더 이상 문이 열리지 않아. 전에는 소리가 나고 문이 90도 회전했어.

AI는 주변 스킬(상호작용, 애니메이션, 오디오 등)을 활용해 문제를 하나씩 해결할 수 있습니다. 장면이 원본처럼 동작할 때까지 반복하세요.

{% hint style="info" %}
**💡 팁**: 한 번에 버그 하나씩 수정하고, 변경할 때마다 미리보기로 확인하세요. 변경 사항이 작으면 회귀 문제를 훨씬 쉽게 찾아낼 수 있습니다.
{% endhint %}

## 다음 단계

* [AI와 함께하는 바이브 코딩](https://docs.decentraland.org/creator/content-creator-ko/sdk7/getting-started/vibe-coding.md) — AI 어시스턴트 및 SDK Skills 활용에 관한 전체 참고 자료입니다.
* [SDK 빠른 시작](https://docs.decentraland.org/creator/content-creator-ko/sdk7/getting-started/sdk-101.md) — SDK7의 기본 사항을 익혀 마이그레이션된 코드를 검토하고 다듬으세요.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decentraland.org/creator/content-creator-ko/sdk7/other/migrate-legacy-sdk6-scenes.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
