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.zipInstalls 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, andKey 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
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
.envvalue.
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
- Map direct client imports and move calls behind one application interface.
- Define typed success, stream, tool-call, throttling, malformed, and terminal-error fixtures.
- Add a transport seam so tests fail on unexpected network access.
- Test usage normalization, error classification, idempotency, and redaction offline.
- Create a separately named live smoke with explicit environment and budget gates.
- 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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| mistral-local-dev-loop (this skill) | 0 | 2mo | Review | Intermediate |
| svelte-expert | 11 | 11mo | No flags | Intermediate |
| zod-4 | 12 | 8mo | No flags | Intermediate |
| develop-ai-functions-example | 5 | 8mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by jeremylongshore
View all by jeremylongshore →You might also like
svelte-expert
Raudbjorn
Expert Svelte/SvelteKit development assistant for building components, utilities, and applications. Use when creating Svelte components, SvelteKit applications, implementing reactive patterns, handling state management, working with stores, transitions, animations, or any Svelte/SvelteKit development task. Includes comprehensive documentation access, code validation with svelte-autofixer, and playground link generation.
zod-4
prowler-cloud
Zod 4 schema validation patterns. Trigger: When creating or updating Zod v4 schemas for validation/parsing (forms, request payloads, adapters), including v3 -> v4 migration patterns.
develop-ai-functions-example
vercel
Develop examples for AI SDK functions. Use when creating, running, or modifying examples under examples/ai-functions/src to validate provider support, demonstrate features, or create test fixtures.
adk-engineer
jeremylongshore
Execute software engineer specializing in creating production-ready ADK agents with best practices, code structure, testing, and deployment automation. Use when asked to "build ADK agent", "create agent code", or "engineer ADK application". Trigger with relevant phrases based on skill purpose.
1k-dev-commands
OneKeyHQ
Development commands — yarn scripts for dev servers, building, linting, testing, and troubleshooting.
web-renderer-test
remotion-dev
Add a test case to the web renderer