[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AK3DFY5NB7X52SXZWHB322":3,"skill-same:01M7AK3DFY5NB7X52SXZWHB322":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":24,"commitSha":25,"skillDirectory":5,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7AK3DFY5NB7X52SXZWHB322","cloudflare-vectorize",null,"Complete knowledge domain for Cloudflare Vectorize - globally distributed vector database for building\nsemantic search, RAG (Retrieval Augmented Generation), and AI-powered applications.\n\nUse when: creating vector indexes, inserting embeddings, querying vectors, implementing semantic search,\nbuilding RAG systems, configuring metadata filtering, working with Workers AI embeddings, integrating\nwith OpenAI embeddings, or encountering metadata index timing errors, dimension mismatches, filter\nsyntax issues, or insert vs upsert confusion.\n\nKeywords: vectorize, vector database, vector index, vector search, similarity search, semantic search,\nnearest neighbor, knn search, ann search, RAG, retrieval augmented generation, chat with data,\ndocument search, semantic Q&A, context retrieval, bge-base, @cf\u002Fbaai\u002Fbge-base-en-v1.5,\ntext-embedding-3-small, text-embedding-3-large, Workers AI embeddings, openai embeddings,\ninsert vectors, upsert vectors, query vectors, delete vectors, metadata filtering, namespace filtering,\ntopK search, cosine similarity, euclidean distance, dot product, wrangler vectorize, metadata index,\ncreate vectorize index, vectorize dimensions, vectorize metric, vectorize binding","davidanthonyn\u002Fagent-skills","davidanthonyn","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F55152980?v=4","01M7AJ4MY8S5C2RJCGX6626J0G","01M7AJ4MZB7EC7CAP27ANCSE7N",1,"MIT","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcloudflare-vectorize\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloudflare-vectorize\ndescription: |\n  Complete knowledge domain for Cloudflare Vectorize - globally distributed vector database for building\n  semantic search, RAG (Retrieval Augmented Generation), and AI-powered applications.\n\n  Use when: creating vector indexes, inserting embeddings, querying vectors, implementing semantic search,\n  building RAG systems, configuring metadata filtering, working with Workers AI embeddings, integrating\n  with OpenAI embeddings, or encountering metadata index timing errors, dimension mismatches, filter\n  syntax issues, or insert vs upsert confusion.\n\n  Keywords: vectorize, vector database, vector index, vector search, similarity search, semantic search,\n  nearest neighbor, knn search, ann search, RAG, retrieval augmented generation, chat with data,\n  document search, semantic Q&A, context retrieval, bge-base, @cf\u002Fbaai\u002Fbge-base-en-v1.5,\n  text-embedding-3-small, text-embedding-3-large, Workers AI embeddings, openai embeddings,\n  insert vectors, upsert vectors, query vectors, delete vectors, metadata filtering, namespace filtering,\n  topK search, cosine similarity, euclidean distance, dot product, wrangler vectorize, metadata index,\n  create vectorize index, vectorize dimensions, vectorize metric, vectorize binding\nlicense: MIT\n---\n\n# Cloudflare Vectorize\n\nComplete implementation guide for Cloudflare Vectorize - a globally distributed vector database for building semantic search, RAG (Retrieval Augmented Generation), and AI-powered applications with Cloudflare Workers.\n\n**Status**: Production Ready ✅\n**Last Updated**: 2025-10-21\n**Dependencies**: cloudflare-worker-base (for Worker setup), cloudflare-workers-ai (for embeddings)\n**Latest Versions**: wrangler@4.43.0, @cloudflare\u002Fworkers-types@4.20251014.0\n**Token Savings**: ~65%\n**Errors Prevented**: 8\n**Dev Time Saved**: ~3 hours\n\n## What This Skill Provides\n\n### Core Capabilities\n- ✅ **Index Management**: Create, configure, and manage vector indexes\n- ✅ **Vector Operations**: Insert, upsert, query, delete, and list vectors\n- ✅ **Metadata Filtering**: Advanced filtering with 10 metadata indexes per index\n- ✅ **Semantic Search**: Find similar vectors using cosine, euclidean, or dot-product metrics\n- ✅ **RAG Patterns**: Complete retrieval-augmented generation workflows\n- ✅ **Workers AI Integration**: Native embedding generation with @cf\u002Fbaai\u002Fbge-base-en-v1.5\n- ✅ **OpenAI Integration**: Support for text-embedding-3-small\u002Flarge models\n- ✅ **Document Processing**: Text chunking and batch ingestion pipelines\n\n### Templates Included\n1. **basic-search.ts** - Simple vector search with Workers AI\n2. **rag-chat.ts** - Full RAG chatbot with context retrieval\n3. **document-ingestion.ts** - Document chunking and embedding pipeline\n4. **metadata-filtering.ts** - Advanced filtering examples\n\n## Critical Setup Rules\n\n### ⚠️ MUST DO BEFORE INSERTING VECTORS\n```bash\n# 1. Create the index with FIXED dimensions and metric\nnpx wrangler vectorize create my-index \\\n  --dimensions=768 \\\n  --metric=cosine\n\n# 2. Create metadata indexes IMMEDIATELY (before inserting vectors!)\nnpx wrangler vectorize create-metadata-index my-index \\\n  --property-name=category \\\n  --type=string\n\nnpx wrangler vectorize create-metadata-index my-index \\\n  --property-name=timestamp \\\n  --type=number\n```\n\n**Why**: Metadata indexes MUST exist before vectors are inserted. Vectors added before a metadata index was created won't be filterable on that property.\n\n### Index Configuration (Cannot Be Changed Later)\n\n```bash\n# Dimensions MUST match your embedding model output:\n# - Workers AI @cf\u002Fbaai\u002Fbge-base-en-v1.5: 768 dimensions\n# - OpenAI text-embedding-3-small: 1536 dimensions\n# - OpenAI text-embedding-3-large: 3072 dimensions\n\n# Metrics determine similarity calculation:\n# - cosine: Best for normalized embeddings (most common)\n# - euclidean: Absolute distance between vectors\n# - dot-product: For non-normalized vectors\n```\n\n## Wrangler Configuration\n\n**wrangler.jsonc**:\n```jsonc\n{\n  \"name\": \"my-vectorize-worker\",\n  \"main\": \"src\u002Findex.ts\",\n  \"compatibility_date\": \"2025-10-21\",\n  \"vectorize\": [\n    {\n      \"binding\": \"VECTORIZE_INDEX\",\n      \"index_name\": \"my-index\"\n    }\n  ],\n  \"ai\": {\n    \"binding\": \"AI\"\n  }\n}\n```\n\n## TypeScript Types\n\n```typescript\nexport interface Env {\n  VECTORIZE_INDEX: VectorizeIndex;\n  AI: Ai;\n}\n\ninterface VectorizeVector {\n  id: string;\n  values: number[] | Float32Array | Float64Array;\n  namespace?: string;\n  metadata?: Record\u003Cstring, string | number | boolean | string[]>;\n}\n\ninterface VectorizeMatches {\n  matches: Array\u003C{\n    id: string;\n    score: number;\n    values?: number[];\n    metadata?: Record\u003Cstring, any>;\n    namespace?: string;\n  }>;\n  count: number;\n}\n```\n\n## Common Operations\n\n### 1. Insert vs Upsert\n\n```typescript\n\u002F\u002F INSERT: Keeps first insertion if ID exists\nawait env.VECTORIZE_INDEX.insert([\n  {\n    id: \"doc-1\",\n    values: [0.1, 0.2, 0.3, ...],\n    metadata: { title: \"First version\" }\n  }\n]);\n\n\u002F\u002F UPSERT: Overwrites with latest if ID exists (use this for updates)\nawait env.VECTORIZE_INDEX.upsert([\n  {\n    id: \"doc-1\",\n    values: [0.1, 0.2, 0.3, ...],\n    metadata: { title: \"Updated version\" }\n  }\n]);\n```\n\n### 2. Query with Filters\n\n```typescript\n\u002F\u002F Generate embedding for query\nconst queryEmbedding = await env.AI.run('@cf\u002Fbaai\u002Fbge-base-en-v1.5', {\n  text: \"What is Cloudflare Workers?\"\n});\n\n\u002F\u002F Search with metadata filtering\nconst results = await env.VECTORIZE_INDEX.query(\n  queryEmbedding.data[0],\n  {\n    topK: 5,\n    filter: {\n      category: \"documentation\",\n      timestamp: { $gte: 1704067200 }  \u002F\u002F After Jan 1, 2024\n    },\n    returnMetadata: 'all',\n    returnValues: false,\n    namespace: 'prod'\n  }\n);\n```\n\n### 3. Metadata Filter Operators\n\n```typescript\n\u002F\u002F Equality (implicit $eq)\n{ category: \"docs\" }\n\n\u002F\u002F Explicit operators\n{ status: { $ne: \"archived\" } }\n\n\u002F\u002F In array\n{ category: { $in: [\"docs\", \"tutorials\", \"guides\"] } }\n\n\u002F\u002F Not in array\n{ category: { $nin: [\"deprecated\", \"draft\"] } }\n\n\u002F\u002F Range queries (numbers)\n{\n  timestamp: {\n    $gte: 1704067200,  \u002F\u002F >= Jan 1, 2024\n    $lt: 1735689600    \u002F\u002F \u003C Jan 1, 2025\n  }\n}\n\n\u002F\u002F Range queries (strings) - prefix searching\n{\n  url: {\n    $gte: \"\u002Fdocs\u002Fworkers\",\n    $lt: \"\u002Fdocs\u002Fworkersz\"  \u002F\u002F Matches all \u002Fdocs\u002Fworkers\u002F*\n  }\n}\n\n\u002F\u002F Nested metadata with dot notation\n{ \"author.id\": \"user123\" }\n\n\u002F\u002F Multiple conditions (implicit AND)\n{\n  category: \"docs\",\n  language: \"en\",\n  \"metadata.published\": true\n}\n```\n\n### 4. Namespace Filtering\n\n```typescript\n\u002F\u002F Insert with namespace (partition key)\nawait env.VECTORIZE_INDEX.upsert([\n  {\n    id: \"1\",\n    values: embedding,\n    namespace: \"customer-123\",\n    metadata: { type: \"support_ticket\" }\n  }\n]);\n\n\u002F\u002F Query only within namespace\nconst results = await env.VECTORIZE_INDEX.query(queryVector, {\n  topK: 5,\n  namespace: \"customer-123\"  \u002F\u002F Only search this customer's data\n});\n```\n\n### 5. List and Delete Vectors\n\n```typescript\n\u002F\u002F List vector IDs (paginated)\nconst vectors = await env.VECTORIZE_INDEX.listVectors({\n  cursor: null,\n  limit: 100\n});\n\n\u002F\u002F Get specific vectors by ID\nconst retrieved = await env.VECTORIZE_INDEX.getByIds([\n  \"doc-1\", \"doc-2\", \"doc-3\"\n]);\n\n\u002F\u002F Delete vectors\nawait env.VECTORIZE_INDEX.deleteByIds([\n  \"doc-1\", \"doc-2\"\n]);\n```\n\n## Embedding Generation\n\n### Workers AI (Recommended - Free)\n\n```typescript\nconst embeddings = await env.AI.run('@cf\u002Fbaai\u002Fbge-base-en-v1.5', {\n  text: [\"Document 1 content\", \"Document 2 content\"]\n});\n\n\u002F\u002F embeddings.data is number[][] (array of 768-dim vectors)\nconst vectors = embeddings.data.map((values, i) => ({\n  id: `doc-${i}`,\n  values,\n  metadata: { source: 'batch-import' }\n}));\n\nawait env.VECTORIZE_INDEX.upsert(vectors);\n```\n\n### OpenAI Embeddings\n\n```typescript\nimport OpenAI from 'openai';\n\nconst openai = new OpenAI({ apiKey: env.OPENAI_API_KEY });\n\nconst response = await openai.embeddings.create({\n  model: \"text-embedding-3-small\",  \u002F\u002F 1536 dimensions\n  input: \"Text to embed\"\n});\n\nawait env.VECTORIZE_INDEX.upsert([{\n  id: \"doc-1\",\n  values: response.data[0].embedding,\n  metadata: { model: \"openai-3-small\" }\n}]);\n```\n\n## Metadata Best Practices\n\n### 1. Cardinality Considerations\n\n**Low Cardinality (Good for $eq filters)**:\n```typescript\n\u002F\u002F Few unique values - efficient filtering\nmetadata: {\n  category: \"docs\",        \u002F\u002F ~10 categories\n  language: \"en\",          \u002F\u002F ~5 languages\n  published: true          \u002F\u002F 2 values (boolean)\n}\n```\n\n**High Cardinality (Avoid in range queries)**:\n```typescript\n\u002F\u002F Many unique values - avoid large range scans\nmetadata: {\n  user_id: \"uuid-v4...\",         \u002F\u002F Millions of unique values\n  timestamp_ms: 1704067200123    \u002F\u002F Use seconds instead\n}\n```\n\n### 2. Metadata Limits\n\n- **Max 10 metadata indexes** per Vectorize index\n- **Max 10 KiB metadata** per vector\n- **String indexes**: First 64 bytes (UTF-8)\n- **Number indexes**: Float64 precision\n- **Filter size**: Max 2048 bytes (compact JSON)\n\n### 3. Key Restrictions\n\n```typescript\n\u002F\u002F ❌ INVALID metadata keys\nmetadata: {\n  \"\": \"value\",              \u002F\u002F Empty key\n  \"user.name\": \"John\",      \u002F\u002F Contains dot (reserved for nesting)\n  \"$admin\": true,           \u002F\u002F Starts with $\n  \"key\\\"with\\\"quotes\": 1    \u002F\u002F Contains quotes\n}\n\n\u002F\u002F ✅ VALID metadata keys\nmetadata: {\n  \"user_name\": \"John\",\n  \"isAdmin\": true,\n  \"nested\": { \"allowed\": true }  \u002F\u002F Access as \"nested.allowed\" in filters\n}\n```\n\n## RAG Pattern (Full Example)\n\n```typescript\nexport default {\n  async fetch(request: Request, env: Env): Promise\u003CResponse> {\n    const { question } = await request.json();\n\n    \u002F\u002F 1. Generate embedding for user question\n    const questionEmbedding = await env.AI.run('@cf\u002Fbaai\u002Fbge-base-en-v1.5', {\n      text: question\n    });\n\n    \u002F\u002F 2. Search vector database for similar content\n    const results = await env.VECTORIZE_INDEX.query(\n      questionEmbedding.data[0],\n      {\n        topK: 3,\n        returnMetadata: 'all',\n        filter: { type: \"documentation\" }\n      }\n    );\n\n    \u002F\u002F 3. Build context from retrieved documents\n    const context = results.matches\n      .map(m => m.metadata.content)\n      .join('\\n\\n---\\n\\n');\n\n    \u002F\u002F 4. Generate answer with LLM using context\n    const answer = await env.AI.run('@cf\u002Fmeta\u002Fllama-3-8b-instruct', {\n      messages: [\n        {\n          role: \"system\",\n          content: `Answer based on this context:\\n\\n${context}`\n        },\n        {\n          role: \"user\",\n          content: question\n        }\n      ]\n    });\n\n    return Response.json({\n      answer: answer.response,\n      sources: results.matches.map(m => m.metadata.title)\n    });\n  }\n};\n```\n\n## Document Chunking Strategy\n\n```typescript\nfunction chunkText(text: string, maxChunkSize = 500): string[] {\n  const sentences = text.match(\u002F[^.!?]+[.!?]+\u002Fg) || [text];\n  const chunks: string[] = [];\n  let currentChunk = '';\n\n  for (const sentence of sentences) {\n    if ((currentChunk + sentence).length > maxChunkSize && currentChunk) {\n      chunks.push(currentChunk.trim());\n      currentChunk = sentence;\n    } else {\n      currentChunk += sentence;\n    }\n  }\n\n  if (currentChunk) chunks.push(currentChunk.trim());\n  return chunks;\n}\n\n\u002F\u002F Usage\nconst chunks = chunkText(longDocument, 500);\nconst embeddings = await env.AI.run('@cf\u002Fbaai\u002Fbge-base-en-v1.5', {\n  text: chunks\n});\n\nconst vectors = embeddings.data.map((values, i) => ({\n  id: `doc-${docId}-chunk-${i}`,\n  values,\n  metadata: {\n    doc_id: docId,\n    chunk_index: i,\n    total_chunks: chunks.length,\n    content: chunks[i]\n  }\n}));\n\nawait env.VECTORIZE_INDEX.upsert(vectors);\n```\n\n## Common Errors & Solutions\n\n### Error 1: Metadata Index Created After Vectors Inserted\n```\nProblem: Filtering doesn't work on existing vectors\nSolution: Delete and re-insert vectors OR create metadata indexes BEFORE inserting\n```\n\n### Error 2: Dimension Mismatch\n```\nProblem: \"Vector dimensions do not match index configuration\"\nSolution: Ensure embedding model output matches index dimensions:\n  - Workers AI bge-base: 768\n  - OpenAI small: 1536\n  - OpenAI large: 3072\n```\n\n### Error 3: Invalid Metadata Keys\n```\nProblem: \"Invalid metadata key\"\nSolution: Keys cannot:\n  - Be empty\n  - Contain . (dot)\n  - Contain \" (quote)\n  - Start with $ (dollar sign)\n```\n\n### Error 4: Filter Too Large\n```\nProblem: \"Filter exceeds 2048 bytes\"\nSolution: Simplify filter or split into multiple queries\n```\n\n### Error 5: Range Query on High Cardinality\n```\nProblem: Slow queries or reduced accuracy\nSolution: Use lower cardinality fields for range queries, or use seconds instead of milliseconds for timestamps\n```\n\n### Error 6: Insert vs Upsert Confusion\n```\nProblem: Updates not reflecting in index\nSolution: Use upsert() to overwrite existing vectors, not insert()\n```\n\n### Error 7: Missing Bindings\n```\nProblem: \"VECTORIZE_INDEX is not defined\"\nSolution: Add [[vectorize]] binding to wrangler.jsonc\n```\n\n### Error 8: Namespace vs Metadata Confusion\n```\nProblem: Unclear when to use namespace vs metadata filtering\nSolution:\n  - Namespace: Partition key, applied BEFORE metadata filters\n  - Metadata: Flexible key-value filtering within namespace\n```\n\n## Wrangler CLI Reference\n\n```bash\n# Create index (dimensions and metric cannot be changed later!)\nnpx wrangler vectorize create \u003Cname> \\\n  --dimensions=768 \\\n  --metric=cosine\n\n# List indexes\nnpx wrangler vectorize list\n\n# Get index details\nnpx wrangler vectorize get \u003Cname>\n\n# Get index info (vector count, mutations)\nnpx wrangler vectorize info \u003Cname>\n\n# Delete index\nnpx wrangler vectorize delete \u003Cname>\n\n# Create metadata index (BEFORE inserting vectors!)\nnpx wrangler vectorize create-metadata-index \u003Cname> \\\n  --property-name=category \\\n  --type=string\n\n# List metadata indexes\nnpx wrangler vectorize list-metadata-index \u003Cname>\n\n# Delete metadata index\nnpx wrangler vectorize delete-metadata-index \u003Cname> \\\n  --property-name=category\n\n# Insert vectors from file\nnpx wrangler vectorize insert \u003Cname> \\\n  --file=vectors.ndjson\n\n# Query vectors\nnpx wrangler vectorize query \u003Cname> \\\n  --vector=\"[0.1, 0.2, ...]\" \\\n  --top-k=5 \\\n  --return-metadata=all\n\n# List vector IDs\nnpx wrangler vectorize list-vectors \u003Cname> \\\n  --count=100\n\n# Get vectors by IDs\nnpx wrangler vectorize get-vectors \u003Cname> \\\n  --ids=\"id1,id2,id3\"\n\n# Delete vectors by IDs\nnpx wrangler vectorize delete-vectors \u003Cname> \\\n  --ids=\"id1,id2,id3\"\n```\n\n## Performance Tips\n\n1. **Batch Operations**: Insert\u002Fupsert in batches of 100-1000 vectors\n2. **Selective Return**: Only use `returnValues: true` when needed (saves bandwidth)\n3. **Metadata Cardinality**: Keep indexed metadata fields low cardinality for range queries\n4. **Namespace Filtering**: Apply namespace filter before metadata filters (processed first)\n5. **Query Optimization**: Use topK=3-10 for best latency (larger values increase search time)\n\n## When to Use This Skill\n\n✅ **Use Vectorize when**:\n- Building semantic search over documents, products, or content\n- Implementing RAG chatbots with context retrieval\n- Creating recommendation engines based on similarity\n- Building multi-tenant applications (use namespaces)\n- Need global distribution and low latency\n\n❌ **Don't use Vectorize for**:\n- Traditional relational data (use D1)\n- Key-value lookups (use KV)\n- Large file storage (use R2)\n- Real-time collaborative state (use Durable Objects)\n\n## Templates Location\n\nAll working code examples are in `.\u002Ftemplates\u002F`:\n- `basic-search.ts` - Simple vector search implementation\n- `rag-chat.ts` - Complete RAG chatbot\n- `document-ingestion.ts` - Document processing pipeline\n- `metadata-filtering.ts` - Advanced filtering patterns\n\n## Reference Documentation\n\nDetailed guides in `.\u002Freferences\u002F`:\n- `wrangler-commands.md` - Complete CLI reference\n- `index-operations.md` - Index creation and management\n- `vector-operations.md` - Insert, query, delete operations\n- `metadata-guide.md` - Metadata indexes and filtering\n- `embedding-models.md` - Model configurations\n\n## Integration Examples\n\nComplete integration guides in `.\u002Freferences\u002F`:\n- `integration-workers-ai-bge-base.md` - Workers AI integration (@cf\u002Fbaai\u002Fbge-base-en-v1.5)\n- `integration-openai-embeddings.md` - OpenAI embeddings integration\n\n## Official Documentation\n\n- [Vectorize Docs](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fvectorize\u002F)\n- [Workers AI Models](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers-ai\u002Fmodels\u002F)\n- [RAG Tutorial](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers-ai\u002Fguides\u002Ftutorials\u002Fbuild-a-retrieval-augmented-generation-ai\u002F)\n\n---\n\n**Version**: 1.0.0\n**Status**: Production Ready ✅\n**Token Savings**: ~65%\n**Errors Prevented**: 8 major categories\n**Dev Time Saved**: ~2.5 hours per implementation\n","# Cloudflare Vectorize\n\nComplete implementation guide for Cloudflare Vectorize - a globally distributed vector database for building semantic search, RAG (Retrieval Augmented Generation), and AI-powered applications with Cloudflare Workers.\n\n**Status**: Production Ready ✅\n**Last Updated**: 2025-10-21\n**Dependencies**: cloudflare-worker-base (for Worker setup), cloudflare-workers-ai (for embeddings)\n**Latest Versions**: wrangler@4.43.0, @cloudflare\u002Fworkers-types@4.20251014.0\n**Token Savings**: ~65%\n**Errors Prevented**: 8\n**Dev Time Saved**: ~3 hours\n\n## What This Skill Provides\n\n### Core Capabilities\n- ✅ **Index Management**: Create, configure, and manage vector indexes\n- ✅ **Vector Operations**: Insert, upsert, query, delete, and list vectors\n- ✅ **Metadata Filtering**: Advanced filtering with 10 metadata indexes per index\n- ✅ **Semantic Search**: Find similar vectors using cosine, euclidean, or dot-product metrics\n- ✅ **RAG Patterns**: Complete retrieval-augmented generation workflows\n- ✅ **Workers AI Integration**: Native embedding generation with @cf\u002Fbaai\u002Fbge-base-en-v1.5\n- ✅ **OpenAI Integration**: Support for text-embedding-3-small\u002Flarge models\n- ✅ **Document Processing**: Text chunking and batch ingestion pipelines\n\n### Templates Included\n1. **basic-search.ts** - Simple vector search with Workers AI\n2. **rag-chat.ts** - Full RAG chatbot with context retrieval\n3. **document-ingestion.ts** - Document chunking and embedding pipeline\n4. **metadata-filtering.ts** - Advanced filtering examples\n\n## Critical Setup Rules\n\n### ⚠️ MUST DO BEFORE INSERTING VECTORS\n```bash\n# 1. Create the index with FIXED dimensions and metric\nnpx wrangler vectorize create my-index \\\n  --dimensions=768 \\\n  --metric=cosine\n\n# 2. Create metadata indexes IMMEDIATELY (before inserting vectors!)\nnpx wrangler vectorize create-metadata-index my-index \\\n  --property-name=category \\\n  --type=string\n\nnpx wrangler vectorize create-metadata-index my-index \\\n  --property-name=timestamp \\\n  --type=number\n```\n\n**Why**: Metadata indexes MUST exist before vectors are inserted. Vectors added before a metadata index was created won't be filterable on that property.\n\n### Index Configuration (Cannot Be Changed Later)\n\n```bash\n# Dimensions MUST match your embedding model output:\n# - Workers AI @cf\u002Fbaai\u002Fbge-base-en-v1.5: 768 dimensions\n# - OpenAI text-embedding-3-small: 1536 dimensions\n# - OpenAI text-embedding-3-large: 3072 dimensions\n\n# Metrics determine similarity calculation:\n# - cosine: Best for normalized embeddings (most common)\n# - euclidean: Absolute distance between vectors\n# - dot-product: For non-normalized vectors\n```\n\n## Wrangler Configuration\n\n**wrangler.jsonc**:\n```jsonc\n{\n  \"name\": \"my-vectorize-worker\",\n  \"main\": \"src\u002Findex.ts\",\n  \"compatibility_date\": \"2025-10-21\",\n  \"vectorize\": [\n    {\n      \"binding\": \"VECTORIZE_INDEX\",\n      \"index_name\": \"my-index\"\n    }\n  ],\n  \"ai\": {\n    \"binding\": \"AI\"\n  }\n}\n```\n\n## TypeScript Types\n\n```typescript\nexport interface Env {\n  VECTORIZE_INDEX: VectorizeIndex;\n  AI: Ai;\n}\n\ninterface VectorizeVector {\n  id: string;\n  values: number[] | Float32Array | Float64Array;\n  namespace?: string;\n  metadata?: Record\u003Cstring, string | number | boolean | string[]>;\n}\n\ninterface VectorizeMatches {\n  matches: Array\u003C{\n    id: string;\n    score: number;\n    values?: number[];\n    metadata?: Record\u003Cstring, any>;\n    namespace?: string;\n  }>;\n  count: number;\n}\n```\n\n## Common Operations\n\n### 1. Insert vs Upsert\n\n```typescript\n\u002F\u002F INSERT: Keeps first insertion if ID exists\nawait env.VECTORIZE_INDEX.insert([\n  {\n    id: \"doc-1\",\n    values: [0.1, 0.2, 0.3, ...],\n    metadata: { title: \"First version\" }\n  }\n]);\n\n\u002F\u002F UPSERT: Overwrites with latest if ID exists (use this for updates)\nawait env.VECTORIZE_INDEX.upsert([\n  {\n    id: \"doc-1\",\n    values: [0.1, 0.2, 0.3, ...],\n    metadata: { title: \"Updated version\" }\n  }\n]);\n```\n\n### 2. Query with Filters\n\n```typescript\n\u002F\u002F Generate embedding for query\nconst queryEmbedding = await env.AI.run('@cf\u002Fbaai\u002Fbge-base-en-v1.5', {\n  text: \"What is Cloudflare Workers?\"\n});\n\n\u002F\u002F Search with metadata filtering\nconst results = await env.VECTORIZE_INDEX.query(\n  queryEmbedding.data[0],\n  {\n    topK: 5,\n    filter: {\n      category: \"documentation\",\n      timestamp: { $gte: 1704067200 }  \u002F\u002F After Jan 1, 2024\n    },\n    returnMetadata: 'all',\n    returnValues: false,\n    namespace: 'prod'\n  }\n);\n```\n\n### 3. Metadata Filter Operators\n\n```typescript\n\u002F\u002F Equality (implicit $eq)\n{ category: \"docs\" }\n\n\u002F\u002F Explicit operators\n{ status: { $ne: \"archived\" } }\n\n\u002F\u002F In array\n{ category: { $in: [\"docs\", \"tutorials\", \"guides\"] } }\n\n\u002F\u002F Not in array\n{ category: { $nin: [\"deprecated\", \"draft\"] } }\n\n\u002F\u002F Range queries (numbers)\n{\n  timestamp: {\n    $gte: 1704067200,  \u002F\u002F >= Jan 1, 2024\n    $lt: 1735689600    \u002F\u002F \u003C Jan 1, 2025\n  }\n}\n\n\u002F\u002F Range queries (strings) - prefix searching\n{\n  url: {\n    $gte: \"\u002Fdocs\u002Fworkers\",\n    $lt: \"\u002Fdocs\u002Fworkersz\"  \u002F\u002F Matches all \u002Fdocs\u002Fworkers\u002F*\n  }\n}\n\n\u002F\u002F Nested metadata with dot notation\n{ \"author.id\": \"user123\" }\n\n\u002F\u002F Multiple conditions (implicit AND)\n{\n  category: \"docs\",\n  language: \"en\",\n  \"metadata.published\": true\n}\n```\n\n### 4. Namespace Filtering\n\n```typescript\n\u002F\u002F Insert with namespace (partition key)\nawait env.VECTORIZE_INDEX.upsert([\n  {\n    id: \"1\",\n    values: embedding,\n    namespace: \"customer-123\",\n    metadata: { type: \"support_ticket\" }\n  }\n]);\n\n\u002F\u002F Query only within namespace\nconst results = await env.VECTORIZE_INDEX.query(queryVector, {\n  topK: 5,\n  namespace: \"customer-123\"  \u002F\u002F Only search this customer's data\n});\n```\n\n### 5. List and Delete Vectors\n\n```typescript\n\u002F\u002F List vector IDs (paginated)\nconst vectors = await env.VECTORIZE_INDEX.listVectors({\n  cursor: null,\n  limit: 100\n});\n\n\u002F\u002F Get specific vectors by ID\nconst retrieved = await env.VECTORIZE_INDEX.getByIds([\n  \"doc-1\", \"doc-2\", \"doc-3\"\n]);\n\n\u002F\u002F Delete vectors\nawait env.VECTORIZE_INDEX.deleteByIds([\n  \"doc-1\", \"doc-2\"\n]);\n```\n\n## Embedding Generation\n\n### Workers AI (Recommended - Free)\n\n```typescript\nconst embeddings = await env.AI.run('@cf\u002Fbaai\u002Fbge-base-en-v1.5', {\n  text: [\"Document 1 content\", \"Document 2 content\"]\n});\n\n\u002F\u002F embeddings.data is number[][] (array of 768-dim vectors)\nconst vectors = embeddings.data.map((values, i) => ({\n  id: `doc-${i}`,\n  values,\n  metadata: { source: 'batch-import' }\n}));\n\nawait env.VECTORIZE_INDEX.upsert(vectors);\n```\n\n### OpenAI Embeddings\n\n```typescript\nimport OpenAI from 'openai';\n\nconst openai = new OpenAI({ apiKey: env.OPENAI_API_KEY });\n\nconst response = await openai.embeddings.create({\n  model: \"text-embedding-3-small\",  \u002F\u002F 1536 dimensions\n  input: \"Text to embed\"\n});\n\nawait env.VECTORIZE_INDEX.upsert([{\n  id: \"doc-1\",\n  values: response.data[0].embedding,\n  metadata: { model: \"openai-3-small\" }\n}]);\n```\n\n## Metadata Best Practices\n\n### 1. Cardinality Considerations\n\n**Low Cardinality (Good for $eq filters)**:\n```typescript\n\u002F\u002F Few unique values - efficient filtering\nmetadata: {\n  category: \"docs\",        \u002F\u002F ~10 categories\n  language: \"en\",          \u002F\u002F ~5 languages\n  published: true          \u002F\u002F 2 values (boolean)\n}\n```\n\n**High Cardinality (Avoid in range queries)**:\n```typescript\n\u002F\u002F Many unique values - avoid large range scans\nmetadata: {\n  user_id: \"uuid-v4...\",         \u002F\u002F Millions of unique values\n  timestamp_ms: 1704067200123    \u002F\u002F Use seconds instead\n}\n```\n\n### 2. Metadata Limits\n\n- **Max 10 metadata indexes** per Vectorize index\n- **Max 10 KiB metadata** per vector\n- **String indexes**: First 64 bytes (UTF-8)\n- **Number indexes**: Float64 precision\n- **Filter size**: Max 2048 bytes (compact JSON)\n\n### 3. Key Restrictions\n\n```typescript\n\u002F\u002F ❌ INVALID metadata keys\nmetadata: {\n  \"\": \"value\",              \u002F\u002F Empty key\n  \"user.name\": \"John\",      \u002F\u002F Contains dot (reserved for nesting)\n  \"$admin\": true,           \u002F\u002F Starts with $\n  \"key\\\"with\\\"quotes\": 1    \u002F\u002F Contains quotes\n}\n\n\u002F\u002F ✅ VALID metadata keys\nmetadata: {\n  \"user_name\": \"John\",\n  \"isAdmin\": true,\n  \"nested\": { \"allowed\": true }  \u002F\u002F Access as \"nested.allowed\" in filters\n}\n```\n\n## RAG Pattern (Full Example)\n\n```typescript\nexport default {\n  async fetch(request: Request, env: Env): Promise\u003CResponse> {\n    const { question } = await request.json();\n\n    \u002F\u002F 1. Generate embedding for user question\n    const questionEmbedding = await env.AI.run('@cf\u002Fbaai\u002Fbge-base-en-v1.5', {\n      text: question\n    });\n\n    \u002F\u002F 2. Search vector database for similar content\n    const results = await env.VECTORIZE_INDEX.query(\n      questionEmbedding.data[0],\n      {\n        topK: 3,\n        returnMetadata: 'all',\n        filter: { type: \"documentation\" }\n      }\n    );\n\n    \u002F\u002F 3. Build context from retrieved documents\n    const context = results.matches\n      .map(m => m.metadata.content)\n      .join('\\n\\n---\\n\\n');\n\n    \u002F\u002F 4. Generate answer with LLM using context\n    const answer = await env.AI.run('@cf\u002Fmeta\u002Fllama-3-8b-instruct', {\n      messages: [\n        {\n          role: \"system\",\n          content: `Answer based on this context:\\n\\n${context}`\n        },\n        {\n          role: \"user\",\n          content: question\n        }\n      ]\n    });\n\n    return Response.json({\n      answer: answer.response,\n      sources: results.matches.map(m => m.metadata.title)\n    });\n  }\n};\n```\n\n## Document Chunking Strategy\n\n```typescript\nfunction chunkText(text: string, maxChunkSize = 500): string[] {\n  const sentences = text.match(\u002F[^.!?]+[.!?]+\u002Fg) || [text];\n  const chunks: string[] = [];\n  let currentChunk = '';\n\n  for (const sentence of sentences) {\n    if ((currentChunk + sentence).length > maxChunkSize && currentChunk) {\n      chunks.push(currentChunk.trim());\n      currentChunk = sentence;\n    } else {\n      currentChunk += sentence;\n    }\n  }\n\n  if (currentChunk) chunks.push(currentChunk.trim());\n  return chunks;\n}\n\n\u002F\u002F Usage\nconst chunks = chunkText(longDocument, 500);\nconst embeddings = await env.AI.run('@cf\u002Fbaai\u002Fbge-base-en-v1.5', {\n  text: chunks\n});\n\nconst vectors = embeddings.data.map((values, i) => ({\n  id: `doc-${docId}-chunk-${i}`,\n  values,\n  metadata: {\n    doc_id: docId,\n    chunk_index: i,\n    total_chunks: chunks.length,\n    content: chunks[i]\n  }\n}));\n\nawait env.VECTORIZE_INDEX.upsert(vectors);\n```\n\n## Common Errors & Solutions\n\n### Error 1: Metadata Index Created After Vectors Inserted\n```\nProblem: Filtering doesn't work on existing vectors\nSolution: Delete and re-insert vectors OR create metadata indexes BEFORE inserting\n```\n\n### Error 2: Dimension Mismatch\n```\nProblem: \"Vector dimensions do not match index configuration\"\nSolution: Ensure embedding model output matches index dimensions:\n  - Workers AI bge-base: 768\n  - OpenAI small: 1536\n  - OpenAI large: 3072\n```\n\n### Error 3: Invalid Metadata Keys\n```\nProblem: \"Invalid metadata key\"\nSolution: Keys cannot:\n  - Be empty\n  - Contain . (dot)\n  - Contain \" (quote)\n  - Start with $ (dollar sign)\n```\n\n### Error 4: Filter Too Large\n```\nProblem: \"Filter exceeds 2048 bytes\"\nSolution: Simplify filter or split into multiple queries\n```\n\n### Error 5: Range Query on High Cardinality\n```\nProblem: Slow queries or reduced accuracy\nSolution: Use lower cardinality fields for range queries, or use seconds instead of milliseconds for timestamps\n```\n\n### Error 6: Insert vs Upsert Confusion\n```\nProblem: Updates not reflecting in index\nSolution: Use upsert() to overwrite existing vectors, not insert()\n```\n\n### Error 7: Missing Bindings\n```\nProblem: \"VECTORIZE_INDEX is not defined\"\nSolution: Add [[vectorize]] binding to wrangler.jsonc\n```\n\n### Error 8: Namespace vs Metadata Confusion\n```\nProblem: Unclear when to use namespace vs metadata filtering\nSolution:\n  - Namespace: Partition key, applied BEFORE metadata filters\n  - Metadata: Flexible key-value filtering within namespace\n```\n\n## Wrangler CLI Reference\n\n```bash\n# Create index (dimensions and metric cannot be changed later!)\nnpx wrangler vectorize create \u003Cname> \\\n  --dimensions=768 \\\n  --metric=cosine\n\n# List indexes\nnpx wrangler vectorize list\n\n# Get index details\nnpx wrangler vectorize get \u003Cname>\n\n# Get index info (vector count, mutations)\nnpx wrangler vectorize info \u003Cname>\n\n# Delete index\nnpx wrangler vectorize delete \u003Cname>\n\n# Create metadata index (BEFORE inserting vectors!)\nnpx wrangler vectorize create-metadata-index \u003Cname> \\\n  --property-name=category \\\n  --type=string\n\n# List metadata indexes\nnpx wrangler vectorize list-metadata-index \u003Cname>\n\n# Delete metadata index\nnpx wrangler vectorize delete-metadata-index \u003Cname> \\\n  --property-name=category\n\n# Insert vectors from file\nnpx wrangler vectorize insert \u003Cname> \\\n  --file=vectors.ndjson\n\n# Query vectors\nnpx wrangler vectorize query \u003Cname> \\\n  --vector=\"[0.1, 0.2, ...]\" \\\n  --top-k=5 \\\n  --return-metadata=all\n\n# List vector IDs\nnpx wrangler vectorize list-vectors \u003Cname> \\\n  --count=100\n\n# Get vectors by IDs\nnpx wrangler vectorize get-vectors \u003Cname> \\\n  --ids=\"id1,id2,id3\"\n\n# Delete vectors by IDs\nnpx wrangler vectorize delete-vectors \u003Cname> \\\n  --ids=\"id1,id2,id3\"\n```\n\n## Performance Tips\n\n1. **Batch Operations**: Insert\u002Fupsert in batches of 100-1000 vectors\n2. **Selective Return**: Only use `returnValues: true` when needed (saves bandwidth)\n3. **Metadata Cardinality**: Keep indexed metadata fields low cardinality for range queries\n4. **Namespace Filtering**: Apply namespace filter before metadata filters (processed first)\n5. **Query Optimization**: Use topK=3-10 for best latency (larger values increase search time)\n\n## When to Use This Skill\n\n✅ **Use Vectorize when**:\n- Building semantic search over documents, products, or content\n- Implementing RAG chatbots with context retrieval\n- Creating recommendation engines based on similarity\n- Building multi-tenant applications (use namespaces)\n- Need global distribution and low latency\n\n❌ **Don't use Vectorize for**:\n- Traditional relational data (use D1)\n- Key-value lookups (use KV)\n- Large file storage (use R2)\n- Real-time collaborative state (use Durable Objects)\n\n## Templates Location\n\nAll working code examples are in `.\u002Ftemplates\u002F`:\n- `basic-search.ts` - Simple vector search implementation\n- `rag-chat.ts` - Complete RAG chatbot\n- `document-ingestion.ts` - Document processing pipeline\n- `metadata-filtering.ts` - Advanced filtering patterns\n\n## Reference Documentation\n\nDetailed guides in `.\u002Freferences\u002F`:\n- `wrangler-commands.md` - Complete CLI reference\n- `index-operations.md` - Index creation and management\n- `vector-operations.md` - Insert, query, delete operations\n- `metadata-guide.md` - Metadata indexes and filtering\n- `embedding-models.md` - Model configurations\n\n## Integration Examples\n\nComplete integration guides in `.\u002Freferences\u002F`:\n- `integration-workers-ai-bge-base.md` - Workers AI integration (@cf\u002Fbaai\u002Fbge-base-en-v1.5)\n- `integration-openai-embeddings.md` - OpenAI embeddings integration\n\n## Official Documentation\n\n- [Vectorize Docs](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fvectorize\u002F)\n- [Workers AI Models](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers-ai\u002Fmodels\u002F)\n- [RAG Tutorial](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers-ai\u002Fguides\u002Ftutorials\u002Fbuild-a-retrieval-augmented-generation-ai\u002F)\n\n---\n\n**Version**: 1.0.0\n**Status**: Production Ready ✅\n**Token Savings**: ~65%\n**Errors Prevented**: 8 major categories\n**Dev Time Saved**: ~2.5 hours per implementation\n",{"name":5,"license":14,"description":23},"Complete knowledge domain for Cloudflare Vectorize - globally distributed vector database for building\nsemantic search, RAG (Retrieval Augmented Generation), and AI-powered applications.\n\nUse when: creating vector indexes, inserting embeddings, querying vectors, implementing semantic search,\nbuilding RAG systems, configuring metadata filtering, working with Workers AI embeddings, integrating\nwith OpenAI embeddings, or encountering metadata index timing errors, dimension mismatches, filter\nsyntax issues, or insert vs upsert confusion.\n\nKeywords: vectorize, vector database, vector index, vector search, similarity search, semantic search,\nnearest neighbor, knn search, ann search, RAG, retrieval augmented generation, chat with data,\ndocument search, semantic Q&A, context retrieval, bge-base, @cf\u002Fbaai\u002Fbge-base-en-v1.5,\ntext-embedding-3-small, text-embedding-3-large, Workers AI embeddings, openai embeddings,\ninsert vectors, upsert vectors, query vectors, delete vectors, metadata filtering, namespace filtering,\ntopK search, cosine similarity, euclidean distance, dot product, wrangler vectorize, metadata index,\ncreate vectorize index, vectorize dimensions, vectorize metric, vectorize binding\n","main","6b73b29e4866f997b1eb47fe8d9631396265fc24",0,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn","2026-09-09 16:06:07",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add davidanthonyn\u002Fagent-skills --skill cloudflare-vectorize",{"tool":36,"command":37},"bunx","bunx skills add davidanthonyn\u002Fagent-skills --skill cloudflare-vectorize",{"tool":39,"command":40},"pnpm","pnpm dlx skills add davidanthonyn\u002Fagent-skills --skill cloudflare-vectorize","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcloudflare-vectorize\u002FSKILL.md",true,[44,50,54],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"README.md","REFERENCE","参考文档",8065,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcloudflare-vectorize\u002FREADME.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"SKILL.json",16606,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcloudflare-vectorize\u002FSKILL.json",{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"SKILL.md.backup","OTHER","其他",16530,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcloudflare-vectorize\u002FSKILL.md.backup",[61,68,76,83,90,99],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7AQNJDXVNVMN08N5BHBGZBF","zustand-state-management","Production-tested setup for Zustand state management in React applications with TypeScript.\nThis skill provides comprehensive patterns for building scalable, type-safe global state.\n\nUse when: setting up global state in React, migrating from Redux or Context API, implementing\nstate persistence with localStorage, configuring TypeScript with Zustand, using slices pattern\nfor modular stores, adding devtools middleware for debugging, handling Next.js SSR hydration,\nor encountering hydration errors, TypeScript inference issues, or persist middleware problems.\n\nPrevents 5 documented issues: Next.js hydration mismatches, TypeScript double parentheses\nsyntax errors, persist middleware export errors, infinite render loops, and slices pattern\ntype inference failures.\n\nKeywords: zustand, state management, React state, TypeScript state, persist middleware,\ndevtools, slices pattern, global state, React hooks, create store, useBoundStore,\nStateCreator, hydration error, text content mismatch, infinite render, localStorage,\nsessionStorage, immer middleware, shallow equality, selector pattern, zustand v5","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fzustand-state-management\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":72,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M7AQN2DW9DTPM8BYNZSHQANC","zetic-mlange","Help users integrate the ZETIC Melange (MLange) on-device AI SDK into Android (Kotlin\u002FJava) and iOS (Swift) mobile apps. Use this skill whenever the user mentions Zetic, MLange, Melange, ZeticMLangeModel, ZeticMLangeLLMModel, ZeticMLangeHFModel, on-device NPU inference for mobile, or deploying ML models to Android\u002FiOS with NPU acceleration. Also trigger when users ask about running LLMs on-device with GGUF quantization, mobile NPU model deployment, or converting PyTorch\u002FONNX models for mobile inference. Covers general model inference, LLM inference (streaming token generation), and HuggingFace model loading.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fzetic-mlange\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fzetic-mlange\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M7AQMEK370FBPC75N2W8WA4W","youtube-downloader","Download videos, audio, playlists, and channels from YouTube and 1000+ websites using yt-dlp. Supports quality selection, format conversion, subtitle download, playlist filtering, metadata extraction, thumbnail download, and batch operations. Use when downloading YouTube videos in any quality (4K, 8K, HDR), extracting audio as MP3\u002FM4A\u002FFLAC, downloading entire playlists\u002Fchannels, getting subtitles in multiple languages, converting to specific formats, downloading live streams, archiving content, or batch processing multiple URLs. Optimized for reliability with automatic retries, rate limiting, and error handling.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M7AQHKQ4VQB04NH6BG4SV9Q7","wordpress-plugin-core","This skill provides comprehensive knowledge for WordPress plugin development, covering core patterns, security best practices, database interactions, hooks\u002Ffilters, Settings API, custom post types, REST API, and AJAX. This skill should be used when creating WordPress plugins, troubleshooting security issues, implementing custom post types\u002Ftaxonomies, building admin interfaces, or working with the WordPress database.\n\nUse when: Creating new WordPress plugins, implementing nonces\u002Fsanitization\u002Fescaping, working with $wpdb and prepared statements, building Settings API pages, registering custom post types or taxonomies, implementing REST API endpoints, handling AJAX requests, debugging plugin activation\u002Fdeactivation issues, preventing SQL injection\u002FXSS\u002FCSRF vulnerabilities.\n\nKeywords: wordpress plugin development, wordpress security, wordpress hooks, wordpress filters, wordpress database, wpdb prepare, sanitize_text_field, esc_html, wp_nonce, custom post type, register_post_type, settings api, rest api, admin-ajax, wordpress sql injection, wordpress xss, wordpress csrf, plugin header, activation hook, deactivation hook, wordpress coding standards, wordpress plugin architecture","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fwordpress-plugin-core\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":94,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M7AQH4JW8F2MJFS1C43TZ2TY","webapp-testing","Test local web applications with Playwright. Use when asked to verify frontend functionality, debug UI behavior, capture browser screenshots, or inspect browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7AQH0PWD6Z1NN66V15DT25M","web-performance-audit","Audit web performance using Chrome DevTools MCP. Use when asked to audit, profile, debug, or optimize page load performance, Lighthouse scores, or site speed.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fweb-performance-audit\u002FSKILL.md",[],[]]