Логотип Hor Bank Id

Hor Bank Id

Організація
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.

Огляд

Видавецьopenreachtech
Репозиторійhora-skills-ort-renchan
Назва навичкиhor-bank-id
Зірки
32
Форки
0
Файли в пакеті
Лише інструкції
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: openreachtech. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Hor Bank Id у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/openreachtech/hora-skills-ort-renchan/tree/main/kit/skills/hor-bank-id
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Hor Bank Id в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Hor Bank Id, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Hor Bank Id не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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.

Поширені запитання

Що робить навичка ШІ 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.

Навіщо використовувати Hor Bank Id у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Hor Bank Id — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Hor Bank Id у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/openreachtech/hora-skills-ort-renchan/tree/main/kit/skills/hor-bank-id. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Hor Bank Id?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Hor Bank Id?

Зі скількома забажаєте. У TypingMind ви можете використовувати Hor Bank Id із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Hor Bank Id?

Так. На GitHub цю навичку публікує openreachtech за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип openclaw

Control Ui E2e

openclaw
ОрганізаціяПопулярне

Використовуйте під час проєктування, тестування, виправлення або розширення графічного інтерфейсу OpenClaw Control UI, зокрема для галерей стрес-тестування інтерфейсу зі зворотним зв’язком, наскрізних перевірок за допомогою Vitest + Playwright, сценаріїв Gateway із заглушками…

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Deslop

openclaw
ОрганізаціяПопулярне

Очищення змін у поточній гілці від AI-slop: перед автоматичним переглядом приберіть зайві коментарі, надмірні захисні перевірки, підміну типів і відхилення від стилю.

82.2K
391K
Інструкції
Відкрити
Логотип openclaw

Discord Clawd

openclaw
ОрганізаціяПопулярне

Використовуйте, щоб спілкуватися з агентом або сеансом OpenClaw, підключеним до Discord; не для пошуку в архіві.

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Discrawl

openclaw
ОрганізаціяПопулярне

Архів Discord: пошук, актуальність синхронізації, особисті повідомлення, підсумки, TUI, робота з репозиторіями та випусками.

82.2K
391K
Файлів: 1
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇