[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EGNSKSQ0VRPJ0HWRV1WMH6":3,"skill-same:01M6EGNSKSQ0VRPJ0HWRV1WMH6":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6EGNSKSQ0VRPJ0HWRV1WMH6","xata",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fxata\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# Xata — Serverless Data Platform\n\n\n## Overview\n\n\nXata, the serverless data platform that combines PostgreSQL, Elasticsearch, and AI capabilities in a single API. Helps developers build applications with full-text search, vector similarity search, file attachments, and branching — all through a type-safe TypeScript SDK.\n\n\n## Instructions\n\n### Setup and Schema\n\n```bash\n# Install Xata CLI\nnpm install -g @xata.io\u002Fcli\n\n# Authenticate\nxata auth login\n\n# Initialize in your project\nxata init --db https:\u002F\u002Fyour-workspace.xata.sh\u002Fdb\u002Fmy-app\n\n# This generates a typed client: src\u002Fxata.ts\n```\n\n```typescript\n\u002F\u002F Schema defined in .xata\u002Fschema.json or via dashboard\n\u002F\u002F Example: Articles with full-text search and vector embeddings\n{\n  \"tables\": [\n    {\n      \"name\": \"articles\",\n      \"columns\": [\n        { \"name\": \"title\", \"type\": \"string\" },\n        { \"name\": \"content\", \"type\": \"text\" },\n        { \"name\": \"author\", \"type\": \"link\", \"link\": { \"table\": \"users\" } },\n        { \"name\": \"tags\", \"type\": \"multiple\" },\n        { \"name\": \"published\", \"type\": \"bool\", \"defaultValue\": \"false\" },\n        { \"name\": \"publishedAt\", \"type\": \"datetime\" },\n        { \"name\": \"embedding\", \"type\": \"vector\", \"vector\": { \"dimension\": 1536 } },\n        { \"name\": \"cover\", \"type\": \"file\" }\n      ]\n    }\n  ]\n}\n```\n\n### Type-Safe CRUD\n\n```typescript\n\u002F\u002F src\u002Flib\u002Fdb.ts — Xata client (auto-generated types)\nimport { getXataClient } from \".\u002Fxata\";\n\nconst xata = getXataClient();\n\n\u002F\u002F Create\nasync function createArticle(data: {\n  title: string;\n  content: string;\n  authorId: string;\n  tags: string[];\n}) {\n  const article = await xata.db.articles.create({\n    title: data.title,\n    content: data.content,\n    author: data.authorId,       \u002F\u002F Link to users table\n    tags: data.tags,\n    published: false,\n  });\n  return article;               \u002F\u002F Fully typed: article.id, article.title, etc.\n}\n\n\u002F\u002F Read with relationships\nasync function getArticle(id: string) {\n  const article = await xata.db.articles.read(id, [\n    \"title\", \"content\", \"publishedAt\",\n    \"author.name\", \"author.email\",    \u002F\u002F Resolve linked records\n  ]);\n  return article;\n}\n\n\u002F\u002F Query with filters\nasync function getPublishedArticles(page = 1) {\n  const results = await xata.db.articles\n    .filter({\n      published: true,\n      publishedAt: { $ge: new Date(\"2026-01-01\") },\n    })\n    .sort(\"publishedAt\", \"desc\")\n    .getPaginated({\n      pagination: { size: 20, offset: (page - 1) * 20 },\n    });\n\n  return {\n    articles: results.records,\n    hasMore: results.hasNextPage(),\n    total: results.totalCount,\n  };\n}\n\n\u002F\u002F Update\nasync function publishArticle(id: string) {\n  await xata.db.articles.update(id, {\n    published: true,\n    publishedAt: new Date(),\n  });\n}\n\n\u002F\u002F Delete\nasync function deleteArticle(id: string) {\n  await xata.db.articles.delete(id);\n}\n```\n\n### Full-Text Search\n\n```typescript\n\u002F\u002F Xata has built-in Elasticsearch — no separate search service needed\n\n\u002F\u002F Basic search\nasync function searchArticles(query: string) {\n  const results = await xata.db.articles.search(query, {\n    target: [\"title\", \"content\"],    \u002F\u002F Which columns to search\n    fuzziness: 1,                     \u002F\u002F Allow 1 typo\n    prefix: \"phrase\",                 \u002F\u002F Prefix matching for autocomplete\n    filter: { published: true },      \u002F\u002F Combined with search\n    highlight: { enabled: true },     \u002F\u002F Return highlighted snippets\n    page: { size: 10 },\n  });\n\n  return results.records.map((record) => ({\n    id: record.id,\n    title: record.title,\n    snippet: record.getMetadata().highlight?.content ?? record.content?.slice(0, 200),\n    score: record.getMetadata().score,\n  }));\n}\n\n\u002F\u002F Aggregate search results\nasync function searchWithFacets(query: string) {\n  const results = await xata.db.articles.search(query, {\n    target: [\"title\", \"content\"],\n    filter: { published: true },\n  });\n\n  \u002F\u002F Group results by tag\n  const tagCounts: Record\u003Cstring, number> = {};\n  for (const record of results.records) {\n    for (const tag of record.tags ?? []) {\n      tagCounts[tag] = (tagCounts[tag] ?? 0) + 1;\n    }\n  }\n\n  return { articles: results.records, facets: tagCounts };\n}\n```\n\n### AI \u002F Vector Search\n\n```typescript\n\u002F\u002F Vector similarity search (RAG, recommendations)\nasync function findSimilar(articleId: string) {\n  const article = await xata.db.articles.read(articleId);\n  if (!article?.embedding) return [];\n\n  \u002F\u002F Find articles with similar embeddings\n  const results = await xata.db.articles.vectorSearch(\"embedding\", article.embedding, {\n    size: 5,\n    filter: {\n      published: true,\n      id: { $isNot: articleId },     \u002F\u002F Exclude the source article\n    },\n  });\n\n  return results.records;\n}\n\n\u002F\u002F Ask AI (built-in RAG — search + LLM answer)\nasync function askQuestion(question: string) {\n  const result = await xata.db.articles.ask(question, {\n    searchType: \"keyword\",           \u002F\u002F \"keyword\" | \"vector\" | \"hybrid\"\n    rules: [\n      \"Answer based only on the provided context\",\n      \"If uncertain, say you don't know\",\n      \"Keep answers under 3 sentences\",\n    ],\n  });\n\n  return {\n    answer: result.answer,\n    records: result.records,         \u002F\u002F Source articles used for the answer\n  };\n}\n```\n\n### File Attachments\n\n```typescript\n\u002F\u002F Upload files directly to records\nasync function uploadCoverImage(articleId: string, file: File) {\n  const base64 = await fileToBase64(file);\n  await xata.db.articles.update(articleId, {\n    cover: {\n      name: file.name,\n      mediaType: file.type,\n      base64Content: base64,\n    },\n  });\n}\n\n\u002F\u002F Get file URL\nasync function getCoverUrl(articleId: string) {\n  const article = await xata.db.articles.read(articleId);\n  return article?.cover?.url;         \u002F\u002F Signed URL for the file\n}\n```\n\n### Branching\n\n```bash\n# Create a branch (like git — isolated copy of schema + data)\nxata branch create staging\n\n# Make schema changes on the branch\nxata schema edit --branch staging\n\n# Merge branch to main (applies schema migration)\nxata branch merge staging\n```\n\n## Installation\n\n```bash\n# CLI\nnpm install -g @xata.io\u002Fcli\n\n# Client SDK\nnpm install @xata.io\u002Fclient\n\n# Initialize in project (generates typed client)\nxata init\n```\n\n\n## Examples\n\n\n### Example 1: Setting up Xata with a custom configuration\n\n**User request:**\n\n```\nI just installed Xata. Help me configure it for my TypeScript + React workflow with my preferred keybindings.\n```\n\nThe agent creates the configuration file with TypeScript-aware settings, configures relevant plugins\u002Fextensions for React development, sets up keyboard shortcuts matching the user's preferences, and verifies the setup works correctly.\n\n### Example 2: Extending Xata with custom functionality\n\n**User request:**\n\n```\nI want to add a custom type-safe crud to Xata. How do I build one?\n```\n\nThe agent scaffolds the extension\u002Fplugin project, implements the core functionality following Xata's API patterns, adds configuration options, and provides testing instructions to verify it works end-to-end.\n\n\n## Guidelines\n\n1. **Use the generated client** — `xata init` creates a typed client; never construct queries manually\n2. **Search over queries** — If users are looking for content, use `.search()` instead of `.filter()`; it's faster and supports fuzzy matching\n3. **Vectors for recommendations** — Store embeddings for semantic search and \"similar articles\" features; Xata handles the vector index\n4. **Ask for RAG** — The `.ask()` method does retrieval + generation in one call; no need to build RAG from scratch\n5. **Branches for migrations** — Test schema changes on a branch before merging to main; matches the git workflow developers already know\n6. **File attachments vs external storage** — Use Xata's file type for per-record files (avatars, covers); use S3 for bulk file storage\n7. **Filters + search** — Combine `.search()` with `filter` for faceted search (search \"react\" filtered to \"tutorial\" tag)\n8. **Pagination with cursors** — Use `getPaginated()` for cursor-based pagination; more efficient than offset for large datasets\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fxata",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill xata",{"tool":37,"command":38},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill xata",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill xata","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fxata\u002FSKILL.md",true,[],[46,55,64,73,79,85],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[52,53,54],"model","model hierarchy","model hierarchy skill",{"skillNo":56,"name":57,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[61,62,63],"MCP","zoom","zoom mcp",{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[70,71,72,62],"sdk","zoom apps sdk","apps",{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[75],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[81],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[87]]