شعار Magento Eav Attributes

Magento Eav Attributes

مؤسسة
OrcaQubits
magento-eav-attributes

Work with Magento 2 EAV (Entity-Attribute-Value) system — create custom attributes, attribute sets, manage EAV tables, and understand the EAV data model. Use when adding product/category/customer attributes or working with the attribute system.

نظرة عامة

الناشرOrcaQubits
المستودعagentic-commerce-skills-plugins
اسم المهارةmagento-eav-attributes
النجوم
40
التفريعات
17
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها OrcaQubits على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Magento Eav Attributes في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/magento2-commerce/skills/magento-eav-attributes
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins.git /tmp/agentic-commerce-skills-plugins
mkdir -p .claude/skills
cp -r /tmp/agentic-commerce-skills-plugins/magento2-commerce/skills/magento-eav-attributes .claude/skills/magento-eav-attributes
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Magento Eav Attributes في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Magento Eav Attributes تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Magento Eav Attributes بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Magento 2 EAV & Attributes

Before writing code

Fetch live docs:

  1. Web-search site:developer.adobe.com commerce php development components attributes for attribute development guide
  2. Web-search site:developer.adobe.com commerce php tutorials backend custom-attributes for attribute creation tutorial
  3. Web-search magento 2 EAV attribute data patch for current patterns using data patches

Conceptual Architecture

What EAV Is

Entity-Attribute-Value is Magento's flexible storage pattern. Instead of one column per attribute, values are stored in separate typed tables. This allows merchants to add unlimited attributes without schema changes.

EAV Entities

Four entity types use EAV:

  • Products (catalog_product_entity)
  • Categories (catalog_category_entity)
  • Customers (customer_entity)
  • Customer Addresses (customer_address_entity)

EAV Table Structure

Each entity has typed value tables:

  • *_entity — base entity table (entity_id, sku, type_id, etc.)
  • *_entity_varchar — short text values
  • *_entity_int — integer values (including boolean, select)
  • *_entity_decimal — decimal/price values
  • *_entity_datetime — date/time values
  • *_entity_text — long text values

Attribute Properties

Key properties when creating attributes:

  • type — backend storage type (varchar, int, decimal, datetime, text, static)
  • input — frontend input type (text, textarea, select, multiselect, boolean, date, price, media_image, etc.)
  • label — human-readable name
  • required — is this attribute mandatory?
  • source — source model for select/multiselect options
  • backend — backend model for validation/processing
  • frontend — frontend model for display formatting
  • global — scope: store view, website, or global
  • visible — shown in admin forms
  • searchable — indexed for catalog search
  • filterable — available as layered navigation filter
  • comparable — shown in product comparison
  • used_in_product_listing — available in category listing pages

Attribute Sets and Groups

  • Attribute Set — a named collection of attributes (e.g., "Default", "Clothing", "Electronics")
  • Attribute Group — organizes attributes within a set into tabs (e.g., "General", "Prices", "Images")
  • Every product is assigned one attribute set
  • The Default attribute set contains core attributes

Creating Attributes via Data Patch

The modern approach uses Data Patches with EavSetupFactory:

  1. Create a data patch class in Setup/Patch/Data/
  2. Inject EavSetupFactory (or CategorySetupFactory for categories)
  3. Call $eavSetup->addAttribute() with entity type, code, and properties
  4. Assign to attribute set/group

Source Models

For select/multiselect attributes, source models provide options:

  • Built-in: Magento\Eav\Model\Entity\Attribute\Source\Boolean, Table
  • Custom: extend AbstractSource, implement getAllOptions()

Static Attributes

Attributes with type static are stored as columns directly on the entity table rather than in EAV value tables. Used for frequently queried fields (e.g., sku, type_id, created_at).

Best Practices

  • Use data patches (not install/upgrade scripts) for attribute creation
  • Choose the correct backend type — int for select/boolean, decimal for prices
  • Set searchable, filterable, comparable thoughtfully — each adds indexing overhead
  • Use static type sparingly — it modifies the entity table schema
  • Test attribute creation on a clean install and with setup:upgrade

Fetch the attribute development docs for exact addAttribute() parameters, source model patterns, and current entity type constants before implementing.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Magento Eav Attributes؟

Work with Magento 2 EAV (Entity-Attribute-Value) system — create custom attributes, attribute sets, manage EAV tables, and understand the EAV data model. Use when adding product/category/customer attributes or working with the attribute system.

لماذا تستخدم Magento Eav Attributes على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Magento Eav Attributes عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Magento Eav Attributes في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/magento2-commerce/skills/magento-eav-attributes. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Magento Eav Attributes؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Magento Eav Attributes؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Magento Eav Attributes معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Magento Eav Attributes مجانية؟

نعم. نشرها OrcaQubits على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇