Control Mistral spend with live account rates, usage attribution, admission budgets, and quality-preserving experiments.

MITAuto-check passedData & Analytics

Install Mistral Cost Tuning

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

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

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace mistral-cost-tuning --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-cost-tuning .claude/skills/mistral-cost-tuning && 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-cost-tuning
GitHub stars
2.8k
Token cost
~880 tokens
SKILL.md length
359 words
Files
2 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Control Mistral spend with live account rates, usage attribution, admission budgets, and quality-preserving experiments.

  • Works in 6 steps: Capture current rates, feature charges,… → Attribute requests, tokens, retries,… → Calculate unit cost and waste from… → …
  • With optimize Mistral cost
  • SKILL.md covers Overview, Prerequisites, Current Contract and Authentication, plus 8 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Mistral Cost Tuning is an agent skill from jeremylongshore/tons-of-skills-marketplace. Control Mistral spend with live account rates, usage attribution, admission budgets, and quality-preserving experiments. Use when forecasting or reducing cost. Trigger with "optimize Mistral cost", "set a Mistral budget", or "explain Mistral spend".

Its SKILL.md is about 880 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 Data & Analytics, covering Forecasting and time series. 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

  • With optimize Mistral cost
  • Set a Mistral budget
  • Explain Mistral spend

Example prompts

  • “optimize Mistral cost”
  • “set a Mistral budget”
  • “explain Mistral spend”
  • “/mistral-cost-tuning”

Requirements

  • 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. Capture current rates, feature charges, usage, caps, and evidence times from authorized views.
  2. Attribute requests, tokens, retries, files, batch, OCR, audio, and stateful work to operations.
  3. Calculate unit cost and waste from retries, abandonment, excessive context, and duplicates.
  4. Prioritize admission budgets, request bounds, deduplication, and scheduling.
  5. Evaluate model, batch, or routing changes against the same correctness and safety set.
  6. Alert on cap approach, cap reached, invoice failure, and unattributed use with fail-safe behavior.

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 no API keys, tokens, secrets or passwords.

    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 Cost Tuning loads about 880 tokens when it runs, and up to ~1.1k if it reads all its reference files. Until then it costs about 67 tokens; SKILL.md has 359 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~67
When it runs · the whole SKILL.md, loaded when a task matches
~880
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). 359 words, ~880 tokens.

Download SKILL.mdSave it as .claude/skills/mistral-cost-tuning/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
mistral-cost-tuning
description
Control Mistral spend with live account rates, usage attribution, admission budgets, and quality-preserving experiments. Use when forecasting or reducing cost. Trigger with "optimize Mistral cost", "set a Mistral budget", or "explain Mistral spend".
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
<workspace> <workload> <budget-period>
version
1.14.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, mistral, cost
model
inherit
effort
high

Mistral Spend and Usage Governance

Overview

Turn spend into an attributable operating signal. Use live billing/model evidence, distinguish attempted from completed work, and require quality and safety evaluation before workflow changes.

Prerequisites

  • Authorized billing/usage evidence with observation time.
  • Operation-level usage, retry, caching, and business-outcome metrics.
  • A spend owner, budget period, alerts, and evaluation set.

Current Contract

Billing, model rates, and workspace limits vary by plan and time. Do not hard-code a price table, context size, batch discount, or model recommendation.

Authentication

Billing review uses an authorized admin session; inference uses the server-side key. Receipts exclude credentials, prompts, responses, invoices, and personal billing details.

Instructions

  1. Capture current rates, feature charges, usage, caps, and evidence times from authorized views.
  2. Attribute requests, tokens, retries, files, batch, OCR, audio, and stateful work to operations.
  3. Calculate unit cost and waste from retries, abandonment, excessive context, and duplicates.
  4. Prioritize admission budgets, request bounds, deduplication, and scheduling.
  5. Evaluate model, batch, or routing changes against the same correctness and safety set.
  6. Alert on cap approach, cap reached, invoice failure, and unattributed use with fail-safe behavior.

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.

Show full SKILL.md (135 more words)Show less

Approval Boundaries

Spend-cap changes, purchases, model/endpoint substitution, batch conversion, and production routing require approval. Never raise a cap automatically.

Error Handling

  • Lower unit price can raise total spend through output, retry, or failure changes.
  • Batch economics and eligibility must be rechecked.
  • Unattributed usage is an incident signal.

Output

Return dated rates and limits, attribution, unit economics, waste, evaluated options, controls, owner, and rollback. Separate observed facts from forecasts and assumptions.

Examples

  • Reduce duplicate retries before evaluating a cheaper model.
  • Alert on forecast budget crossing while preserving admission bounds.

Validation

Reconcile provider totals to app attribution, sample retry accounting, test cap-reached behavior, and preserve quality/safety/tenancy.

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-cost-tuning of jeremylongshore/tons-of-skills-marketplace.

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

Open the folder on GitHubat commit cfae287

Compare with similar skills

Mistral Cost Tuning 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 Cost Tuning compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mistral Cost Tuning this skilljeremylongshore/tons-of-skills-marketplace2.8k—~880Automated safety check: PassMIT
TimesFM Forecastinggoogle-research/timesfm34k—~4.7kAutomated safety check: PassApache-2.0
StatsmodelszLanqing/codex-claude-academic-skills4.7k15 repos~4.9kAutomated safety check: PassBSD-3-Clause
Timesfm ForecastingzLanqing/codex-claude-academic-skills4.7k3 repos~7.5kAutomated safety check: NotesApache-2.0
Find Hypertable Candidatestimescale/pg-aiguide1.9k1 repos~2.6kAutomated safety check: PassApache-2.0
Pensieve Searcharkohut/pensieve1.4k—~8.2kAutomated safety check: PassApache-2.0

Similar skills

  • TimesFM Forecasting

    google-research/timesfm

    Forecasts any univariate time series zero-shot with Google's TimesFM model, returning point forecasts and calibrated prediction intervals without training.

    34k GitHub stars~4.7k tokensUpdated 11 days ago
    Data & AnalyticsAuto-check passed
  • Statsmodels

    zLanqing/codex-claude-academic-skills

    Statistical models library for Python. An agent skill from zLanqing/codex-claude-academic-skills.

    4.7k GitHub starsUsed in 15 repos~4.9k tokens
    Data & AnalyticsAuto-check passed
  • Timesfm Forecasting

    zLanqing/codex-claude-academic-skills

    Zero-shot time series forecasting with Google's TimesFM foundation model.

    4.7k GitHub starsUsed in 3 repos~7.5k tokens
    Data & AnalyticsAuto-check: notes
  • Find Hypertable Candidates

    timescale/pg-aiguide

    A skill your agent uses to analyze an existing PostgreSQL database and identify which tables should be converted to Timescale/TimescaleDB hypertables.

    1.9k GitHub starsUsed in 1 repo~2.6k tokens
    Data & AnalyticsAuto-check passed
  • Pensieve Search

    arkohut/pensieve

    Search the user's local Pensieve screenshot archive by text, app, or time range.

    1.4k GitHub stars~8.2k tokensUpdated 2 mo ago
    Data & AnalyticsAuto-check passed
  • Alphaear Predictor

    ninehills/skills

    Market prediction skill using Kronos. An agent skill from ninehills/skills.

    280 GitHub starsUsed in 1 repo~531 tokens
    Data & AnalyticsAuto-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 today
    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 today
    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 today
    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 today
    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 today
    Auto-check passed

Works with

Questions about Mistral Cost Tuning

What does Mistral Cost Tuning do?

Control Mistral spend with live account rates, usage attribution, admission budgets, and quality-preserving experiments. Mistral Cost Tuning is an agent skill from jeremylongshore/tons-of-skills-marketplace. Control Mistral spend with live account rates, usage attribution, admission budgets, and quality-preserving experiments.

When should I use Mistral Cost Tuning?

Mistral Cost Tuning fits situations like: with optimize Mistral cost; set a Mistral budget; explain Mistral spend.

How do I install Mistral Cost Tuning in Claude Code?

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

How do I install Mistral Cost Tuning in Codex?

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

Can I use Mistral Cost Tuning 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-cost-tuning -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-cost-tuning, .gemini/skills/mistral-cost-tuning, .github/skills/mistral-cost-tuning and .opencode/skills/mistral-cost-tuning in your project.

What does Mistral Cost Tuning need to run?

SKILL.md names no scripts, command-line tools or credentials: Mistral Cost Tuning is instructions for the agent only. 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 Cost Tuning 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 Cost Tuning 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 Cost Tuning use?

Mistral Cost Tuning 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 Cost Tuning use?

About 880 tokens (SKILL.md is roughly 3.5k 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 235 tokens, read only when the agent opens those files.

What are the alternatives to Mistral Cost Tuning?

Skills that share tags, products or a category with Mistral Cost Tuning: TimesFM Forecasting (google-research/timesfm, 34k stars), Statsmodels (zLanqing/codex-claude-academic-skills, 4.7k stars), Timesfm Forecasting (zLanqing/codex-claude-academic-skills, 4.7k stars) and Find Hypertable Candidates (timescale/pg-aiguide, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mistral Cost Tuning?

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.