loro
БесплатноБез исполняемых скриптовНе проверенPractical guide for helping app developers evaluate, adopt, and use Loro for local-first collaboration. Use when Codex needs to answer questions or write…
от loro-dev★ 6 336 звёзд на GitHubОб этом скилле
Loro
Use this skill to help users build applications with Loro. Start from the user's product goal, then choose the narrowest chapter that answers it. Load a second chapter only when the task crosses domains.
Select A Chapter
- Read references/topic-map.md if the task is broad and you need to route it.
- Read references/fit-and-architecture.md for product fit, installation, language/package choices, first examples, and core mental models.
- Read references/containers-and-encoding.md for choosing containers, shaping documents, exporting updates, snapshots, persistence, shallow snapshots, and redaction.
- Read references/sync-versioning-and-events.md for realtime/offline sync, version vectors, frontiers, checkout, undo, presence, timestamps, events, and Inspector.
- Read references/richtext-and-editors.md for
LoroText, cursors,applyDelta,updateByLine,loro-prosemirror, Tiptap, and CodeMirror. - Read references/mirror-and-react.md for
loro-mirror,$cid,idSelector, validation, selectors, and React integration. - Read references/performance-and-tradeoffs.md for scaling, document/update size, loading speed, and workload tradeoffs.
Route Common Tasks
- “I am new to Loro / should I use it / show me a first example”
- Start with
fit-and-architecture.md
- Start with
- “Which language package or binding should I use?”
- Start with
fit-and-architecture.md
- Start with
- “Build a collaborative document model / choose data types / persist history”
- Start with
containers-and-encoding.md - Add
sync-versioning-and-events.mdif version/history behavior matters
- Start with
- “Sync devices, store data, use snapshots, time travel, undo, or presence”
- Start with
sync-versioning-and-events.md
- Start with
- “Integrate ProseMirror, Tiptap, CodeMirror, or custom rich text”
- Start with
richtext-and-editors.md - Add
sync-versioning-and-events.mdif undo/version/event behavior matters
- Start with
- “Model app state with loro-mirror or loro-mirror-react”
- Start with
mirror-and-react.md - Add
containers-and-encoding.mdif schema semantics depend on container choice
- Start with
- “Explain performance, large documents, loading, update size, or tradeoffs”
- Start with
performance-and-tradeoffs.md
- Start with
- “Decide whether Loro is the right tool”
- Start with
fit-and-architecture.md - Add
performance-and-tradeoffs.mdif workload scale matters
- Start with
Execute The Task
- Classify the task before reading everything.
- Load one primary chapter.
- Load at most one secondary chapter for cross-domain work.
- Keep solutions grounded in Loro semantics:
- choose data types by merge behavior,
- distinguish state version from history version,
- keep ephemeral state out of persisted CRDT data,
- use stable cursors for collaborative selections,
- design sync around updates and snapshots rather than a central locking protocol.
Keep Guardrails
- Do not assume CRDTs are the right fit for hard invariants, exclusivity, or authorization-at-write-time problems.
- Do not model editable text as plain strings when user intent requires merged edits.
- Do not reuse peer IDs across concurrent sessions.
- Do not confuse detached documents with detached containers.
- Do not expect
doc.free()alone to release a JS/WASM document: free its container handles too, or let the code yield so the garbage collector can (seereferences/performance-and-tradeoffs.md). - Do not persist cursor presence, hover state, or connection state inside the main document; use ephemeral state.
Установить loro в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл loro?
Practical guide for helping app developers evaluate, adopt, and use Loro for local-first collaboration. Use when Codex needs to answer questions or write examples for `loro-crdt`, `loro`, `loro-prosemirror`, `loro-codemirror`, `loro-mirror`, language bindings such as Swift/Python/C#/Go/React Native, or Loro-powered apps about: (1) Deciding whether Loro fits a product, (2) Getting started in JavaScript/TypeScript, Rust, or another supported binding, (3) Choosing CRDT containers and document structure, (4) Designing sync, persistence, snapshots, versioning, undo, presence, or time travel, (5) Integrating rich-text editors and stable selections, (6) Mirroring app state with React, or (7) Understanding performance and tradeoffs.
Как установить скилл loro?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл loro запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic