docs: Add db-core/persistence skill and update library version to 0.6.0#1421
Merged
KyleAMathews merged 9 commits intomainfrom Mar 27, 2026
Merged
docs: Add db-core/persistence skill and update library version to 0.6.0#1421KyleAMathews merged 9 commits intomainfrom
KyleAMathews merged 9 commits intomainfrom
Conversation
Add virtual properties section ($synced, $origin, $key, $collectionId) from upstream live-queries guide and bump library_version to 0.6.0. https://claude.ai/code/session_01DTyMUCKyRTwuDSwEbhfW46
- Bump library_version to 0.6.0 across all skills - live-queries: add virtual properties, includes subqueries, toArray/concat - collection-setup: add on-demand sync mode, opt-in indexing, queryKey prefix convention, Electric timeout fix - custom-adapter: add persisted sync metadata API (row + collection) - solid-db: add findOne single-result support - react-db was updated in prior commit https://claude.ai/code/session_01DTyMUCKyRTwuDSwEbhfW46
Both features are documented in the source doc (docs/guides/live-queries.md) but were missing from the SKILL. Found by cross-referencing with the 0.6 release blog post. https://claude.ai/code/session_01DTyMUCKyRTwuDSwEbhfW46
New sub-skill covering persistedCollectionOptions, all 8 platform adapters (browser, React Native, Expo, Electron, Node, Capacitor, Tauri, Cloudflare DO), multi-tab coordination, schema versioning, and local-only vs synced modes. Also updates the db-core index to reference the new skill. https://claude.ai/code/session_01DTyMUCKyRTwuDSwEbhfW46
More templates
@tanstack/angular-db
@tanstack/browser-db-sqlite-persistence
@tanstack/capacitor-db-sqlite-persistence
@tanstack/cloudflare-durable-objects-db-sqlite-persistence
@tanstack/db
@tanstack/db-ivm
@tanstack/db-sqlite-persistence-core
@tanstack/electric-db-collection
@tanstack/electron-db-sqlite-persistence
@tanstack/expo-db-sqlite-persistence
@tanstack/node-db-sqlite-persistence
@tanstack/offline-transactions
@tanstack/powersync-db-collection
@tanstack/query-db-collection
@tanstack/react-db
@tanstack/react-native-db-sqlite-persistence
@tanstack/rxdb-db-collection
@tanstack/solid-db
@tanstack/svelte-db
@tanstack/tauri-db-sqlite-persistence
@tanstack/trailbase-db-collection
@tanstack/vue-db
commit: |
Contributor
|
Size Change: 0 B Total Size: 113 kB ℹ️ View Unchanged
|
Contributor
|
Size Change: 0 B Total Size: 4.23 kB ℹ️ View Unchanged
|
- Fix Electron persistence API examples to match actual function signatures - Fix missing id behavior: documents silent UUID generation instead of false error claim - Restore progressive syncMode (Electric-only) that was incorrectly removed - Clarify metadata availability: always provided, durable only with persistence - Add tanstack-intent keyword to all packages with skills - Fix stale version reference and align wording consistency Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move PowerSync on-demand sync details to powersync-adapter.md reference and function-based queryKey mistake to query-adapter.md reference. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates all SKILL.md documentation files to match v0.6.0 APIs, adds a new persistence skill, and registers all skill-bearing packages with the
tanstack-intentkeyword for discoverability.Approach
New documentation
db-core/persistence/SKILL.md: Complete guide to SQLite-backed persistence covering all 8 platform adapters, local-only and synced modes, multi-tab/process coordination, schema versioning, and common mistakes.Expanded existing skills
live-queries: Virtual properties ($synced,$origin,$key,$collectionId), includes/subqueries,queryOnce,createEffectcollection-setup: Indexing (autoIndex,defaultIndexType), PowerSync on-demand sync withonLoad/onLoadSubset, progressive syncMode (Electric-only), function-basedqueryKeypitfallcustom-adapter:metadataAPI for per-row and per-collection sync state (always provided, durable only with persistence), resume token patternreact-db,solid-db: Virtual properties,findOne()return typesPackage metadata
library_versionbumped from0.5.30to0.6.0across all 13 skill filestanstack-intentkeyword added to all 7 packages with skillsKey invariants
Non-goals
@tanstack/intentdevDependency or!skills/_artifactsfile exclusion warningsVerification
npx @tanstack/intent@latest validate packages/db/skills npx @tanstack/intent@latest validate packages/react-db/skills # All 13 skill files pass validationFiles changed
db/skills/db-core/persistence/SKILL.mddb/skills/db-core/live-queries/SKILL.mddb/skills/db-core/collection-setup/SKILL.mddb/skills/db-core/custom-adapter/SKILL.mddb/skills/db-core/SKILL.mddb/skills/db-core/mutations-optimistic/SKILL.mddb/skills/meta-framework/SKILL.mdreact-db/skills/react-db/SKILL.mdsolid-db/skills/solid-db/SKILL.mdangular-db/skills/angular-db/SKILL.mdsvelte-db/skills/svelte-db/SKILL.mdvue-db/skills/vue-db/SKILL.mdoffline-transactions/skills/offline/SKILL.mdpackage.jsontanstack-intentkeyword