Assists with Yjs patterns, shared types, and conflict resolution for building collaborative applications.

Install

mkdir -p .claude/skills/yjs && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2298" && unzip -o skill.zip -d .claude/skills/yjs && rm skill.zip

Installs to .claude/skills/yjs

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Yjs CRDT patterns, shared types (Y.Map, Y.Array, Y.Text), transactions, y-protocols sync and awareness, y-indexeddb persistence, conflict resolution, and document storage. Use when mentioning Yjs, Y.Doc, CRDTs, collaborative editing, real-time sync, awareness, IndexeddbPersistence, or Yjs providers.
300 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • →Configures shared data models using Y.Map and Y.Array
  • →Implements fractional indexing for reordering logic
  • →Encapsulates persistence strategies via indexedDB
  • →Enforces state-vector sync for data consistency

How it works

It applies CRDT principles to structure collaborative state and manages transaction propagation to ensure document consistency across distributed clients.

Inputs & outputs

You give it
Data structure requirement and sync constraints
You get back
Yjs shared type configuration and logic

When to use yjs

  • →Setting up shared data structures
  • →Handling conflict resolution
  • →Implementing real-time synchronization
  • →Optimizing Yjs document storage

About yjs

This skill manages collaborative data models using Yjs. It assists with transactions, shared type APIs (Y.Map, Y.Array), and persistence strategies to ensure consistent state in real-time.

Yjs CRDT patterns, shared types, conflict resolution, and meta data structures. Use when building collaborative apps with Yjs, handling Y.Map/Y.Array/Y.Text, implementing drag-and-drop reordering, or optimizing document storage.

When not to use it

  • →When high-latency operations do not require real-time conflict resolution
  • →When local-only, single-user state management is sufficient

Prerequisites

yjs

Limitations

  • →High memory consumption with large, unoptimized document state
  • →Requires explicit handling of provider-specific lifecycle

How it compares

It provides structural guidance for distributed state, avoiding the common pitfalls of manual merge-conflict resolution.

Compared to similar skills

yjs side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
yjs (this skill)25moNo flagsAdvanced
shopify-development1210moReviewIntermediate
nuxt199moNo flagsIntermediate
tanstack-query75moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

Search skills

Search the agent skills registry