Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/mistral-performance-tuning

@0d57af8
Run it yourself

Analyze and improve Mistral latency and throughput from measured queue, transport, streaming, retrieval, and token evidence. Use when optimizing a slow integration. Trigger with "speed up Mistral", "reduce Mistral latency", or "tune Mistral throughput".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/mistral-performance-tuning

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈70 tokens for metadata: the name and description. ≈708 when used: this file. ≈227 more on demand in 1 file.

Description uses 3.5% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈282 characters, or 3.5%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Mistral Performance Tuning

Overview

Optimize the measured bottleneck rather than changing models or caching content by instinct. Separate queue, connection, first-event, generation, tool, and application time.

Prerequisites

  • A representative synthetic benchmark and explicit quality/safety acceptance.
  • Content-free latency, token, queue, retry, and error instrumentation.
  • Current workspace limits plus fixed model and request parameters.

Current Contract

Chat, streaming, embeddings, batch, FIM, OCR, and audio differ in latency and batching. Compare only compatible operations and current account access.

Authentication

Metrics may include timing, counts, endpoint class, and opaque model ID, but never prompts, outputs, files, credentials, or headers.

Instructions

  1. Define user SLOs and a stable workload covering typical, tail, and cancellation cases.
  2. Measure queue, connection, first-event, terminal, parsing, retrieval, tool, and storage durations.
  3. Identify the dominant segment and test one reversible hypothesis at a time.
  4. Tune bounds, connection reuse, admission, streaming UX, retrieval size, or app concurrency.
  5. Compare latency, errors, tokens, quality, safety, and spend using the same workload.
  6. Canary the change, monitor regression, and retain prior configuration for rollback.

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

Live benchmarks, model changes, caching, concurrency, endpoint changes, or relaxed gates require approval. Performance never overrides data policy.

Error Handling

  • Fast first event can hide worse terminal latency.
  • Caching user content can violate tenancy and deletion.
  • Concurrency can move latency into shared provider queues.

Output

Return workload hash, before and after segments, confidence, quality, safety and spend deltas, chosen change, canary, and rollback. State whether the SLO actually improved.

Examples

  • Reduce retrieval context only after evaluation preserves quality.
  • Reuse connections while retaining cancellation and end-to-end deadlines.

Validation

Repeat warm and cold trials, vary concurrency, test cancellation and outage, and reject any weakened correctness or isolation. Preserve the exact workload for comparison.

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.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides architectural and code-level patterns for optimizing Mistral AI API performance. It uses standard environment variable management for API keys and well-known libraries for caching and queuing. No malicious patterns were detected.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
What it can do
Reads files Edits files
Modelinherit
argument-hint
<operation> <latency-slo> <load-profile>
version
1.14.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
All 5 allowed tools
ReadGlobGrepWriteEdit
Other metadata
tags
[
  "saas",
  "mistral",
  "performance"
]
model
inherit
effort
high
compatibility
Designed for Claude Code; live or external Mistral actions require network access and explicit approval

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/mistral-performance-tuning