Agent skill

Zero Sync

by Compound-inc in Compound-inc/rift

Zero sync engine patterns for React and TanStack Start apps.

Custom licenceAuto-check: notesBackend & APIs

Install Zero Sync

skills CLI
$ npx skills add Compound-inc/rift --skill zero-sync -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Compound-inc/rift zero-sync --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Compound-inc/rift.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.pi/skills/zero-sync .claude/skills/zero-sync && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
zero-sync
GitHub stars
123
Token cost
~3.7k tokens
SKILL.md length
331 words
Files
3 (incl. references)
Skills in repo
5
Repo updated
First seen
Licence
Custom licence

At a glance

Zero sync engine patterns for React and TanStack Start apps.

  • Implementing Zero (@rocicorp/zero)
  • SKILL.md covers Quick Reference: Critical Rules, Schema Definition, Queries and Mutators, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Defining ZQL queries

What it does

Zero Sync is an agent skill from Compound-inc/rift. Zero sync engine patterns for React and TanStack Start apps. Schema definition, queries, mutators, authentication, and real-time sync. Use when implementing Zero (@rocicorp/zero), defining ZQL queries, creating mutators, or setting up sync with Postgres.

Its SKILL.md is about 3.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/permissions-patterns.md` and `references/zql-operators.md`).

It sits in Backend & APIs. It works with React, PostgreSQL and TanStack.

When your agent uses it

  • Implementing Zero (@rocicorp/zero)
  • Defining ZQL queries
  • Creating mutators
  • Setting up sync with Postgres

Example prompts

  • “/zero-sync”

What it can do on your machine

Read from SKILL.md and the folder at commit 4471fb5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript and bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Zero Sync loads about 3.7k tokens when it runs, and up to ~6k if it reads all its reference files. Until then it costs about 66 tokens; SKILL.md has 331 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~66
When it runs · the whole SKILL.md, loaded when a task matches
~3.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:443
    # .env

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 331 words (~3,691 tokens).

“Zero is a query-driven sync engine that replicates Postgres into a SQLite replica inside zero-cache, then syncs subsets of rows to clients based on queries. Client reads/writes hit local storage first (instant UI), with zero-cache keeping clients up to date…”

— opening of SKILL.md by Compound-inc, Custom licence
name
zero-sync

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files (references) in .pi/skills/zero-sync of Compound-inc/rift.

  • SKILL.md
  • references/permissions-patterns.md
  • references/zql-operators.md

Open the folder on GitHubat commit 4471fb5

Compare with similar skills

Zero Sync next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Zero Sync compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Zero Sync this skillCompound-inc/rift123—~3.7kAutomated safety check: NotesCustom licence
Supabasecurvenote/curvenote1695 repos~2.2kAutomated safety check: PassCustom licence
Tanstack Query Best PracticesDeckardGer/tanstack-agent-skills2221 repos~1.2kAutomated safety check: PassMIT
Trpc PatternsFranciscoMoretti/chat-js1.2k—~288Automated safety check: PassApache-2.0
Shadmin CLIahaodev/shadmin174—~1.1kAutomated safety check: NotesMIT
Tanstack Start Best PracticesDeckardGer/tanstack-agent-skills222—~1kAutomated safety check: PassMIT

Similar skills

  • Supabase

    curvenote/curvenote

    A skill your agent uses when doing ANY task involving Supabase.

    169 GitHub starsUsed in 5 repos~2.2k tokens
    Backend & APIsAuto-check passed
  • Tanstack Query Best Practices

    DeckardGer/tanstack-agent-skills

    TanStack Query (React Query) best practices for data fetching, caching, mutations, and server state management.

    222 GitHub starsUsed in 1 repo~1.2k tokens
    Backend & APIsAuto-check passed
  • Trpc Patterns

    FranciscoMoretti/chat-js

    Implement ChatJS tRPC routers, TanStack Query hooks, mutations, and cache invalidation.

    1.2k GitHub stars~288 tokensUpdated today
    Backend & APIsAuto-check passed
  • Shadmin CLI

    ahaodev/shadmin

    A skill your agent uses when the user asks to query Shadmin admin platform resources (users, roles, menus, registered API resources) from a terminal — for example "list shadmin users", "show shadmin…

    174 GitHub stars~1.1k tokensUpdated 5 days ago
    Backend & APIsAuto-check: notes
  • Tanstack Start Best Practices

    DeckardGer/tanstack-agent-skills

    TanStack Start best practices for full-stack React applications.

    222 GitHub stars~1k tokensUpdated 28 days ago
    Backend & APIsAuto-check passed
  • Frontend Conventions

    iflytek/skillhub

    Coding conventions, architecture patterns, and testing rules for the SkillHub React frontend.

    5.2k GitHub stars~1k tokensUpdated 6 days ago
    Backend & APIsAuto-check passed

More from Compound-inc/rift

  • Rift Backend Effect

    Compound-inc/rift

    A skill your agent uses when adding, reviewing, or refactoring backend code in Rift's TanStack Start app that should follow apps/start/BACKENDEFFECTPLAYBOOK.md.

    123 GitHub stars~1.8k tokensUpdated 9 days ago
    Auto-check passed
  • AI SDK

    Compound-inc/rift

    Answer questions about the AI SDK and help build AI-powered features.

    123 GitHub starsUsed in 2 repos~568 tokens
    Auto-check passed
  • Adding Sidebar Sections

    Compound-inc/rift

    Add a new sidebar section (e.g. An agent skill from Compound-inc/rift.

    123 GitHub stars~1.7k tokensUpdated 9 days ago
    Auto-check passed
  • Building Components

    Compound-inc/rift

    Guide for building modern, accessible, and composable UI components.

    123 GitHub starsUsed in 1 repo~538 tokens
    Auto-check passed

Categories

Questions about Zero Sync

What does Zero Sync do?

Zero sync engine patterns for React and TanStack Start apps. Zero Sync is an agent skill from Compound-inc/rift. Zero sync engine patterns for React and TanStack Start apps.

When should I use Zero Sync?

Zero Sync fits situations like: implementing Zero (@rocicorp/zero); defining ZQL queries; creating mutators; setting up sync with Postgres.

How do I install Zero Sync in Claude Code?

Run `npx skills add Compound-inc/rift --skill zero-sync -a claude-code`. Or copy the skill folder (.pi/skills/zero-sync in Compound-inc/rift) into .claude/skills/zero-sync in your project. Claude Code loads it when a task matches its description.

How do I install Zero Sync in Codex?

Run `npx skills add Compound-inc/rift --skill zero-sync -a codex`. Or copy the skill folder (.pi/skills/zero-sync in Compound-inc/rift) into .agents/skills/zero-sync in your project. Codex loads it when a task matches its description.

Can I use Zero Sync in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Compound-inc/rift --skill zero-sync -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/zero-sync, .gemini/skills/zero-sync, .github/skills/zero-sync and .opencode/skills/zero-sync in your project.

What does Zero Sync need to run?

SKILL.md names no scripts, command-line tools or credentials: Zero Sync is instructions for the agent only.

Does Zero Sync access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Zero Sync safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Zero Sync use?

Zero Sync has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Zero Sync use?

About 3.7k tokens (SKILL.md is roughly 15k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.3k tokens, read only when the agent opens those files.

What are the alternatives to Zero Sync?

Skills that share tags, products or a category with Zero Sync: Supabase (curvenote/curvenote, 169 stars), Tanstack Query Best Practices (DeckardGer/tanstack-agent-skills, 222 stars), Trpc Patterns (FranciscoMoretti/chat-js, 1.2k stars) and Shadmin CLI (ahaodev/shadmin, 174 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Zero Sync?

Compound-inc (a GitHub organization) maintains it in Compound-inc/rift, which has 123 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 28, 2026.

Source: Compound-inc/rift on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.