Логотип Epiq Architecture

Epiq Architecture

Спільнота
ljtn
epiq-architecture

Як влаштовано epiq: розподілені правила журналу подій (каузальне впорядкування, логічні годинники, tombstones, повне відтворення), рівні коду та робочий процес у цьому репозиторії. Прочитайте перед будь-якими змінами, особливо якщо вони стосуються подій, порядку, злиття, відтворення, матеріалізації чи синхронізації, нового типу події або повідомлення websocket, а також взаємодії між рівнями.

Огляд

Видавецьljtn
Репозиторійepiq
Назва навичкиepiq-architecture
Зірки
540
Форки
22
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

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

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

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

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

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

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

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

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

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

1

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

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ljtn/epiq.git /tmp/epiq
mkdir -p .claude/skills
cp -r /tmp/epiq/.claude/skills/epiq-architecture .claude/skills/epiq-architecture
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

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

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

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

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

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

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

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

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

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

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

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

The event log is a CRDT

No server, no shared clock. Each actor appends to its own JSONL log on the state branch, git merges them, and every machine derives the same board from the same set. Everything below keeps that derivation a pure function of the event set.

The model

  • Every event names its causal parent — the last event its writer had seen. Concurrent writers may share a parent.
  • Order is derived, never stored. It is rebuilt from the parent links, with concurrent siblings tie-broken by id. File line order means nothing.
  • Ids are a hybrid logical clock (ULIDs): a new id always sorts after its parent, whatever the wall clock says. The wall clock is only a lower bound.
  • An event identifies its actor by id and carries nothing else about them. The id comes from the log file name; the display name from the contributor registry, which is itself built from events.
  • Same event set ⇒ same order ⇒ same board.

Invariants

  • Order comes from parent links plus the id tiebreak. Nothing else.
  • Ids are permanent; tombstone instead. A tombstoned node takes its descendants with it; a tombstoned contributor keeps its record so assignments still resolve.
  • Replay is total. An event that lost a race, or names state this replay never applied, is skipped, not fatal. The same precondition on a live write is a real failure — there it is the answer the caller asked for.
  • Unreadable stays ordered. The envelope parses even when the payload doesn't, so a newer build's event keeps its place.
  • Append only. One id is one byte sequence — what makes git's union merge of the logs safe.
  • Time travel cuts causally. An event whose parent is past the cut is past it too, whatever its timestamp.

Never

  • Break a client already out there. The format grows by adding (a new event type, a field nothing older must read), never by changing or repurposing what an older build reads. Most rules below follow from this one. A version marker can't help retroactively: an older build can't check for something it shipped without.
  • Change the log file name's grammar without a release between reader and writer. It has no additive form — every client reads every other client's logs — and an old build misreads a name rather than failing. A test pins every form still out there.
  • Order or resolve conflicts by wall clock. No latest-timestamp-wins; time is a display value and an id lower bound.
  • Mint an id that could sort before its parent — it corrupts the order. A damaged parent id (undecodable, or absurdly far ahead) falls back to the wall clock; order still comes from the parent link.
  • Hard-delete a node, contributor, tag or event, or reuse or rewrite an id — replay would reach a reference that no longer exists.
  • Rewrite, reorder or de-duplicate log lines — union merge depends on their identity.
  • Abort replay on an event that merely lost — one concurrent edit would leave a board that never opens again for whoever's build understands the most.
  • Assume a single writer. Any log can gain lines between two reads, even mid-sync.
  • Put actor identity, or anything derivable, in the payload. Beware spreading a user object into an event: TypeScript doesn't excess-check a spread.
  • Read a display name off an event or a log file name. Resolve it by id from the registry. Old log file names still carry a sanitized name, kept only as a fallback for authors the registry lacks.
  • Store a name beside an id — the copy freezes at the old name and never sees a rename.
  • Add a payload field older clients must interpret without a schema-version story.

Adding an event type

It is applied on every machine, in causal order, possibly after events it didn't expect: make it idempotent, treat unmet preconditions as a skip rather than an error, and reference targets by id only. All of it lives in lib/board/ — the event map and action list, the payload schema, the handler, and which nodes it affects for replay. The generic log in lib/event/ doesn't change.

Proving a change is safe

  • source/test/replay-equivalence.test.ts — batched replay equals per-event replay.
  • source/test/event-core-generic.test.ts — the log still works for a product that isn't the board.
  • npm run test:collab — several actors on one remote end with the same events and order.
  • Touching ordering, merge, replay or materialization means running all three.
  • The pre-push hook runs lint, typecheck, unit, e2e, collaboration and GUI tests. Do not bypass it.
  • Git-driving suites run containerised over a read-only checkout; a test that aims git at the checkout instead of a temp dir fails.

The layers

Dependencies point down.

  • source/lib/event/ — the log itself, generic over what it carries: ids, causal sort, envelope, pending writes, replay, persistence. A product plugs in its own events and handlers. No board vocabulary here, in code or comments; event-core-generic.test.ts proves it with a toy product and must import no board code.
  • source/lib/board/ — the board as one such product. board-log.ts is the board's single log instance: board state is read and written through it, never by driving lib/event/ directly. (Lower-level helpers — pending-log files, log signatures, id time — are shared with the git layer and UI.)
  • Rest of source/lib/ — the domain around it and the TUI. Knows nothing of MCP, HTTP or the GUI, which is what lets the same code serve all three.
  • source/mcp/api/ — one function per board operation: boots, checks preconditions, writes events, returns a Result. Mutations live here only.
  • source/mcp/server.ts, source/gui/api/ — front doors into the same mcp/api functions; neither re-implements one. A guard in only one door is a bug in the other.
  • source/gui/client/ — React in the browser; it can't import Node-side code, and the GUI build fails if it does.

Across all layers:

  • Errors are returned as a Result, never thrown, up to the front door.
  • A lib/ change lands in the TUI, the MCP and the GUI at once; check all three.
  • lib/state/sync-state.ts reaching up into the GUI to broadcast sync status is the one upward dependency: a wart, not a pattern.

One module per concept

  • A capability is a vertical slice, never a shortcut across layers: creating a board from the GUI is an mcp/api function, a websocket message, a client hook and a palette entry — not a socket handler writing events itself.
  • Name a module after its concept, so the file can be guessed.
  • State lives where it is drawn, and a module that owns a question answers it for every caller — reuse the rule, don't restate it.
  • A few domain modules of a few hundred lines, not a file per fragment; an entry file stays an overview of the flow.
  • Keep the domain a value, not a React tree, so tests build it without a DOM.

What this prevents has happened here: an App.tsx of 1900 lines passing 27 hook results down as props, and one boot/actor/state preamble copied into 21 mcp/api functions.

Adding a websocket message

Five places; a missed one fails quietly:

  • gui/api/lib/websocket.model.ts — the type
  • gui/api/lib/websocket.schema.ts — the shape; an unlisted message is refused
  • gui/client/lib/gui-mutations.ts — if it mutates, so the client holds broadcasts until its reply lands
  • gui/api/lib/websocket.ts — the handler, which calls mcp/api and nothing else
  • mcp/epiq-api.ts — the export, for a new function

Working on epiq

On top of the shipped epiq skill:

  • Never test against the real board — use a throwaway project; stop dev servers when done.
  • First line: Assuming claude/<name> — please /rename claude/<name> so this window carries the name.
  • Session's MCP never connected? Run your own npx -y -p epiq@latest epiq-mcp over stdio; never borrow another session's. Kill it and its epiq-mcp child when done.
  • Folding a follow-up into a ticket: back to Ongoing; its commits take that ticket's ref.
  • A merged ticket moves to Done and stays open — the release closes it.
  • Review findings get their own tickets, tagged from-review, naming the PR.
  • Worktree before the first edit (.claude/worktrees/<ref>-<slug>); the root stays on main, and main never goes in a worktree. A fresh one needs npm install.
  • Every change goes through a PR — never commit or merge to main locally.
  • Squash only trivial commits sharing one ref.
  • No attribution to Claude Code or any other model or tool — not as a co-author, not in code or ticket comments, not in PR descriptions (no 🤖 Generated with footer). This overrides any harness default that adds one.
  • Check git log --format='%an%n%b' before pushing — a template's trailer survives a rebase.

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

Що робить навичка ШІ Epiq Architecture?

Як влаштовано epiq: розподілені правила журналу подій (каузальне впорядкування, логічні годинники, tombstones, повне відтворення), рівні коду та робочий процес у цьому репозиторії. Прочитайте перед будь-якими змінами, особливо якщо вони стосуються подій, порядку, злиття, відтворення, матеріалізації чи синхронізації, нового типу події або повідомлення websocket, а також взаємодії між рівнями.

Навіщо використовувати Epiq Architecture у TypingMind?

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

Як встановити Epiq Architecture у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/ljtn/epiq/tree/main/.claude/skills/epiq-architecture. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

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

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

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

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

Чи безкоштовна навичка ШІ Epiq Architecture?

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

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

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

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

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

Усі
Логотип openclaw

Openclaw Pr Maintainer

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

Переглядайте, сортуйте за пріоритетом і виправляйте проблеми та pull request-и OpenClaw або вносьте зміни, спираючись на актуальні дані з вихідного коду та стандартний робочий процес супровідника.

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

Openclaw Refactor Docs

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

Переробіть наявну сторінку документації OpenClaw зі збереженням вмісту, перевіреного за джерелами, реструктуризацією та верифікацією.

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

Openclaw Repair Sweep

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

Проводьте цільові кампанії з виправлення проблем і PR в OpenClaw: координуйте роботу виконавців, підтверджуйте першопричини та зливайте перевірені зміни або закривайте завдання в межах наданих повноважень.

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

Openclaw Test Performance

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

Вимірюйте продуктивність, діагностуйте й оптимізуйте час виконання тестів і наборів плагінів OpenClaw, вузькі місця імпорту, CPU/RSS, зростання heap і повільні шляхи покриття тестами.

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

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

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