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

webiny-admin-architect

하는 일

이 스킬은 Webiny 관리자 인터페이스의 기능을 만들 때 AI를 안내합니다. Webiny 플랫폼의 확장 기능을 쓰는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Webiny 관리자 패널에서 비즈니스 로직과 화면이 있는 기능을 만들 때.
  • ✓관리자 코드를 기능, 프레젠터, 컴포넌트로 정리해야 할 때.
  • ✓Webiny 확장 기능을 위해 기능을 등록하거나 관리자 빌드 매개변수를 설정하는 경우.

스킬 링크

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

AI에게 요청하는 예시

“Webiny 관리자에 주문 목록을 보여 주는 새 페이지를 만들어 주세요. 플랫폼의 기능 및 프레젠터 패턴을 따라 주세요.”

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

작동 방식

이 스킬은 계층 구조를 설명합니다. 비즈니스 로직은 헤드리스 기능에 두고, 화면은 프레젠터와 훅을 사용하며, 모든 기능은 인터페이스가 쓸 수 있도록 resolve 함수를 제공합니다.

기술 내용 (원본 SKILL.md)

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

Admin Architecture Patterns

TL;DR

Admin extensions are React components that register headless features (business logic with no UI) and presentation features (MobX presenters, React hooks, components). Headless features live in admin/features/ and follow UseCase → Repository → Gateway layering. Presentation features live in admin/presentation/ and add a Presenter (MobX view model) layer on top. Both use createFeature and createAbstraction from webiny/admin.

All features — both headless and presentation — MUST provide a resolve function in createFeature. This is how the useFeature hook accesses resolved instances from the DI container. Without resolve, the feature cannot be consumed from React.

Working Context

This skill applies to both extension developers (working in extensions/) and core developers (working in packages/). The architecture patterns are identical — only imports differ.

Extensions (extensions/) Core (packages/)
Imports webiny/admin, webiny/admin/ui, webiny/admin/cms/entry/editor @webiny/app, @webiny/admin-ui, @webiny/app-headless-cms/...
Catalog paths Use the Import: path Use the Source: path
MobX wrapper createReactiveComponent from webiny/admin createReactiveComponent from @webiny/app-admin (never import observer from mobx-react-lite directly — the only exception is @webiny/app-admin itself, which is the source of the re-export)
Entry point React component as export default in a file targeted by <Admin.Extension src={...}> React component registered by the package initializer

Detect which context you're in by checking the file path: extensions/ → extension mode, packages/ → core mode.

Admin Directory Structure

admin/
├── Extension.tsx         # Admin entry point (React component)
├── features/             # Headless features (business logic, no UI)
│   └── EnableThing/
│       ├── abstractions.ts
│       ├── EnableThingUseCase.ts
│       ├── EnableThingRepository.ts
│       ├── EnableThingGateway.ts
│       └── feature.ts
└── presentation/         # Presentation layer (hooks, components, presenters)
    └── CurrentThing/
        ├── abstractions.ts   # Presenter + ViewModel interfaces
        ├── CurrentThingPresenter.ts    # MobX-based view model
        ├── useCurrentThing.ts          # React hook for consumers
        ├── feature.ts                  # createFeature registration
        └── components/                 # React UI components

Admin Extension Entry Point

The Admin entry point is a React component that registers features, providers, UI decorators, and config:

// src/admin/Extension.tsx
import React from "react";
import { AdminConfig, RegisterFeature } from "webiny/admin";
import { CurrentThingFeature } from "./presentation/CurrentThing/feature.js";
import { EnableThingFeature } from "./features/EnableThing/index.js";
import { CurrentThingProvider } from "./presentation/CurrentThing/CurrentThingProvider.js";
import { ThingListView } from "./presentation/ThingListView/ThingListView.js";

export const Extension = () => {
  return (
    <>
      {/* Register headless features (use cases, repositories, gateways) */}
      <RegisterFeature feature={EnableThingFeature} />

      
자주 묻는 질문

모든 기능에 resolve 함수가 필요한가요?

네. 인터페이스가 기능에 접근할 수 있도록 모든 기능이 이를 제공해야 한다고 스킬이 설명합니다.

헤드리스 기능과 프레젠테이션 기능은 무엇이 다른가요?

헤드리스 기능은 인터페이스 없이 비즈니스 로직만 담고, 프레젠테이션 기능은 프레젠터, 훅, 컴포넌트를 더합니다.

외부 확장 기능에도 적용되나요?

네. 확장 개발자와 핵심 개발자 모두 같은 패턴을 쓰며, 가져오기 경로만 다릅니다.

상세 정보

작성자의 원본 설명

Admin-side architecture patterns for Webiny extensions. Use this skill when building frontend features with headless features (UseCase/Repository/Gateway), presentation features (Presenter/ViewModel/hooks/components), MobX-based presenters, RegisterFeature, and Admin BuildParams. Covers the admin/ directory structure for both features/ and presentation/ layers.

repo: webiny/webiny-js

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬