write-vibe-tests

write-vibe-tests is a skill for Claude Code, Codex from mistralai/mistral-vibe. It costs 80 tokens per session (1,011 once invoked), scanned A, original, Apache-2.0.

Testing guidance for Mistral Vibe that focuses on checking observable behavior through stable interfaces. It recommends fakes—small in-memory test implementations—instead of brittle mocks that depend on internal call details.

In plain words
What is it for?
Use it when adding or refactoring tests for Vibe core services, tools, configuration, sessions, CLI widgets, ACP protocol behavior, skills, hooks, or MCP integrations.
Why use it?
Tests tied to private code or exact call sequences often break during harmless refactoring. This approach keeps tests focused on behavior users can observe.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: $skill-name invocation.

Good fit Use it when adding or refactoring tests for Vibe core services, tools, configuration, sessions, CLI widgets, ACP protocol behavior, skills, hooks, or MCP integrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mistralai/mistral-vibe/write-vibe-tests
About the project

Mistral Vibe is a command-line coding assistant that lets users converse with a codebase and use natural language to explore or change projects. Developers use it for file editing, code searching, version-control tasks, and shell commands through Mistral’s models. Its catalogue add-ons provide skills and instructions for customizing the assistant’s workflows.

mistralai/mistral-vibe · 4,927 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mistralai/mistral-vibe --skill write-vibe-tests
Clone the repo
git clone --depth 1 https://github.com/mistralai/mistral-vibe

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for write-vibe-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/mistralai/mistral-vibe/write-vibe-tests/github.svg)](https://agentmods.dev/skills/mistralai/mistral-vibe/write-vibe-tests)
Your own site
<a href="https://agentmods.dev/skills/mistralai/mistral-vibe/write-vibe-tests"><img src="https://agentmods.dev/badge/skills/mistralai/mistral-vibe/write-vibe-tests/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for write-vibe-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/mistralai/mistral-vibe/write-vibe-tests"><img src="https://agentmods.dev/badge/skills/mistralai/mistral-vibe/write-vibe-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,011 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00080 $0.01011
Opus 5 $0.00040 $0.00505
Sonnet 5 $0.00016 $0.00202
Haiku 4.5 $0.00008 $0.00101

Measured 10d ago against content hash f6f79232a1ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

write-vibe-tests scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.vibe/skills/write-vibe-tests/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Write Vibe Tests

Use this skill to make Vibe architecture testable, not just well-shaped. Tests should protect observable behavior while allowing internals to move.

Core Principle

Test behavior through stable boundaries. Do not couple tests to private methods, internal call choreography, or temporary structure.

If a refactor changes no observable behavior but breaks many tests, the tests are probably coupled to implementation details.

Vibe Test Boundaries

Code area Preferred test boundary
Core use cases and services Public function/class API, typed events, model outputs, persisted state
Tools BaseTool.invoke/run, typed args/results, permission behavior, user-facing errors
LLM/backend orchestration AgentLoop events and fake backend outputs
Config Pydantic model validation, layer merge outputs, migration results
Sessions Saved JSONL/metadata shape, resume/loader behavior, migration behavior
CLI widgets Textual snapshots, posted messages, rendered user-visible state
ACP ACP session updates and protocol-facing content, not core internals

Prefer Fakes Over Mocks

Prefer in-memory implementations and fake adapters that implement real contracts.

  • Put reusable test doubles in tests/stubs/ and name them Fake*.
  • Make fakes small and behavior-oriented.
  • Mock only at hard process, network, time, or third-party boundaries when a fake would be more complex than the behavior under test.
  • Avoid assertions like "method X was called with Y" unless the call itself is the observable contract.

Legacy Or Refactor Workflow

When code is hard to test:

  1. Find the smallest seam: function boundary, constructor dependency, protocol/port, wrapper, composition root, feature flag, or module boundary.
  2. Add characterization tests through the nearest public entry point.
  3. Capture current observable behavior, even if awkward.
  4. Refactor behind the seam in small steps.
  5. Replace broad characterization checks with clearer behavior/spec tests as the design improves.

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 91 lines · 80 tokens per session scan A f6f79232a1ba

Subscribe to this mod's changes

write-vibe-tests is a skill published in the GitHub repository mistralai/mistral-vibe (4,927 stars, last pushed 6d ago), licensed Apache-2.0. It adds 80 tokens to every session and 1,011 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.