powersync

Guided onboarding and best practices for building applications with PowerSync — Cloud and self-hosted setup, sync configuration, client SDK usage, backend integration (Supabase, custom Postgres, MongoDB, MySQL, MSSQL), and debugging. Use this skill whenever the user mentions PowerSync, offline-first sync, local-first architecture, sync rules, sync streams, uploadData, fetchCredentials, real-time data replication, or wants to add offline-capable sync to a mobile or web app — even if they don't explicitly name PowerSync.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "powersync" with this command: npx skills add powersync-ja/agent-skills/powersync-ja-agent-skills-powersync

PowerSync Skills

Use this skill to onboard a project onto PowerSync without trial-and-error. Treat this as a guided workflow first and a reference library second.

Agents: Read AGENTS.md before proceeding. It contains the mandatory compliance rules and onboarding playbook. The Quick Rules below are a reminder, not a substitute. powersync login is PowerSync Cloud only (PAT); self-hosted does not use it.

Quick Rules

  • CLI-first. Use the PowerSync CLI for all operations. Do not hand-write config files. See references/powersync-cli.md.
  • Ask, don't assume. Ask Cloud vs self-hosted. Ask which backend (Supabase, Postgres, MongoDB, MySQL, MSSQL). Do not default to Supabase.
  • Backend before frontend. Deploy sync config and verify the service before writing app code.
  • Sync Streams for new projects. Sync Rules are legacy.
  • Persist credentials immediately. Write all URLs and keys to .env as soon as they are available.

What to Load for Your Task

TaskStart withLoad on demand
Supabase + PowerSyncreferences/onboarding-supabase.mdreferences/supabase-auth.md, references/sync-config.md, SDK files
Custom backend (non-Supabase)references/onboarding-custom.mdreferences/custom-backend.md, references/sync-config.md, SDK files
New project setupreferences/powersync-cli.md + references/powersync-service.mdreferences/sync-config.md, SDK files
Self-hosting / service configreferences/powersync-service.md + references/powersync-cli.mdreferences/sync-config.md
Writing sync configreferences/sync-config.md
Debugging sync issuesreferences/powersync-debug.md
Raw Tables (advanced)references/raw-tables.md
Attachmentsreferences/attachments.md
Architecture overviewreferences/powersync-overview.md

SDK Reference Files

JavaScript / TypeScript

Always load references/sdks/powersync-js.md for any JS/TS project, then load the applicable framework file.

FrameworkFileLoad early if…
React / Next.jsreferences/sdks/powersync-js-react.mdVite + React project — contains the required vite.config.ts setup (optimizeDeps.exclude, worker.format: 'es') needed before installing packages
React Native / Exporeferences/sdks/powersync-js-react-native.md
Vue / Nuxtreferences/sdks/powersync-js-vue.md
Node.js / Electronreferences/sdks/powersync-js-node.md
TanStackreferences/sdks/powersync-js-tanstack.md
Drizzle / Kysely ORMreferences/sdks/powersync-js-orm.mdProject uses Drizzle or Kysely

Other SDKs

PlatformFile
Dart / Flutterreferences/sdks/powersync-dart.md
.NETreferences/sdks/powersync-dotnet.md
Kotlinreferences/sdks/powersync-kotlin.md
Swiftreferences/sdks/powersync-swift.md

Key Rules to Apply Without Being Asked

  • Never define the id column in a PowerSync table schema; it is created automatically.
  • Use column.integer for booleans and column.text for ISO date strings.
  • connect() is fire-and-forget. Use waitForFirstSync() if you need readiness.
  • transaction.complete() is mandatory or the upload queue stalls permanently.
  • disconnectAndClear() is required on logout or user switch when local data must be wiped.
  • A 4xx response from uploadData blocks the upload queue permanently; return 2xx for validation errors.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

StylePilot

StylePilot 个人衣橱助手。用户拍照存储衣服信息,或询问穿搭搭配(今天穿什么/出行带什么)时激活。不要主动触发,只在用户明确表示需要穿搭建议时使用。 StylePilot is a personal wardrobe assistant. Activate only when the user expli...

Registry SourceRecently Updated
1390Profile unavailable
General

SQL Guard Copilot

Simplify SQL querying and troubleshooting for MySQL, PostgreSQL, and SQLite. Use when users ask to inspect schema, convert natural language to SQL, debug SQL...

Registry SourceRecently Updated
3110Profile unavailable
Coding

SYSU Duck

中山大学校园AI陪伴鸭鸭,支持本地SQLite档案管理、多种人格设定、校园问答记忆及指令操作。

Registry SourceRecently Updated
810Profile unavailable
Coding

ClawHealth Garmin

Lightweight Garmin Connect skill that uses the clawhealth Python package to sync health data into local SQLite and expose JSON-friendly commands for OpenClaw.

Registry SourceRecently Updated
2280Profile unavailable