[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C45HEE65W48Q8R2PNF8RBV":3,"skill-same:01M6C45HEE65W48Q8R2PNF8RBV":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":28,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":63,"repositoryHtmlUrl":64,"repositoryHomepageUrl":6,"ownerHtmlUrl":65,"ownerBlogUrl":66,"ownerDescription":12,"updatedAt":67,"install":68,"resources":81},"01M6C45HEE65W48Q8R2PNF8RBV","vibe-python-style",null,"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\u002FO.","mistralai\u002Fmistral-vibe","mistralai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F132372032?v=4","01M6C456ET86MBBTS4RMX0NDRS","Mistral","01M6C456K44X5W8TJX4T023KRV",5370,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmistralai\u002Fmistral-vibe\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvibe-python-style\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,12,50],"python","style","vibe","vibe python style","type","when","python conventions","imports","coding conventions","for","python code","reviewing code","error","writing","logging","code","error handling","use","coding","refactoring","Pydantic","file","2026-11-10 10:12:30",false,"---\nname: vibe-python-style\ndescription: 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\u002FO.\nmetadata:\n  display-name: Vibe Python Style\n  short-description: Python style and patterns for Vibe\n  default-prompt: Use $vibe-python-style to follow Vibe Python conventions when writing or reviewing code.\n---\n\n# Vibe Python Style\n\nConventions for writing Python in the Vibe codebase. Apply whenever writing, reviewing, or refactoring Python code.\n\n## Style\n\n- Prefer `match` \u002F `case` over long `if` \u002F `elif` chains.\n- Use the walrus operator `:=` only when it shortens code and improves clarity.\n- Be a never-nester: early returns and guard clauses over nested blocks.\n- Modern type hints only: built-in generics (`list`, `dict`) and `|` unions. Never import `Optional`, `Union`, `Dict`, `List` from `typing`.\n- Use `pathlib.Path` (and `anyio.Path` in async paths) instead of `os.path`.\n- Use f-strings, comprehensions, and context managers; follow PEP 8.\n- Enums: `StrEnum` \u002F `IntEnum` with `auto()` and UPPERCASE members. For type-mixing, the mix-in type comes before `Enum` in the bases. Add methods or `@property` rather than parallel lookup tables.\n- Write declarative, minimalist code: express intent, drop boilerplate.\n- Never call a private method from outside of its class in production code. Accessing private methods in tests is acceptable.\n- Avoid comments and docstrings, except for when there's a hard to spot corner case\n\n## Typing & imports\n\n- Pyright is strict and gates CI; fix types at the source.\n- No relative imports — `ban-relative-imports = \"all\"`. Always `from vibe.core.x import …`.\n- No inline `# type: ignore` or `# noqa`. Fix with refined signatures (TypeVar, Protocol), `isinstance` guards, `typing.cast` when control flow guarantees the type, or a small typed wrapper at the boundary.\n\n### `TYPE_CHECKING` and lazy imports\n\nMoving imports under `if TYPE_CHECKING:` or into function bodies cuts startup time but risks runtime `NameError`. Before merging any import-deferral change, run:\n\n- **Ruff `TC004`** (pre-commit hook) — per-file: flags `TYPE_CHECKING`-only names referenced at runtime.\n- **`uv run python scripts\u002Fcheck_import_contracts.py`** — runtime cross-file: imports every `from \u003Cmod> import \u003Cname>` across `vibe\u002F` and `tests\u002F` to verify it resolves; also rebuilds Pydantic models to catch lazily-failing field types. Catches cross-file re-exports `TC004` misses. Missing non-vibe deps are non-blocking warnings.\n- **`uv run scripts\u002Fsuggest_lazy_imports.py`** — informational: reports deferral candidates (`TC001`–`TC003` + single-function heuristic). Not gated.\n\n## Pydantic\n\n- Parse external data via `model_validate`, `field_validator`, or `model_validator(mode=\"before\")` — never ad-hoc `getattr` \u002F `hasattr` walks or custom `from_sdk` constructors.\n- Set `ConfigDict(extra=…)` explicitly. Use `validation_alias` (or field aliases) for kebab-case TOML keys.\n- Discriminated unions (e.g. MCP `transport`): use sibling final classes plus a shared base\u002Fmixin, and compose with `Annotated[Union[...], Field(discriminator=...)]`. Never narrow the discriminator field in a subclass — it violates LSP and pyright will reject it.\n- Document `Raises:` only for exceptions the function actually raises (or that propagate from public API calls). Don't list speculative built-ins.\n\n## Logging & errors\n\n- Use `from vibe.observability.logging import logger` — stdlib `logging` with `StructuredLogFormatter`, not `structlog`.\n- Configure via env: `LOG_LEVEL` (default `WARNING`), `LOG_MAX_BYTES`. Logs land in `~\u002F.vibe\u002Flogs\u002Fvibe.log`.\n- Pass variables as `%s` positional args, not f-string interpolation: prefer `logger.error(\"Failed to fetch url=%s\", url)` over `logger.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.\n- Define module-local exception hierarchies. Always chain with `raise NewError(...) from e`. Rich exceptions expose a `_fmt()` helper for human-readable output.\n\n## File I\u002FO\n\n- Prefer `vibe.core.utils.io.read_safe` \u002F `read_safe_async` \u002F `decode_safe` over raw `Path.read_text()`, `Path.read_bytes().decode()`, or `open()`.\n- They return `ReadSafeResult(text, encoding)` and try UTF-8, then BOM detection, then locale, then `charset_normalizer` lazily.\n- Pass `raise_on_error=True` only when callers must distinguish corrupt files from valid ones; the default replaces undecodable bytes with U+FFFD.\n","# Vibe Python Style\n\nConventions for writing Python in the Vibe codebase. Apply whenever writing, reviewing, or refactoring Python code.\n\n## Style\n\n- Prefer `match` \u002F `case` over long `if` \u002F `elif` chains.\n- Use the walrus operator `:=` only when it shortens code and improves clarity.\n- Be a never-nester: early returns and guard clauses over nested blocks.\n- Modern type hints only: built-in generics (`list`, `dict`) and `|` unions. Never import `Optional`, `Union`, `Dict`, `List` from `typing`.\n- Use `pathlib.Path` (and `anyio.Path` in async paths) instead of `os.path`.\n- Use f-strings, comprehensions, and context managers; follow PEP 8.\n- Enums: `StrEnum` \u002F `IntEnum` with `auto()` and UPPERCASE members. For type-mixing, the mix-in type comes before `Enum` in the bases. Add methods or `@property` rather than parallel lookup tables.\n- Write declarative, minimalist code: express intent, drop boilerplate.\n- Never call a private method from outside of its class in production code. Accessing private methods in tests is acceptable.\n- Avoid comments and docstrings, except for when there's a hard to spot corner case\n\n## Typing & imports\n\n- Pyright is strict and gates CI; fix types at the source.\n- No relative imports — `ban-relative-imports = \"all\"`. Always `from vibe.core.x import …`.\n- No inline `# type: ignore` or `# noqa`. Fix with refined signatures (TypeVar, Protocol), `isinstance` guards, `typing.cast` when control flow guarantees the type, or a small typed wrapper at the boundary.\n\n### `TYPE_CHECKING` and lazy imports\n\nMoving imports under `if TYPE_CHECKING:` or into function bodies cuts startup time but risks runtime `NameError`. Before merging any import-deferral change, run:\n\n- **Ruff `TC004`** (pre-commit hook) — per-file: flags `TYPE_CHECKING`-only names referenced at runtime.\n- **`uv run python scripts\u002Fcheck_import_contracts.py`** — runtime cross-file: imports every `from \u003Cmod> import \u003Cname>` across `vibe\u002F` and `tests\u002F` to verify it resolves; also rebuilds Pydantic models to catch lazily-failing field types. Catches cross-file re-exports `TC004` misses. Missing non-vibe deps are non-blocking warnings.\n- **`uv run scripts\u002Fsuggest_lazy_imports.py`** — informational: reports deferral candidates (`TC001`–`TC003` + single-function heuristic). Not gated.\n\n## Pydantic\n\n- Parse external data via `model_validate`, `field_validator`, or `model_validator(mode=\"before\")` — never ad-hoc `getattr` \u002F `hasattr` walks or custom `from_sdk` constructors.\n- Set `ConfigDict(extra=…)` explicitly. Use `validation_alias` (or field aliases) for kebab-case TOML keys.\n- Discriminated unions (e.g. MCP `transport`): use sibling final classes plus a shared base\u002Fmixin, and compose with `Annotated[Union[...], Field(discriminator=...)]`. Never narrow the discriminator field in a subclass — it violates LSP and pyright will reject it.\n- Document `Raises:` only for exceptions the function actually raises (or that propagate from public API calls). Don't list speculative built-ins.\n\n## Logging & errors\n\n- Use `from vibe.observability.logging import logger` — stdlib `logging` with `StructuredLogFormatter`, not `structlog`.\n- Configure via env: `LOG_LEVEL` (default `WARNING`), `LOG_MAX_BYTES`. Logs land in `~\u002F.vibe\u002Flogs\u002Fvibe.log`.\n- Pass variables as `%s` positional args, not f-string interpolation: prefer `logger.error(\"Failed to fetch url=%s\", url)` over `logger.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.\n- Define module-local exception hierarchies. Always chain with `raise NewError(...) from e`. Rich exceptions expose a `_fmt()` helper for human-readable output.\n\n## File I\u002FO\n\n- Prefer `vibe.core.utils.io.read_safe` \u002F `read_safe_async` \u002F `decode_safe` over raw `Path.read_text()`, `Path.read_bytes().decode()`, or `open()`.\n- They return `ReadSafeResult(text, encoding)` and try UTF-8, then BOM detection, then locale, then `charset_normalizer` lazily.\n- Pass `raise_on_error=True` only when callers must distinguish corrupt files from valid ones; the default replaces undecodable bytes with U+FFFD.\n",{"name":5,"metadata":56,"description":7},{"display-name":57,"default-prompt":58,"short-description":59},"Vibe Python Style","Use $vibe-python-style to follow Vibe Python conventions when writing or reviewing code.","Python style and patterns for Vibe","main","338ad4bf0f73c4dd879d667cf7ab011555ae1751",".agents\u002Fskills\u002Fvibe-python-style",795,"https:\u002F\u002Fgithub.com\u002Fmistralai\u002Fmistral-vibe","https:\u002F\u002Fgithub.com\u002Fmistralai","mistral.ai","2026-11-11 00:56:57",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add mistralai\u002Fmistral-vibe --skill vibe-python-style",{"tool":74,"command":75},"bunx","bunx skills add mistralai\u002Fmistral-vibe --skill vibe-python-style",{"tool":77,"command":78},"pnpm","pnpm dlx skills add mistralai\u002Fmistral-vibe --skill vibe-python-style","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmistralai\u002Fmistral-vibe\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvibe-python-style\u002FSKILL.md",true,[],[83,109,131,155,175,195],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":92,"publishedAt":51},"01M71709JBNSMH1MJ71NRGRBFM","import","Import the user's setup from other coding CLIs (Claude Code, Codex, OpenCode) into Vibe — instructions, skills, subagents, commands, hooks, MCP servers, permissions, and plugins. Load when the user wants to switch to Vibe, import or reuse another CLI's configuration, or asks whether a file from another CLI works in Vibe.","https:\u002F\u002Fgithub.com\u002Fmistralai\u002Fmistral-vibe\u002Fblob\u002Fmain\u002Fvibe\u002Fplugins\u002Fbuiltins\u002Fvibe\u002Fskills\u002Fimport\u002FSKILL.md",[89],{"categoryNo":90,"categoryName":91,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[85,93,50,94,95,96,97,98,99,100,101,102,103,44,34,104,105,106,107,108],"setup","configuration","mcp servers","servers","plugins","commands","instructions","opencode","cli","codex","permissions","load","MCP","reuse","hooks","switch",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":51},"01M6C46D6AE5JDVJTFTXH9RZ5Q","worktree","Create, reuse, and clean up git worktrees under $VIBE_HOME\u002Fworktrees. Use when the user wants to work in an isolated git worktree, create a worktree for a task, or list\u002Fremove existing worktrees.","https:\u002F\u002Fgithub.com\u002Fmistralai\u002Fmistral-vibe\u002Fblob\u002Fmain\u002Fvibe\u002Fplugins\u002Fbuiltins\u002Fvibe\u002Fskills\u002Fworktree\u002FSKILL.md",[],[111,116,117,38,118,119,120,121,122,46,123,124,125,126,127,128,129,34,130,106],"clean","worktrees","home","up","user","git worktrees","remove","git worktree","list","work","create","git","true","task","Existing",{"skillNo":132,"name":31,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":137,"publishedAt":51},"01M6C46A11K3H7D6F7ATSBRYKJ","Authoritative reference for Mistral Vibe — the CLI agent you (the model) are running inside.\n\nLOAD when the user:\n- asks anything about Vibe itself, even by indirect name (\"this CLI\", \"this tool\", \"you\");\n- wants to change, inspect, or reset their setup;\n- asks why the agent did or did not act;\n- asks how to make the CLI do X, where X lives, or what a flag\u002Fcommand\u002Fsetting does;\n- asks any meta question about your own behavior;\n- is unsure whether a command, flag, env var, or file is in scope — this skill is the source of truth.\n\nSCOPE: config under `~\u002F.vibe\u002F` and project-local `.vibe\u002F`; `VIBE_*` and `LOG_*` env vars; models and providers; agents and subagents; skills; tools and their permission model; every slash command and CLI flag; hooks; MCP servers; connectors; plugins; trusted folders; `@`-file mentions; logs; themes; voice.","https:\u002F\u002Fgithub.com\u002Fmistralai\u002Fmistral-vibe\u002Fblob\u002Fmain\u002Fvibe\u002Fplugins\u002Fbuiltins\u002Fvibe\u002Fskills\u002Fvibe\u002FSKILL.md",[136],{"categoryNo":90,"categoryName":91,"taxonomyType":21,"taxonomyTypeDesc":22},[31,138,139,38,140,141,142,143,144,145,146,147,148,149,150,151,152,105,153,154],"themes","you","do","act","log","Meta","inspect","project","subagents","config","why","how","command","change","logs","question","local",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":162,"publishedAt":51},"01M6C467E56WQ8PXEZT1Q0VP23","skill-creator","Load this skill before creating, updating, or deleting a Vibe skill, or whenever you plan to add or modify SKILL.md files under a skills directory. It explains Vibe's SKILL.md frontmatter, discovery order, support files, and the permission flow.","https:\u002F\u002Fgithub.com\u002Fmistralai\u002Fmistral-vibe\u002Fblob\u002Fmain\u002Fvibe\u002Fplugins\u002Fbuiltins\u002Fvibe\u002Fskills\u002Fskill-creator\u002FSKILL.md",[161],{"categoryNo":90,"categoryName":91,"taxonomyType":21,"taxonomyTypeDesc":22},[163,164,165,166,167,31,168,169,139,170,104,171,172,173,174],"creator","skill creator","plan","flow","support","add","it","frontmatter","files","permission","directory","discovery",{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":182,"publishedAt":51},"01M6C464DMPVA3RTXG0RGGZB3T","create-plugin","Create a Vibe plugin package — the Agent Plugins 1.0 format with optional Vibe extensions for skills, MCP servers, hooks, knowledge, agents, libraries, and connectors. Use when the user wants to create, scaffold, or author a plugin for Mistral Vibe.","https:\u002F\u002Fgithub.com\u002Fmistralai\u002Fmistral-vibe\u002Fblob\u002Fmain\u002Fvibe\u002Fplugins\u002Fbuiltins\u002Fvibe\u002Fskills\u002Fcreate-plugin\u002FSKILL.md",[181],{"categoryNo":90,"categoryName":91,"taxonomyType":21,"taxonomyTypeDesc":22},[126,183,184,120,96,185,186,187,34,188,38,189,190,12,46,191,105,95,192,97,107,193,194],"plugin","create plugin","with","extensions","author","agent plugins","connectors","scaffold","package","knowledge","format","libraries",{"skillNo":196,"name":197,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":198,"categories":199,"keywords":200,"publishedAt":51},"01M6C4620AT7K4999KR0YY86KH","prompts","https:\u002F\u002Fgithub.com\u002Fmistralai\u002Fmistral-vibe\u002Fblob\u002Fmain\u002Fvibe\u002Fcore\u002Ftools\u002Fbuiltins\u002Fprompts\u002Fskill.md",[],[197]]