Use when a Cloudflare Worker needs TanStack AI chat persistence — writes a chat-persistence.ts into the app against its D1 binding (raw or via Drizzle), plus a Durable Object LockStore. Covers per-request bindings, wrangler config, D1 migrations, and lease-based locks.
$npx -y skills add tanstack/ai --skill build-cloudflare-adapterInstalls into the current project.
Run `npx skills use "https://github.com/tanstack/ai" --skill "tanstack/ai/build-cloudflare-adapter"` 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.