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

webiny-new-entry-wizard

하는 일

이 스킬은 Webiny 헤드리스 CMS에서 항목 편집기 앞에 나타나는 마법사를 만들 때 AI를 안내합니다. 새 항목을 몇 가지 입력값으로 시작하게 하려는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓새 CMS 항목을 만들기 전에 제목이나 슬러그 같은 짧은 양식을 띄우고 싶을 때.
  • ✓특정 콘텐츠 모델에서 생성 시 맞춤 마법사를 보여 줘야 할 때.
  • ✓마법사의 답으로 항목 양식을 미리 채우고 싶은 경우.

스킬 링크

https://github.com/webiny/webiny-js/blob/next/skills/user-skills/admin/new-entry-wizard/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“블로그 콘텐츠 모델에 마법사를 추가해 주세요. 항목이 열리기 전에 제목, 슬러그, 카테고리를 묻도록 해 주세요.”

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

작동 방식

이 스킬은 공유 인터페이스를 가진 마법사 확장 기능, 기능, 프레젠터, 뷰, 등록 단계를 설정합니다. 마법사의 답은 항목 양식에 전달되며, 그 양식은 저장되지 않은 변경 사항이 있는 상태로 열립니다.

기술 내용 (원본 SKILL.md)

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

New Entry Wizard

TL;DR

A New Entry Wizard intercepts the "create new entry" flow in the Headless CMS and shows a custom form before the full entry editor. The wizard collects initial values (title, slug, category, etc.), then calls formPresenter.newEntry(initialValues) to pre-fill the entry form and transition to the editor. The form is automatically marked as dirty so the user sees unsaved changes.

A wizard extension has five files:

  1. abstractions.ts -- DI token and presenter interface (ALWAYS a standalone file)
  2. feature.ts -- createFeature wiring (ALWAYS a standalone file)
  3. Presenter -- owns the wizard form (fields, layout, validation) via FormModelFactory
  4. View -- renders the wizard UI using FormView and FormErrors
  5. Registration -- plugs the wizard into specific content models via ContentEntryEditorConfig.NewEntryWizard

Registration

// extensions/myWizard/index.tsx
import React from "react";
import { RegisterFeature } from "webiny/admin";
import { ContentEntryEditorConfig } from "webiny/admin/cms/entry/editor";
import { MyWizardFeature } from "./feature.js";
import { MyWizardForm } from "./MyWizardForm.js";

const MyWizardExtension = () => {
  return (
    <>
      <RegisterFeature feature={MyWizardFeature} />
      <ContentEntryEditorConfig>
        <ContentEntryEditorConfig.NewEntryWizard
          element={<MyWizardForm />}
          modelIds={["article", "blogPost"]}
        />
      </ContentEntryEditorConfig>
    </>
  );
};

export default MyWizardExtension;

Props

Prop Type Description
element React.ReactElement The wizard component to render
modelIds string[] Content model IDs this wizard applies to. Omit or pass [] to apply to all models.

Enabling the extension

// webiny.config.tsx
<Admin.Extension src={"@/extensions/myWizard/index.tsx"} />

Abstractions

Abstractions MUST live in a dedicated abstractions.ts file. This file defines the DI token for the presenter. It is imported by both the feature and the view.

// extensions/myWizard/abstractions.ts
import { createAbstraction } from "webiny/admin";
import type { FormModel } from "webiny/admin/form";

export interface MyWizardVM {
  form: FormModel.FormVM;
  data: Record<string, unknown>;
}

export interface IMyWizardPresenter {
  vm: MyWizardVM;
  submit(): Promise<Record<string, unknown> | false>;
  reset(): void;
}

export const MyWizardPresenter = createAbstraction<IMyWizardPresenter>("MyWizardPresenter");

Feature

The feature MUST live in a dedicated feature.ts file. It wires the presenter implementation to the abstraction and defines how the feature is resolved from the DI container.

// extensions/myWizard/feature.ts
import { createFeature, FormModelFactory } from "webiny/admin";
import { MyWizardPresenter } from "./abstractions.js";
import { MyWizardPresenterImpl } from "./MyWizardPresenter.js";

export const MyWizardFeature = createFeature({
  name: "MyWizard",
  register(container) {
    container.register(
      MyWizardPresenter.createImplementation({
        implementation: MyWizardPresenterImpl,
        dependencies: [FormModelFactory]
      })
    );
  },
  resolve(container) {
    return { presenter: container.resolve(MyWizardPresenter) };
  }
});

Presenter

The presenter owns a FormModel for the wizard's own fields. It is a plain class -- the DI token lives in abstractions.ts and the feature wiring lives in feature.ts.

// extensions/myWizard/MyWizardPresenter.ts
import type { FormModel } from "webiny/admin/form";
import { makeAutoObservable, toJS } from "mobx";
import { FormModelFactory } from "webiny/admin";
import type { IMyWizardPresenter, MyWizardVM } from "./abstractions.js";

export class MyWizardPresenterImpl implements IMyWizardPresenter {
  private form: FormModel.Interface;

  constructor(formFactory: FormModelFactory.Interface) {
    this.form = formFactory.create({
      fields: fields => ({
        title: fields.text().label("Title").required("Title is required"),
        slug: fields.text().label("Slug").required("Slug is required"),
        category: f
자주 묻는 질문

마법사가 항목을 대신 저장하나요?

아닙니다. 마법사는 항목 양식을 채우기만 하며, 사용자가 저장해야 합니다.

마법사를 콘텐츠 모델에 어떻게 연결하나요?

항목 편집기 설정을 통해 특정 콘텐츠 모델에 등록합니다.

마법사에는 어떤 파일이 필요한가요?

스킬은 추상화, 기능, 프레젠터, 뷰, 등록의 다섯 부분을 나열합니다.

상세 정보

작성자의 원본 설명

Building a New Entry Wizard for the Headless CMS. Use this skill when the developer wants to show a custom wizard UI before the entry form when creating new CMS entries -- collecting fields like title, slug, or category upfront, then pre-filling the entry form. Covers ContentEntryEditorConfig.NewEntryWizard, createFeature, FormModelFactory, createReactiveComponent, useContentEntryFormPresenter, and the dirty-flag on setData.

repo: webiny/webiny-js

인기도

GitHub 스타
8.1k
순위
#12577
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬