garethpaul/poe-games-procedural-dungeons / .claude/skills/synced-store
synced-store
VerifiedBuild apps that USE synced-store for real-time multiplayer state. PROACTIVELY load when: designing a new Poe tile's state/schema (even before any file exists), discussing how to hide, gate, or restrict visibility of data to specific users or to the server, writing schema.ts/mutators/*.ts/client-config.ts/backend-config.ts for a Poe tile, using createPoeTileTestHarness, calling store.subscribe/store.mutate, or wiring entry.tsx with setupStore.
references/searchable-tables.md
View on GitHub<!-- owner: jyoung-q -->
# Searchable Tables
Add `searchable` to a table's schema definition to enable cross-app full-text search. Items are indexed automatically as they're created, updated, or deleted.
```typescript
tables: {
todos: {
schema: table(z.object({
id: z.string(),
title: z.string(),
createdAt: z.number(),
})),
searchable: { textField: "title", timestampField: "createdAt" },
},
}
```
## Options
- **`textField`** — the name of the string field to index for full-text search.
- **`timestampField`** — the name of the number field used to order results by recency.
Both fields must exist on the table's value schema. The indexer re-runs whenever a row is written or deleted.
## Querying
Searchable items are surfaced through the platform-wide search experience and through the MCP tool surface — an AI can search across all searchable tables in all apps the user has access to. There's no per-app search API on the store client; the platform owns the search UI and retrieval.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |