mistral-hello-world
Create a minimal working Mistral AI chat completion example. Use when starting a new Mistral integration, testing your setup, or learning basic Mistral API patterns. Trigger with phrases like "mistral hello world", "mistral example", "mistral quick start", "simple mistral code", "mistral chat".
npx skills add majiayu000/claude-skill-registry --skill mistral-hello-world --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Mistral AI Hello World ## Overview Minimal working example demonstrating core Mistral AI chat completion functionality. ## Prerequisites - Completed `mistral-install-auth` setup - Valid API credentials configured - Development environment ready ## Instructions ### Step 1: Create Entry File **TypeScript (hello-mistral.ts)** ```typescript import Mistral from '@mistralai/mistralai'; const client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY, }); async function main() { const response = await client.chat.complete({ model: 'mistral-small-latest', messages: [ { role: 'user', content: 'Say "Hello, World!" in a creative way.' } ], }); console.log(response.choices?.[0]?.message?.content); } main().catch(console.error); ``` **Python (hello_mistral.py)** ```python import os from mistralai import Mistral client = Mistral(api_key=os.environ.get("MISTRAL_API_KEY")) def main(): response = client.chat.complete( model="mistral-small-latest", messages=[ {"role": "user", "content": "Say 'Hello, World!' in a creative way."} ], ) print(response.choices[0].message.content) if __name__ == "__main__": main() ``` ### Step 2: Run the Example ```bash # TypeScript npx tsx hello-mistral.ts # Python pyt
- Overview
- Prerequisites
- Instructions
- Step 1: Create Entry File
- Step 2: Run the Example
- Step 3: Streaming Response (Advanced)
- Output
- Error Handling
- Examples
- Multi-turn Conversation
- With Temperature Control
- Resources
- Next Steps
TypeScript npx tsx hello-mistral.ts Python python hello_mistral.py
What does the mistral-hello-world skill do?
Create a minimal working Mistral AI chat completion example. Use when starting a new Mistral integration, testing your setup, or learning basic Mistral API patterns. Trigger with phrases like "mistral hello world", "mistral example", "mistral quick start", "simple mistral code", "mistral chat".
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill mistral-hello-world --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
