webiny-full-stack-architect
ما الذي تفعله
تمنح هذه المهارة ذكاءك بنية حزمة امتداد واحدة تتضمن كود الخلفية وكود الإدارة. وهي لمطورين يبنون ميزات تحتاج إلى الجانبين في مشروع Webiny.
متى تستخدمها
- ✓عندما تحتاج ميزة إلى منطق خلفي وشاشة إدارة في حزمة واحدة.
- ✓عندما تُعد امتدادًا رئيسيًا يسجّل أجزاء الـAPI والإدارة معًا.
- ✓عندما تريد كود مجال مشتركًا يستخدمه الـAPI والإدارة.
رابط المهارة
https://github.com/webiny/webiny-js/blob/next/skills/user-skills/full-stack-architect/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أنشئ امتداد Webiny متكاملًا لمراجعات المنتجات، يتضمن جزءًا خلفيًا وشاشة إدارة.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تشرح المهارة مكوّنًا رئيسيًا يسجّل نقطتي دخول، واحدة للـAPI وأخرى لتطبيق الإدارة، وكلتاهما تعتمدان على طبقة مجال مشتركة. وتفاصيل كل جانب موجودة في المهارتين المنفصلتين للـAPI والإدارة.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من 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.tsxor 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
الأسئلة الشائعة
ما نقطتا الدخول؟
واحدة للـAPI وأخرى لتطبيق الإدارة، وكلتاهما مسجّلتان في المكوّن الرئيسي.
أين توضع القواعد المشتركة؟
في طبقة مجال مشتركة يستخدمها الجانبان.
هل تشرح الكود التفصيلي لكل جانب؟
تحيل إلى مهارتي بنية الـAPI والإدارة المنفصلتين لهذه التفاصيل.
التفاصيل
الوصف الأصلي من المؤلف
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
الشعبية
- نجوم GitHub
- 8.1k
- الترتيب
- #12600
- الترخيص
- —
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
prd-to-plan
8.1kيساعد وكيلك على تحويل وثيقة متطلبات منتج إلى خطة مرحلية من شرائح صغيرة متكاملة من البداية إلى النهاية، تُحفظ كملف Markdown.
webiny-admin-architect
8.1kيعلّم وكيلك بناء شاشات الإدارة لمنصة Webiny، باستخدام طبقات منطق العمل وأسلوب الـpresenter.
webiny-admin-permissions
8.1kيعلّم وكيلك إضافة ضوابط الصلاحيات إلى شاشات إدارة Webiny، مع نماذج صلاحيات مولَّدة تلقائيًا وفحوص لإظهار الأجزاء أو إخفائها.
webiny-form-model
8.1kيعلّم وكيلك بناء النماذج في Webiny باستخدام منشئ حقول تصريحي، مع التخطيطات والتحقق والقواعد الشرطية.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.