MI

mistral-local-dev-loop

Sets up a fast development environment for Mistral AI, including hot reloading, unit testing, and API mocking.

Install

mkdir -p .claude/skills/mistral-local-dev-loop && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/8176" && unzip -o skill.zip -d .claude/skills/mistral-local-dev-loop && rm skill.zip

Installs to .claude/skills/mistral-local-dev-loop

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Configure Mistral AI local development with hot reload, testing, and
68 charsno explicit “when” trigger
Intermediate

Key capabilities

  • →Set up a project scaffold for Mistral AI integrations
  • →Configure hot reload with `tsx` for development
  • →Implement unit tests with Vitest mocking
  • →Set up integration tests against the live Mistral API
  • →Manage environment variables for Mistral projects

How it works

This skill establishes a local development workflow by providing a project structure, package configurations, environment setup, and examples for unit and integration testing with Mistral AI.

Inputs & outputs

You give it
Source code, test files, environment variables
You get back
Working dev environment, test results, project structure

When to use mistral-local-dev-loop

  • →Initialize new Mistral AI project
  • →Configure hot-reload development loop
  • →Mock API calls for unit tests
  • →Set up project-wide type definitions

About this skill

Mistral Deterministic Local Development Loop

Overview

Make local iteration deterministic and free of accidental spend. Keep provider calls behind a narrow adapter, validate synthetic fixtures, and reserve live calls for a separately approved lane.

Prerequisites

  • A package lock, test framework, and selected official client.
  • A provider-adapter boundary and synthetic fixture policy.
  • A secret manager for the optional live lane; never a checked-in .env value.

Current Contract

Official clients wrap a changing HTTP schema. Local tests should assert the application-owned adapter; a narrow live smoke detects drift without making every test network-dependent.

Authentication

Offline tests must not resolve MISTRAL_API_KEY. The live test is disabled by default, reads a protected secret only after its gate is enabled, and redacts transport metadata.

Instructions

  1. Map direct client imports and move calls behind one application interface.
  2. Define typed success, stream, tool-call, throttling, malformed, and terminal-error fixtures.
  3. Add a transport seam so tests fail on unexpected network access.
  4. Test usage normalization, error classification, idempotency, and redaction offline.
  5. Create a separately named live smoke with explicit environment and budget gates.
  6. Document fixture provenance, schema version, refresh method, and review owner.

Tool Discipline

Use Read, Glob, and Grep to inspect code, locks, configuration, tests, and evidence. Use Write and Edit only for approved repository changes. Invocation alone does not authorize network calls, paid usage, uploads, stateful resources, admin mutations, deployments, or deletion.

Approval Boundaries

Require approval before package changes, network access, provider-derived fixture capture, or a live test. Keep the default developer command entirely offline and credential-free.

Error Handling

  • Mocks coupled to private client internals create false drift.
  • Any real prompt, file, or key in a fixture is a data incident.
  • Passing offline tests does not prove live account configuration.

Output

Return adapter path, test commands, fixture inventory, network-denial evidence, live gate, coverage gaps, and review date.

Examples

  • Inject a fake chat transport and assert normalized usage.
  • Fail CI when offline tests attempt DNS or unexpectedly see the key.

Validation

Run without network and credential, mutate fixtures to prove failures, then use the live lane only after approval.

Resources

  • Current first-party evidence map — recheck dated sources before relying on mutable endpoints, models, limits, prices, preview status, or retention.
  • Record live account observations as environment-specific evidence, not universal Mistral guarantees.

Prerequisites

Completed `mistral-install-auth` setupNode.js 18+ with npm/pnpm`MISTRAL_API_KEY` set in environment

Limitations

  • →Integration tests are skipped if `MISTRAL_API_KEY` is not set
  • →Mock type errors can occur if the SDK interface changes

How it compares

This skill provides a structured project setup and testing framework specifically for Mistral AI, rather than a generic development environment.

Compared to similar skills

mistral-local-dev-loop side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
mistral-local-dev-loop (this skill)02moReviewIntermediate
svelte-expert1111moNo flagsIntermediate
zod-4128moNo flagsIntermediate
develop-ai-functions-example58moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore →

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

Search skills

Search the agent skills registry