check-stale-cookbooks
Skill2.3k starsChanged 4 months agoMITView on GitHub
Scan Mistral AI cookbook files for outdated content — deprecated models, old SDK imports, and changed API methods — and surface a prioritized list of issues with reference links. Trigger when the user asks to: - Check which cookbooks are out of date or stale - Find cookbooks using deprecated models, old SDK imports, or old API methods - Audit the mistral/ directory before a release - Run the stale checker locally before opening a fix PR Set your Mistral…
- Reads credentials
- Installs packages
Trending
Quiet since September.about the whole repository
Who's talking about mistralai/cookbook
- ggml-org/llama.cpp“Add `mistral-v1`, `mistral-v3`, `mistral-v3-tekken` and `mistral-v7` chat template types”GitHub · Nov 29, 2024 · 8 reactions
- NFDI4BIOIMAGE/licensing“Making Bioimaging/Data Science github repositories more open”GitHub · Jul 11, 2024 · 4 reactions
- A Hacker News story“Show HN: Cookbook for the Mistral AI CLI – Practical Examples and Recipes”Hacker News · Aug 25, 2024 · 3 points
- mistralai/platform-docs-public“docs: Add Sentry observability integration”GitHub · Sep 16, 2026 · 1 reactions
- getsentry/sentry-agent-tracing-examples“feat: Add Mistral example and adopt Sentry v11 RC”GitHub · Sep 15, 2026 · 1 reactions
The biggest 5 of 20 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 20
Talked about on GitHub and Hacker News (20 times).
On GitHub · 19
- Nov 29, 2024Add `mistral-v1`, `mistral-v3`, `mistral-v3-tekken` and `mistral-v7` chat template types — ggml-org/llama.cpp8 reactions · 8 comments
- Jul 11, 2024Making Bioimaging/Data Science github repositories more open — NFDI4BIOIMAGE/licensing4 reactions
- Sep 16, 2026docs: Add Sentry observability integration — mistralai/platform-docs-public1 reaction · 1 comment
- Sep 15, 2026feat: Add Mistral example and adopt Sentry v11 RC — getsentry/sentry-agent-tracing-examples1 reaction · 1 comment
- Sep 30, 2026Add Verification-Before-Assertion (Slovenia) to national and community LLMs — OpenLLM-Europe/European-OpenLLM-Projects0 reactions
14 more on GitHub
- Jun 4, 2026CB-03: Fork mistral/cookbook + scaffold third_party/automated-technical-file/ — UrsushoribilisMusic/agentic-fleet-hub0 reactions
- Jun 4, 2026CB-02: Browse mistral cookbook third_party examples — document conventions — UrsushoribilisMusic/agentic-fleet-hub0 reactions
- Feb 23, 2026[BUG CLIENT]: OCR data extraction example gives an ValidationError: 2 validation errors for Unmarshaller Azure Foundry Model — mistralai/client-python0 reactions · 1 comment
- Jul 8, 2025Use Self Supervised Prompt Optimization either for Assistants or for better prompts — it-at-m/mucgpt0 reactions · 2 comments
- Mar 13, 2025How to fine-tune the model to get Structured Output (e.g. JSON)? — allenai/olmocr0 reactions
- Feb 5, 2025Add MLflow Tracing to observability — mistralai/platform-docs-public0 reactions
- Dec 3, 2024[Docs]: Mistral AI cookbooks — AgentOps-AI/agentops0 reactions · 3 comments
- Oct 29, 2024Add Mistral templates that more closely resemble the standard — Maximilian-Winter/llama-cpp-agent0 reactions
- Sep 21, 2024Fixing Mistral Templates — oobabooga/textgen0 reactions · 1 comment
- Sep 20, 2024Fixing Mistral Templates — SillyTavern/SillyTavern0 reactions · 2 comments
- Sep 20, 2024Fixing Mistral Templates — SillyTavern/SillyTavern0 reactions
- Sep 20, 2024Fixing Mistral Templates — LostRuins/lite.koboldai.net0 reactions · 13 comments
- May 6, 2024Document Prompt Format — imixs/imixs-ai0 reactions · 2 comments
- Mar 25, 2024mistral cookbook — Arize-ai/phoenix0 reactions · 2 comments
On Hacker News · 1
- Aug 25, 2024Show HN: Cookbook for the Mistral AI CLI – Practical Examples and Recipes3 points
In this repositoryOne other file it gives its agents.
- cookbook-reviewSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Check which cookbooks are out of date or stale
- Distinctive: line 11
Run the stale checker locally before opening a fix PR
- Very specific: line 102
Every flagged issue must include a quote field with text from the reference that confirms the deprecation
- Very specific: line 106
Add # stale-check: ignore as a comment on any source line to skip it:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Check Stale Cookbooks
Scan Mistral AI cookbook files for outdated content — deprecated models, old SDK imports, and changed API methods — and surface a prioritized list of issues with reference links.
When to use this skill
Trigger when the user asks to:
- Check which cookbooks are out of date or stale
- Find cookbooks using deprecated models, old SDK imports, or old API methods
- Audit the
mistral/directory before a release - Run the stale checker locally before opening a fix PR
Prerequisites
pip install -r skills/check-stale-cookbooks/requirements.txtSet your Mistral API key for LLM-assisted analysis (optional but recommended):
export MISTRAL_API_KEY=your-api-keyCommands
Scan all cookbooks with LLM analysis (recommended):
python skills/check-stale-cookbooks/check_stale.py --dir mistral --use-llmScan a single file:
python skills/check-stale-cookbooks/check_stale.py --file mistral/rag/basic_RAG.ipynb --use-llmPattern-only mode (no network calls, no API key needed):
python skills/check-stale-cookbooks/check_stale.py --dir mistral --no-fetchWrite a JSON report for further processing:
python skills/check-stale-cookbooks/check_stale.py --dir mistral --use-llm --output report.json --format jsonAll flags
| Flag | Description |
--dir DIR | Directory to scan (default: mistral) |
--file FILE | Scan a single file |
--output FILE | Write JSON report to this path |
--format markdown|json | stdout format (default: markdown) |
--no-fetch | Skip network calls; run static pattern checks only |
--use-llm | Enable Mistral API analysis (requires MISTRAL_API_KEY) |
--no-llm | Disable LLM analysis even if the key is set |
Exit codes
| Code | Meaning |
0 | No stale content found |
1 | One or more files have stale content |
2 | Bad arguments (file/dir not found) |
What is checked
Static pattern checks (always run)
| Pattern detected | Issue type | Reference |
from mistralai.client import MistralClient | deprecated_import | client-python |
from mistralai import MistralClient | deprecated_import | client-python |
from mistralai.models import ... | deprecated_import | client-python |
MistralClient( | deprecated_class | client-python |
ChatMessage( | deprecated_class | client-python |
client.chat( (without .complete) | deprecated_method | client-python |
client.embeddings( (without .create) | deprecated_method | client-python README |
client.fine_tuning | deprecated_api | Fine-tuning docs |
/v1/fine_tuning/ in curl/REST calls | deprecated_api | Fine-tuning docs |
pip install mistralai==0. | outdated_version | client-python README |
@mistralai/mistralai@0. | outdated_version | client-ts README |
"mistral-tiny" | deprecated_model | Model list |
"mistral-medium" | deprecated_model | Model list |
"open-mistral-7b" | verify_model | Model list |
"open-mixtral-8x7b" | verify_model | Model list |
"open-mixtral-8x22b" | verify_model | Model list |
Model IDs with dated versions (-2309, -2402) | pinned_model_version | Model list |
Dynamic model check (requires network, skipped with --no-fetch)
Fetches the live model list from /v1/models and flags any Mistral model ID used in an API call (model="...") that isn't in that list as unknown_model.
LLM-assisted check (requires --use-llm and MISTRAL_API_KEY)
Sends each file's code content and excerpts from the fetched reference docs to mistral-medium-latest for deeper semantic review. Catches issues pattern matching misses: renamed parameters, changed response structures, removed features, outdated best practices.
The LLM is explicitly instructed:
_asyncsuffix methods (create_async,list_async,start_async, etc.) are valid — never flag them- Fine-tuning jobs API (
client.fine_tuning) is deprecated - Every flagged issue must include a
quotefield with text from the reference that confirms the deprecation
Suppressing false positives
Add # stale-check: ignore as a comment on any source line to skip it:
# Showing the legacy pattern as a migration example — stale-check: ignore
old_client = MistralClient(api_key=os.environ["MISTRAL_API_KEY"])This works in Python files, notebook code cells, and code blocks in Markdown.
File types scanned
| Extension | How code is extracted |
.ipynb | Code cells only (markdown and output cells are skipped) |
.md | Fenced code blocks with language tags python, typescript, javascript, bash, sh, shell, or unknown |
.py | Full file |
Output format
Markdown (default)
# Stale Cookbook Report
**Scanned at:** 2026-07-20T09:00:00Z
**Files with issues:** 2
**Valid models found:** 24
**References checked:** platform-docs-public/openapi.yaml, client-python/README.md, client-ts/README.md
---
## `mistral/rag/basic_RAG.ipynb`
### Deprecated Class
- Deprecated `MistralClient` class (SDK v0). Use `Mistral(api_key=...)` instead.
- **Location:** `Cell 2, line 4`
- **Found:** `client = MistralClient(api_key=os.environ["MISTRAL_API_KEY"])`
- **Reference:** [https://github.com/mistralai/client-python/blob/main/README.md](...)JSON (--format json)
{
"scanned_at": "2026-07-20T09:00:00Z",
"references_checked": [
"platform-docs-public/openapi.yaml",
"client-python/README.md",
"client-ts/README.md"
],
"valid_models_count": 24,
"files": [
{
"path": "mistral/rag/basic_RAG.ipynb",
"issues": [
{
"type": "deprecated_class",
"detail": "Deprecated `MistralClient` class (SDK v0). Use `Mistral(api_key=...)` instead.",
"location": "Cell 2, line 4",
"matched_line": "client = MistralClient(api_key=os.environ[\"MISTRAL_API_KEY\"])",
"reference_url": "https://github.com/mistralai/client-python/blob/main/README.md"
}
]
}
]
}GitHub Action
.github/workflows/check-stale-cookbooks.yml runs this script automatically:
- Weekly on Monday at 9am UTC
- Manually via
workflow_dispatch
For each file with issues, it creates a GitHub issue (if one doesn't already exist) with a stale-cookbook label. When a previously stale file is clean on the next run, the action comments on and closes the existing issue.
Required secret in the repository: MISTRAL_API_KEY.
Reference repositories
- mistralai/platform-docs-public — deprecation notices, fine-tuning docs, changelogs
- mistralai/client-python — Python SDK README (fetched and passed to LLM as actual content)
- mistralai/client-ts — TypeScript SDK README (fetched and passed to LLM as actual content)
- docs.mistral.ai — model list, fine-tuning deprecation notices
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

