[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FAC6Q2BGQ7GS5602K7MD9K":3,"skill-same:01M6FAC6Q2BGQ7GS5602K7MD9K":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":56,"ownerHtmlUrl":57,"ownerBlogUrl":6,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6FAC6Q2BGQ7GS5602K7MD9K","exa-migration-deep-dive",null,"Migrate from other search APIs (Google, Bing, Tavily, Serper) to Exa neural search.\nUse when switching to Exa from another search provider, migrating search pipelines,\nor evaluating Exa as a replacement for traditional search APIs.\nTrigger with phrases like \"migrate to exa\", \"switch to exa\", \"replace google search with exa\",\n\"exa vs tavily\", \"exa migration\", \"move to exa\".","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\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fexa-migration-deep-dive\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"exa migration deep dive","deep","exa","migration","edit","bing","move","io","as","switching","google","write","read","node","migrate","Bash","search","code","tavily","openclaw","2026-11-10 10:12:30",false,"---\nname: exa-migration-deep-dive\ndescription: |\n  Migrate from other search APIs (Google, Bing, Tavily, Serper) to Exa neural search.\n  Use when switching to Exa from another search provider, migrating search pipelines,\n  or evaluating Exa as a replacement for traditional search APIs.\n  Trigger with phrases like \"migrate to exa\", \"switch to exa\", \"replace google search with exa\",\n  \"exa vs tavily\", \"exa migration\", \"move to exa\".\nallowed-tools: Read, Write, Edit, Bash(npm:*), Bash(node:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, exa, migration]\n\n---\n# Exa Migration Deep Dive\n\n## Current State\n!`npm list exa-js 2>\u002Fdev\u002Fnull | grep exa-js || echo 'exa-js not installed'`\n!`npm list 2>\u002Fdev\u002Fnull | grep -E '(google|bing|tavily|serper|serpapi)' || echo 'No competing search SDK found'`\n\n## Overview\nMigrate from traditional search APIs (Google Custom Search, Bing Web Search, Tavily, Serper) to Exa's neural search API. Key differences: Exa uses semantic\u002Fneural search instead of keyword matching, returns content (text\u002Fhighlights\u002Fsummary) in a single API call, and supports similarity search from a seed URL.\n\n## API Comparison\n\n| Feature | Google\u002FBing | Tavily | Exa |\n|---------|-------------|--------|-----|\n| Search model | Keyword | AI-enhanced | Neural embeddings |\n| Content in results | Snippets only | Full text | Text + highlights + summary |\n| Similarity search | No | No | `findSimilar()` by URL |\n| AI answer | No | Yes | `answer()` + `streamAnswer()` |\n| Categories | No | No | company, news, research paper, tweet, people |\n| Date filtering | Limited | Yes | `startPublishedDate` \u002F `endPublishedDate` |\n| Domain filtering | Yes | Yes | `includeDomains` \u002F `excludeDomains` (up to 1200) |\n\n## Instructions\n\n### Step 1: Install Exa SDK\n```bash\nset -euo pipefail\nnpm install exa-js\n# Remove old SDK if replacing\n# npm uninstall google-search-api tavily serpapi\n```\n\n### Step 2: Create Adapter Layer\n```typescript\n\u002F\u002F src\u002Fsearch\u002Fadapter.ts\nimport Exa from \"exa-js\";\n\n\u002F\u002F Define a provider-agnostic search interface\ninterface SearchResult {\n  title: string;\n  url: string;\n  snippet: string;\n  score?: number;\n  publishedDate?: string;\n}\n\ninterface SearchResponse {\n  results: SearchResult[];\n  query: string;\n}\n\n\u002F\u002F Exa implementation\nclass ExaSearchAdapter {\n  private exa: Exa;\n\n  constructor(apiKey: string) {\n    this.exa = new Exa(apiKey);\n  }\n\n  async search(query: string, numResults = 10): Promise\u003CSearchResponse> {\n    const response = await this.exa.searchAndContents(query, {\n      type: \"auto\",\n      numResults,\n      text: { maxCharacters: 500 },\n      highlights: { maxCharacters: 300, query },\n    });\n\n    return {\n      query,\n      results: response.results.map(r => ({\n        title: r.title || \"Untitled\",\n        url: r.url,\n        snippet: r.highlights?.join(\" \") || r.text?.substring(0, 300) || \"\",\n        score: r.score,\n        publishedDate: r.publishedDate || undefined,\n      })),\n    };\n  }\n\n  \u002F\u002F Exa-only: similarity search (no equivalent in Google\u002FBing)\n  async findSimilar(url: string, numResults = 5): Promise\u003CSearchResponse> {\n    const response = await this.exa.findSimilarAndContents(url, {\n      numResults,\n      text: { maxCharacters: 500 },\n      excludeSourceDomain: true,\n    });\n\n    return {\n      query: url,\n      results: response.results.map(r => ({\n        title: r.title || \"Untitled\",\n        url: r.url,\n        snippet: r.text?.substring(0, 300) || \"\",\n        score: r.score,\n      })),\n    };\n  }\n}\n```\n\n### Step 3: Feature Flag Traffic Shift\n```typescript\n\u002F\u002F src\u002Fsearch\u002Frouter.ts\nfunction getSearchProvider(): \"legacy\" | \"exa\" {\n  const exaPercentage = Number(process.env.EXA_TRAFFIC_PERCENTAGE || \"0\");\n  return Math.random() * 100 \u003C exaPercentage ? \"exa\" : \"legacy\";\n}\n\nasync function search(query: string, numResults = 10): Promise\u003CSearchResponse> {\n  const provider = getSearchProvider();\n\n  if (provider === \"exa\") {\n    return exaAdapter.search(query, numResults);\n  }\n  return legacyAdapter.search(query, numResults);\n}\n\n\u002F\u002F Gradually increase: 0% → 10% → 50% → 100%\n\u002F\u002F EXA_TRAFFIC_PERCENTAGE=10\n```\n\n### Step 4: Query Translation\n```typescript\n\u002F\u002F Exa neural search works best with natural language, not keyword syntax\nfunction translateQuery(legacyQuery: string): string {\n  return legacyQuery\n    \u002F\u002F Remove boolean operators (Exa doesn't use them)\n    .replace(\u002F\\b(AND|OR|NOT)\\b\u002Fgi, \" \")\n    \u002F\u002F Remove quotes (Exa uses semantic matching, not exact)\n    .replace(\u002F\"\u002Fg, \"\")\n    \u002F\u002F Remove site: operator (use includeDomains instead)\n    .replace(\u002Fsite:\\S+\u002Fgi, \"\")\n    \u002F\u002F Clean up extra whitespace\n    .replace(\u002F\\s+\u002Fg, \" \")\n    .trim();\n}\n\n\u002F\u002F Extract domain filters from legacy query\nfunction extractDomainFilter(query: string): string[] {\n  const domains: string[] = [];\n  const siteMatches = query.matchAll(\u002Fsite:(\\S+)\u002Fgi);\n  for (const match of siteMatches) {\n    domains.push(match[1]);\n  }\n  return domains;\n}\n```\n\n### Step 5: Validation and Comparison\n```typescript\nasync function compareResults(query: string) {\n  const [legacyResults, exaResults] = await Promise.all([\n    legacyAdapter.search(query, 5),\n    exaAdapter.search(query, 5),\n  ]);\n\n  \u002F\u002F Compare URL overlap\n  const legacyUrls = new Set(legacyResults.results.map(r => new URL(r.url).hostname));\n  const exaUrls = new Set(exaResults.results.map(r => new URL(r.url).hostname));\n  const overlap = [...legacyUrls].filter(u => exaUrls.has(u));\n\n  console.log(`Legacy results: ${legacyResults.results.length}`);\n  console.log(`Exa results: ${exaResults.results.length}`);\n  console.log(`Domain overlap: ${overlap.length}\u002F${legacyUrls.size}`);\n\n  return { legacyResults, exaResults, overlapRate: overlap.length \u002F legacyUrls.size };\n}\n```\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Lower result count | Exa filters more aggressively | Increase `numResults` |\n| Different ranking | Neural vs keyword ranking | Expected — evaluate by relevance |\n| Boolean queries fail | Exa doesn't support AND\u002FOR | Translate to natural language |\n| Missing `site:` filter | Different API parameter | Use `includeDomains` parameter |\n\n## Resources\n- [Exa vs Tavily Comparison](https:\u002F\u002Fexa.ai\u002Fversus\u002Ftavily)\n- [Exa Search Reference](https:\u002F\u002Fdocs.exa.ai\u002Freference\u002Fsearch)\n- [exa-js SDK](https:\u002F\u002Fgithub.com\u002Fexa-labs\u002Fexa-js)\n\n## Next Steps\nFor advanced troubleshooting, see `exa-advanced-troubleshooting`.\n\n","# Exa Migration Deep Dive\n\n## Current State\n!`npm list exa-js 2>\u002Fdev\u002Fnull | grep exa-js || echo 'exa-js not installed'`\n!`npm list 2>\u002Fdev\u002Fnull | grep -E '(google|bing|tavily|serper|serpapi)' || echo 'No competing search SDK found'`\n\n## Overview\nMigrate from traditional search APIs (Google Custom Search, Bing Web Search, Tavily, Serper) to Exa's neural search API. Key differences: Exa uses semantic\u002Fneural search instead of keyword matching, returns content (text\u002Fhighlights\u002Fsummary) in a single API call, and supports similarity search from a seed URL.\n\n## API Comparison\n\n| Feature | Google\u002FBing | Tavily | Exa |\n|---------|-------------|--------|-----|\n| Search model | Keyword | AI-enhanced | Neural embeddings |\n| Content in results | Snippets only | Full text | Text + highlights + summary |\n| Similarity search | No | No | `findSimilar()` by URL |\n| AI answer | No | Yes | `answer()` + `streamAnswer()` |\n| Categories | No | No | company, news, research paper, tweet, people |\n| Date filtering | Limited | Yes | `startPublishedDate` \u002F `endPublishedDate` |\n| Domain filtering | Yes | Yes | `includeDomains` \u002F `excludeDomains` (up to 1200) |\n\n## Instructions\n\n### Step 1: Install Exa SDK\n```bash\nset -euo pipefail\nnpm install exa-js\n# Remove old SDK if replacing\n# npm uninstall google-search-api tavily serpapi\n```\n\n### Step 2: Create Adapter Layer\n```typescript\n\u002F\u002F src\u002Fsearch\u002Fadapter.ts\nimport Exa from \"exa-js\";\n\n\u002F\u002F Define a provider-agnostic search interface\ninterface SearchResult {\n  title: string;\n  url: string;\n  snippet: string;\n  score?: number;\n  publishedDate?: string;\n}\n\ninterface SearchResponse {\n  results: SearchResult[];\n  query: string;\n}\n\n\u002F\u002F Exa implementation\nclass ExaSearchAdapter {\n  private exa: Exa;\n\n  constructor(apiKey: string) {\n    this.exa = new Exa(apiKey);\n  }\n\n  async search(query: string, numResults = 10): Promise\u003CSearchResponse> {\n    const response = await this.exa.searchAndContents(query, {\n      type: \"auto\",\n      numResults,\n      text: { maxCharacters: 500 },\n      highlights: { maxCharacters: 300, query },\n    });\n\n    return {\n      query,\n      results: response.results.map(r => ({\n        title: r.title || \"Untitled\",\n        url: r.url,\n        snippet: r.highlights?.join(\" \") || r.text?.substring(0, 300) || \"\",\n        score: r.score,\n        publishedDate: r.publishedDate || undefined,\n      })),\n    };\n  }\n\n  \u002F\u002F Exa-only: similarity search (no equivalent in Google\u002FBing)\n  async findSimilar(url: string, numResults = 5): Promise\u003CSearchResponse> {\n    const response = await this.exa.findSimilarAndContents(url, {\n      numResults,\n      text: { maxCharacters: 500 },\n      excludeSourceDomain: true,\n    });\n\n    return {\n      query: url,\n      results: response.results.map(r => ({\n        title: r.title || \"Untitled\",\n        url: r.url,\n        snippet: r.text?.substring(0, 300) || \"\",\n        score: r.score,\n      })),\n    };\n  }\n}\n```\n\n### Step 3: Feature Flag Traffic Shift\n```typescript\n\u002F\u002F src\u002Fsearch\u002Frouter.ts\nfunction getSearchProvider(): \"legacy\" | \"exa\" {\n  const exaPercentage = Number(process.env.EXA_TRAFFIC_PERCENTAGE || \"0\");\n  return Math.random() * 100 \u003C exaPercentage ? \"exa\" : \"legacy\";\n}\n\nasync function search(query: string, numResults = 10): Promise\u003CSearchResponse> {\n  const provider = getSearchProvider();\n\n  if (provider === \"exa\") {\n    return exaAdapter.search(query, numResults);\n  }\n  return legacyAdapter.search(query, numResults);\n}\n\n\u002F\u002F Gradually increase: 0% → 10% → 50% → 100%\n\u002F\u002F EXA_TRAFFIC_PERCENTAGE=10\n```\n\n### Step 4: Query Translation\n```typescript\n\u002F\u002F Exa neural search works best with natural language, not keyword syntax\nfunction translateQuery(legacyQuery: string): string {\n  return legacyQuery\n    \u002F\u002F Remove boolean operators (Exa doesn't use them)\n    .replace(\u002F\\b(AND|OR|NOT)\\b\u002Fgi, \" \")\n    \u002F\u002F Remove quotes (Exa uses semantic matching, not exact)\n    .replace(\u002F\"\u002Fg, \"\")\n    \u002F\u002F Remove site: operator (use includeDomains instead)\n    .replace(\u002Fsite:\\S+\u002Fgi, \"\")\n    \u002F\u002F Clean up extra whitespace\n    .replace(\u002F\\s+\u002Fg, \" \")\n    .trim();\n}\n\n\u002F\u002F Extract domain filters from legacy query\nfunction extractDomainFilter(query: string): string[] {\n  const domains: string[] = [];\n  const siteMatches = query.matchAll(\u002Fsite:(\\S+)\u002Fgi);\n  for (const match of siteMatches) {\n    domains.push(match[1]);\n  }\n  return domains;\n}\n```\n\n### Step 5: Validation and Comparison\n```typescript\nasync function compareResults(query: string) {\n  const [legacyResults, exaResults] = await Promise.all([\n    legacyAdapter.search(query, 5),\n    exaAdapter.search(query, 5),\n  ]);\n\n  \u002F\u002F Compare URL overlap\n  const legacyUrls = new Set(legacyResults.results.map(r => new URL(r.url).hostname));\n  const exaUrls = new Set(exaResults.results.map(r => new URL(r.url).hostname));\n  const overlap = [...legacyUrls].filter(u => exaUrls.has(u));\n\n  console.log(`Legacy results: ${legacyResults.results.length}`);\n  console.log(`Exa results: ${exaResults.results.length}`);\n  console.log(`Domain overlap: ${overlap.length}\u002F${legacyUrls.size}`);\n\n  return { legacyResults, exaResults, overlapRate: overlap.length \u002F legacyUrls.size };\n}\n```\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Lower result count | Exa filters more aggressively | Increase `numResults` |\n| Different ranking | Neural vs keyword ranking | Expected — evaluate by relevance |\n| Boolean queries fail | Exa doesn't support AND\u002FOR | Translate to natural language |\n| Missing `site:` filter | Different API parameter | Use `includeDomains` parameter |\n\n## Resources\n- [Exa vs Tavily Comparison](https:\u002F\u002Fexa.ai\u002Fversus\u002Ftavily)\n- [Exa Search Reference](https:\u002F\u002Fdocs.exa.ai\u002Freference\u002Fsearch)\n- [exa-js SDK](https:\u002F\u002Fgithub.com\u002Fexa-labs\u002Fexa-js)\n\n## Next Steps\nFor advanced troubleshooting, see `exa-advanced-troubleshooting`.\n\n",{"name":5,"tags":44,"author":46,"license":15,"version":47,"description":48,"allowed-tools":49,"compatible-with":50},[45,21,22],"saas","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Migrate from other search APIs (Google, Bing, Tavily, Serper) to Exa neural search.\nUse when switching to Exa from another search provider, migrating search pipelines,\nor evaluating Exa as a replacement for traditional search APIs.\nTrigger with phrases like \"migrate to exa\", \"switch to exa\", \"replace google search with exa\",\n\"exa vs tavily\", \"exa migration\", \"move to exa\".\n","Read, Write, Edit, Bash(npm:*), Bash(node:*)","claude-code, codex, openclaw","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fexa-migration-deep-dive",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":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill exa-migration-deep-dive",{"tool":66,"command":67},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill exa-migration-deep-dive",{"tool":69,"command":70},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill exa-migration-deep-dive","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fexa-migration-deep-dive\u002FSKILL.md",true,[],[75,84,93,102,108,114],{"skillNo":76,"name":77,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[81,82,83],"model","model hierarchy","model hierarchy skill",{"skillNo":85,"name":86,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[90,91,92],"MCP","zoom","zoom mcp",{"skillNo":94,"name":95,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[99,100,101,91],"sdk","zoom apps sdk","apps",{"skillNo":103,"name":104,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[104],{"skillNo":109,"name":110,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[110],{"skillNo":115,"name":116,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[116]]