vibe-cross-platform
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.
- License 许可
- Apache-2.0
- 最近更新
- 2026-08-23
- Stars
- ★ 0
- Forks
- 0
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 undercmd.exe, Git Bash,zsh, andsh. - Branch platform-specific logic behind the helpers in
vibe.core.utils.platform(is_windows(),resolve_windows_shell()), not ad-hocsys.platformchecks. Keep POSIX-only assumptions (forward slashes, POSIXshlexescaping,$SHELL) out of shared paths and scope Windows-only handling tois_windows(). - Use
pathlib.Pathfor path composition; never hardcode/or\\.
Terminal data
- Treat terminal and PTY data as arbitrarily chunked streams: normalize CRLF before interpreting lone
\ras 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 likeshutil.which— do not@pytest.mark.skipifthem 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
prompts
暂无简介
write-vibe-tests
Write or refactor Mistral Vibe tests with proper decoupling. Use when adding behavior coverage, testing ports/adapters, replacing brittle mocks, creating fakes, adding characterization tests before refactors, or changing tests under tests/ for vibe/core, vibe/cli, vibe/acp, tools, config, sessions, skills, hooks, MCP, or setup.
write-vibe-adr
Create or update Architecture Decision Records for the Mistral Vibe Python CLI. Use when a design discussion creates a new architectural constraint, when an undocumented convention causes confusion or review feedback, or when architecture guidance in docs/adr or AGENTS.md must be changed.
instrument-feature-analytics
Plan analytics instrumentation for a feature. Use when implementing any feature — every feature must ship with telemetry. Decides which events and properties the metrics need (funnels, adoption, status flows), checks compatibility with the existing datalake and event registry, and walks through local, staging, and production verification.
create-vibe-feature
Add or modify a feature in the Mistral Vibe Python CLI while following the app architecture ADRs. Use when working in vibe/core, vibe/cli, vibe/acp, vibe/setup, built-in tools, config, sessions, skills, hooks, MCP, connectors, or other Vibe feature code.
vibe-textual-ui
Textual TUI widget and TCSS conventions for Mistral Vibe. Use when building or styling Textual widgets, writing TCSS rules, working with selectable lists, tool headers, theme variables, or UI component layout.