Skip to content
Skillpedia
Websites & UI (frontend)8.1k Β· #12574

webiny-admin-architect

What it does

This skill guides your AI when building features for the Webiny admin interface. It is for developers writing extensions for the Webiny platform.

When to use it

  • βœ“When you are building a feature in the Webiny admin panel with business logic and screens.
  • βœ“When you need to organize admin code into features, presenters and components.
  • βœ“When you are registering a feature or setting up the admin build parameters for a Webiny extension.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

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.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œBuild a new admin page in Webiny that lists orders, following the platform's feature and presenter pattern.”

5 new skills a week. 1 minute to read.

How it works

The skill explains the layered structure. Business logic lives in headless features, while screens use presenters and hooks, and every feature exposes a resolve function so the interface can use it.

Technical content (original SKILL.md)

Original text by the author, straight from 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} />

      
FAQ

Does every feature need a resolve function?

Yes. The skill says all features must provide one so the interface can access them.

What is the difference between headless and presentation features?

Headless features hold business logic with no interface, while presentation features add presenters, hooks and components.

Does this apply to outside extensions too?

Yes. The patterns are the same for extension developers and core developers, only the imports differ.

Details

Original description by the author

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

Popularity

GitHub stars
8.1k
Ranking position
#12574
License
β€”
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills