Agent skill

Mistral SDK Patterns

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Design a pinned Mistral client adapter with typed results, cancellation, retry classification, and usage accounting.

MITAuto-check passedBusiness, Finance & HR

Install Mistral SDK Patterns

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill mistral-sdk-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace mistral-sdk-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/mistral-sdk-patterns .claude/skills/mistral-sdk-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mistral-sdk-patterns
GitHub stars
2.8k
Token cost
~853 tokens
SKILL.md length
341 words
Files
2 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Design a pinned Mistral client adapter with typed results, cancellation, retry classification, and usage accounting.

  • Works in 6 steps: Inventory imports, transport overrides,… → Define normalized types including… → Create one factory with explicit host,… → …
  • Refactoring SDK access
  • SKILL.md covers Overview, Prerequisites, Current Contract and Authentication, plus 8 more sections
  • Needs MISTRAL_API_KEY

What it does

Mistral SDK Patterns is an agent skill from jeremylongshore/tons-of-skills-marketplace. Design a pinned Mistral client adapter with typed results, cancellation, retry classification, and usage accounting. Use when implementing or refactoring SDK access. Trigger with "wrap the Mistral SDK", "review Mistral client code", or "standardize Mistral calls".

Its SKILL.md is about 850 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/official-docs.md`). Compatibility notes: Designed for Claude Code; live or external Mistral actions require network access and explicit approval

It sits in Business, Finance & HR, covering Accounting and bookkeeping and Refactoring. It works with Mistral AI. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Refactoring SDK access
  • With wrap the Mistral SDK
  • Review Mistral client code
  • Standardize Mistral calls

Example prompts

  • “wrap the Mistral SDK”
  • “review Mistral client code”
  • “standardize Mistral calls”
  • “/mistral-sdk-patterns”

Requirements

  • Python 3
  • A credential in MISTRAL_API_KEY
  • Compatibility (from SKILL.md): Designed for Claude Code; live or external Mistral actions require network access and explicit approval
  • Pre-approved tools (allowed-tools): Read, Glob, Grep, Write, Edit

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Inventory imports, transport overrides, model strings, and response shapes.
  2. Define normalized types including request ID, usage, finish state, and error class.
  3. Create one factory with explicit host, timeout, user agent, and dependency pin.
  4. Retry only classified transient failures while honoring deadline, cancellation, and budget.
  5. Keep stream assembly and tool-call validation in separate tested components.
  6. Add characterization tests before migrating call sites.

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • Write
    • Edit

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • MISTRAL_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code; live or external Mistral actions require network access and explicit approval

    From compatibility in the SKILL.md frontmatter.

Context cost

Mistral SDK Patterns loads about 853 tokens when it runs, and up to ~1.1k if it reads all its reference files. Until then it costs about 71 tokens; SKILL.md has 341 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~853
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 341 words, ~853 tokens.

Download SKILL.mdSave it as .claude/skills/mistral-sdk-patterns/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
mistral-sdk-patterns
description
Design a pinned Mistral client adapter with typed results, cancellation, retry classification, and usage accounting. Use when implementing or refactoring SDK access. Trigger with "wrap the Mistral SDK", "review Mistral client code", or "standardize Mistral calls".
allowed-tools
Read, Glob, Grep, Write, Edit
compatibility
Designed for Claude Code; live or external Mistral actions require network access and explicit approval
argument-hint
<runtime> <client-version> <application-boundary>
version
1.14.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, mistral, sdk
model
inherit
effort
high

Mistral SDK Boundary Patterns

Overview

Prevent provider-specific shapes and volatile client behavior from spreading. Centralize configuration, normalize results and errors, and expose cancellation and usage as first-class fields.

Prerequisites

  • A locked official client version and matching documentation.
  • An application interface for chat, embeddings, and optional streams.
  • Defined timeout, retry, observability, and redaction policies.

Current Contract

Mistral documents official Python and TypeScript clients, but signatures can move independently of application code. REST endpoints remain the verification boundary for the pinned client.

Authentication

Inject MISTRAL_API_KEY into one server-side client factory. Return no key or authorization metadata from the adapter.

Instructions

  1. Inventory imports, transport overrides, model strings, and response shapes.
  2. Define normalized types including request ID, usage, finish state, and error class.
  3. Create one factory with explicit host, timeout, user agent, and dependency pin.
  4. Retry only classified transient failures while honoring deadline, cancellation, and budget.
  5. Keep stream assembly and tool-call validation in separate tested components.
  6. Add characterization tests before migrating call sites.

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 for dependency, transport, retry, fallback-model, or live characterization changes. Never execute returned tool arguments automatically.

Error Handling

  • Retrying every exception can multiply spend and hide invalid requests.
  • Import-time client construction makes rotation and tests unsafe.
  • Returning raw SDK objects couples the app to undocumented fields.

Output

Return client pin, adapter surface, timeout/retry matrix, normalized fields, affected call sites, tests, and rollback.

Examples

  • Wrap chat and embeddings behind explicit adapter methods.
  • Map 429 as retryable only within the operation deadline and budget.

Validation

Prove only the adapter imports the SDK, errors remain typed, cancellation propagates, usage survives, and secrets do not.

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.

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/.curated/mistral-sdk-patterns of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/official-docs.md

Open the folder on GitHubat commit cfae287

Compare with similar skills

Mistral SDK Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Mistral SDK Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mistral SDK Patterns this skilljeremylongshore/tons-of-skills-marketplace2.8k—~853Automated safety check: PassMIT
Sandbox Lifecycle Debugvercel-labs/vercel-openclaw-archived117—~809Automated safety check: PassMIT
Odoo Agency Fleet Reviewerpipe-org/mcp-odoo421—~699Automated safety check: PassMIT
Write Vibe Testsmistralai/mistral-vibe5.1k—~1.2kAutomated safety check: PassApache-2.0
Configure Authdotnet/skills5.6k1 repos~1.8kAutomated safety check: PassMIT
Interlinked Spec AuditQuentinCody/interlinked-cli178—~3.3kAutomated safety check: PassMIT

Similar skills

  • Sandbox Lifecycle Debug

    vercel-labs/vercel-openclaw-archived

    Official

    Sandbox lifecycle debugging for vercel-openclaw: create, resume, stop, snapshotting, reset, stale-running reconciliation, persistent Sandbox v2 behavior, hot spares, and lifecycle locks.

    117 GitHub stars~809 tokensUpdated 4 mo ago
    Business, Finance & HRAuto-check passed
  • Odoo Agency Fleet Review

    erpipe-org/mcp-odoo

    Review many client Odoo databases at once through odoo-mcp's cross-instance tools — fleet-wide accounting health, per-client aging, partial-failure triage — for agencies and partners managing 5–50…

    421 GitHub stars~699 tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Write Vibe Tests

    mistralai/mistral-vibe

    Official

    Guides writing or refactoring tests for the Mistral Vibe CLI agent so they check behavior through stable boundaries, like tool invocation or saved session shape, instead of internal calls.

    5.1k GitHub stars~1.2k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Configure Auth

    dotnet/skills

    Official

    Add authentication and authorization to a Blazor Web App, accounting for the app's render mode.

    5.6k GitHub starsUsed in 1 repo~1.8k tokens
    Business, Finance & HRAuto-check passed
  • Interlinked Spec Audit

    QuentinCody/interlinked-cli

    Keep prose specs and design docs honest against the code using Interlinked's spec-audit system.

    178 GitHub stars~3.3k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Merge Review

    SethGammon/Citadel

    Reviews pending fleet worktree merges before they're accepted.

    924 GitHub stars~1.7k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated yesterday
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Mistral SDK Patterns

What does Mistral SDK Patterns do?

Design a pinned Mistral client adapter with typed results, cancellation, retry classification, and usage accounting. Mistral SDK Patterns is an agent skill from jeremylongshore/tons-of-skills-marketplace. Design a pinned Mistral client adapter with typed results, cancellation, retry classification, and usage accounting.

When should I use Mistral SDK Patterns?

Mistral SDK Patterns fits situations like: refactoring SDK access; with wrap the Mistral SDK; review Mistral client code; standardize Mistral calls.

How do I install Mistral SDK Patterns in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill mistral-sdk-patterns -a claude-code`. Or copy the skill folder (skills/.curated/mistral-sdk-patterns in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/mistral-sdk-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Mistral SDK Patterns in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill mistral-sdk-patterns -a codex`. Or copy the skill folder (skills/.curated/mistral-sdk-patterns in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/mistral-sdk-patterns in your project. Codex loads it when a task matches its description.

Can I use Mistral SDK Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill mistral-sdk-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mistral-sdk-patterns, .gemini/skills/mistral-sdk-patterns, .github/skills/mistral-sdk-patterns and .opencode/skills/mistral-sdk-patterns in your project.

What does Mistral SDK Patterns need to run?

Going by SKILL.md and its folder, Mistral SDK Patterns needs credentials named MISTRAL_API_KEY. Our summary lists: Python 3; A credential in MISTRAL_API_KEY. Its frontmatter pre-approves these tools: Read, Glob, Grep, Write, Edit. Compatibility (from SKILL.md): Designed for Claude Code; live or external Mistral actions require network access and explicit approval.

Does Mistral SDK Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Mistral SDK Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Mistral SDK Patterns use?

Mistral SDK Patterns is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mistral SDK Patterns use?

About 853 tokens (SKILL.md is roughly 3.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 222 tokens, read only when the agent opens those files.

What are the alternatives to Mistral SDK Patterns?

Skills that share tags, products or a category with Mistral SDK Patterns: Sandbox Lifecycle Debug (vercel-labs/vercel-openclaw-archived, 117 stars), Odoo Agency Fleet Review (erpipe-org/mcp-odoo, 421 stars), Write Vibe Tests (mistralai/mistral-vibe, 5.1k stars) and Configure Auth (dotnet/skills, 5.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mistral SDK Patterns?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.