Logo van Hor Bank Id

Hor Bank Id

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

Overzicht

Uitgeveropenreachtech
Repositoryhora-skills-ort-renchan
Skillnaamhor-bank-id
Sterren
32
Forks
0
Meegeleverde bestanden
Alleen instructies
LicentieApache-2.0
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door openreachtech op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Hor Bank Id in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/openreachtech/hora-skills-ort-renchan/tree/main/kit/skills/hor-bank-id
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die 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-bank-id .claude/skills/hor-bank-id
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Hor Bank Id in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Hor Bank Id automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Hor Bank Id niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Veelgestelde vragen

Wat doet de AI-skill 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.

Waarom Hor Bank Id gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Hor Bank Id bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Hor Bank Id in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/openreachtech/hora-skills-ort-renchan/tree/main/kit/skills/hor-bank-id. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Hor Bank Id gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Hor Bank Id gebruiken?

Zoveel als je wilt. Je kunt Hor Bank Id gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Hor Bank Id gratis?

Ja. Deze skill is door openreachtech op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇