Cloudrun Development
TencentCloudBase/CloudBase-AI-Toolkit
CloudBase Run backend development rules (Function mode/Container mode).
A skill your agent uses when wiring memoryMiddleware from @tanstack/ai-memory into a chat() call — covers the recall/save adapter contract, scope shape and server-side scope security, the…
$ npx skills add TanStack/ai --skill tanstack-ai-memory -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install TanStack/ai tanstack-ai-memory --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/TanStack/ai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/ai-memory/skills/tanstack-ai-memory .claude/skills/tanstack-ai-memory && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "tanstack-ai-memory" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai-memory/skills/tanstack-ai-memory into .claude/skills/tanstack-ai-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-ai-memory", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/TanStack/ai/tree/main/packages/ai-memory/skills/tanstack-ai-memoryType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add TanStack/ai --skill tanstack-ai-memory -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install TanStack/ai tanstack-ai-memory --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/TanStack/ai.git skills-src && mkdir -p .agents/skills && cp -r skills-src/packages/ai-memory/skills/tanstack-ai-memory .agents/skills/tanstack-ai-memory && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "tanstack-ai-memory" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai-memory/skills/tanstack-ai-memory into .agents/skills/tanstack-ai-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-ai-memory", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add TanStack/ai --skill tanstack-ai-memory -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install TanStack/ai tanstack-ai-memory --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/TanStack/ai.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/packages/ai-memory/skills/tanstack-ai-memory .cursor/skills/tanstack-ai-memory && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "tanstack-ai-memory" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai-memory/skills/tanstack-ai-memory into .cursor/skills/tanstack-ai-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-ai-memory", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/TanStack/ai.git --path packages/ai-memory/skills/tanstack-ai-memory--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add TanStack/ai --skill tanstack-ai-memory -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install TanStack/ai tanstack-ai-memory --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/TanStack/ai.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/packages/ai-memory/skills/tanstack-ai-memory .gemini/skills/tanstack-ai-memory && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "tanstack-ai-memory" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai-memory/skills/tanstack-ai-memory into .gemini/skills/tanstack-ai-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-ai-memory", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install TanStack/ai tanstack-ai-memoryInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add TanStack/ai --skill tanstack-ai-memory -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/TanStack/ai.git skills-src && mkdir -p .github/skills && cp -r skills-src/packages/ai-memory/skills/tanstack-ai-memory .github/skills/tanstack-ai-memory && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "tanstack-ai-memory" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai-memory/skills/tanstack-ai-memory into .github/skills/tanstack-ai-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-ai-memory", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add TanStack/ai --skill tanstack-ai-memory -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install TanStack/ai tanstack-ai-memory --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/TanStack/ai.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/packages/ai-memory/skills/tanstack-ai-memory .opencode/skills/tanstack-ai-memory && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "tanstack-ai-memory" agent skill from https://github.com/TanStack/ai/tree/main/packages/ai-memory/skills/tanstack-ai-memory into .opencode/skills/tanstack-ai-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-ai-memory", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
tanstack-ai-memoryA skill your agent uses when wiring memoryMiddleware from @tanstack/ai-memory into a chat() call — covers the recall/save adapter contract, scope shape and server-side scope security, the…
Tanstack AI Memory is an agent skill from TanStack/ai. Use when wiring memoryMiddleware from @tanstack/ai-memory into a chat() call — covers the recall/save adapter contract, scope shape and server-side scope security, the recall-inject / deferred-save lifecycle, choosing an adapter (inMemory, redis, hindsight, mem0, honcho), and devtools events.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Databases, covering Backend development. It works with TanStack, Mem0 and Redis. The repository describes itself as: 🤖 Type-safe, provider-agnostic TypeScript AI SDK for streaming chat, tool calling, agents, and multimodal apps across OpenAI, Anthropic, Gemini, React, Vue, Svelte, and Solid. The licence is MIT.
Read from SKILL.md and the folder at commit 5a41239. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Tanstack AI Memory loads about 1.2k tokens when it runs. Until then it costs about 78 tokens; SKILL.md has 346 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from TanStack/ai at commit 5a41239, republished under its MIT licence (© TanStack). 346 words, ~1,156 tokens.
.claude/skills/tanstack-ai-memory/SKILL.md (or your agent's skills folder).Use this when adding server-side memory to a chat() call. Everything lives in
@tanstack/ai-memory. A memory adapter is a single contract with two verbs — recall
and save — and the middleware is thin: it recalls into the system prompt before the
model runs and defers save after the turn finishes.
Do NOT use this just to keep recent messages — that's the messages array on chat().
Memory is for cross-turn / cross-session recall, not within-turn history.
import { chat, toServerSentEventsResponse } from '@tanstack/ai'
import { openaiText } from '@tanstack/ai-openai'
import { memoryMiddleware } from '@tanstack/ai-memory'
import { inMemory } from '@tanstack/ai-memory/in-memory'
import { requireSession } from './auth'
const memory = inMemory() // dev/tests only — see the in-memory skill
export async function POST(request: Request) {
const { messages } = await request.json()
// Resolved by your auth layer from cookies/headers — never from the request body.
const session = await requireSession(request)
const stream = chat({
adapter: openaiText('gpt-5.5'),
messages,
context: { session },
middleware: [
memoryMiddleware({
adapter: memory,
// Derive scope server-side from trusted session state.
scope: () => ({ threadId: session.threadId, userId: session.userId }),
}),
],
})
return toServerSentEventsResponse(stream)
}memoryMiddleware options: adapter, scope (static or a function of ctx),
role ('recall+save' default, or 'save-only'), and onRecall / onSave telemetry
callbacks.
import type {
MemoryFact,
MemoryScope,
MemorySnapshot,
MemoryTurn,
RecallResult,
SaveReceipt,
} from '@tanstack/ai-memory'
interface MemoryAdapter {
readonly id: string
recall: (scope: MemoryScope, query: string) => Promise<RecallResult> // { systemPrompt, fragments?, tools?, toolGuidance? }
save: (scope: MemoryScope, turn: MemoryTurn) => Promise<Array<SaveReceipt>> // turn = { user, assistant }; extraction lives HERE
inspect?: (scope: MemoryScope) => Promise<MemorySnapshot> // optional (devtools)
listFacts?: (scope: MemoryScope) => Promise<Array<MemoryFact>> // optional (devtools)
}recall decides relevance and renders a systemPrompt; it may also return tools +
toolGuidance to hand the model direct control of memory (hindsight does this).save owns extraction — turning the raw turn into whatever gets persisted.MemoryScope is an alias of the shared Scope type from @tanstack/ai:
{ threadId, userId?, tenantId?, namespace? }. It is the isolation boundary. Never
trust a client-supplied userId/threadId. Resolve scope server-side from
session/auth and pass the validated session through chat({ context: { session } }). If
you accept a thread id from the request body, validate it belongs to the session user
BEFORE using it.
inMemory() / redis() — exact match on threadId + optional userId/tenantId
(namespace ignored). Redis index keys include all three segments.hindsight() — bank {tenant|_}__{user}__{threadId}.mem0() — user_id + run_id (threadId); no tenantId.honcho() — session {tenant|_}__{threadId}; peer tenant-prefixed when set.recall/save and run runMemoryAdapterContract from @tanstack/ai-memory/testkit.Memory failures are non-fatal: a throwing recall or save emits memory:error and
the run continues with degraded memory. Streaming is never blocked; a failed save never
fails the turn.
Five events on aiEventClient (from @tanstack/ai-event-client):
memory:retrieve:started / :completed, memory:persist:started / :completed,
memory:error (phase: 'recall' | 'save'). Payloads carry the adapter id and
fragment/receipt counts, not full memory text. Error events include scope only
when it was already resolved; if the resolver threw, scope is omitted.
© TanStack, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in packages/ai-memory/skills/tanstack-ai-memory of TanStack/ai.
Open the folder on GitHubat commit 5a41239
Tanstack AI Memory next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Tanstack AI Memory this skillTanStack/ai | 3.2k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Cloudrun DevelopmentTencentCloudBase/CloudBase-AI-Toolkit | 1.1k | 1 repos | ~7.2k | Automated safety check: Pass | MIT | |
| Redis Guide Skilljiushiwon/wg-skills | 110 | — | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| Python Redis Module Skilljiushiwon/wg-skills | 110 | — | ~1.7k | Automated safety check: Notes | Apache-2.0 | |
| Springboot Redis Module Skilljiushiwon/wg-skills | 110 | — | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Configuring Horizoncoollabsio/coolify | 63k | 4 repos | ~898 | Automated safety check: Pass | MIT |
TencentCloudBase/CloudBase-AI-Toolkit
CloudBase Run backend development rules (Function mode/Container mode).
jiushiwon/wg-skills
Redis 学习与选型指南。面向需要了解 Redis 的开发者,提供核心数据结构、安装部署、缓存策略、分布式锁原理、与业务场景匹配推荐、设计规则等(不含具体框架集成,Spring Boot 集成请用 springboot-redis-module-skill,Python 集成请用 python-redis-module-skill)。触发词:"Redis 学习"、"Redis…
jiushiwon/wg-skills
Python Redis 模块快速集成技能。面向已拥有 FastAPI 项目骨架的开发者,提供 Redis 缓存、Session 存储、分布式锁、限流、消息队列等能力的快速集成。触发词:"Python Redis"、"FastAPI Redis"、"Redis 集成"、"redis cache"、"redis session"、"redis lock"、"redis 限流"、"redis…
jiushiwon/wg-skills
Spring Redis 模块快速集成技能。面向已拥有 Spring Boot 项目骨架的开发者,提供 Redis 缓存、Session 存储、分布式锁、限流、消息队列等能力的快速集成。触发词:"Spring Redis"、"Spring Boot Redis"、"Redis 集成"、"redis cache"、"redis session"、"redis lock"、"redis…
coollabsio/coolify
A skill your agent uses whenever the user mentions Horizon by name in a Laravel context.
redis/lettuce
Add or extend Redis commands in the Lettuce client API end-to-end — a new core command, a family of new commands, an extension to an existing command's options, or a module/area command…
TanStack/ai
A skill your agent uses when the user invokes /i-have-adhd, says they have ADHD, or asks for ADHD-friendly output.
TanStack/ai
Sweep open (or listed) PRs with up to 100 parallel agents: security-scan outside contributors, rebase onto main when behind (push --force-with-lease), approve pending first-time-contributor CI when…
TanStack/ai
A skill your agent uses when wiring honcho() from @tanstack/ai-memory/honcho — a hosted memory adapter where recall is a dialectic answer over the user's representation (no discrete fragments).
TanStack/ai
A skill your agent uses when wiring inMemory() from @tanstack/ai-memory/in-memory — explains setup, options (embedder, extract, topK/minScore), when to pick it (dev/tests/single-process demos), and…
TanStack/ai
A skill your agent uses when wiring redis() from @tanstack/ai-memory/redis in production — covers client setup (ioredis or node-redis via fromNodeRedis), the storage model, client-side ranking…
TanStack/ai
A skill your agent uses when adding a public teaching example or a docs tutorial.
Categories
A skill your agent uses when wiring memoryMiddleware from @tanstack/ai-memory into a chat() call — covers the recall/save adapter contract, scope shape and server-side scope security, the…. Tanstack AI Memory is an agent skill from TanStack/ai. Use when wiring memoryMiddleware from @tanstack/ai-memory into a chat() call — covers the recall/save adapter contract, scope shape and server-side scope security, the recall-inject / deferred-save lifecycle, choosing an adapter (inMemory, redis, hindsight, mem0, honcho), and devtools events.
Tanstack AI Memory fits situations like: wiring memoryMiddleware from @tanstack/ai-memory into a chat() call — covers the recall/save adapter contract; scope shape and server-side scope security; the recall-inject / deferred-save lifecycle; choosing an adapter (inMemory.
Run `npx skills add TanStack/ai --skill tanstack-ai-memory -a claude-code`. Or copy the skill folder (packages/ai-memory/skills/tanstack-ai-memory in TanStack/ai) into .claude/skills/tanstack-ai-memory in your project. Claude Code loads it when a task matches its description.
Run `npx skills add TanStack/ai --skill tanstack-ai-memory -a codex`. Or copy the skill folder (packages/ai-memory/skills/tanstack-ai-memory in TanStack/ai) into .agents/skills/tanstack-ai-memory in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TanStack/ai --skill tanstack-ai-memory -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tanstack-ai-memory, .gemini/skills/tanstack-ai-memory, .github/skills/tanstack-ai-memory and .opencode/skills/tanstack-ai-memory in your project.
SKILL.md names no scripts, command-line tools or credentials: Tanstack AI Memory is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Tanstack AI Memory is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Tanstack AI Memory: Cloudrun Development (TencentCloudBase/CloudBase-AI-Toolkit, 1.1k stars), Redis Guide Skill (jiushiwon/wg-skills, 110 stars), Python Redis Module Skill (jiushiwon/wg-skills, 110 stars) and Springboot Redis Module Skill (jiushiwon/wg-skills, 110 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
TanStack (a GitHub organization) maintains it in TanStack/ai, which has 3,169 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 7, 2026.
Source: TanStack/ai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.