cohere-local-dev-loop

Featured

Configure Cohere local development with mocking, testing, and hot reload. Use when setting up a development environment, configuring test workflows, or establishing a fast iteration cycle with Cohere API v2. Trigger with phrases like "cohere dev setup", "cohere local development", "cohere dev environment", "develop with cohere", "mock cohere".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Cohere Local Dev Loop ## Overview Set up a fast, reproducible local development workflow with Cohere API v2 mocking, vitest testing, and hot reload. ## Prerequisites - Completed `cohere-install-auth` setup - Node.js 18+ with npm/pnpm - TypeScript project with `tsx` or `ts-node` ## Instructions ### Step 1: Project Structure ``` my-cohere-project/ ├── src/ │ ├── cohere/ │ │ ├── client.ts # CohereClientV2 wrapper │ │ ├── chat.ts # Chat completions │ │ ├── embed.ts # Embedding operations │ │ └── rerank.ts # Reranking operations │ └── index.ts ├── tests/ │ ├── chat.test.ts │ ├── embed.test.ts │ └── fixtures/ │ └── responses.ts # Mock API responses ├── .env.local # Local secrets (git-ignored) ├── .env.example # Template for team └── package.json ``` ### Step 2: Package Setup ```json { "scripts": { "dev": "tsx watch src/index.ts", "test": "vitest", "test:watch": "vitest --watch", "test:integration": "COHERE_INTEGRATION=1 vitest --run" }, "dependencies": { "cohere-ai": "^7.0.0" }, "devDependencies": { "tsx": "^4.0.0", "vitest": "^2.0.0", "typescript": "^5.5.0" } } ``` ### Step 3: Client Wrapper ```typescript // src/cohere/client.ts import { CohereClientV2 } from 'cohere-ai'; let instance: CohereClientV2 | null = null; export function getCohere(): CohereClientV2 { if (!instance) { instance = new CohereClientV2({ token: process.env.C...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

groq-local-dev-loop

Configure Groq local development with hot reload, mocking, and testing. Use when setting up a development environment, configuring test workflows, or establishing a fast iteration cycle with Groq. Trigger with phrases like "groq dev setup", "groq local development", "groq dev environment", "develop with groq".

2,266 Updated today
jeremylongshore
AI & Automation Featured

hootsuite-local-dev-loop

Configure Hootsuite local development with hot reload and testing. Use when setting up a development environment, configuring test workflows, or establishing a fast iteration cycle with Hootsuite. Trigger with phrases like "hootsuite dev setup", "hootsuite local development", "hootsuite dev environment", "develop with hootsuite".

2,266 Updated today
jeremylongshore
AI & Automation Featured

klaviyo-local-dev-loop

Configure Klaviyo local development with hot reload, mocking, and testing. Use when setting up a development environment, configuring test workflows, or establishing a fast iteration cycle with the Klaviyo API. Trigger with phrases like "klaviyo dev setup", "klaviyo local development", "klaviyo dev environment", "develop with klaviyo", "klaviyo testing".

2,266 Updated today
jeremylongshore
AI & Automation Featured

intercom-local-dev-loop

Configure Intercom local development with testing, mocking, and hot reload. Use when setting up a development environment, writing tests against the Intercom API, or establishing a fast iteration cycle. Trigger with phrases like "intercom dev setup", "intercom local development", "intercom dev environment", "develop with intercom", "test intercom locally".

2,266 Updated today
jeremylongshore
AI & Automation Featured

attio-local-dev-loop

Set up a fast local development loop for Attio integrations with hot reload, mock server, and integration tests. Trigger: "attio dev setup", "attio local development", "attio dev environment", "develop with attio", "attio project setup".

2,266 Updated today
jeremylongshore