[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78WTDBR09ERR59TBDJH6A8F":3,"skill-same:01M78WTDBR09ERR59TBDJH6A8F":56},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M78WTDBR09ERR59TBDJH6A8F","algolia-local-dev-loop",null,"Configure Algolia local development with separate dev index, mocking, and testing.\nUse when setting up a development environment, configuring test workflows,\nor establishing a fast iteration cycle with Algolia.\nTrigger: \"algolia dev setup\", \"algolia local development\", \"algolia dev environment\", \"test algolia locally\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--algolia-pack--algolia-local-dev-loop\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: algolia-local-dev-loop\ndescription: |\n  Configure Algolia local development with separate dev index, mocking, and testing.\n  Use when setting up a development environment, configuring test workflows,\n  or establishing a fast iteration cycle with Algolia.\n  Trigger: \"algolia dev setup\", \"algolia local development\", \"algolia dev environment\", \"test algolia locally\".\nallowed-tools: Read, Write, Edit, Bash(npm:*), Bash(pnpm:*), Bash(npx:*), Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ntags: [saas, search, algolia]\ncompatible-with: claude-code\n---\n\n# Algolia Local Dev Loop\n\n## Overview\n\nSet up a fast, reproducible local development workflow for Algolia. Use separate dev indices, mock the client in tests, and iterate without touching production data.\n\n## Prerequisites\n\n- Completed `algolia-install-auth` setup\n- Node.js 18+ with npm\u002Fpnpm\n- Vitest or Jest for testing\n\n## Instructions\n\n### Step 1: Environment-Based Index Names\n\n```typescript\n\u002F\u002F src\u002Falgolia\u002Fconfig.ts\nimport { algoliasearch } from 'algoliasearch';\n\nconst ENV = process.env.NODE_ENV || 'development';\n\n\u002F\u002F Each environment gets its own index prefix\nexport function indexName(base: string): string {\n  if (ENV === 'production') return base;\n  return `${ENV}_${base}`; \u002F\u002F e.g., \"development_products\"\n}\n\nexport const client = algoliasearch(\n  process.env.ALGOLIA_APP_ID!,\n  process.env.ALGOLIA_ADMIN_KEY!\n);\n```\n\n### Step 2: Seed Script for Dev Data\n\n```typescript\n\u002F\u002F scripts\u002Fseed-algolia.ts\nimport { client, indexName } from '..\u002Fsrc\u002Falgolia\u002Fconfig';\n\nconst SEED_DATA = [\n  { objectID: 'prod-1', name: 'Widget A', category: 'tools', price: 29.99 },\n  { objectID: 'prod-2', name: 'Widget B', category: 'tools', price: 49.99 },\n  { objectID: 'prod-3', name: 'Gadget C', category: 'electronics', price: 199.99 },\n];\n\nasync function seed() {\n  const idx = indexName('products');\n\n  \u002F\u002F replaceAllObjects atomically swaps index content\n  const { taskID } = await client.replaceAllObjects({\n    indexName: idx,\n    objects: SEED_DATA,\n  });\n  await client.waitForTask({ indexName: idx, taskID });\n\n  \u002F\u002F Configure settings for the dev index\n  await client.setSettings({\n    indexName: idx,\n    indexSettings: {\n      searchableAttributes: ['name', 'category'],\n      attributesForFaceting: ['category', 'filterOnly(price)'],\n      customRanking: ['asc(price)'],\n    },\n  });\n\n  console.log(`Seeded ${SEED_DATA.length} records into ${idx}`);\n}\n\nseed().catch(console.error);\n```\n\n```json\n{\n  \"scripts\": {\n    \"seed:algolia\": \"npx tsx scripts\u002Fseed-algolia.ts\",\n    \"dev\": \"tsx watch src\u002Findex.ts\",\n    \"test\": \"vitest\",\n    \"test:watch\": \"vitest --watch\"\n  }\n}\n```\n\n### Step 3: Mock Algolia in Unit Tests\n\n```typescript\n\u002F\u002F tests\u002Falgolia.test.ts\nimport { describe, it, expect, vi, beforeEach } from 'vitest';\n\n\u002F\u002F Mock the entire algoliasearch module\nvi.mock('algoliasearch', () => ({\n  algoliasearch: vi.fn(() => ({\n    searchSingleIndex: vi.fn().mockResolvedValue({\n      hits: [\n        { objectID: '1', name: 'Widget A', _highlightResult: {} },\n      ],\n      nbHits: 1,\n      page: 0,\n      nbPages: 1,\n    }),\n    saveObjects: vi.fn().mockResolvedValue({ taskID: 123 }),\n    waitForTask: vi.fn().mockResolvedValue({}),\n  })),\n}));\n\nimport { algoliasearch } from 'algoliasearch';\n\ndescribe('Product Search', () => {\n  const client = algoliasearch('test-app-id', 'test-api-key');\n\n  it('returns matching products', async () => {\n    const { hits } = await client.searchSingleIndex({\n      indexName: 'development_products',\n      searchParams: { query: 'widget' },\n    });\n    expect(hits).toHaveLength(1);\n    expect(hits[0].name).toBe('Widget A');\n  });\n});\n```\n\n### Step 4: Integration Test with Real API\n\n```typescript\n\u002F\u002F tests\u002Fintegration\u002Falgolia.integration.test.ts\nimport { describe, it, expect } from 'vitest';\nimport { algoliasearch } from 'algoliasearch';\n\ndescribe.skipIf(!process.env.ALGOLIA_APP_ID)('Algolia Integration', () => {\n  const client = algoliasearch(\n    process.env.ALGOLIA_APP_ID!,\n    process.env.ALGOLIA_ADMIN_KEY!\n  );\n  const testIndex = `test_${Date.now()}_products`;\n\n  it('indexes and searches records', async () => {\n    \u002F\u002F Index\n    const { taskID } = await client.saveObjects({\n      indexName: testIndex,\n      objects: [{ objectID: '1', name: 'Test Product' }],\n    });\n    await client.waitForTask({ indexName: testIndex, taskID });\n\n    \u002F\u002F Search\n    const { hits } = await client.searchSingleIndex({\n      indexName: testIndex,\n      searchParams: { query: 'test' },\n    });\n    expect(hits.length).toBeGreaterThan(0);\n\n    \u002F\u002F Cleanup\n    await client.deleteIndex({ indexName: testIndex });\n  });\n});\n```\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `Index does not exist` | Dev index not seeded | Run `npm run seed:algolia` |\n| Test pollution | Shared index between tests | Use unique timestamped index names |\n| Stale search results | Indexing not waited | Always `await client.waitForTask()` after writes |\n| Mock not applied | Wrong import order | Ensure `vi.mock()` is before imports |\n\n## Examples\n\n### Clean Dev Index on Start\n\n```typescript\n\u002F\u002F scripts\u002Freset-dev-algolia.ts\nimport { client, indexName } from '..\u002Fsrc\u002Falgolia\u002Fconfig';\n\nasync function reset() {\n  const idx = indexName('products');\n  try {\n    await client.deleteIndex({ indexName: idx });\n    console.log(`Deleted ${idx}`);\n  } catch (e) {\n    \u002F\u002F Index may not exist yet — that's fine\n  }\n}\n\nreset().catch(console.error);\n```\n\n## Resources\n\n- [Algolia JavaScript v5 Client](https:\u002F\u002Fwww.algolia.com\u002Fdoc\u002Flibraries\u002Fjavascript\u002Fv5\u002Fmethods\u002Fsearch\u002F)\n- [Vitest Documentation](https:\u002F\u002Fvitest.dev\u002F)\n- [tsx (TypeScript execute)](https:\u002F\u002Fgithub.com\u002Fprivatenumber\u002Ftsx)\n\n## Next Steps\n\nSee `algolia-sdk-patterns` for production-ready code patterns.\n","# Algolia Local Dev Loop\n\n## Overview\n\nSet up a fast, reproducible local development workflow for Algolia. Use separate dev indices, mock the client in tests, and iterate without touching production data.\n\n## Prerequisites\n\n- Completed `algolia-install-auth` setup\n- Node.js 18+ with npm\u002Fpnpm\n- Vitest or Jest for testing\n\n## Instructions\n\n### Step 1: Environment-Based Index Names\n\n```typescript\n\u002F\u002F src\u002Falgolia\u002Fconfig.ts\nimport { algoliasearch } from 'algoliasearch';\n\nconst ENV = process.env.NODE_ENV || 'development';\n\n\u002F\u002F Each environment gets its own index prefix\nexport function indexName(base: string): string {\n  if (ENV === 'production') return base;\n  return `${ENV}_${base}`; \u002F\u002F e.g., \"development_products\"\n}\n\nexport const client = algoliasearch(\n  process.env.ALGOLIA_APP_ID!,\n  process.env.ALGOLIA_ADMIN_KEY!\n);\n```\n\n### Step 2: Seed Script for Dev Data\n\n```typescript\n\u002F\u002F scripts\u002Fseed-algolia.ts\nimport { client, indexName } from '..\u002Fsrc\u002Falgolia\u002Fconfig';\n\nconst SEED_DATA = [\n  { objectID: 'prod-1', name: 'Widget A', category: 'tools', price: 29.99 },\n  { objectID: 'prod-2', name: 'Widget B', category: 'tools', price: 49.99 },\n  { objectID: 'prod-3', name: 'Gadget C', category: 'electronics', price: 199.99 },\n];\n\nasync function seed() {\n  const idx = indexName('products');\n\n  \u002F\u002F replaceAllObjects atomically swaps index content\n  const { taskID } = await client.replaceAllObjects({\n    indexName: idx,\n    objects: SEED_DATA,\n  });\n  await client.waitForTask({ indexName: idx, taskID });\n\n  \u002F\u002F Configure settings for the dev index\n  await client.setSettings({\n    indexName: idx,\n    indexSettings: {\n      searchableAttributes: ['name', 'category'],\n      attributesForFaceting: ['category', 'filterOnly(price)'],\n      customRanking: ['asc(price)'],\n    },\n  });\n\n  console.log(`Seeded ${SEED_DATA.length} records into ${idx}`);\n}\n\nseed().catch(console.error);\n```\n\n```json\n{\n  \"scripts\": {\n    \"seed:algolia\": \"npx tsx scripts\u002Fseed-algolia.ts\",\n    \"dev\": \"tsx watch src\u002Findex.ts\",\n    \"test\": \"vitest\",\n    \"test:watch\": \"vitest --watch\"\n  }\n}\n```\n\n### Step 3: Mock Algolia in Unit Tests\n\n```typescript\n\u002F\u002F tests\u002Falgolia.test.ts\nimport { describe, it, expect, vi, beforeEach } from 'vitest';\n\n\u002F\u002F Mock the entire algoliasearch module\nvi.mock('algoliasearch', () => ({\n  algoliasearch: vi.fn(() => ({\n    searchSingleIndex: vi.fn().mockResolvedValue({\n      hits: [\n        { objectID: '1', name: 'Widget A', _highlightResult: {} },\n      ],\n      nbHits: 1,\n      page: 0,\n      nbPages: 1,\n    }),\n    saveObjects: vi.fn().mockResolvedValue({ taskID: 123 }),\n    waitForTask: vi.fn().mockResolvedValue({}),\n  })),\n}));\n\nimport { algoliasearch } from 'algoliasearch';\n\ndescribe('Product Search', () => {\n  const client = algoliasearch('test-app-id', 'test-api-key');\n\n  it('returns matching products', async () => {\n    const { hits } = await client.searchSingleIndex({\n      indexName: 'development_products',\n      searchParams: { query: 'widget' },\n    });\n    expect(hits).toHaveLength(1);\n    expect(hits[0].name).toBe('Widget A');\n  });\n});\n```\n\n### Step 4: Integration Test with Real API\n\n```typescript\n\u002F\u002F tests\u002Fintegration\u002Falgolia.integration.test.ts\nimport { describe, it, expect } from 'vitest';\nimport { algoliasearch } from 'algoliasearch';\n\ndescribe.skipIf(!process.env.ALGOLIA_APP_ID)('Algolia Integration', () => {\n  const client = algoliasearch(\n    process.env.ALGOLIA_APP_ID!,\n    process.env.ALGOLIA_ADMIN_KEY!\n  );\n  const testIndex = `test_${Date.now()}_products`;\n\n  it('indexes and searches records', async () => {\n    \u002F\u002F Index\n    const { taskID } = await client.saveObjects({\n      indexName: testIndex,\n      objects: [{ objectID: '1', name: 'Test Product' }],\n    });\n    await client.waitForTask({ indexName: testIndex, taskID });\n\n    \u002F\u002F Search\n    const { hits } = await client.searchSingleIndex({\n      indexName: testIndex,\n      searchParams: { query: 'test' },\n    });\n    expect(hits.length).toBeGreaterThan(0);\n\n    \u002F\u002F Cleanup\n    await client.deleteIndex({ indexName: testIndex });\n  });\n});\n```\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `Index does not exist` | Dev index not seeded | Run `npm run seed:algolia` |\n| Test pollution | Shared index between tests | Use unique timestamped index names |\n| Stale search results | Indexing not waited | Always `await client.waitForTask()` after writes |\n| Mock not applied | Wrong import order | Ensure `vi.mock()` is before imports |\n\n## Examples\n\n### Clean Dev Index on Start\n\n```typescript\n\u002F\u002F scripts\u002Freset-dev-algolia.ts\nimport { client, indexName } from '..\u002Fsrc\u002Falgolia\u002Fconfig';\n\nasync function reset() {\n  const idx = indexName('products');\n  try {\n    await client.deleteIndex({ indexName: idx });\n    console.log(`Deleted ${idx}`);\n  } catch (e) {\n    \u002F\u002F Index may not exist yet — that's fine\n  }\n}\n\nreset().catch(console.error);\n```\n\n## Resources\n\n- [Algolia JavaScript v5 Client](https:\u002F\u002Fwww.algolia.com\u002Fdoc\u002Flibraries\u002Fjavascript\u002Fv5\u002Fmethods\u002Fsearch\u002F)\n- [Vitest Documentation](https:\u002F\u002Fvitest.dev\u002F)\n- [tsx (TypeScript execute)](https:\u002F\u002Fgithub.com\u002Fprivatenumber\u002Ftsx)\n\n## Next Steps\n\nSee `algolia-sdk-patterns` for production-ready code patterns.\n",{"name":5,"tags":24,"author":28,"license":15,"version":29,"description":30,"allowed-tools":31,"compatible-with":32},[25,26,27],"saas","search","algolia","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Configure Algolia local development with separate dev index, mocking, and testing.\nUse when setting up a development environment, configuring test workflows,\nor establishing a fast iteration cycle with Algolia.\nTrigger: \"algolia dev setup\", \"algolia local development\", \"algolia dev environment\", \"test algolia locally\".\n","Read, Write, Edit, Bash(npm:*), Bash(pnpm:*), Bash(npx:*), Grep","claude-code","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--algolia-pack--algolia-local-dev-loop",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill algolia-local-dev-loop",{"tool":48,"command":49},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill algolia-local-dev-loop",{"tool":51,"command":52},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill algolia-local-dev-loop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--algolia-pack--algolia-local-dev-loop\u002FSKILL.md",true,[],[57,64,71,78,85,93],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]