ai-persistence/build-custom-adapter
100 / 100 · Low risk
Fine to try.
Use when an app needs TanStack AI chat persistence on a database with no dedicated recipe — raw Postgres (pg/postgres.js), Kysely, node:sqlite, MongoDB, Supabase, Redis. Writes a chat-persistence.ts against the app's existing client, covering the four stores, the idempotency invariants, and the conformance gate. Route to the Drizzle, Prisma, or Cloudflare skills instead when one of those matches.
What this skill can do
We found nothing in the files we read that matches our rules. That does not prove the skill is safe: see the limits of static scanning.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'ai-persistence-build-custom-adapter' ] || [ -L ~/.agents/skills/'ai-persistence-build-custom-adapter' ]; then echo 'A skill folder named ai-persistence-build-custom-adapter already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/TanStack/ai' "$d" && git -C "$d" checkout --quiet '975ec3ef1e3c24ba8ef2e6421278a6ac5fd55492' -- 'packages/ai-persistence/skills/ai-persistence/build-custom-adapter' && mkdir -p ~/.agents/skills && cp -R "$d"/'packages/ai-persistence/skills/ai-persistence/build-custom-adapter' ~/.agents/skills/'ai-persistence-build-custom-adapter' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'ai-persistence-build-custom-adapter' ~/.claude/skills/'ai-persistence-build-custom-adapter' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/TanStack/ai/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-11 | 975ec3e | 100 |
| 2026-11-08 | c32f641 | 100 |
| 2026-11-07 | c32f641 | 100 |