Vibe 技能创建与管理
skill-creator
在创建、更新或删除 Vibe 技能之前,或当你计划添加或修改 skills 目录下的 SKILL.md 文件时,加载本技能。它讲解 Vibe 的 SKILL.md frontmatter、发现顺序、支持文件以及权限流程。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-11
- Stars
- ★ 5.4k
- Forks
- 796
01 前言 Front Matter
- name
- skill-creator
- description
- 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.
03 SKILL.md 正文
Skill Creator
Use this when the user asks you to create, update, or delete a Vibe skill.
Gathering requirements
When creating a new skill, ask the user for the details you are missing. Ask one question at a time and wait for the answer before asking the next. Never send multiple questions in a single message — it is bewildering. Gather, in order:
- Name — a slug (lowercase, hyphens), e.g.
run-migrationsorformat-changelog. - Purpose / description — when should this skill load? This is the routing text the model sees.
- Instructions — what should the skill actually tell the model to do? Steps, conventions, commands, gotchas.
Skip any question the user has already answered. Once you have all three, confirm the scope (project vs global) if it is not obvious, then write the skill.
What a skill is
A skill is a directory containing a SKILL.md file with YAML frontmatter plus
Markdown instructions. The model loads it on demand via the skill tool; a
user-invocable skill is also reachable by typing /skill-name. The description
is always visible for routing — the body is loaded only after the skill is
selected.
Where skills live (discovery order, first match wins)
skill_pathsentries fromconfig.toml.vibe/skills/— project scope (requires a trusted folder).agents/skills/— project scope (requires a trusted folder)~/.vibe/skills/— user global~/.agents/skills/— user global
Precedence: built-in skills are named vibe:<name>, so a skill you write never
collides with one and keeps its own name. Among the paths above, the first
directory to define a given name wins; later duplicates are skipped. Built-in
skills are read-only. Registry skills are materialized under VIBE_HOME and
should not be hand-edited.
With experimental_enable_registry_skills, the nearest scope wins instead: the
project's skills, files then registry pins, come before global ones, files then
pins.
Choose the scope before writing: use .vibe/skills/<name>/ for a skill scoped
to this project, or ~/.vibe/skills/<name>/ for one available everywhere. Ask
the user which they want when it is not obvious, and write to the directory that
matches the chosen scope.
SKILL.md format
---
name: my-skill
description: Load this skill when ...
---
# My Skill
Instructions go here.
Frontmatter fields:
name(required): lowercase letters, numbers, and hyphens only (^[a-z0-9]+(-[a-z0-9]+)*$), 1–64 chars. It should match the directory name (a mismatch only logs a warning; the skill still loads under the frontmatter name). Do not reuse a built-in skill name (e.g.vibe) or a name already taken by another skill — the collision is silently skipped and the skill will not load.description(required): 1–1024 chars. Say when to load the skill — this is the only text the model sees before selecting it.user-invocable(optional, defaulttrue): whenfalsethe skill is model-only — hidden from the/menu and not reachable via/skill-name.allowed-tools(optional, experimental): space-delimited list of pre-approved tools.license,compatibility,metadata(optional): metadata only.metadatais a flat string-to-string map (e.g.display-name,short-description).
Do not invent frontmatter keys. Fields from other products (e.g. visibility,
defaultEnabled) are not part of Vibe's schema and are ignored.
Support files
Keep SKILL.md focused on durable instructions. Add Markdown, plain text, CSV,
JSON, or YAML support files in the same directory only when they earn their
place. Reference them by path relative to the skill directory; the model reads
them with read_file on demand.
Create, update, delete
- Create: make
<skills-dir>/<slug>/SKILL.mdwith valid frontmatter, where<skills-dir>is the directory for the chosen scope (.vibe/skills/for project,~/.vibe/skills/for global). Add support files under the same directory only when useful. - Update: edit
SKILL.mdor support files in place withedit. Preserve useful existing guidance; keep the diff minimal. - Delete: remove the whole skill directory when asked to delete a skill. Do not
delete only
SKILL.md.
Applying changes
Writing under a skills directory goes through the normal write_file / edit
permission prompts — there is no separate proposal step. A running session
picks up the new or edited skill on its own; if it does not (sandboxed session,
or file_watcher_for_autocomplete off), tell the user to run /reload. Keep the final summary brief; do not paste full file contents unless
the user asks.
04 同仓库更多 Skills
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.
Git 工作树管理
worktree
在 $VIBE_HOME/worktrees 下创建、复用和清理 git worktrees。当用户想要在隔离的 git worktree 中工作、为某个任务创建 worktree,或列出/删除现有 worktrees 时使用。
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;受信任文件夹;`@` 文件引用;日志;主题;语音。
Vibe 插件创建
create-plugin
创建 Vibe 插件包——采用 Agent Plugins 1.0 格式,并可选地包含针对 skills、MCP servers、hooks、knowledge、agents、libraries 和 connectors 的 Vibe 扩展。当用户想要为 Mistral Vibe 创建、搭建或编写插件时使用。
提示词
prompts
暂无简介
Vibe 测试编写与重构
write-vibe-tests
以适当的解耦方式编写或重构 Mistral Vibe 测试。当新增行为覆盖、测试端口/适配器、替换脆弱的 mock、创建 fake、在重构前添加特征化测试,或更改 tests/ 下涉及 vibe/core、vibe/app_server、vibe/acp、tools、config、sessions、skills、hooks、MCP 或 setup 的测试时使用。