SkillsReviewed · powersync-ja

PowerSync Skills

PowerSync Skills is an instruction pack for developers using AI coding assistants to build or maintain PowerSync apps, but its backend examples need security and error-handling fixes before production use. It covers service setup, local SQLite integration, synchronization, authentication and troubleshooting across web, mobile and desktop platforms.

Researched 15 Nov 2026

In short.

PowerSync Skills is a reference pack for developers using AI coding assistants to build offline-capable apps with PowerSync, but several examples need correction before production use. Its strongest features are ordered backend setup, platform-specific guidance and explicit deployment safeguards. The custom backend example lacks demonstrated authentication enforcement and can acknowledge failed writes; the Supabase example also misimports a runtime enum. No commands, scripts or applications were run, and improvements in reliability or development speed are unknown.

Researched and written by an AI model and checked by a second AI model. How it works

The scope comprises all 31 supplied files under skills/powersync: SKILL.md, AGENTS.md, CLAUDE.md, 27 reference documents and scripts/trim.mjs, plus the repository-level LICENSE notice. All belong to source revision c539ea3525d91d83e8d9062a40bf9a71122b2fbf. Other repository content, linked documentation, dependency source code and external services are outside this scope. No files were changed and nothing was installed or executed; runtime correctness, security, performance and deployment behavior remain untested.

The overview

Identity

PowerSync Skills is the powersync skill in PowerSync's powersync-ja/agent-skills repository. SKILL.md declares version 1.6.6, names PowerSync as its author and organization, and describes compatibility with skills-compatible agents. Its companion AGENTS.md contains the detailed playbook; CLAUDE.md points to that file. The original source is [https://github.com/powersync-ja/agent-skills/tree/main/skills/powersync].

Assessment

The pack is useful as an onboarding checklist and a reference for existing applications. It puts source-database replication, deployed sync configuration and authentication ahead of client code. For existing projects, it limits the default scope to sync-config.yaml and calls for identifying the target instance before deployment or other state changes.

These safeguards are instructions for an assistant to follow; the evidence does not show a component that enforces them. Human review remains necessary, particularly for generated backend code and production operations. The custom backend examples contain concrete omissions and error-handling risks, so the pack is best treated as guidance requiring engineering review.

Who it suits

The clearest audience is developers already choosing or using PowerSync who want an AI assistant to follow its integration conventions. Beginners receive terminology and a staged setup path, but still need someone able to manage database access, authentication and deployments. Experienced developers get detailed references for upload queues, schema changes, reactive queries and account switching.

The reference library covers JavaScript and TypeScript frameworks, Node.js and Electron, React Native and Expo, Dart and Flutter, Kotlin, Swift, Rust and .NET. It also includes Vue and Nuxt guidance. Coverage varies by platform, and the presence of a reference does not establish production suitability for every SDK or feature.

Capabilities

The instructions cover Cloud and self-hosted onboarding, database replication setup, JWT authentication, Sync Streams, backend write handlers and troubleshooting. Debugging guidance separates upload failures from download failures, examines the local ps_crud queue and explains service logs and query plans. A Dart-specific reference describes inspecting a running debug or profile app through Dart MCP service extensions.

Advanced references cover attachments with separate file storage, raw and managed SQLite tables, custom SQLite extensions, Drizzle and Kysely, TanStack integrations, Terraform provisioning and migration from Electric Shapes. The attachment guide distinguishes whole-file buffering from streaming transfers and explains atomic updates that link a file to an application record.

An optional Node.js trimming script detects PowerSync platforms from project manifests. Its default mode reports proposed removals; --apply rewrites the skill indexes and deletes unused references, while --decline writes a saved decision. The supplied script uses Node built-ins and contains no network requests.

Using it

Requirements

The skill requires an agent host that can load its instructions and references. Carrying out its workflows additionally requires appropriate repository, command-line and infrastructure access. The files do not establish a complete skill-installation procedure or verify compatibility with particular agent hosts. Node.js is needed for the optional trimming script.

Application requirements depend on the chosen path: a supported source database, a PowerSync instance, client authentication and a matching SDK. Custom backends generally need token, key-discovery and upload endpoints; Convex uses mutations for writes. Self-hosting also needs bucket storage separate from the source database. The local Docker path specifies Docker Compose V2 2.20.3 or later, and self-hosted Sync Streams require PowerSync Service 1.20.0 or later.

Live Dart inspection additionally requires the Dart MCP server and an app registered with the Dart Tooling Daemon in debug or profile mode. Those capabilities are prerequisites described by the resource, not demonstrated connections.

How it works

SKILL.md routes an assistant to the references relevant to a task, while AGENTS.md supplies the ordered setup and operating rules. The approach loads a common foundation and then platform-specific material as needed. The trimming utility can reduce an installed copy's reference set for a particular repository.

The underlying architecture has two paths. PowerSync replicates source-database changes into local SQLite databases for application reads. Local writes enter an upload queue and are sent through uploadData() to application-owned backend logic, which applies writes and decides conflict resolution. Convex can receive those writes through mutations directly. Sync Streams define which rows each authenticated client receives, and client-supplied parameters need authorization guards.

The connector must acknowledge completed upload transactions to advance the queue. Starting connect() does not establish that data is ready; the references use first-sync or stream-readiness status for that distinction.

Setup

Keep the skill folder's relative layout intact so its entry point can reach AGENTS.md and the reference files. Registration with a particular agent host is not established by the supplied files. The first-use trimming feature is optional and requires approval before removing references; reinstalling or updating restores the full copy.

The documented application setup begins by choosing Cloud or self-hosted hosting and a database. The assistant then collects the required instance details, configures replication and authentication, and deploys edition 3 Sync Streams before integrating the client SDK. Supabase and custom backends have separate recipes. Credentials are supplied through environment configuration rather than hardcoded examples.

For existing Cloud instances, back up local configuration before powersync pull instance because it overwrites service.yaml and sync-config.yaml. Confirm the instance and allowed changes before deployment. Terraform-managed Cloud instances use the Terraform provider's configuration path; the guide warns against also deploying to the same instance through the CLI.

Example use

For a React task app backed by Supabase, the skill would guide an assistant through creating a dedicated replication role and publication, configuring Supabase authentication and deploying a user-scoped stream. One supplied stream pattern is SELECT * FROM todos WHERE user_id = auth.user_id(). The React application then reads its local SQLite data through useQuery().

When a person edits a task offline, the intended flow is a local write followed by queued upload to Supabase when connectivity permits. The connector advances the queue after handling the transaction. Initial synced screens use readiness status, while signed-out local-only reads should remain usable without waiting for a stream that cannot connect. This is an illustrative application of the supplied guidance; no offline behavior or synchronization result was demonstrated.

Assessment & evidence

Limitations and concrete concerns

The custom Express example signs the user_id supplied in a query string without showing a check of the caller's authenticated identity. Its upload route also shows no authentication or per-row authorization enforcement. Table and column identifiers are interpolated into SQL; the suggested allowlist addresses table names only. These examples require authentication, access checks and identifier validation before production use.

The custom upload route converts database exceptions caught inside its transaction block into a successful HTTP response containing success: false. Its client connector then calls transaction.complete() even for that result. A retryable failure inside this block could therefore remove writes from the pending queue without committing them to the source database. This is a source-level risk, not an observed runtime result.

The Supabase upload example imports UpdateType with import type and then uses UpdateType.PUT and UpdateType.PATCH as runtime values. The JavaScript foundation guide explicitly identifies UpdateType as a runtime enum requiring a regular import. That inconsistency needs correction before using the example.

Stability varies by integration. The .NET guide labels its SDK alpha and advises against production use. The Expo Go adapter is alpha and warns of possible missing or corrupted data if interrupted during a write. Kotlin web support is experimental with single-tab restrictions; Nuxt and the TanStack DB collection are labeled alpha. Raw tables are experimental, and browser SQLite extensions require custom WebAssembly builds that the guide describes as not directly supported.

The Terraform guide recommends environment variables and sensitive inputs while claiming secrets should never appear in state. The supplied material does not demonstrate secret-free state storage. Its instructions are insufficient to establish that guarantee.

Why it may fit

The expected value comes from making PowerSync's dependencies explicit: a correctly configured service must exist before client synchronization can work, upload handling remains application-owned, and account changes affect locally retained data. Organizing those responsibilities into task-specific references could reduce missed setup steps. That benefit is an inference from the material's structure; no measured reduction in errors, development time or agent mistakes is supplied. Teams with someone able to review database and backend changes are better positioned to use it effectively.

Alternatives and choices

Developers who prefer to direct integration themselves can use the linked PowerSync architecture and Sync Streams documentation directly: [https://docs.powersync.com/architecture/architecture-overview.md] and [https://docs.powersync.com/sync/streams/overview.md]. These provide another route to the underlying concepts without the skill's prescribed assistant behavior.

Within the pack, plain PowerSync hooks offer fewer dependencies when query caching is unnecessary. TanStack Query adds caching patterns, while the TanStack DB collection targets more complex reactive queries and optimistic state with additional integration complexity and alpha status. The Electric migration reference explains architectural changes, but supplies no independent performance or price comparison establishing a superior product.

Evidence and boundaries

The source is the PowerSync skill folder at repository commit c539ea3525d91d83e8d9062a40bf9a71122b2fbf, with the repository MIT notice. The version-specific source is [https://github.com/powersync-ja/agent-skills/tree/c539ea3525d91d83e8d9062a40bf9a71122b2fbf/skills/powersync]. Its instructions, examples and script support conclusions about their contents and the source-level concerns described here.

The supplied material does not establish successful installation, working infrastructure, secure application behavior or improved assistant performance. No command, trimming operation, SDK example, migration or live application was executed. Linked external documentation and dependency implementations were not assessed.

Access & freshness

Costs

The included MIT licence permits use of the skill materials without a licence fee. AI assistant charges, PowerSync Cloud prices, database charges, attachment storage, network traffic and self-hosted operating costs are unknown from the supplied evidence.

Some paths have plan restrictions: the references place custom asynchronous-backend checkpoint handling and Cloud private endpoints on Team or Enterprise plans. They provide no monetary amounts. The linked pricing page is [https://www.powersync.com/pricing]; its current contents were not assessed.

Rights and redistribution

The repository LICENSE carries the MIT License and Copyright (c) 2025 PowerSync. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions. It disclaims warranties and liability. The notice supports redistribution of the captured skill files with the licence preserved; it does not establish the terms of external services, packages or linked documentation.

Version and freshness

SKILL.md declares version 1.6.6. The supplied source snapshot was captured on 15 November 2026 at commit c539ea3525d91d83e8d9062a40bf9a71122b2fbf. Capture time does not establish the release date. Later changes and compatibility with packages available after that snapshot are unknown. The instructions often install packages with @latest, so the resulting dependency versions can differ from those described in examples.

There are internal discrepancies to resolve against the actual deployment. The CLI guide says Cloud development tokens work immediately after deployment, while the service guide says they need enabling in the dashboard. The Node integration reference says database work runs synchronously in the main thread, while the SQLite-extension reference describes a database worker. These statements should not be assumed interchangeable across versions.

Practical next steps

Begin in a development environment, record the skill revision and resolved package versions, and follow the references matching the database and platform. Establish the authorized instance and configuration scope before state-changing operations. Correct the Supabase enum import, implement authenticated backend authorization and identifier validation, and make retryable upload failures retain their pending transactions.

Before production use, verify offline restarts, user-to-user data isolation, rejected writes, temporary backend failures and eventual upload completion. Exercise delayed authentication as well as normal sign-in. If using raw tables, configure their clearing behavior explicitly because disconnectAndClear() does not clear them automatically. Terraform users should establish state-secret handling separately, and resolve the conflicting CLI and SDK guidance for their installed versions.

Evidence for this report

LICENSEnotice · checked 2026-11-15
skills/powersync/AGENTS.mdselected · checked 2026-11-15
skills/powersync/CLAUDE.mdselected · checked 2026-11-15
skills/powersync/SKILL.mdselected · checked 2026-11-15
skills/powersync/references/attachments.mdselected · checked 2026-11-15
skills/powersync/references/custom-backend.mdselected · checked 2026-11-15
skills/powersync/references/powersync-cli.mdselected · checked 2026-11-15
skills/powersync/references/raw-tables.mdselected · checked 2026-11-15
skills/powersync/references/supabase-auth.mdselected · checked 2026-11-15
skills/powersync/references/sync-config.mdselected · checked 2026-11-15
skills/powersync/references/terraform.mdselected · checked 2026-11-15
skills/powersync/scripts/trim.mjsselected · checked 2026-11-15