Skip to content
Skillpedia
General coding8.1k Β· #12600

webiny-full-stack-architect

What it does

This skill gives your AI the structure for a single extension package that includes backend and admin code. It is for developers building features that need both sides of a Webiny project.

When to use it

  • βœ“When a feature needs both backend logic and an admin screen in one package.
  • βœ“When you are setting up the top-level extension that registers both API and admin parts.
  • βœ“When you want shared domain code used by both the API and admin layers.

Skill link

https://github.com/webiny/webiny-js/blob/next/skills/user-skills/full-stack-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/full-stack-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

β€œCreate a full-stack Webiny extension for product reviews with a backend part and an admin screen.”

5 new skills a week. 1 minute to read.

How it works

The skill explains a top-level component that registers an API entry point and an admin entry point, both backed by a shared domain layer. The details for each side are in the separate API and admin skills.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Full-Stack Extension Skeleton

TL;DR

A full-stack extension bundles API and Admin into a single package with a shared domain layer. The top-level component registers both sides via <Api.Extension> and <Admin.Extension>, which point to separate entry-point files. Each side follows its own layered architecture pattern β€” see webiny-api-architect and webiny-admin-architect skills for details.

Working Context

This skill applies to both extension developers (working in extensions/) and core developers (working in packages/). The architecture patterns are the same β€” only the import convention and registration mechanism differ.

Extensions (extensions/) Core (packages/)
Imports webiny/api, webiny/admin, webiny/admin/ui @webiny/feature/api, @webiny/app-admin, @webiny/admin-ui
Catalog paths Use the Import: path Use the Source: path
Registration <Api.Extension src={...}> / <Admin.Extension src={...}> in webiny.config.tsx createFeature registered directly by the package's module initializer
Entry point export Files targeted by Extension src MUST use export default No restriction β€” features are registered programmatically
Top-level component Required β€” composes <Api.Extension> + <Admin.Extension> Not applicable β€” each package registers its own features

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

RULE β€” Extension Entry Points

Admin extensions CANNOT be directly mounted in webiny.config.tsx or in any child component tree without going through <Admin.Extension />.

The same rule applies to API extensions β€” they must go through <Api.Extension />.

These entry-point components are the only way to register code that runs inside the Admin app or the API runtime. They use the src prop to point to a file that will be loaded in the correct execution environment (browser for Admin, Lambda for API). Bypassing these entry points will fail at runtime because the Admin and API contexts (DI containers, routers, GraphQL registries, etc.) are not available outside their respective runtimes.

YOU MUST include the full file path with the .ts or .tsx extension in every src prop. For example, use src={"/extensions/lead/src/index.ts"}, NOT src={"/extensions/lead"}. Omitting the file extension will cause a build failure.

YOU MUST use export default for the createImplementation() call when the file is targeted directly by an Extension src prop. Using a named export (export const Foo = SomeFactory.createImplementation(...)) will cause a build failure. Named exports are only valid inside files registered via createFeature.

// CORRECT β€” always use entry-point components
<Api.Extension src={import.meta.dirname + "/api/Extension.js"} />
<Admin.Extension src={import.meta.dirname + "/admin/Extension.js"} />

// WRONG β€” never mount admin/api code directly
<MyAdminComponent />     // Will not have access to Admin DI container
<MyApiFeature />         // Will not have access to API DI container

Package Structure

my-extension/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ index.ts                  # Single public export
β”‚   β”œβ”€β”€ MyExtension.tsx           # Top-level component (registers Api + Admin)
β”‚   β”œβ”€β”€ shared/                   # Shared between API and Admin
β”‚   β”‚   β”œβ”€β”€ constants.ts          # Model IDs, permission names, etc.
β”‚   β”‚   └── types.ts              # Shared types
β”‚   β”œβ”€β”€ api/                      # API-side code β†’ see webiny-api-architect skill
β”‚   β”‚   β”œβ”€β”€ Extension.ts
β”‚   β”‚   β”œβ”€β”€ domain/
β”‚   β”‚   β”œβ”€β”€ features/
β”‚   β”‚   └── graphql/
β”‚   └── admin/                    # Admin-side code β†’ see webiny-admin-architect skill
β”‚       β”œβ”€β”€ Extension.tsx
β”‚       β”œβ”€β”€ features/
β”‚       └── presentation/

Top-Level Component

The top-lev

FAQ

What are the two entry points?

One for the API and one for the admin app, both registered in the top-level component.

Where do shared rules go?

In a shared domain layer that both sides use.

Does it explain the detailed code for each side?

It refers to the separate API and admin architecture skills for those details.

Details

Original description by the author

Full-stack extension skeleton and registration pattern. Use this skill when creating an extension that spans both API and Admin β€” the top-level component with Api.Extension and Admin.Extension entry points, shared domain layer, BuildParam declarations, and package structure. References webiny-api-architect and webiny-admin-architect for layer-specific details.

repo: webiny/webiny-js

Popularity

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills