Add CRDT
Add real-time collaborative editing using Velt CRDT (Yjs-backed).
Trigger
Use when the user wants collaborative editing with Tiptap, BlockNote, CodeMirror, ReactFlow, or custom CRDT stores.
Workflow
- •Ask which editor the user wants to make collaborative:
- •Tiptap: Rich text editor
- •BlockNote: Block-based editor
- •CodeMirror: Code editor
- •ReactFlow: Node-based diagrams
- •Custom CRDT store: Raw text/array/map/xml stores
- •Verify Velt is set up. If not, run /install-velt first.
- •Use the
install_velt_interactiveMCP tool with CRDT feature and the selected editor type. - •Follow the guided flow (plan → approve → apply).
Guardrails
- •CRITICAL: When using Tiptap, MUST disable history:
StarterKit.configure({ history: false }) - •Each editor instance needs a unique
editorId. - •Add CSS for collaboration cursors.
- •Choose the correct store type: text for plain text, xml for rich text editors, map for key-value, array for lists.
- •Consult reference agent-skills at /references/agent-skills/skills/velt-crdt-best-practices/ for detailed patterns.
Output
- •CRDT packages installed
- •Editor configured with Velt CRDT extension
- •Collaboration cursors styled
- •Real-time sync working between users
Important: Always consult guides/velt-rules.md for embedded best practices before querying external sources.