شعار Hor Sequelize Model

Hor Sequelize Model

مؤسسة
openreachtech
hor-sequelize-model

Write and edit renchan/Sequelize model definitions (sequelize/models/*.js). Use this skill whenever the user asks to create or update a Sequelize model class — its attributes, createOptions, associations, scopes, hooks, or how to wire a MixinModel.

نظرة عامة

الناشرopenreachtech
المستودعhora-skills-ort-renchan
اسم المهارةhor-sequelize-model
النجوم
32
التفريعات
0
الملفات المرفقة
5
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

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

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

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

  • الملفات المرفقة: 5

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/openreachtech/hora-skills-ort-renchan/tree/main/kit/skills/hor-sequelize-model
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/openreachtech/hora-skills-ort-renchan.git /tmp/hora-skills-ort-renchan
mkdir -p .claude/skills
cp -r /tmp/hora-skills-ort-renchan/kit/skills/hor-sequelize-model .claude/skills/hor-sequelize-model
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

يُحمّل النموذج Hor Sequelize Model تلقائيًا بمجرد ورود طلب ذي صلة بها.

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

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

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

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

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

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

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

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

Sequelize Model

A skill for writing the sequelize/models/*.js model definitions used in a renchan project. The physical schema is defined by hor-sequelize-migration; this skill writes the corresponding logical declarations on top of Sequelize (attributes / association / scope / hook / Mixin). The conventions are split across the detail files below — consult them as needed.

Grand principle: a model is a filled-in template, not free-form code

Every model extends BaseAppRenchanModel and has the same skeleton. The six extension points that form that skeleton (createAttributes / createOptions / associate / defineScopes / defineSubqueries / setupHooks) are always laid out in the same order, even when unused, and any that have no content keep super.xxx?.() plus // noop (default-methods.md).

  • Do not "delete to omit". Removing a method entirely makes it impossible to tell whether the model "has no such feature (i.e. it was considered)" or someone "forgot to write it". Keeping an explicit noop declares "considered, and not applicable". This is the same idea as the QA stance in hoc-jest ("do not cut coverage using implementation knowledge") — to avoid mistaking a gap for not-applicable, always keep the extension points visible.
  • Because the skeleton is identical across every model, review attention goes straight to the model-specific differences (attributes / associations). When the structure varies from model to model, it becomes impossible to read what is intentional and what is an omission.
  • When in doubt, lean toward the template. Do not try to write it "cleverly" with custom static methods or a changed initialization order. Extend via a Mixin (mixins.md) or a framework extension point.

Write code comments in English

Comments inside model code (.js) — such as // ForeignKey must start with upper case. — are written in English, to match the other comments in the codebase.

  • This applies to comments inside the model code generated into sequelize/models/ (the // and /* */ in .js). They are artifacts, so English.
  • The explanatory prose of this skill (the body text of each Markdown file) is in English as well.
  • The comments inside this skill's own examples (js blocks) are also in English.

Keep a one-to-one correspondence with the migration

A model's attributes must correspond one-to-one with the columns of the matching hor-sequelize-migration. The camelCase attribute keys on the model side map to the snake_case physical columns (field:) on the migration side via underscored: true (default-methods.md).

  • Why: adding only one side produces an inconsistency — an attribute exists but the column does not (queries fail), or a column exists but the model cannot touch it. Always add or change columns in the migration and the model together.
  • Timestamp columns are the exception; do not write them in the model's attributes (timestamps.md).

Detail files

  • notation.md — class skeleton, imports, attribute declarations
  • default-methods.md — the six override methods and createOptions
  • timestamps.md — do not include created_at / updated_at in the model
  • associations.md — how to write associate() (relations via this._)
  • mixins.md — kinds of MixinModel and how to pass them (all 6)

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

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

ماذا تفعل مهارة الذكاء الاصطناعي Hor Sequelize Model؟

Write and edit renchan/Sequelize model definitions (sequelize/models/*.js). Use this skill whenever the user asks to create or update a Sequelize model class — its attributes, createOptions, associations, scopes, hooks, or how to wire a MixinModel.

لماذا تستخدم Hor Sequelize Model على TypingMind؟

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

كيف أثبّت Hor Sequelize Model في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/openreachtech/hora-skills-ort-renchan/tree/main/kit/skills/hor-sequelize-model. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Hor Sequelize Model؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Hor Sequelize Model؟

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

هل مهارة الذكاء الاصطناعي Hor Sequelize Model مجانية؟

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

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

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

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

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

عرض الكل

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

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