mistral-reference-architecture

Featured

Implement Mistral AI reference architecture with best-practice project layout. Use when designing new Mistral AI integrations, reviewing project structure, or establishing architecture standards for Mistral AI applications. Trigger with phrases like "mistral architecture", "mistral best practices", "mistral project structure", "how to organize mistral".

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

# Mistral AI Reference Architecture ## Overview Production-ready architecture patterns for Mistral AI integrations: layered project structure, singleton client, Zod-validated config, custom error classes, service layer with caching, health checks, prompt templates, and model routing. ## Prerequisites - TypeScript/Node.js project (ESM) - `@mistralai/mistralai` SDK - `zod` for config validation - Testing framework (Vitest) ## Layer Architecture ``` API Layer (Routes, Controllers, Middleware) | Service Layer (Business Logic, Orchestration) | Mistral Layer (Client, Config, Errors, Prompts) | Infrastructure Layer (Cache, Queue, Monitoring) ``` ## Instructions ### Step 1: Directory Structure ``` src/ ├── mistral/ │ ├── client.ts # Singleton client factory │ ├── config.ts # Zod-validated config │ ├── errors.ts # Custom error classes │ ├── types.ts # Shared types │ └── prompts.ts # Prompt templates ├── services/ │ ├── chat.service.ts # Chat with caching + retry │ ├── embed.service.ts # Embeddings + search │ └── rag.service.ts # RAG pipeline ├── api/ │ ├── chat.route.ts # HTTP endpoints │ └── health.route.ts # Health check └── config/ ├── base.ts # Shared config ├── development.ts # Dev overrides └── production.ts # Prod overrides ``` ### Step 2: Config with Zod Validation ```typescript // src/mistral/config.ts import { z } from 'zod'; const MistralConfigSchema = ...

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

mistral-sdk-patterns

Apply production-ready Mistral AI SDK patterns for TypeScript and Python. Use when implementing Mistral integrations, refactoring SDK usage, or establishing team coding standards for Mistral AI. Trigger with phrases like "mistral SDK patterns", "mistral best practices", "mistral code patterns", "idiomatic mistral".

2,266 Updated today
jeremylongshore
AI & Automation Featured

mistral-local-dev-loop

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

2,266 Updated today
jeremylongshore
AI & Automation Featured

mistral-install-auth

Install and configure the Mistral AI SDK with authentication. Use when setting up a new Mistral integration, configuring API keys, or initializing Mistral AI in your project. Trigger with phrases like "install mistral", "setup mistral", "mistral auth", "configure mistral API key".

2,266 Updated today
jeremylongshore
AI & Automation Featured

mistral-prod-checklist

Execute Mistral AI production deployment checklist and rollback procedures. Use when deploying Mistral AI integrations to production, preparing for launch, or implementing go-live procedures. Trigger with phrases like "mistral production", "deploy mistral", "mistral go-live", "mistral launch checklist".

2,266 Updated today
jeremylongshore
AI & Automation Featured

mistral-observability

Set up comprehensive observability for Mistral AI with metrics, traces, and alerts. Use when implementing monitoring for Mistral AI operations, setting up dashboards, or configuring alerting for integration health. Trigger with phrases like "mistral monitoring", "mistral metrics", "mistral observability", "monitor mistral", "mistral alerts".

2,266 Updated today
jeremylongshore