Hor Bank Id logo

Hor Bank Id

Organization
openreachtech
hor-bank-id

Allocate an exclusive, collision-free row-id prefix for a requester inside one backend repository, so two writers never pick the same id. Use it before writing an explicit id into a seeder or a test that creates its own rows.

Overview

Publisheropenreachtech
Repositoryhora-skills-ort-renchan
Skill namehor-bank-id
Stars
32
Forks
0
Bundled files
Instructions only
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

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

Installation

Install the Hor Bank Id 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-bank-id
  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-bank-id .claude/skills/hor-bank-id
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Hor Bank Id 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 Bank Id 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 Bank Id 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.

hor-bank-id

Hand this skill a requester id and it returns an id prefix you may use, exclusively, for every row you create in this repository — in any table, in any seeder or test — for as long as this project exists.

Why

Several writers touch the same backend repository over time: a human team may split work by hand, and an agent building one feature after another writes into the same tables. When two of them pick the same explicit row id, whichever runs its seeder last silently overwrites or collides with the other's data. hor-bank-id gives each requester its own slice of the id space, once.

Being serial does not remove the need. A seeder written for feature A is still in the tree when feature B writes its own, and both are loaded together on the next database refresh. What has to be exclusive is the id space across time, not across concurrent processes.

The id shape

Every explicit id is an 8-digit integer, split into two parts.

1  0  0  0  0  0  0  1
└──┬──┘ └────┬────┘
 prefix    free (yours alone)
(100-999)  (00000-99999)
  • The first 3 digits (100-999, 900 values) are the prefix this skill hands out. One requester, one prefix, forever
  • The last 5 digits (00000-99999) are yours to use however you like, in whatever order is convenient
  • A prefix is not scoped to one table. Once you hold 137, you may use 13700001 in users and 13700001 in reservations — different tables have independent primary keys

900 prefixes comfortably exceeds the number of features any one project realistically produces. Overflow is not handled.

The requester id

Whatever uniquely names the caller, chosen by the caller:

  • a human working by hand picks their own name (alice), or a per-feature name for more than one slice
  • an orchestrator driving one feature at a time passes the feature's id, once per feature, and hands the prefix it gets back to every agent working in that repository. The agents themselves never call this skill — several units of one feature run at once, and each asking for itself would queue them behind one another's mkdir for no gain. In Hora Kit that orchestrator is /hora-build's own main session

The same requester id always gets back the same prefix. Asking twice, or retrying after a crash, is always safe.

State

Both live directly under the backend repository's own root — never under the outer app repository's .hora/, which belongs to /hora and means something unrelated there.

<backend-repo>/.hora/id-bank.json     the registry
<backend-repo>/.hora/id-bank.lock/    the lock (a directory — mkdir is atomic on POSIX)

id-bank.json is a flat object, requester id to prefix, as a string so a leading 1 is never mistaken for an octal digit:

json
{
  "sign-up": "100",
  "verify-two-factor": "101",
  "alice": "102"
}

Allocating (the normal call)

  1. Try mkdir <backend-repo>/.hora/id-bank.lock.
  2. If it fails because the directory already exists, wait 1 second and retry. Stop retrying after 5 attempts (5 seconds total) and go to "A lock that will not clear" — do not remove the lock yourself here.
  3. Once mkdir succeeds, you hold the lock. Read id-bank.json (treat a missing file as {}).
  4. If the requester id is already a key, that value is the answer. Go to step 6.
  5. Otherwise, pick the lowest integer in 100..999 not already used as a value, add { "<requester id>": "<that number>" }, and write the whole file back (rewrite it whole — a partial write would corrupt the JSON for the next reader).
  6. rmdir <backend-repo>/.hora/id-bank.lock to release the lock, then return the prefix.

Never skip the lock, even to only read the file — a reader running concurrently with a writer's rewrite can observe a half-written file.

A lock that will not clear

Reaching the retry limit means another writer is either still working or died mid-update. From outside these look identical, so never remove the lock yourself to force through. Report the failure instead:

  • An orchestrator stops the whole session and states plainly: "the lock hor-bank-id uses did not clear, so this session is ending. Starting it again will clear it automatically and continue" (see "Clearing a stale lock"). This should be rare — the lock is taken once per feature, by the main session, for the few seconds one allocation takes. In Hora Kit the command to start again is /hora
  • A human running this by hand may wait and retry, or run the clearing step below themselves

Clearing a stale lock

A lock still standing at the very start of a fresh run cannot belong to anything still alive — nothing in this project holds it across separate invocations. Clearing it is therefore safe at that moment, and only then.

rm -rf <backend-repo>/.hora/id-bank.lock

An orchestrator runs this, unconditionally, as its very first action against the backend row on any invocation; in Hora Kit that is /hora-build. A human recovering from the failure above runs the same command by hand.

Using the prefix once you have it

Combine it with your own 5 digits when you write an explicit id — in a seeder, or inside a test that creates its own fixture. Do not derive ids from anything but your own prefix, and do not read or reason about another requester's rows.

Frequently asked questions

What does the Hor Bank Id AI skill do?

Allocate an exclusive, collision-free row-id prefix for a requester inside one backend repository, so two writers never pick the same id. Use it before writing an explicit id into a seeder or a test that creates its own rows.

Why use Hor Bank Id on TypingMind?

Because you install it once and use it with any model. Hor Bank Id 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 Bank Id 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-bank-id. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Hor Bank Id?

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 Bank Id?

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

Is the Hor Bank Id 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 👇