vibe-python-style
Skill5k starsChanged 3 months agoApache-2.0View on GitHub
Python coding conventions for Mistral Vibe. Use when writing, reviewing, or refactoring Python code in the Vibe codebase. Covers style, type hints, imports, Pydantic patterns, logging, error handling, and file I/O.
Trending
Quiet since October.about the whole repository
Who's talking about mistralai/mistral-vibe
- agentskills/agentskills“Proposal: include a standard folder where agent skills should be”GitHub · Dec 19, 2025 · 268 reactions
- github/spec-kit“Add support for Mistral Vibe CLI”GitHub · Dec 9, 2025 · 14 reactions
- @nidouille.bsky.social“Mistral vient d'annoncer Devstral 2 orienté vibecoding via une CLI. Il y a un gros modèle (licence MIT) …”Bluesky · Dec 9, 2025 · 12 likes
- aaif/project-proposals“[Project Proposal] Agent Skills”GitHub · Sep 24, 2026 · 8 reactions
- rtk-ai/rtk“feat: add transparent hook support for Mistral Vibe (BeforeTool)”GitHub · Mar 24, 2026 · 7 reactions
The biggest 5 of 47 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 47
Talked about on GitHub, Bluesky and Hacker News (47 times).
On GitHub · 40
- Dec 19, 2025Proposal: include a standard folder where agent skills should be — agentskills/agentskills268 reactions · 130 comments
- Dec 9, 2025Add support for Mistral Vibe CLI — github/spec-kit14 reactions · 2 comments
- Sep 24, 2026[Project Proposal] Agent Skills — aaif/project-proposals8 reactions · 2 comments
- Mar 24, 2026feat: add transparent hook support for Mistral Vibe (BeforeTool) — rtk-ai/rtk7 reactions · 8 comments
- Mar 2, 2026Feature Request: Add Support for Mistral Vibe Agent — laravel/boost7 reactions · 3 comments
35 more on GitHub
- Mar 12, 2026[Feature Request] programs.mistral-vibe.enableMcpIntegration — nix-community/home-manager2 reactions
- Sep 14, 2026Update Request: mistral-vibe 2.25.0 → 2.25.4 — NixOS/nixpkgs1 reaction
- Sep 10, 2026mistral-vibe: 2.25.0 -> 2.25.2 — NixOS/nixpkgs1 reaction · 2 comments
- Aug 4, 2026mistral-vibe: 2.23.1 -> 2.23.3 — NixOS/nixpkgs1 reaction · 1 comment
- Jun 12, 2026mistral-vibe: 2.14.1 -> 2.15.0 — NixOS/nixpkgs1 reaction · 1 comment
- May 13, 2026`ExitPlanMode` `QuestionRequest` is not rendered and instead shows empty panel, user "dismissed without choosing" via ACP — zed-industries/zed1 reaction · 2 comments
- May 7, 2026Update mistral-vibe to v2.9.5 — zed-industries/extensions1 reaction
- May 5, 2026Update mistral-vibe to v2.9.4 — zed-industries/extensions1 reaction
- Apr 11, 2026chore(deps): update dependency mistral-vibe to >=2.7.3 — shunkakinoki/dotfiles1 reaction · 3 comments
- Apr 10, 2026mistral-vibe: 2.7.3 -> 2.9.2 — NixOS/nixpkgs1 reaction · 6 comments
- Mar 8, 2026feat: add Mistral Vibe and Qwen Code support — gsd-build/get-shit-done1 reaction · 1 comment
- Mar 3, 2026Add Mistral Vibe as a supported agent harness — vercel-labs/agent-eval1 reaction · 1 comment
- Feb 27, 2026mistral-vibe: 2.2.1 -> 2.3.0 — NixOS/nixpkgs1 reaction · 1 comment
- Feb 19, 2026mistral-vibe: 2.2.0 -> 2.2.1 — NixOS/nixpkgs1 reaction · 2 comments
- Feb 17, 2026Update mistral-vibe to v2.2.0 — zed-industries/extensions1 reaction · 2 comments
- Jan 31, 2026[FEATURE]: Mistral Provider: Support x-affinity header for session continuation — anomalyco/opencode1 reaction · 8 comments
- Jan 28, 2026mistral-vibe: 2.0.0 -> 2.0.1 — NixOS/nixpkgs1 reaction · 1 comment
- Jan 27, 2026mistral-vibe: 1.3.5 -> 2.0.0 — NixOS/nixpkgs1 reaction · 6 comments
- Jan 20, 2026[UPDATE] Mistral Vibe CLI — PackmindHub/coding-agents-matrix1 reaction
- Dec 13, 2025Feature Request: Implement OpenTelemetry-based Observability — charmbracelet/crush1 reaction · 1 comment
- Oct 4, 2026[Client Request] Mistral Vibe (Vibe Code CLI / Vibe Work) — mcp360/mTarsier0 reactions
- Oct 4, 2026agent-plugins.github.mistralai.mistral-vibe: init at 2.25.8 — sudosubin/agents.nix0 reactions
- Sep 30, 2026[Coding Agent] Support Mistral Vibe — UI5/plugins-coding-agents0 reactions
- Sep 27, 2026spike: minimum viable Mistral Vibe integration — hugimuni-labs/brnrd0 reactions
- Sep 26, 2026Add support for Mistral Vibe in Traycer Desktop — traycerai/traycer0 reactions
- Sep 24, 2026chore(deps): bump the python-dependencies group across 1 directory with 5 updates — medmcp/medmcp0 reactions
- Sep 21, 2026Mistral Vibe before 2.25.5 Remote Code Execution via git post-checkout — NixOS/nixpkgs0 reactions
- Sep 3, 2026[HP-VIBE][Wave 3] Implement the Mistral Vibe Harness Pack and native environment contract — RepairYourTech/SymbioteIDE0 reactions
- Jul 31, 2026fix: use Vibe ACP tar archives on non-Windows — agentclientprotocol/registry0 reactions
- Jul 6, 2026[Feature Request] Add MistralVibe & KiloCode to default agents — formulahendry/vscode-acp0 reactions · 1 comment
- Jun 23, 2026R3 - The Amsterdam-Paris Summit — attogram/academic-vibing0 reactions · 3 comments
- Jun 3, 2026[Add] Mistral-Vibe (mistralai/mistral-vibe) — PyTorchKR/landscape0 reactions
- May 19, 2026feat(vibe): add Mistral Vibe adapter — cflack/Irrlicht0 reactions
- Apr 6, 2026Doc: add mistral vibe settings — mgaitan/telegram-acp-bot0 reactions
- Feb 20, 2026Рассмотреть создание своего REPL — ITMO-NSS-team/FEDOT.MAS0 reactions
On Bluesky · 5
- Dec 9, 2025Mistral vient d'annoncer Devstral 2 orienté vibecoding via une CLI. Il y a un gros modèle (licence MIT) demandant 4 cartes H100 et un… — @nidouille.bsky.social12 likes and reposts
- Feb 3, 2026I love mistral-vipe for beeing #OpenSource and trying not to steal data from their customers #vipe-coding #programming You can find it… — @kimkulling.bsky.social3 likes and reposts
- Aug 16, 2026There is github.com/aaif-goose/g... in Rust, but the dependency tree is gigantic, so I’m hesitant. Some people like it idk. Also… — @janvhs.com2 likes and reposts
- Dec 11, 2025Mistral vibe - yet another CLI ? Yes, but can call local Devstral 2 model (24B params, can run on a Mac Mx with 32+GB RAM)… — @fred.camblor.fr2 likes and reposts
- Dec 11, 2025Mistral AI is a French AI startup founded in 2023 by former researchers from Google DeepMind and Meta. The founders include Arthur Mensch,… — @nuthatch.infosec.exchange.ap.brid.gy0 likes and reposts · 1 reply
On Hacker News · 2
- Jan 15, 2026Mistral Vibe – Minimal CLI Coding Agent3 points
- Dec 14, 2025Code for mistral vibe – Mistral's open-source CLI coding assistant2 points
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- client-e2e/AGENTS.mdAGENTS.md
- vibe/cli-rust/AGENTS.mdAGENTS.md
- vibe-asyncSkill
- vibe-ci-supply-chainSkill
- vibe-cross-platformSkill
- vibe-textual-uiSkill
- promptsSkill
- create-pluginSkill
- skill-creatorSkill
- vibeSkill
- worktreeSkill
- create-vibe-featureSkill
- instrument-feature-analyticsSkill
- write-vibe-adrSkill
- write-vibe-design-docSkill
- write-vibe-testsSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 4 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Prefer match / case over long if / elif chains.
- Very specific: line 17
Use the walrus operator := only when it shortens code and improves clarity.
- Very specific: line 20
Use pathlib.Path (and anyio.Path in async paths) instead of os.path.
- Distinctive: line 21
Use f-strings, comprehensions, and context managers.
- Distinctive: line 23
Write declarative, minimalist code: express intent, drop boilerplate.
- Distinctive: line 24
Never call a private method from outside of its class in production code.
- Distinctive: line 25
Avoid comments and docstrings, except for when there's a hard to spot corner case
- Very specific: line 30
No relative imports — ban-relative-imports = "all".
- Very specific: line 31
No inline # type: ignore or # noqa.
- Very specific: line 46
Document Raises: only for exceptions the function actually raises (or that propagate from public API calls).
- Very specific: line 50
Use from vibe.observability.logging import logger — stdlib logging with StructuredLogFormatter, not structlog.
- Very specific: line 57
Prefer vibe.core.utils.io.read_safe / read_safe_async / decode_safe over raw Path.read_text(), Path.read_bytes().decode(), or open().
≈ “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
Vibe Python Style
Conventions for writing Python in the Vibe codebase. Apply whenever writing, reviewing, or refactoring Python code.
Style
- Prefer
match/caseover longif/elifchains. - Use the walrus operator
:=only when it shortens code and improves clarity. - Be a never-nester: early returns and guard clauses over nested blocks.
- Modern type hints only: built-in generics (
list,dict) and|unions. Never importOptional,Union,Dict,Listfromtyping. - Use
pathlib.Path(andanyio.Pathin async paths) instead ofos.path. - Use f-strings, comprehensions, and context managers; follow PEP 8.
- Enums:
StrEnum/IntEnumwithauto()and UPPERCASE members. For type-mixing, the mix-in type comes beforeEnumin the bases. Add methods or@propertyrather than parallel lookup tables. - Write declarative, minimalist code: express intent, drop boilerplate.
- Never call a private method from outside of its class in production code. Accessing private methods in tests is acceptable.
- Avoid comments and docstrings, except for when there's a hard to spot corner case
Typing & imports
- Pyright is strict and gates CI; fix types at the source.
- No relative imports —
ban-relative-imports = "all". Alwaysfrom vibe.core.x import …. - No inline
# type: ignoreor# noqa. Fix with refined signatures (TypeVar, Protocol),isinstanceguards,typing.castwhen control flow guarantees the type, or a small typed wrapper at the boundary.
TYPE_CHECKING and lazy imports
Moving imports under if TYPE_CHECKING: or into function bodies cuts startup time but risks runtime NameError. Before merging any import-deferral change, run:
- Ruff
TC004(pre-commit hook) — per-file: flagsTYPE_CHECKING-only names referenced at runtime. uv run python scripts/check_import_contracts.py— runtime cross-file: imports everyfrom <mod> import <name>acrossvibe/andtests/to verify it resolves; also rebuilds Pydantic models to catch lazily-failing field types. Catches cross-file re-exportsTC004misses. Missing non-vibe deps are non-blocking warnings.uv run scripts/suggest_lazy_imports.py— informational: reports deferral candidates (TC001–TC003+ single-function heuristic). Not gated.
Pydantic
- Parse external data via
model_validate,field_validator, ormodel_validator(mode="before")— never ad-hocgetattr/hasattrwalks or customfrom_sdkconstructors. - Set
ConfigDict(extra=…)explicitly. Usevalidation_alias(or field aliases) for kebab-case TOML keys. - Discriminated unions (e.g. MCP
transport): use sibling final classes plus a shared base/mixin, and compose withAnnotated[Union[...], Field(discriminator=...)]. Never narrow the discriminator field in a subclass — it violates LSP and pyright will reject it. - Document
Raises:only for exceptions the function actually raises (or that propagate from public API calls). Don't list speculative built-ins.
Logging & errors
- Use
from vibe.observability.logging import logger— stdlibloggingwithStructuredLogFormatter, notstructlog. - Configure via env:
LOG_LEVEL(defaultWARNING),LOG_MAX_BYTES. Logs land in~/.vibe/logs/vibe.log. - Pass variables as
%spositional args, not f-string interpolation: preferlogger.error("Failed to fetch url=%s", url)overlogger.error(f"Failed to fetch {url}"). This defers formatting to the logging framework (only formats if the message is emitted) and keeps messages grep-friendly. - Define module-local exception hierarchies. Always chain with
raise NewError(...) from e. Rich exceptions expose a_fmt()helper for human-readable output.
File I/O
- Prefer
vibe.core.utils.io.read_safe/read_safe_async/decode_safeover rawPath.read_text(),Path.read_bytes().decode(), oropen(). - They return
ReadSafeResult(text, encoding)and try UTF-8, then BOM detection, then locale, thencharset_normalizerlazily. - Pass
raise_on_error=Trueonly when callers must distinguish corrupt files from valid ones; the default replaces undecodable bytes with U+FFFD.
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.

