revfactory/claude-code-harness/crdt-algorithms
Claude Code and agent skill by revfactory/claude-code-harness
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
CRDT-based real-time collaborative text editor implementation guide. Use when the user requests implementing CRDTs, real-time collaboration, conflict resolution, RGA algorithm, or convergent replicated data types.
Install
npx vskill@latest install revfactory/claude-code-harness/crdt-algorithmsSKILL.md
The same SKILL.md was published earlier as revfactory/claude-code-harness/crdt-algorithms.
CRDT Algorithms Skill
CRDT 기반 실시간 협업 텍스트 에디터 구현 가이드
RGA 자료구조 개요
- CharId:
(siteId, Lamport clock)쌍으로 전역 고유 식별 - 삭제는 tombstone (
deleted=true), 실제 제거하지 않음 nodeMap으로 O(1) 노드 조회
충돌 해결 규칙 (결정론적)
- 동시 삽입 (같은 위치):
id.compareTo()로 결정. clock 우선, 같으면 siteId 사전순 - 삽입 vs 삭제: tombstone 기반이므로 삭제된 노드 뒤에 삽입 가능
- 멱등성:
nodeMap에 이미 존재하면 무시 (ID 기반 중복 체크)
인과성 원칙
- Lamport clock:
max(local, received) + 1 - happens-before 관계 보장
- 모든 사이트가 동일 연산 집합을 적용하면 동일 결과 수렴
파일 구조
테스트 전략 (6가지)
- 단일 사이트: 삽입/삭제/getText
- 2사이트 비충돌 동기화
- 시나리오 A: 동시 삽입 같은 위치 → 결정론적 순서
- 시나리오 B: 삽입 vs 삭제 같은 위치
- 시나리오 C: 3사이트 복합 편집 → 수렴
- 랜덤 퍼즈 테스트: N회 랜덤 연산 → syncAll → 수렴 검증
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingexperiments/results/case-010/harness/.claude/skills/crdt-algorithms/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/revfactory/claude-code-harness/crdt-algorithms)