/full-stack-architect
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.
Claude Code
$ npx -y skills add webiny/webiny-js --skill full-stack-architect --agent claude-code
Codex
$ npx skills add webiny/webiny-js --skill full-stack-architect -a codex -y
Cursor
$ npx skills add webiny/webiny-js --skill full-stack-architect -a cursor -y
Gemini CLI
$ npx skills add webiny/webiny-js --skill full-stack-architect -a gemini-cli -y
GitHub Copilot
$ npx skills add webiny/webiny-js --skill full-stack-architect -a github-copilot -y
OpenCode
$ npx skills add webiny/webiny-js --skill full-stack-architect -a opencode -y
Windsurf
$ npx skills add webiny/webiny-js --skill full-stack-architect -a windsurf -y
SKILL.md
full-stack-architect.SKILL.mdname: webiny-full-stack-architect
description: >
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.
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 containerPackage 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.
│ │ ├── ThingLanguage.ts # Value objects for domain values both sides use
│ │ └── 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-level component is the single entry point that consumers use. It registers both the API and Admin extensions:
// src/MyExtension.tsx
import React from "react";
import { Api, Admin } from "webiny/extensions";
export const MyExtension = () => {
return (
<>
{/* API extensions — runs in Lambda */}
<Api.Extension src={import.meta.dirname + "/api/Extension.js"} />
{/* Admin extensions — runs in browser */}
<Admin.Extension src={import.meta.dirname + "/admin/Extension.js"} />
</>
);
};Conditional rendering can wrap the entry points (e.g., feature flags, config parameters):
<Infra.Env.Is name={"prod"}>
<Api.Extension src={import.meta.dirname + "/api/Extension.js"} />
<Admin.Extension src={import.meta.dirname + "/admin/Extension.js"} />
</Infra.Env.Is>Shared Domain Layer
The `shared/` directory contains types and value objects used by both API and Admin:
// src/shared/constants.ts
export const MY_MODEL_ID
Read more
name: webiny-full-stack-architect description: > 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.
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 containerPackage 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. │ │ ├── ThingLanguage.ts # Value objects for domain values both sides use │ │ └── 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-level component is the single entry point that consumers use. It registers both the API and Admin extensions:
// src/MyExtension.tsx
import React from "react";
import { Api, Admin } from "webiny/extensions";
export const MyExtension = () => {
return (
<>
{/* API extensions — runs in Lambda */}
<Api.Extension src={import.meta.dirname + "/api/Extension.js"} />
{/* Admin extensions — runs in browser */}
<Admin.Extension src={import.meta.dirname + "/admin/Extension.js"} />
</>
);
};Conditional rendering can wrap the entry points (e.g., feature flags, config parameters):
<Infra.Env.Is name={"prod"}>
<Api.Extension src={import.meta.dirname + "/api/Extension.js"} />
<Admin.Extension src={import.meta.dirname + "/admin/Extension.js"} />
</Infra.Env.Is>Shared Domain Layer
The `shared/` directory contains types and value objects used by both API and Admin:
// src/shared/constants.ts export const MY_MODEL_ID
Open-source content platform. Self-hosted on AWS serverless. Built as a TypeScript framework you extend with code, not a closed product you configure through a UI. Runs on Lambda, DynamoDB, S3, and CloudFront inside your own AWS account. Scales automatically.
Other skills on webiny-js.
More skills from other plugins.
prompt-lookup
Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use…
ppt-master
AI-driven presentation workflow for generating editable PPTX decks and slides, reconstructing page visuals, creating reusable…
morph-ppt
Use this skill when the user wants a .pptx with smooth cross-slide animation — PowerPoint Morph transitions, Keynote-style…
frontend-slides
Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to…
Questions about full-stack-architect.
- Which coding agents can use full-stack-architect?
- full-stack-architect installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

