[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F8X5FVN2JCY9KMHV30V5M2":3,"skill-same:01M6F8X5FVN2JCY9KMHV30V5M2":76},{"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":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":6,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6F8X5FVN2JCY9KMHV30V5M2","cohere-ci-integration",null,"Configure CI\u002FCD for Cohere integrations with GitHub Actions and automated testing.\nUse when setting up automated testing for Chat\u002FEmbed\u002FRerank,\nconfiguring CI pipelines, or testing Cohere-powered applications.\nTrigger with phrases like \"cohere CI\", \"cohere GitHub Actions\",\n\"cohere automated tests\", \"CI cohere\", \"cohere pipeline\".","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\u002Fcohere-ci-integration\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"cohere ci integration","integration","ci","configure","CI\u002FCD","trigger","io","up","edit","write","read","integrations","testing","Bash","applications","pipeline","github actions","actions","code","nlp","2026-11-10 10:12:30",false,"---\nname: cohere-ci-integration\ndescription: |\n  Configure CI\u002FCD for Cohere integrations with GitHub Actions and automated testing.\n  Use when setting up automated testing for Chat\u002FEmbed\u002FRerank,\n  configuring CI pipelines, or testing Cohere-powered applications.\n  Trigger with phrases like \"cohere CI\", \"cohere GitHub Actions\",\n  \"cohere automated tests\", \"CI cohere\", \"cohere pipeline\".\nallowed-tools: Read, Write, Edit, Bash(gh:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ntags: [saas, ai, nlp, cohere]\ncompatible-with: claude-code\n---\n\n# Cohere CI Integration\n\n## Overview\nSet up CI\u002FCD pipelines with automated unit tests (mocked) and integration tests (real API) for Cohere API v2 applications.\n\n## Prerequisites\n- GitHub repository with Actions enabled\n- Cohere trial or production API key\n- `cohere-ai` package installed\n\n## Instructions\n\n### Step 1: GitHub Actions Workflow\n\n```yaml\n# .github\u002Fworkflows\u002Fcohere-ci.yml\nname: Cohere CI\n\non:\n  push:\n    branches: [main]\n  pull_request:\n    branches: [main]\n\njobs:\n  unit-tests:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: '20'\n          cache: 'npm'\n      - run: npm ci\n      - run: npm test -- --coverage\n        # Unit tests use mocked Cohere responses — no API key needed\n\n  integration-tests:\n    runs-on: ubuntu-latest\n    if: github.event_name == 'push' && github.ref == 'refs\u002Fheads\u002Fmain'\n    env:\n      CO_API_KEY: ${{ secrets.CO_API_KEY }}\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: '20'\n          cache: 'npm'\n      - run: npm ci\n      - name: Run Cohere integration tests\n        run: npm run test:integration\n        timeout-minutes: 5\n```\n\n### Step 2: Configure GitHub Secrets\n\n```bash\n# Store Cohere API key as a repo secret\ngh secret set CO_API_KEY --body \"your-production-key-here\"\n\n# Verify it was set\ngh secret list\n```\n\n### Step 3: Unit Tests (Mocked — No API Key)\n\n```typescript\n\u002F\u002F tests\u002Funit\u002Fcohere-chat.test.ts\nimport { describe, it, expect, vi, beforeEach } from 'vitest';\n\n\u002F\u002F Mock the entire SDK\nvi.mock('cohere-ai', () => ({\n  CohereClientV2: vi.fn().mockImplementation(() => ({\n    chat: vi.fn().mockResolvedValue({\n      message: { content: [{ type: 'text', text: 'mocked response' }] },\n      finishReason: 'COMPLETE',\n      usage: { billedUnits: { inputTokens: 5, outputTokens: 3 } },\n    }),\n    embed: vi.fn().mockResolvedValue({\n      embeddings: { float: [[0.1, 0.2, 0.3]] },\n    }),\n    rerank: vi.fn().mockResolvedValue({\n      results: [{ index: 0, relevanceScore: 0.95 }],\n    }),\n  })),\n}));\n\ndescribe('Chat service', () => {\n  it('returns text from chat completion', async () => {\n    const { CohereClientV2 } = await import('cohere-ai');\n    const cohere = new CohereClientV2();\n\n    const response = await cohere.chat({\n      model: 'command-a-03-2025',\n      messages: [{ role: 'user', content: 'test' }],\n    });\n\n    expect(response.message?.content?.[0]?.text).toBe('mocked response');\n    expect(cohere.chat).toHaveBeenCalledWith(\n      expect.objectContaining({ model: 'command-a-03-2025' })\n    );\n  });\n\n  it('handles embed with correct input type', async () => {\n    const { CohereClientV2 } = await import('cohere-ai');\n    const cohere = new CohereClientV2();\n\n    const response = await cohere.embed({\n      model: 'embed-v4.0',\n      texts: ['test'],\n      inputType: 'search_document',\n      embeddingTypes: ['float'],\n    });\n\n    expect(response.embeddings.float).toHaveLength(1);\n  });\n});\n```\n\n### Step 4: Integration Tests (Real API — Gated)\n\n```typescript\n\u002F\u002F tests\u002Fintegration\u002Fcohere.test.ts\nimport { describe, it, expect } from 'vitest';\nimport { CohereClientV2 } from 'cohere-ai';\n\nconst hasApiKey = !!process.env.CO_API_KEY;\n\ndescribe.skipIf(!hasApiKey)('Cohere Integration', () => {\n  const cohere = new CohereClientV2();\n\n  it('chat completion works', async () => {\n    const response = await cohere.chat({\n      model: 'command-r7b-12-2024', \u002F\u002F cheapest model for CI\n      messages: [{ role: 'user', content: 'Reply with exactly: OK' }],\n      maxTokens: 5,\n    });\n    expect(response.message?.content?.[0]?.text).toBeTruthy();\n    expect(response.finishReason).toBe('COMPLETE');\n  }, 15_000);\n\n  it('embed generates vectors', async () => {\n    const response = await cohere.embed({\n      model: 'embed-v4.0',\n      texts: ['CI test embedding'],\n      inputType: 'search_document',\n      embeddingTypes: ['float'],\n    });\n    expect(response.embeddings.float[0].length).toBeGreaterThan(0);\n  }, 15_000);\n\n  it('rerank scores documents', async () => {\n    const response = await cohere.rerank({\n      model: 'rerank-v3.5',\n      query: 'machine learning',\n      documents: ['ML is AI', 'cooking recipes', 'deep learning'],\n      topN: 2,\n    });\n    expect(response.results).toHaveLength(2);\n    expect(response.results[0].relevanceScore).toBeGreaterThan(0.5);\n  }, 15_000);\n});\n```\n\n### Step 5: Package Scripts\n\n```json\n{\n  \"scripts\": {\n    \"test\": \"vitest --run\",\n    \"test:watch\": \"vitest --watch\",\n    \"test:integration\": \"COHERE_INTEGRATION=1 vitest --run tests\u002Fintegration\u002F\",\n    \"test:coverage\": \"vitest --run --coverage\"\n  }\n}\n```\n\n## CI Cost Control\n\n- Use `command-r7b-12-2024` (cheapest) for integration tests\n- Set `maxTokens: 5` on all CI chat calls\n- Run integration tests only on `main` pushes (not PRs)\n- Use trial key for CI if under 1000 monthly calls\n\n## Error Handling\n| CI Issue | Cause | Solution |\n|----------|-------|----------|\n| Secret not found | Missing GitHub secret | `gh secret set CO_API_KEY` |\n| 429 in CI | Rate limited (trial key) | Reduce test count or upgrade key |\n| Integration timeout | Slow API response | Set `timeout-minutes: 5` |\n| Flaky tests | API latency variance | Add retry in test setup |\n\n## Resources\n- [GitHub Actions Secrets](https:\u002F\u002Fdocs.github.com\u002Fen\u002Factions\u002Fsecurity-guides\u002Fencrypted-secrets)\n- [Vitest Configuration](https:\u002F\u002Fvitest.dev\u002Fconfig\u002F)\n- [Cohere Rate Limits](https:\u002F\u002Fdocs.cohere.com\u002Fdocs\u002Frate-limits)\n\n## Next Steps\nFor deployment patterns, see `cohere-deploy-integration`.\n\n","# Cohere CI Integration\n\n## Overview\nSet up CI\u002FCD pipelines with automated unit tests (mocked) and integration tests (real API) for Cohere API v2 applications.\n\n## Prerequisites\n- GitHub repository with Actions enabled\n- Cohere trial or production API key\n- `cohere-ai` package installed\n\n## Instructions\n\n### Step 1: GitHub Actions Workflow\n\n```yaml\n# .github\u002Fworkflows\u002Fcohere-ci.yml\nname: Cohere CI\n\non:\n  push:\n    branches: [main]\n  pull_request:\n    branches: [main]\n\njobs:\n  unit-tests:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: '20'\n          cache: 'npm'\n      - run: npm ci\n      - run: npm test -- --coverage\n        # Unit tests use mocked Cohere responses — no API key needed\n\n  integration-tests:\n    runs-on: ubuntu-latest\n    if: github.event_name == 'push' && github.ref == 'refs\u002Fheads\u002Fmain'\n    env:\n      CO_API_KEY: ${{ secrets.CO_API_KEY }}\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: '20'\n          cache: 'npm'\n      - run: npm ci\n      - name: Run Cohere integration tests\n        run: npm run test:integration\n        timeout-minutes: 5\n```\n\n### Step 2: Configure GitHub Secrets\n\n```bash\n# Store Cohere API key as a repo secret\ngh secret set CO_API_KEY --body \"your-production-key-here\"\n\n# Verify it was set\ngh secret list\n```\n\n### Step 3: Unit Tests (Mocked — No API Key)\n\n```typescript\n\u002F\u002F tests\u002Funit\u002Fcohere-chat.test.ts\nimport { describe, it, expect, vi, beforeEach } from 'vitest';\n\n\u002F\u002F Mock the entire SDK\nvi.mock('cohere-ai', () => ({\n  CohereClientV2: vi.fn().mockImplementation(() => ({\n    chat: vi.fn().mockResolvedValue({\n      message: { content: [{ type: 'text', text: 'mocked response' }] },\n      finishReason: 'COMPLETE',\n      usage: { billedUnits: { inputTokens: 5, outputTokens: 3 } },\n    }),\n    embed: vi.fn().mockResolvedValue({\n      embeddings: { float: [[0.1, 0.2, 0.3]] },\n    }),\n    rerank: vi.fn().mockResolvedValue({\n      results: [{ index: 0, relevanceScore: 0.95 }],\n    }),\n  })),\n}));\n\ndescribe('Chat service', () => {\n  it('returns text from chat completion', async () => {\n    const { CohereClientV2 } = await import('cohere-ai');\n    const cohere = new CohereClientV2();\n\n    const response = await cohere.chat({\n      model: 'command-a-03-2025',\n      messages: [{ role: 'user', content: 'test' }],\n    });\n\n    expect(response.message?.content?.[0]?.text).toBe('mocked response');\n    expect(cohere.chat).toHaveBeenCalledWith(\n      expect.objectContaining({ model: 'command-a-03-2025' })\n    );\n  });\n\n  it('handles embed with correct input type', async () => {\n    const { CohereClientV2 } = await import('cohere-ai');\n    const cohere = new CohereClientV2();\n\n    const response = await cohere.embed({\n      model: 'embed-v4.0',\n      texts: ['test'],\n      inputType: 'search_document',\n      embeddingTypes: ['float'],\n    });\n\n    expect(response.embeddings.float).toHaveLength(1);\n  });\n});\n```\n\n### Step 4: Integration Tests (Real API — Gated)\n\n```typescript\n\u002F\u002F tests\u002Fintegration\u002Fcohere.test.ts\nimport { describe, it, expect } from 'vitest';\nimport { CohereClientV2 } from 'cohere-ai';\n\nconst hasApiKey = !!process.env.CO_API_KEY;\n\ndescribe.skipIf(!hasApiKey)('Cohere Integration', () => {\n  const cohere = new CohereClientV2();\n\n  it('chat completion works', async () => {\n    const response = await cohere.chat({\n      model: 'command-r7b-12-2024', \u002F\u002F cheapest model for CI\n      messages: [{ role: 'user', content: 'Reply with exactly: OK' }],\n      maxTokens: 5,\n    });\n    expect(response.message?.content?.[0]?.text).toBeTruthy();\n    expect(response.finishReason).toBe('COMPLETE');\n  }, 15_000);\n\n  it('embed generates vectors', async () => {\n    const response = await cohere.embed({\n      model: 'embed-v4.0',\n      texts: ['CI test embedding'],\n      inputType: 'search_document',\n      embeddingTypes: ['float'],\n    });\n    expect(response.embeddings.float[0].length).toBeGreaterThan(0);\n  }, 15_000);\n\n  it('rerank scores documents', async () => {\n    const response = await cohere.rerank({\n      model: 'rerank-v3.5',\n      query: 'machine learning',\n      documents: ['ML is AI', 'cooking recipes', 'deep learning'],\n      topN: 2,\n    });\n    expect(response.results).toHaveLength(2);\n    expect(response.results[0].relevanceScore).toBeGreaterThan(0.5);\n  }, 15_000);\n});\n```\n\n### Step 5: Package Scripts\n\n```json\n{\n  \"scripts\": {\n    \"test\": \"vitest --run\",\n    \"test:watch\": \"vitest --watch\",\n    \"test:integration\": \"COHERE_INTEGRATION=1 vitest --run tests\u002Fintegration\u002F\",\n    \"test:coverage\": \"vitest --run --coverage\"\n  }\n}\n```\n\n## CI Cost Control\n\n- Use `command-r7b-12-2024` (cheapest) for integration tests\n- Set `maxTokens: 5` on all CI chat calls\n- Run integration tests only on `main` pushes (not PRs)\n- Use trial key for CI if under 1000 monthly calls\n\n## Error Handling\n| CI Issue | Cause | Solution |\n|----------|-------|----------|\n| Secret not found | Missing GitHub secret | `gh secret set CO_API_KEY` |\n| 429 in CI | Rate limited (trial key) | Reduce test count or upgrade key |\n| Integration timeout | Slow API response | Set `timeout-minutes: 5` |\n| Flaky tests | API latency variance | Add retry in test setup |\n\n## Resources\n- [GitHub Actions Secrets](https:\u002F\u002Fdocs.github.com\u002Fen\u002Factions\u002Fsecurity-guides\u002Fencrypted-secrets)\n- [Vitest Configuration](https:\u002F\u002Fvitest.dev\u002Fconfig\u002F)\n- [Cohere Rate Limits](https:\u002F\u002Fdocs.cohere.com\u002Fdocs\u002Frate-limits)\n\n## Next Steps\nFor deployment patterns, see `cohere-deploy-integration`.\n\n",{"name":5,"tags":44,"author":48,"license":15,"version":49,"description":50,"allowed-tools":51,"compatible-with":52},[45,46,38,47],"saas","ai","cohere","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Configure CI\u002FCD for Cohere integrations with GitHub Actions and automated testing.\nUse when setting up automated testing for Chat\u002FEmbed\u002FRerank,\nconfiguring CI pipelines, or testing Cohere-powered applications.\nTrigger with phrases like \"cohere CI\", \"cohere GitHub Actions\",\n\"cohere automated tests\", \"CI cohere\", \"cohere pipeline\".\n","Read, Write, Edit, Bash(gh:*)","claude-code","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fcohere-ci-integration",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":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill cohere-ci-integration",{"tool":68,"command":69},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill cohere-ci-integration",{"tool":71,"command":72},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill cohere-ci-integration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fcohere-ci-integration\u002FSKILL.md",true,[],[77,86,95,104,110,116],{"skillNo":78,"name":79,"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":80,"categories":81,"keywords":82,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[83,84,85],"model","model hierarchy","model hierarchy skill",{"skillNo":87,"name":88,"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":89,"categories":90,"keywords":91,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[92,93,94],"MCP","zoom","zoom mcp",{"skillNo":96,"name":97,"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":98,"categories":99,"keywords":100,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[101,102,103,93],"sdk","zoom apps sdk","apps",{"skillNo":105,"name":106,"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":107,"categories":108,"keywords":109,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[106],{"skillNo":111,"name":112,"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":113,"categories":114,"keywords":115,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[112],{"skillNo":117,"name":118,"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":119,"categories":120,"keywords":121,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[118]]