Hor Sequelize Model logo

Hor Sequelize Model

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

Overview

Publisheropenreachtech
Repositoryhora-skills-ort-renchan
Skill namehor-sequelize-model
Stars
32
Forks
0
Bundled files
5
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by openreachtech on GitHub. Read the source before you install it.

Installation

Install the Hor Sequelize Model AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/openreachtech/hora-skills-ort-renchan/tree/main/kit/skills/hor-sequelize-model
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Hor Sequelize Model in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Hor Sequelize Model on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Hor Sequelize Model is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Hor Sequelize Model AI skill do?

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.

Why use Hor Sequelize Model on TypingMind?

Because you install it once and use it with any model. Hor Sequelize Model is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Hor Sequelize Model in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/openreachtech/hora-skills-ort-renchan/tree/main/kit/skills/hor-sequelize-model. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Hor Sequelize Model?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Hor Sequelize Model?

As many as you like. As long as a model supports skills, you can use Hor Sequelize Model with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Hor Sequelize Model AI skill free?

Yes. It is published on GitHub by openreachtech under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇