Hor Database Design logo

Hor Database Design

Organization
openreachtech
hor-database-design

Decide the logical shape of a renchan database schema — the design choices made before writing a migration or model. Use this skill whenever the user asks how to model a table, whether to normalize or denormalize, how to represent a status or category, which column type to pick, how to store times, how to scale reads as data grows, how to version a master table, or how to keep a table's update history. Writing the migration and the model are separate conventions.

Overview

Publisheropenreachtech
Repositoryhora-skills-ort-renchan
Skill namehor-database-design
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 Database Design 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-database-design
  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-database-design .claude/skills/hor-database-design
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Hor Database Design 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 Database Design 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 Database Design 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.

Database Design

A skill for the schema-design decisions that come before the mechanics: what tables and columns should exist, how they relate, and what each column's type and meaning is. The physical declaration (migration files, DataTypes, indexes) is written by hor-sequelize-migration; the logical declaration on top (model attributes, associations) by hor-sequelize-model. This skill decides what to put in them and why. The individual conventions are split across the detail files below — consult them as needed.

Grand principle: the database holds canonical, normalized truth

The database is the single source of truth, and it stores that truth in its canonical, non-redundant form. Anything that is derived (aggregates, search indexes), presentational (timezone, human-readable labels), or volatile / large (files, dynamic blobs) is kept out of the normalized core and lives in a separate structure or in another layer. Every rule in the detail files is this principle applied to one kind of data.

  • Why: when the canonical tables stay minimal and non-redundant, each fact lives in exactly one place, so responsibility boundaries are clear and the structure stays flexible as requirements change — which keeps the schema stable over the project's long life. The moment derived or presentational data leaks into the core, that data drifts out of sync, makes the schema rigid, and every later change has to reconcile duplicates.
  • When a rule and performance conflict, do not compromise the core — add a separate, additive, rebuildable structure (a summary table, a search DB) beside it. Never fix a query-speed concern by corrupting the write model.

This skill is design-level. Whenever a decision needs to be written, cross to hor-sequelize-migration (column types, DATE(3), TEXT('medium'), JSON, no DB foreign-key constraint, indexes) and hor-sequelize-model (attributes, timestamps, and the Mixins that implement versioning and archiving). Code comments in the examples are English, matching those sibling skills.

Detail files

  • normalization.md — normalize to 3NF; when reads grow, add a summary_ table or a search DB instead of denormalizing the core
  • datetimes.md — separate business datetimes from the ORM's audit timestamps; store every datetime as UTC at millisecond precision (DATE(3))
  • master-tables.md — model a status / category as a master table + key column (not free strings, rarely ENUM); version a master table (a price list) by splitting the version table from its rows
  • column-types.md — pick a column's type from the shape of its data (JSON / TEXT / TEXT('medium')); keep files in external storage and store only a reference
  • update-history.md — retain a table's update log with the archive pattern (BackupMixinModel + a *_bk table)

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 Database Design AI skill do?

Decide the logical shape of a renchan database schema — the design choices made before writing a migration or model. Use this skill whenever the user asks how to model a table, whether to normalize or denormalize, how to represent a status or category, which column type to pick, how to store times, how to scale reads as data grows, how to version a master table, or how to keep a table's update history. Writing the migration and the model are separate conventions.

Why use Hor Database Design on TypingMind?

Because you install it once and use it with any model. Hor Database Design 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 Database Design 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-database-design. 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 Database Design?

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 Database Design?

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

Is the Hor Database Design 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 👇