Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

mistral-sdk-patterns

/mistral-sdk-patterns

Projektuje przypięty adapter klienta Mistral z typowanymi wynikami, anulowaniem, klasyfikacją ponowień i rozliczaniem zużycia, przy implementacji lub refaktoryzacji dostępu do SDK.

Licencja
MIT
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Projektuje przypięty adapter klienta Mistral z typowanymi wynikami, anulowaniem, klasyfikacją ponowień i rozliczaniem zużycia, przy implementacji lub refaktoryzacji dostępu do SDK.

Wyzwalacze z opisu

wrap the Mistral SDKreview Mistral client codestandardize Mistral calls

Argumenty

/mistral-sdk-patterns <runtime> <client-version> <application-boundary>
Oryginalny opis (EN)

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".

Jak działa

  1. Overview
  2. Prerequisites
  3. Current Contract
  4. Authentication
  5. Instructions
  6. Tool Discipline
  7. Approval Boundaries
  8. Error Handling
  9. Output
  10. Examples
Sekcje z nagłówków SKILL.md, w oryginale · 61 linii, 365 słów
Podgląd SKILL.md
---
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
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
compatibility: "Designed for Claude Code; live or external Mistral actions require network access and explicit approval"
---
# 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](references/official-docs.md) — 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.
Pliki w paczce (2)
  • SKILL.md 3 KB
  • references/official-docs.md 1 KB

Wersje

W bazie nie ma innych skilli o nazwie mistral-sdk-patterns.

Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

Migawka bazy z 13.11.2026 · wersja paczki e2ec2b7cd832 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 1 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100mistral-reference-architecture
    Projektuje integrację Mistral od bramy polityk przez adapter, kolejki i uzgadnianie stanu po audytowane wyniki, przy ustalaniu architektury.
  • 100mistral-upgrade-migration
    Migruje przypięty klient Mistral lub przestarzałą powierzchnię API przez charakteryzację, porównanie kontraktów i etapowe wycofanie, przy aktualizacji SDK lub zmianie generacji API.
  • 100mistral-webhooks
    Odbiera i weryfikuje webhooki agentów głosowych Mistral AI Studio, w tym podpis x-mistral-signature oraz zdarzenia call_started, call_ended i call_failed.
  • 100apollo-sdk-patterns
    Stosuje produkcyjne wzorce SDK Apollo.io przy implementacji integracji, refaktoryzacji użycia API i ustalaniu standardów zespołu.
  • 100mistral-router
    Dobiera dostępne narzędzie i model Mistral do ekstrakcji dokumentów, czatu, kodu, widzenia, audio lub wdrożonych przepływów oraz pomaga w kierowaniu zadań.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.