What problem does it solve? Yjs applications frequently suffer from duplicate imports, bloated documents from inefficient Y.Map usage, and unnecessary subdocument complexity, causing synchronization bugs and performance degradation that are hard to diagnose. ## Core Features & Use Cases - Duplicate Import Detection: Identifies and fixes double Yjs imports caused by CJS/ESM mixing or bundler duplication using package manager resolutions and bundler aliases. - Document Structure Guidance: Explains when to avoid subdocuments and use Y.Map instead, and when to replace Y.Map with YKeyValue from y-utility for efficient key-value storage. - V2 Encoding Configuration: Shows how to enable experimental V2 encoding with Liveblocks for smaller document sizes and reduced bandwidth. - Use Case: When your collaborative editor shows a Yjs duplicate-import warning in the console or your document grows to hundreds of kilobytes from frequent key updates, use this Skill to pinpoint the cause and apply the correct fix. ## Quick Start Ask the AI to review your Yjs setup for duplicate imports and recommend whether to use Y.Map, YKeyValue, or subdocuments for your data model.