rxdb

Manage RxDB collections, schemas, and migrations in SvelteKit projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/pyroboy/midcodes --skill rxdb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rxdb
Source: https://github.com/pyroboy/midcodes/tree/main/apps/WTFPOS/.claude/skills/rxdb
Command: npx skills add https://github.com/pyroboy/midcodes --skill rxdb

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the management of local-first data persistence using RxDB, ensuring data integrity and efficient synchronization in the WTFPOS project.

Core Features & Use Cases

  • Schema Management: Define and update RxDB collection schemas.
  • Data Operations: Perform CRUD operations and manage reactive Svelte stores.
  • Migrations: Implement strategies for schema versioning and data migration.
  • Use Case: When you need to add a new field to an existing RxDB collection, like adding a 'notes' field to the 'orders' collection, this skill handles the schema update, potential migration, and ensures your Svelte stores react correctly.

Quick Start

Use the rxdb skill to add a new field called 'notes' to the 'orders' collection schema.

Frequently Asked Questions about rxdb

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new field to an existing RxDB collection schema?

To add a new field to an RxDB collection schema, you update the schema definition and implement a migration strategy for schema versioning to ensure existing IndexedDB data remains intact.

How does local-first IndexedDB persistence work with SvelteKit?

IndexedDB persistence in SvelteKit uses RxDB to manage local-first data collections and creates reactive Svelte stores that automatically update UI components when underlying database operations occur.

Can I use RxDB to manage reactive Svelte stores for local data?

Yes, you can use RxDB to manage reactive Svelte stores by writing store helper functions that subscribe to RxDB collection changes, ensuring your UI reacts correctly to local IndexedDB data modifications.

What is the best way to handle RxDB schema versioning and data migration?

Handling RxDB schema versioning involves defining migration strategies that transform existing documents when schemas update, ensuring data integrity during local-first persistence changes without losing previous collection data.

Why does my RxDB collection throw errors after modifying the schema?

RxDB collection errors after schema modification usually occur because the required schema versioning and migration strategies were not properly configured to handle the existing IndexedDB persistence data.