reactive-sync-engine-expert

reactive-sync-engine-expert is a skill for Cursor from roedyrustam/vibes-plug. It costs 78 tokens per session (1,720 once invoked), scanned A, original, MIT.

A guide to keeping application data synchronised between PostgreSQL and browser or mobile storage such as IndexedDB or SQLite. It covers reactive updates, local optimistic changes, and server-side conflict handling.

In plain words
What is it for?
Use it for collaborative applications, reactive dashboards, offline-capable web or mobile apps, and systems built with Zero, ElectricSQL, or PowerSync.
Why use it?
It helps avoid slow chains of request-and-response calls and gives clients a defined way to catch up when local changes conflict with server data.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin. Also seen: positional $N argument.

Part of the vibes-plug plugin — 171 skills, 8 agents, 2 MCP servers shipped together

Good fit Use it for collaborative applications, reactive dashboards, offline-capable web or mobile apps, and systems built with Zero, ElectricSQL, or PowerSync.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/roedyrustam/vibes-plug/reactive-sync-engine-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add roedyrustam/vibes-plug --skill reactive-sync-engine-expert
Clone the repo
git clone --depth 1 https://github.com/roedyrustam/vibes-plug

Made for: Cursor.

Or install vibes-plug, the plugin that ships this one along with the rest of its 171 skills, 8 agents, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reactive-sync-engine-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/reactive-sync-engine-expert/github.svg)](https://agentmods.dev/skills/roedyrustam/vibes-plug/reactive-sync-engine-expert)
Your own site
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/reactive-sync-engine-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/reactive-sync-engine-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reactive-sync-engine-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/reactive-sync-engine-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/reactive-sync-engine-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,720 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.01720
Opus 5.5 $0.00031 $0.00688
Sonnet 5.5 $0.00016 $0.00344
Haiku 4.5 $0.00008 $0.00172

Measured today against content hash eafee640f8a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

reactive-sync-engine-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/reactive-sync-engine-expert/SKILL.md · 154 lines

How it starts

The opening of the file, as written. The whole thing — 154 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Reactive Sync Engine Expert / Ahli Mesin Sinkronisasi Reaktif


English

Overview

You are a Principal Distributed Client-Data Architect specializing in Linear-style reactive sync engines. You replace slow request-response REST waterfalls with real-time delta replication from PostgreSQL WAL (Write-Ahead Log) directly into browser IndexedDB/OPFS SQLite stores, delivering 0ms perceived read/write latency with server-authoritative conflict resolution.

1. Sync Engine Architecture Matrix (2026)

Engine Replication Protocol Client Storage Conflict Resolution Best Use Case
Zero (Rocicorp) Postgres WAL $\rightarrow$ IVM (Incremental View Maintenance) IndexedDB / Memory Server-Authoritative Custom Mutators Linear-speed collaborative SaaS, complex relational queries
ElectricSQL (v2 HTTP Shape) Postgres Logical Replication $\rightarrow$ HTTP Shape Stream PGlite (WASM Postgres) / TanStack DB Through-DB Write + Shape Sync Read-heavy reactive dashboards, embedded PGlite apps
PowerSync Postgres WAL $\rightarrow$ Bucket Sync Rules OPFS SQLite (Web & Mobile) Upload Queue + Server Reconciler Field-service mobile/web apps with multi-day offline

2. Zero-Latency Optimistic Mutators & Server Reconciliation

Every mutation executes twice:

  1. Client-Side Optimistic Execution (T + 0ms): Runs immediately against the local replica inside a transaction, updating reactive UI queries in < 1ms.
  2. Server-Side Authoritative Execution (T + RTT): The mutation name and arguments are sent to the server, executed inside a PostgreSQL SERIALIZABLE or READ COMMITTED transaction, and re-broadcast via the WAL stream. If the server rejects or alters the mutation, the local optimistic state rolls back automatically.
// src/sync/zero-schema-mutators.ts
import { createSchema, table, string, number, boolean, defineMutators } from '@rocicorp/zero';
import { z } from 'zod';

const issueTable = table('issues')
  .columns({
    id: string(),
    tenantId: string(),
    title: string(),
    status: string(),
    priority: number(),
    updatedAt: number(),
    archived: boolean(),
  })
  .primaryKey('id');

export const schema = createSchema({
  tables: [issueTable],
});

export type Schema = typeof schema;

export const UpdateIssueStatusArgs = z.object({
  id: z.string().uuid(),
  tenantId: z.string().uuid(),
  status: z.enum(['backlog', 'in_progress', 'in_review', 'done']),
  priority: z.number().int().min(0).max(4),
});

export const mutators = defineMutators(schema, {
  updateIssueStatus: async (tx, rawArgs: z.infer<typeof UpdateIssueStatusArgs>) => {
    const args = UpdateIssueStatusArgs.parse(rawArgs);
    const existing = await tx.query.issues
      .where('id', '=', args.id)
      .where('tenantId', '=', args.tenantId)
      .one();

    if (!existing) {
      throw new Error(`ISSUE_NOT_FOUND: ${args.id}`);
    }

    await tx.mutate.issues.update({
      id: args.id,
      status: args.status,
      priority: args.priority,
      updatedAt: Date.now(),
    });
  },
});

Read the full file on GitHub · 154 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 154 lines · 78 tokens per session scan A eafee640f8a9

Subscribe to this mod's changes

reactive-sync-engine-expert is a skill published in the GitHub repository roedyrustam/vibes-plug (113 stars, last pushed today), licensed MIT. It adds 78 tokens to every session and 1,720 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-24.

Related

Other skills, from other repositories

system-and-data-design

Decide whether the system will hold, and where the data lives: requirements and load first, then back-of-the-envelope numbers, building blocks (cache, queue, load balancer, CDN), and the data layer in depth — storage engines, indexes, replication, partitioning, transactions and consistency, batch vs stream. Use when…

AnastasiyaW/codex-claude-code-config · 217 tokens

redis

Expert Redis in-memory data store assistance covering data structures, caching, pub/sub, Lua scripts, Redis Streams, and clustering. Use when building ultra-fast caches, rate limiters, session stores, or message queues.

G1Joshi/Agent-Skills · 45 tokens

firebase

Expert Firebase & Cloud Firestore assistance covering collection/document models, real-time listeners, security rules, and offline caching. Use when building mobile/web apps with real-time sync and client auth.

G1Joshi/Agent-Skills · 39 tokens

supabase

Expert Supabase assistance covering PostgreSQL, Row Level Security (RLS), Edge Functions, Auth, and pgvector. Use when building full-stack web/mobile applications with Postgres backends and instant REST/GraphQL APIs.

G1Joshi/Agent-Skills · 48 tokens

bullmq-specialist

BullMQ expert for Redis-backed job queues, background processing, and reliable async execution in Node.js/TypeScript applications. Use when "bullmq, bull queue, redis queue, background job, job queue, delayed job, repeatable job, worker process, job scheduling, async processing, bullmq, bull, redis, queue…

omer-metin/skills-for-antigravity · 91 tokens

firebase

Firebase gives you a complete backend in minutes - auth, database, storage, functions, hosting. But the ease of setup hides real complexity. Security rules are your last line of defense, and they're often wrong. Firestore queries are limited, and you learn this after you've designed your data model. This skill covers…

omer-metin/skills-for-antigravity · 208 tokens