[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71GYH809TM4705B9YZJFX8C":3,"skill-same:01M71GYH809TM4705B9YZJFX8C":56},{"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":23,"linkOnly":24,"markdownContent":25,"markdownBody":26,"frontMatter":27,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M71GYH809TM4705B9YZJFX8C","embeddings",null,"Vector embeddings configuration and semantic search","JSGforever\u002Fskillguard","JSGforever","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F85541948?v=4","01M71FQD3E132VMR5F4TAYX3YS","01M71FQD4DYW0XJ4XQ4YQH75Y9",2,"GPL-3.0","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__alsk1992--embeddings\u002FSKILL.md",[],[5,18,19,20,21,22],"search","vector","semantic search","configuration","semantic","2026-11-10 10:12:30",false,"---\nname: embeddings\ndescription: \"Vector embeddings configuration and semantic search\"\nemoji: \"🧬\"\n---\n\n# Embeddings - Complete API Reference\n\nConfigure embedding providers, manage vector storage, and perform semantic search.\n\n---\n\n## Chat Commands\n\n### View Config\n\n```\n\u002Fembeddings                                 Show current settings\n\u002Fembeddings status                          Provider status\n\u002Fembeddings stats                           Cache statistics\n```\n\n### Configure Provider\n\n```\n\u002Fembeddings provider openai                 Use OpenAI embeddings\n\u002Fembeddings provider voyage                 Use Voyage AI\n\u002Fembeddings provider local                  Use local model\n\u002Fembeddings model text-embedding-3-small    Set model\n```\n\n### Cache Management\n\n```\n\u002Fembeddings cache stats                     View cache stats\n\u002Fembeddings cache clear                     Clear cache\n\u002Fembeddings cache size                      Total cache size\n```\n\n### Testing\n\n```\n\u002Fembeddings test \"sample text\"              Generate test embedding\n\u002Fembeddings similarity \"text1\" \"text2\"      Compare similarity\n```\n\n---\n\n## TypeScript API Reference\n\n### Create Embeddings Service\n\n```typescript\nimport { createEmbeddingsService } from 'clodds\u002Fembeddings';\n\nconst embeddings = createEmbeddingsService({\n  \u002F\u002F Provider\n  provider: 'openai',  \u002F\u002F 'openai' | 'voyage' | 'local' | 'cohere'\n  apiKey: process.env.OPENAI_API_KEY,\n\n  \u002F\u002F Model\n  model: 'text-embedding-3-small',\n  dimensions: 1536,\n\n  \u002F\u002F Caching\n  cache: true,\n  cacheBackend: 'sqlite',\n  cachePath: '.\u002Fembeddings-cache.db',\n\n  \u002F\u002F Batching\n  batchSize: 100,\n  maxConcurrent: 5,\n});\n```\n\n### Generate Embeddings\n\n```typescript\n\u002F\u002F Single text\nconst embedding = await embeddings.embed('Hello world');\nconsole.log(`Dimensions: ${embedding.length}`);\n\n\u002F\u002F Multiple texts (batched)\nconst vectors = await embeddings.embedBatch([\n  'First document',\n  'Second document',\n  'Third document',\n]);\n```\n\n### Semantic Search\n\n```typescript\n\u002F\u002F Search against stored vectors\nconst results = await embeddings.search({\n  query: 'trading strategies',\n  collection: 'documents',\n  limit: 10,\n  threshold: 0.7,\n});\n\nfor (const result of results) {\n  console.log(`${result.text} (score: ${result.score})`);\n}\n```\n\n### Similarity\n\n```typescript\n\u002F\u002F Compare two texts\nconst score = await embeddings.similarity(\n  'The cat sat on the mat',\n  'A feline rested on the rug'\n);\n\nconsole.log(`Similarity: ${score}`);  \u002F\u002F 0.0 - 1.0\n```\n\n### Store Vectors\n\n```typescript\n\u002F\u002F Store embedding with metadata\nawait embeddings.store({\n  collection: 'documents',\n  id: 'doc-1',\n  text: 'Original text',\n  embedding: vector,\n  metadata: {\n    source: 'wiki',\n    date: '2024-01-01',\n  },\n});\n\n\u002F\u002F Store batch\nawait embeddings.storeBatch({\n  collection: 'documents',\n  items: [\n    { id: 'doc-1', text: 'First doc' },\n    { id: 'doc-2', text: 'Second doc' },\n  ],\n});\n```\n\n### Cache Management\n\n```typescript\n\u002F\u002F Get cache stats\nconst stats = await embeddings.getCacheStats();\nconsole.log(`Cached: ${stats.count} embeddings`);\nconsole.log(`Size: ${stats.sizeMB} MB`);\nconsole.log(`Hit rate: ${stats.hitRate}%`);\n\n\u002F\u002F Clear cache\nawait embeddings.clearCache();\n\n\u002F\u002F Clear specific entries\nawait embeddings.clearCache({ olderThan: '7d' });\n```\n\n### Provider Configuration\n\n```typescript\n\u002F\u002F Switch provider\nembeddings.setProvider('voyage', {\n  apiKey: process.env.VOYAGE_API_KEY,\n  model: 'voyage-large-2',\n});\n\n\u002F\u002F Use local model (Transformers.js)\n\u002F\u002F No API key required - runs locally via @xenova\u002Ftransformers\nembeddings.setProvider('local', {\n  model: 'Xenova\u002Fall-MiniLM-L6-v2',  \u002F\u002F 384 dimensions\n});\n```\n\n---\n\n## Providers\n\n| Provider | Models | Quality | Speed | Cost |\n|----------|--------|---------|-------|------|\n| **OpenAI** | text-embedding-3-small\u002Flarge | Excellent | Fast | $0.02\u002F1M |\n| **Voyage** | voyage-large-2 | Excellent | Fast | $0.02\u002F1M |\n| **Cohere** | embed-english-v3 | Good | Fast | $0.10\u002F1M |\n| **Local (Transformers.js)** | Xenova\u002Fall-MiniLM-L6-v2 | Good | Medium | Free |\n\n---\n\n## Models\n\n### OpenAI\n| Model | Dimensions | Best For |\n|-------|------------|----------|\n| `text-embedding-3-small` | 1536 | General use |\n| `text-embedding-3-large` | 3072 | High accuracy |\n\n### Voyage\n| Model | Dimensions | Best For |\n|-------|------------|----------|\n| `voyage-large-2` | 1024 | General use |\n| `voyage-code-2` | 1536 | Code search |\n\n---\n\n## Use Cases\n\n### Semantic Memory Search\n\n```typescript\n\u002F\u002F Store user memories\nawait embeddings.store({\n  collection: 'memories',\n  id: 'mem-1',\n  text: 'User prefers conservative trading',\n});\n\n\u002F\u002F Search memories\nconst relevant = await embeddings.search({\n  query: 'what is user risk preference',\n  collection: 'memories',\n  limit: 5,\n});\n```\n\n### Document Similarity\n\n```typescript\n\u002F\u002F Find similar documents\nconst similar = await embeddings.findSimilar({\n  text: 'How to trade options',\n  collection: 'docs',\n  limit: 5,\n});\n```\n\n---\n\n## Best Practices\n\n1. **Use caching** — Avoid redundant API calls\n2. **Batch requests** — More efficient than single calls\n3. **Choose dimensions wisely** — Balance quality vs storage\n4. **Monitor costs** — Embeddings can add up\n5. **Local for development** — Use local model to save costs\n","# Embeddings - Complete API Reference\n\nConfigure embedding providers, manage vector storage, and perform semantic search.\n\n---\n\n## Chat Commands\n\n### View Config\n\n```\n\u002Fembeddings                                 Show current settings\n\u002Fembeddings status                          Provider status\n\u002Fembeddings stats                           Cache statistics\n```\n\n### Configure Provider\n\n```\n\u002Fembeddings provider openai                 Use OpenAI embeddings\n\u002Fembeddings provider voyage                 Use Voyage AI\n\u002Fembeddings provider local                  Use local model\n\u002Fembeddings model text-embedding-3-small    Set model\n```\n\n### Cache Management\n\n```\n\u002Fembeddings cache stats                     View cache stats\n\u002Fembeddings cache clear                     Clear cache\n\u002Fembeddings cache size                      Total cache size\n```\n\n### Testing\n\n```\n\u002Fembeddings test \"sample text\"              Generate test embedding\n\u002Fembeddings similarity \"text1\" \"text2\"      Compare similarity\n```\n\n---\n\n## TypeScript API Reference\n\n### Create Embeddings Service\n\n```typescript\nimport { createEmbeddingsService } from 'clodds\u002Fembeddings';\n\nconst embeddings = createEmbeddingsService({\n  \u002F\u002F Provider\n  provider: 'openai',  \u002F\u002F 'openai' | 'voyage' | 'local' | 'cohere'\n  apiKey: process.env.OPENAI_API_KEY,\n\n  \u002F\u002F Model\n  model: 'text-embedding-3-small',\n  dimensions: 1536,\n\n  \u002F\u002F Caching\n  cache: true,\n  cacheBackend: 'sqlite',\n  cachePath: '.\u002Fembeddings-cache.db',\n\n  \u002F\u002F Batching\n  batchSize: 100,\n  maxConcurrent: 5,\n});\n```\n\n### Generate Embeddings\n\n```typescript\n\u002F\u002F Single text\nconst embedding = await embeddings.embed('Hello world');\nconsole.log(`Dimensions: ${embedding.length}`);\n\n\u002F\u002F Multiple texts (batched)\nconst vectors = await embeddings.embedBatch([\n  'First document',\n  'Second document',\n  'Third document',\n]);\n```\n\n### Semantic Search\n\n```typescript\n\u002F\u002F Search against stored vectors\nconst results = await embeddings.search({\n  query: 'trading strategies',\n  collection: 'documents',\n  limit: 10,\n  threshold: 0.7,\n});\n\nfor (const result of results) {\n  console.log(`${result.text} (score: ${result.score})`);\n}\n```\n\n### Similarity\n\n```typescript\n\u002F\u002F Compare two texts\nconst score = await embeddings.similarity(\n  'The cat sat on the mat',\n  'A feline rested on the rug'\n);\n\nconsole.log(`Similarity: ${score}`);  \u002F\u002F 0.0 - 1.0\n```\n\n### Store Vectors\n\n```typescript\n\u002F\u002F Store embedding with metadata\nawait embeddings.store({\n  collection: 'documents',\n  id: 'doc-1',\n  text: 'Original text',\n  embedding: vector,\n  metadata: {\n    source: 'wiki',\n    date: '2024-01-01',\n  },\n});\n\n\u002F\u002F Store batch\nawait embeddings.storeBatch({\n  collection: 'documents',\n  items: [\n    { id: 'doc-1', text: 'First doc' },\n    { id: 'doc-2', text: 'Second doc' },\n  ],\n});\n```\n\n### Cache Management\n\n```typescript\n\u002F\u002F Get cache stats\nconst stats = await embeddings.getCacheStats();\nconsole.log(`Cached: ${stats.count} embeddings`);\nconsole.log(`Size: ${stats.sizeMB} MB`);\nconsole.log(`Hit rate: ${stats.hitRate}%`);\n\n\u002F\u002F Clear cache\nawait embeddings.clearCache();\n\n\u002F\u002F Clear specific entries\nawait embeddings.clearCache({ olderThan: '7d' });\n```\n\n### Provider Configuration\n\n```typescript\n\u002F\u002F Switch provider\nembeddings.setProvider('voyage', {\n  apiKey: process.env.VOYAGE_API_KEY,\n  model: 'voyage-large-2',\n});\n\n\u002F\u002F Use local model (Transformers.js)\n\u002F\u002F No API key required - runs locally via @xenova\u002Ftransformers\nembeddings.setProvider('local', {\n  model: 'Xenova\u002Fall-MiniLM-L6-v2',  \u002F\u002F 384 dimensions\n});\n```\n\n---\n\n## Providers\n\n| Provider | Models | Quality | Speed | Cost |\n|----------|--------|---------|-------|------|\n| **OpenAI** | text-embedding-3-small\u002Flarge | Excellent | Fast | $0.02\u002F1M |\n| **Voyage** | voyage-large-2 | Excellent | Fast | $0.02\u002F1M |\n| **Cohere** | embed-english-v3 | Good | Fast | $0.10\u002F1M |\n| **Local (Transformers.js)** | Xenova\u002Fall-MiniLM-L6-v2 | Good | Medium | Free |\n\n---\n\n## Models\n\n### OpenAI\n| Model | Dimensions | Best For |\n|-------|------------|----------|\n| `text-embedding-3-small` | 1536 | General use |\n| `text-embedding-3-large` | 3072 | High accuracy |\n\n### Voyage\n| Model | Dimensions | Best For |\n|-------|------------|----------|\n| `voyage-large-2` | 1024 | General use |\n| `voyage-code-2` | 1536 | Code search |\n\n---\n\n## Use Cases\n\n### Semantic Memory Search\n\n```typescript\n\u002F\u002F Store user memories\nawait embeddings.store({\n  collection: 'memories',\n  id: 'mem-1',\n  text: 'User prefers conservative trading',\n});\n\n\u002F\u002F Search memories\nconst relevant = await embeddings.search({\n  query: 'what is user risk preference',\n  collection: 'memories',\n  limit: 5,\n});\n```\n\n### Document Similarity\n\n```typescript\n\u002F\u002F Find similar documents\nconst similar = await embeddings.findSimilar({\n  text: 'How to trade options',\n  collection: 'docs',\n  limit: 5,\n});\n```\n\n---\n\n## Best Practices\n\n1. **Use caching** — Avoid redundant API calls\n2. **Batch requests** — More efficient than single calls\n3. **Choose dimensions wisely** — Balance quality vs storage\n4. **Monitor costs** — Embeddings can add up\n5. **Local for development** — Use local model to save costs\n",{"name":5,"emoji":28,"description":7},"🧬","main","f2ec4b3b9133d34eeaf9b38e4b0a97e8e5705a7f","benchmarks\u002Ffinal\u002Fskills\u002Fasset1__alsk1992--embeddings",0,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard","https:\u002F\u002Fgithub.com\u002FJSGforever","2026-08-29 18:27:56",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add JSGforever\u002Fskillguard --skill embeddings",{"tool":42,"command":43},"bunx","bunx skills add JSGforever\u002Fskillguard --skill embeddings",{"tool":45,"command":46},"pnpm","pnpm dlx skills add JSGforever\u002Fskillguard --skill embeddings","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__alsk1992--embeddings\u002FSKILL.md",true,[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"index.ts","SCRIPT","脚本",11614,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__alsk1992--embeddings\u002Findex.ts",[57,84,95,122,141,161],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":23},"01M71HY2SNXBA9Q00WZDTZQ31Z","skillguard-codex-scanner","Hybrid deterministic+LLM agent-skill security scanner. Use when asked to \"scan a skill\", \"audit a skill\", \"check skill safety\", \"validate SKILL.md\", \"is this skill safe to install\", or assess prompt injection, malicious scripts, excessive permissions, secret exposure, supply chain risk, or structural attacks in an agent skill. Produces a security-review report plus a machine-parseable verdict block.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fsrc\u002Fskillguard\u002Fstatic_scanner\u002Fskillguard-codex-scanner\u002FSKILL.md",[],[64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83],"scanner","skillguard codex scanner","skillguard","codex","chain","skill security","security-review","review report","structural","secret","prompt injection","security scanner","when","review","malicious","permissions","exposure","audit","scripts","safe",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":88,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":23},"01M71HY0SPKTT3S27BC2HPAC5M","data-exfiltrator","Analyzes data files","MIT","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fsmoke-one-skill\u002Fasset1__cisco-ai-defense--data-exfiltrator\u002FSKILL.md",[],[92,93,94],"data","data exfiltrator","files",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":23},"01M71HXVS9EMN44BGDW215FZ72","real-time-collaboration-engine","Build real-time collaborative editing with WebSockets, OT\u002FCRDT conflict resolution, and presence awareness. Implements cursor tracking, optimistic updates, and offline sync. Use for collaborative editors, whiteboards, video editing. Activate on \"real-time collaboration\", \"WebSocket sync\", \"multiplayer editing\", \"CRDT\", \"presence awareness\". NOT for simple chat, request-response APIs, or single-user apps.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--real-time-collaboration-engine\u002FSKILL.md",[],[102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121],"time","real time collaboration engine","real time collaboration","collaboration","engine","real time","Video","reliability","video editing","performance","conflict resolution","presence","access","apps","updates","Bash","activate","optimizer","react","streaming",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":23},"01M71HXP6CTY4KFN0QVMMN0V7J","react-performance-optimizer","Optimize React apps for 60fps performance. Implements memoization, virtualization, code splitting, bundle optimization. Use for slow renders, large lists, bundle bloat. Activate on \"React performance\", \"slow render\", \"useMemo\", \"bundle size\", \"virtualization\". NOT for backend optimization, non-React frameworks, or premature optimization.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--react-performance-optimizer\u002FSKILL.md",[],[111,129,119,120,130,131,132,133,134,135,102,136,137,115,117,138,118,121,139,140],"react performance optimizer","react performance","performance optimizer","app","nextjs","expert","re","render","2025","code","router","strategies",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":23},"01M71HXH7QXSQB4QTDZ7SP7YXQ","llm-streaming-response-handler","Build production LLM streaming UIs with Server-Sent Events, real-time token display, cancellation, error recovery. Handles OpenAI\u002FAnthropic\u002FClaude streaming APIs. Use for chatbots, AI assistants, real-time text generation. Activate on \"LLM streaming\", \"SSE\", \"token stream\", \"chat UI\", \"real-time AI\". NOT for batch processing, non-streaming APIs, or WebSocket bidirectional chat.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--llm-streaming-response-handler\u002FSKILL.md",[],[148,121,149,150,151,152,111,102,153,154,155,117,118,119,156,120,157,158,159,160],"llm streaming response handler","handler","error","processing","retry","chat ui","error recovery","critical","batch","display","text","server","read",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":23},"01M71HXCB0E1YRKYW1Y8T0Y106","github-actions-pipeline-builder","Build production CI\u002FCD pipelines with GitHub Actions. Implements matrix builds, caching, deployments, testing, security scanning. Use for automated testing, deployments, release workflows. Activate on \"GitHub Actions\", \"CI\u002FCD\", \"workflow\", \"deployment pipeline\", \"automated testing\". NOT for Jenkins\u002FCircleCI, manual deployments, or non-GitHub repositories.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--github-actions-pipeline-builder\u002FSKILL.md",[],[168,169,170,171,172,173,174,109,134,175,176,177,118,140,178,160,179,180,181,182],"github actions pipeline builder","actions","github actions","pipeline builder","github","builder","pipeline","testing","ci","workflows","run","release","write","edit","git"]