write-vibe-tests

write-vibe-tests is a skill for Claude Code, Codex from mistralai/mistral-vibe. It costs 80 tokens per session (1,146 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: mentions AGENTS.md; $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 · 5,199 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,146 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.01146
Opus 5.5 $0.00032 $0.00458
Sonnet 5.5 $0.00016 $0.00229
Haiku 4.5 $0.00008 $0.00115

Measured 6d ago against content hash 8a0453dd43c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 6d 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 · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 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 Owning app-server capability contract, typed invocation/results, permissions and user-facing errors; BaseTool.invoke/run for retained BaseTool implementations
LLM/backend orchestration Native Unified Runtime through serialized app-server RPCs, with deterministic fake completion/discovery services
Config Pydantic model validation, layer merge outputs, migration results
Sessions Runtime session operations, durability/recovery and app-server projections; JSONL/metadata only for the supported read-only historical importer
Terminal UI (vibe/cli-rust) Rust unit tests for pure logic, client-e2e scenarios and goldens for rendering and interaction (see vibe/cli-rust/AGENTS.md)
Onboarding wizard (vibe-acp --setup) Textual snapshots, 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

Read the full file on GitHub · 93 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. 6d ago Changed · +1 lines 8a0453dd43c4
  2. 16d ago Changed · +1 lines e67dce1943ab
  3. 1mo 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 (5,199 stars, last pushed 3d ago), licensed Apache-2.0. It adds 80 tokens to every session and 1,146 once invoked, about $0.0003 per session on Opus 5.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.

Related

Other skills, from other repositories

composing-matchers

Build compound Gomega assertions by combining matchers — And/SatisfyAll (all pass), Or/SatisfyAny (any pass), Not (negate), WithTransform to map the actual before matching, Satisfy for an ad-hoc predicate, HaveValue to dereference pointers/interfaces, HaveField for struct fields and method results, HaveEach for every…

onsi/gomega · 136 tokens

principle-test-behavior-not-implementation

Apply when you write, change, or keep a test. Assert what the code's users can observe, so that the test fails when that behavior breaks and keeps passing when only the internals change.

michael-denyer/pstack-claude · 50 tokens

spec-driven-tests

Rebuild a package's unit test suite around a behavior specification (SPEC.md) derived from the implementation, with every test citing a numbered rule ID. Use when asked to do a spec-driven test rebuild, write a SPEC.md for a package, repeat the state or store spec process (PRs.

tldraw/tldraw · 63 tokens

JavaScript Testing Patterns

Modern JavaScript testing strategies with Jest, Mocha, and testing best practices covering unit testing, integration testing, mocking, async patterns, and DOM testing.

PramodDutta/qaskills · 36 tokens

JUnit 5 Testing

Production-grade Java unit and integration testing with JUnit 5 covering assertions, parameterized tests, lifecycle hooks, Mockito mocking, nested tests, and extensions.

PramodDutta/qaskills · 36 tokens

maestro-work

The contract every playbook shares - the brief a writer receives, the rules it writes by, the handback it returns, and the store record the holder keeps. Reuse existing checks and add tests only for concrete uncovered behavior or risk.

ReinaMacCredy/maestro · 52 tokens