Logo vun Hor Sequelize Model

Hor Sequelize Model

Organisatioun
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.

Iwwersiicht

Editeuropenreachtech
Repositoryhora-skills-ort-renchan
Skill-Nummhor-sequelize-model
Stären
32
Forks
0
Matgeliwwert Fichieren
5
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 5 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum openreachtech op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Hor Sequelize Model an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/openreachtech/hora-skills-ort-renchan/tree/main/kit/skills/hor-sequelize-model
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Hor Sequelize Model an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Hor Sequelize Model automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Hor Sequelize Model net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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)

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Hor Sequelize Model op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Hor Sequelize Model besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Hor Sequelize Model an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/openreachtech/hora-skills-ort-renchan/tree/main/kit/skills/hor-sequelize-model an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Hor Sequelize Model benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Hor Sequelize Model benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Hor Sequelize Model domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Hor Sequelize Model gratis?

Jo. De Skill gëtt vum openreachtech ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇