home / skills / harborgrid-justin / lexiflow-premium / real-time-collaborative-editing
/frontend/.github-skills/real-time-collaborative-editing
This skill helps you implement real-time collaborative editing using CRDTs or OT, synchronized with React, to maintain a responsive multi-user UI.
npx playbooks add skill harborgrid-justin/lexiflow-premium --skill real-time-collaborative-editingReview the files below or copy the command above to add this skill to your agents.
---
name: real-time-collaborative-editing
description: Build collaborative surfaces using CRDTs or OT, synchronized with React's update model.
---
# Real-Time Collaborative Editing
## Summary
Build collaborative surfaces using CRDTs or OT, synchronized with React's update model.
## Key Capabilities
- Bind CRDT structures (Yjs/Automerge) to React state.
- Handle presence awareness and cursor tracking efficiently.
- Resolve concurrent edits without locking the UI.
## PhD-Level Challenges
- Prove convergence of document state under high concurrency.
- Optimize re-renders for frequent remote operations.
- Implement local-first offline support with sync merging.
## Acceptance Criteria
- Demonstrate real-time sync between multiple clients.
- Provide conflict resolution test cases.
- Benchmark operation processing throughput.
This skill helps teams build real-time collaborative editing surfaces using CRDTs or Operational Transform (OT) techniques, tightly integrated with React's rendering model. It focuses on live synchronization, presence awareness, and conflict-free merging so users see consistent document state across clients. The implementation is geared for production use in premium legal management contexts where correctness and auditability matter.
The skill binds CRDT structures (for example Yjs or Automerge) to React state so remote operations produce predictable re-renders without blocking the UI. It tracks presence and cursor positions as lightweight shared objects, broadcasting minimal updates for smooth UX. Concurrent edits are merged deterministically by the CRDT/OT layer while the React adaptor batches local state updates to avoid excessive renders.
Which is better for legal workflows: CRDT or OT?
CRDTs simplify convergence and offline support, making them a strong default for legal workflows; OT can work if you need compatibility with legacy servers.
How do you avoid excessive React re-renders?
Batch CRDT-to-React updates, subscribe at granular component levels, and separate frequent presence updates from document state.