cohere-reference-architecture

Featured

Implement Cohere reference architecture with layered project layout for RAG and agents. Use when designing new Cohere integrations, reviewing project structure, or establishing architecture standards for Cohere API v2 applications. Trigger with phrases like "cohere architecture", "cohere project structure", "cohere layout", "organize cohere app", "cohere design pattern".

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 Reference Architecture ## Overview Production-ready architecture for Cohere API v2 applications covering RAG pipelines, tool-use agents, and multi-model orchestration. ## Prerequisites - Understanding of layered architecture - `cohere-ai` SDK v7+ - TypeScript project with vitest ## Project Structure ``` my-cohere-app/ ├── src/ │ ├── cohere/ │ │ ├── client.ts # CohereClientV2 singleton │ │ ├── models.ts # Model selection logic │ │ ├── types.ts # Cohere-specific types │ │ └── errors.ts # Error classification │ ├── services/ │ │ ├── chat.ts # Chat completions + streaming │ │ ├── rag.ts # RAG pipeline (embed → rerank → chat) │ │ ├── agents.ts # Tool-use agent loops │ │ ├── embed.ts # Batch embedding + caching │ │ ├── rerank.ts # Document reranking │ │ └── classify.ts # Few-shot classification │ ├── tools/ # Tool definitions for agents │ │ ├── registry.ts # Tool name → executor mapping │ │ ├── search.ts │ │ └── calculator.ts │ ├── api/ │ │ ├── chat.ts # POST /api/chat (streaming) │ │ ├── embed.ts # POST /api/embed │ │ └── health.ts # GET /api/health │ └── cache/ │ └── embeddings.ts # LRU cache for embeddings ├── tests/ │ ├── unit/ │ │ ├── chat.test.ts │ │ ├── rag.test.ts │ │ └── fixtures/ # Mocked AP...

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

hubspot-reference-architecture

Implement a production-ready HubSpot integration architecture with layered design. Use when designing new HubSpot integrations, reviewing project structure, or establishing architecture standards for HubSpot CRM applications. Trigger with phrases like "hubspot architecture", "hubspot project structure", "hubspot integration design", "hubspot best practices layout", "hubspot layers".

2,266 Updated today
jeremylongshore
AI & Automation Featured

intercom-reference-architecture

Implement Intercom reference architecture with layered project structure. Use when designing new Intercom integrations, reviewing project structure, or establishing architecture standards for Intercom applications. Trigger with phrases like "intercom architecture", "intercom project structure", "how to organize intercom", "intercom layout", "intercom design patterns".

2,266 Updated today
jeremylongshore
AI & Automation Featured

cohere-hello-world

Create a minimal working Cohere example with Chat, Embed, and Rerank. Use when starting a new Cohere integration, testing your setup, or learning basic Cohere API v2 patterns. Trigger with phrases like "cohere hello world", "cohere example", "cohere quick start", "simple cohere code".

2,266 Updated today
jeremylongshore
AI & Automation Featured

cohere-core-workflow-b

Build tool-use agents and function calling with Cohere API v2. Use when implementing multi-step agents, function calling, or building autonomous tool-using workflows with Cohere. Trigger with phrases like "cohere tool use", "cohere agents", "cohere function calling", "cohere multi-step".

2,266 Updated today
jeremylongshore
AI & Automation Featured

cohere-core-workflow-a

Build a complete RAG pipeline with Cohere Chat, Embed, and Rerank. Use when implementing retrieval-augmented generation, building grounded Q&A systems, or combining search with LLM generation. Trigger with phrases like "cohere RAG", "cohere retrieval", "cohere grounded generation", "cohere search and answer".

2,266 Updated today
jeremylongshore