[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M793B6DREGTXQZJC49HHVKWN":3,"skill-same:01M793B6DREGTXQZJC49HHVKWN":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M793B6DREGTXQZJC49HHVKWN","mistral-hello-world",null,"Create a minimal working Mistral AI chat completion example.\nUse when starting a new Mistral integration, testing your setup,\nor learning basic Mistral API patterns.\nTrigger with phrases like \"mistral hello world\", \"mistral example\",\n\"mistral quick start\", \"simple mistral code\", \"mistral chat\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--mistral-pack--mistral-hello-world\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: mistral-hello-world\ndescription: |\n  Create a minimal working Mistral AI chat completion example.\n  Use when starting a new Mistral integration, testing your setup,\n  or learning basic Mistral API patterns.\n  Trigger with phrases like \"mistral hello world\", \"mistral example\",\n  \"mistral quick start\", \"simple mistral code\", \"mistral chat\".\nallowed-tools: Read, Write, Edit\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, mistral, api, testing]\n---\n# Mistral AI Hello World\n\n## Overview\nMinimal working examples demonstrating Mistral AI chat completions, streaming, multi-turn conversation, and JSON mode. Uses the official `@mistralai\u002Fmistralai` TypeScript SDK and `mistralai` Python SDK.\n\n## Prerequisites\n- Completed `mistral-install-auth` setup\n- Valid `MISTRAL_API_KEY` environment variable set\n- Node.js 18+ or Python 3.9+\n\n## Instructions\n\n### Step 1: Basic Chat Completion\n\n**TypeScript (hello-mistral.ts)**\n```typescript\nimport { Mistral } from '@mistralai\u002Fmistralai';\n\nconst client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY });\n\nasync function main() {\n  const response = await client.chat.complete({\n    model: 'mistral-small-latest',\n    messages: [\n      { role: 'user', content: 'Say \"Hello, World!\" in a creative way.' },\n    ],\n  });\n\n  console.log(response.choices?.[0]?.message?.content);\n  console.log('Tokens used:', response.usage);\n}\n\nmain().catch(console.error);\n```\n\n**Python (hello_mistral.py)**\n```python\nimport os\nfrom mistralai import Mistral\n\nclient = Mistral(api_key=os.environ[\"MISTRAL_API_KEY\"])\n\nresponse = client.chat.complete(\n    model=\"mistral-small-latest\",\n    messages=[\n        {\"role\": \"user\", \"content\": \"Say 'Hello, World!' in a creative way.\"}\n    ],\n)\n\nprint(response.choices[0].message.content)\nprint(f\"Tokens: {response.usage}\")\n```\n\n### Step 2: Run the Example\n```bash\n# TypeScript\nnpx tsx hello-mistral.ts\n\n# Python\npython hello_mistral.py\n```\n\n### Step 3: Streaming Response\n\nStreaming delivers the first token in ~200ms instead of waiting 1-2s for the full response.\n\n**TypeScript**\n```typescript\nimport { Mistral } from '@mistralai\u002Fmistralai';\n\nconst client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY });\n\nasync function streamChat() {\n  const stream = await client.chat.stream({\n    model: 'mistral-small-latest',\n    messages: [\n      { role: 'user', content: 'Tell me a short story about AI.' },\n    ],\n  });\n\n  for await (const event of stream) {\n    const content = event.data?.choices?.[0]?.delta?.content;\n    if (content) process.stdout.write(content);\n  }\n  console.log(); \u002F\u002F newline\n}\n\nstreamChat().catch(console.error);\n```\n\n**Python**\n```python\nstream = client.chat.stream(\n    model=\"mistral-small-latest\",\n    messages=[{\"role\": \"user\", \"content\": \"Tell me a short story about AI.\"}],\n)\n\nfor event in stream:\n    content = event.data.choices[0].delta.content\n    if content:\n        print(content, end=\"\", flush=True)\nprint()\n```\n\n### Step 4: Multi-Turn Conversation\n\n```typescript\nconst messages: Array\u003C{ role: 'system' | 'user' | 'assistant'; content: string }> = [\n  { role: 'system', content: 'You are a helpful coding assistant.' },\n  { role: 'user', content: 'What is the capital of France?' },\n];\n\nconst r1 = await client.chat.complete({\n  model: 'mistral-small-latest', messages,\n});\nconst answer = r1.choices?.[0]?.message?.content ?? '';\nconsole.log('A1:', answer);\n\n\u002F\u002F Continue the conversation\nmessages.push({ role: 'assistant', content: answer });\nmessages.push({ role: 'user', content: 'What about Germany?' });\n\nconst r2 = await client.chat.complete({\n  model: 'mistral-small-latest', messages,\n});\nconsole.log('A2:', r2.choices?.[0]?.message?.content);\n```\n\n### Step 5: JSON Mode (Structured Output)\n\n```typescript\nconst response = await client.chat.complete({\n  model: 'mistral-small-latest',\n  messages: [\n    { role: 'user', content: 'List 3 programming languages with their year of creation as JSON.' },\n  ],\n  responseFormat: { type: 'json_object' },\n});\n\nconst data = JSON.parse(response.choices?.[0]?.message?.content ?? '{}');\nconsole.log(data);\n```\n\n### Step 6: With Temperature and Token Limits\n\n```typescript\nconst response = await client.chat.complete({\n  model: 'mistral-small-latest',\n  messages: [{ role: 'user', content: 'Write a haiku about coding.' }],\n  temperature: 0.7,   \u002F\u002F 0-1, higher = more creative\n  maxTokens: 100,     \u002F\u002F cap output length\n  topP: 0.9,          \u002F\u002F nucleus sampling\n});\n```\n\n## Output\n- Working code file with Mistral client initialization\n- Successful API response with generated text\n- Console output showing response and token usage\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `Import Error` | SDK not installed | Run `npm install @mistralai\u002Fmistralai` |\n| `401 Unauthorized` | Invalid API key | Check `MISTRAL_API_KEY` is set |\n| `ERR_REQUIRE_ESM` | CommonJS project | Use `import` syntax or dynamic `await import()` |\n| `429 Rate Limited` | Too many requests | Wait and retry with backoff |\n\n## Model Quick Reference\n\n| Model ID | Best For | Context |\n|----------|----------|---------|\n| `mistral-small-latest` | Fast, cost-effective tasks | 256k |\n| `mistral-large-latest` | Complex reasoning, analysis | 256k |\n| `codestral-latest` | Code generation, FIM | 256k |\n| `mistral-embed` | Text\u002Fcode embeddings | 8k |\n| `pixtral-large-latest` | Vision + text (multimodal) | 128k |\n\n## Resources\n- [Mistral AI Quickstart](https:\u002F\u002Fdocs.mistral.ai\u002Fgetting-started\u002Fquickstart\u002F)\n- [Chat Completions API](https:\u002F\u002Fdocs.mistral.ai\u002Fapi\u002Fendpoint\u002Fchat\u002F)\n- [Models Overview](https:\u002F\u002Fdocs.mistral.ai\u002Fgetting-started\u002Fmodels\u002F)\n\n## Next Steps\nProceed to `mistral-core-workflow-a` for production chat patterns or `mistral-local-dev-loop` for dev workflow setup.\n","# Mistral AI Hello World\n\n## Overview\nMinimal working examples demonstrating Mistral AI chat completions, streaming, multi-turn conversation, and JSON mode. Uses the official `@mistralai\u002Fmistralai` TypeScript SDK and `mistralai` Python SDK.\n\n## Prerequisites\n- Completed `mistral-install-auth` setup\n- Valid `MISTRAL_API_KEY` environment variable set\n- Node.js 18+ or Python 3.9+\n\n## Instructions\n\n### Step 1: Basic Chat Completion\n\n**TypeScript (hello-mistral.ts)**\n```typescript\nimport { Mistral } from '@mistralai\u002Fmistralai';\n\nconst client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY });\n\nasync function main() {\n  const response = await client.chat.complete({\n    model: 'mistral-small-latest',\n    messages: [\n      { role: 'user', content: 'Say \"Hello, World!\" in a creative way.' },\n    ],\n  });\n\n  console.log(response.choices?.[0]?.message?.content);\n  console.log('Tokens used:', response.usage);\n}\n\nmain().catch(console.error);\n```\n\n**Python (hello_mistral.py)**\n```python\nimport os\nfrom mistralai import Mistral\n\nclient = Mistral(api_key=os.environ[\"MISTRAL_API_KEY\"])\n\nresponse = client.chat.complete(\n    model=\"mistral-small-latest\",\n    messages=[\n        {\"role\": \"user\", \"content\": \"Say 'Hello, World!' in a creative way.\"}\n    ],\n)\n\nprint(response.choices[0].message.content)\nprint(f\"Tokens: {response.usage}\")\n```\n\n### Step 2: Run the Example\n```bash\n# TypeScript\nnpx tsx hello-mistral.ts\n\n# Python\npython hello_mistral.py\n```\n\n### Step 3: Streaming Response\n\nStreaming delivers the first token in ~200ms instead of waiting 1-2s for the full response.\n\n**TypeScript**\n```typescript\nimport { Mistral } from '@mistralai\u002Fmistralai';\n\nconst client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY });\n\nasync function streamChat() {\n  const stream = await client.chat.stream({\n    model: 'mistral-small-latest',\n    messages: [\n      { role: 'user', content: 'Tell me a short story about AI.' },\n    ],\n  });\n\n  for await (const event of stream) {\n    const content = event.data?.choices?.[0]?.delta?.content;\n    if (content) process.stdout.write(content);\n  }\n  console.log(); \u002F\u002F newline\n}\n\nstreamChat().catch(console.error);\n```\n\n**Python**\n```python\nstream = client.chat.stream(\n    model=\"mistral-small-latest\",\n    messages=[{\"role\": \"user\", \"content\": \"Tell me a short story about AI.\"}],\n)\n\nfor event in stream:\n    content = event.data.choices[0].delta.content\n    if content:\n        print(content, end=\"\", flush=True)\nprint()\n```\n\n### Step 4: Multi-Turn Conversation\n\n```typescript\nconst messages: Array\u003C{ role: 'system' | 'user' | 'assistant'; content: string }> = [\n  { role: 'system', content: 'You are a helpful coding assistant.' },\n  { role: 'user', content: 'What is the capital of France?' },\n];\n\nconst r1 = await client.chat.complete({\n  model: 'mistral-small-latest', messages,\n});\nconst answer = r1.choices?.[0]?.message?.content ?? '';\nconsole.log('A1:', answer);\n\n\u002F\u002F Continue the conversation\nmessages.push({ role: 'assistant', content: answer });\nmessages.push({ role: 'user', content: 'What about Germany?' });\n\nconst r2 = await client.chat.complete({\n  model: 'mistral-small-latest', messages,\n});\nconsole.log('A2:', r2.choices?.[0]?.message?.content);\n```\n\n### Step 5: JSON Mode (Structured Output)\n\n```typescript\nconst response = await client.chat.complete({\n  model: 'mistral-small-latest',\n  messages: [\n    { role: 'user', content: 'List 3 programming languages with their year of creation as JSON.' },\n  ],\n  responseFormat: { type: 'json_object' },\n});\n\nconst data = JSON.parse(response.choices?.[0]?.message?.content ?? '{}');\nconsole.log(data);\n```\n\n### Step 6: With Temperature and Token Limits\n\n```typescript\nconst response = await client.chat.complete({\n  model: 'mistral-small-latest',\n  messages: [{ role: 'user', content: 'Write a haiku about coding.' }],\n  temperature: 0.7,   \u002F\u002F 0-1, higher = more creative\n  maxTokens: 100,     \u002F\u002F cap output length\n  topP: 0.9,          \u002F\u002F nucleus sampling\n});\n```\n\n## Output\n- Working code file with Mistral client initialization\n- Successful API response with generated text\n- Console output showing response and token usage\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `Import Error` | SDK not installed | Run `npm install @mistralai\u002Fmistralai` |\n| `401 Unauthorized` | Invalid API key | Check `MISTRAL_API_KEY` is set |\n| `ERR_REQUIRE_ESM` | CommonJS project | Use `import` syntax or dynamic `await import()` |\n| `429 Rate Limited` | Too many requests | Wait and retry with backoff |\n\n## Model Quick Reference\n\n| Model ID | Best For | Context |\n|----------|----------|---------|\n| `mistral-small-latest` | Fast, cost-effective tasks | 256k |\n| `mistral-large-latest` | Complex reasoning, analysis | 256k |\n| `codestral-latest` | Code generation, FIM | 256k |\n| `mistral-embed` | Text\u002Fcode embeddings | 8k |\n| `pixtral-large-latest` | Vision + text (multimodal) | 128k |\n\n## Resources\n- [Mistral AI Quickstart](https:\u002F\u002Fdocs.mistral.ai\u002Fgetting-started\u002Fquickstart\u002F)\n- [Chat Completions API](https:\u002F\u002Fdocs.mistral.ai\u002Fapi\u002Fendpoint\u002Fchat\u002F)\n- [Models Overview](https:\u002F\u002Fdocs.mistral.ai\u002Fgetting-started\u002Fmodels\u002F)\n\n## Next Steps\nProceed to `mistral-core-workflow-a` for production chat patterns or `mistral-local-dev-loop` for dev workflow setup.\n",{"name":5,"tags":24,"author":29,"license":15,"version":30,"description":31,"allowed-tools":32,"compatible-with":33},[25,26,27,28],"saas","mistral","api","testing","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Create a minimal working Mistral AI chat completion example.\nUse when starting a new Mistral integration, testing your setup,\nor learning basic Mistral API patterns.\nTrigger with phrases like \"mistral hello world\", \"mistral example\",\n\"mistral quick start\", \"simple mistral code\", \"mistral chat\".\n","Read, Write, Edit","claude-code, codex, openclaw","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--mistral-pack--mistral-hello-world",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill mistral-hello-world",{"tool":49,"command":50},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill mistral-hello-world",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill mistral-hello-world","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--mistral-pack--mistral-hello-world\u002FSKILL.md",true,[],[58,65,72,79,86,94],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]