Implement the MessageStore, RunStore, InterruptStore, MetadataStore contracts for @tanstack/ai-persistence against any database. defineAIPersistence, composePersistence overrides, critical invariants (full-replace saveThread, insert-if-absent createOrResume and interrupt create), authorize thread access, runPersistenceConformance testkit. Use whenever you need server persistence — the package ships contracts, not a backend for your database.
$npx -y skills add tanstack/ai --skill storesInstalls into the current project.
Run `npx skills use "https://github.com/tanstack/ai" --skill "tanstack/ai/stores"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/tanstack/ai" that are relevant to the current task. Run `npx skills add "https://github.com/tanstack/ai"` and select the relevant skills, then follow their instructions.