AGENT SKILL

Vibe 跨平台开发规范

vibe-cross-platform

Mistral Vibe 的跨平台开发规则。用于编写平台特定逻辑、处理文件路径、Windows 支持、shell 兼容性、终端数据流或跨操作系统测试策略。

使用场景开发参考
License 许可
Apache-2.0
最近更新
2026-11-11
Stars
★ 5.4k
Forks
796

01 前言 Front Matter

name
vibe-cross-platform
metadata
{ "display-name": "Vibe Cross-Platform", "default-prompt": "Use $vibe-cross-platform to ensure code and tests work across Linux, macOS, and Windows.", "short-description": "Cross-platform rules and testing for Vibe" }
description
Cross-platform development rules for Mistral Vibe. Use when writing platform-specific logic, handling paths, Windows support, shell compatibility, terminal data streams, or cross-OS testing strategies.

03 SKILL.md 正文

Vibe Cross-Platform

Vibe ships on Linux, macOS, and Windows, but CI runs the test suite on Linux only. The machine you develop on is not the machine that gates the PR — code and tests must pass on every platform, and must be provably correct on the platforms CI cannot exercise.

Code rules

  • Never rely on host-specific behavior (shell, path separator, line ending, available binaries, $SHELL, case sensitivity). Assume the same code runs under cmd.exe, Git Bash, zsh, and sh.
  • Branch platform-specific logic behind the helpers in vibe.core.utils.platform (is_windows(), resolve_windows_shell()), not ad-hoc sys.platform checks. Keep POSIX-only assumptions (forward slashes, POSIX shlex escaping, $SHELL) out of shared paths and scope Windows-only handling to is_windows().
  • Use pathlib.Path for path composition; never hardcode / or \\.

Terminal data

  • Treat terminal and PTY data as arbitrarily chunked streams: normalize CRLF before interpreting lone \r as an in-place redraw, buffer incomplete control sequences until their terminator arrives, and add Linux-runnable regression tests covering CRLF plus every split boundary of representative control sequences.

Testing

  • Test other-platform code paths on Linux by monkeypatching sys.platform, env vars, and probes like shutil.which — do not @pytest.mark.skipif them away. A Windows-only behavior with no Linux-runnable test is untested in CI.
  • When an assertion depends on the platform, force it explicitly (e.g. monkeypatch.setattr(module, "is_windows", lambda: True)) instead of letting the test pass only because of the host it happened to run on. A test that would flip its result on a different OS is a bug.

04 同仓库更多 Skills

mistralai
mistralai/mistral-vibe

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.

★ 5.4k
mistralai
mistralai/mistral-vibe

Git 工作树管理

worktree

在 $VIBE_HOME/worktrees 下创建、复用和清理 git worktrees。当用户想要在隔离的 git worktree 中工作、为某个任务创建 worktree,或列出/删除现有 worktrees 时使用。

软件开发工程师代码仓库协作管理
★ 5.4k
mistralai
mistralai/mistral-vibe

Vibe CLI 权威参考

vibe

Mistral Vibe 的权威参考——你(模型)正运行于其中的 CLI agent。 在以下情况加载本技能: - 用户询问任何关于 Vibe 本身的问题,即使是间接称呼(“这个 CLI”“这个工具”“你”); - 想要更改、检查或重置其设置; - 询问 agent 为何采取或未采取某行动; - 询问如何让 CLI 做 X、X 位于何处,或某个 flag/command/setting 的作用; - 询问关于你自身行为的任何元问题; - 不确定某个命令、flag、环境变量或文件是否在范围内——本技能即为权威来源。 范围:`~/.vibe/` 下的配置及项目本地的 `.vibe/`;`VIBE_*` 和 `LOG_*` 环境变量;模型与提供者;agents 与 subagents;skills;工具及其权限模型;所有斜杠命令和 CLI flag;hooks;MCP servers;connectors;plugins;受信任文件夹;`@` 文件引用;日志;主题;语音。

AI 工程师开发环境与工具链管理
★ 5.4k
mistralai
mistralai/mistral-vibe

Vibe 技能创建与管理

skill-creator

在创建、更新或删除 Vibe 技能之前,或当你计划添加或修改 skills 目录下的 SKILL.md 文件时,加载本技能。它讲解 Vibe 的 SKILL.md frontmatter、发现顺序、支持文件以及权限流程。

AI 工程师插件与技能管理
★ 5.4k
mistralai
mistralai/mistral-vibe

Vibe 插件创建

create-plugin

创建 Vibe 插件包——采用 Agent Plugins 1.0 格式,并可选地包含针对 skills、MCP servers、hooks、knowledge、agents、libraries 和 connectors 的 Vibe 扩展。当用户想要为 Mistral Vibe 创建、搭建或编写插件时使用。

AI 工程师插件与技能管理
★ 5.4k
mistralai
mistralai/mistral-vibe

提示词

prompts

暂无简介

AI 工程师提示词工程与优化
★ 5.4k