跳到正文
Skillpedia
智能体5.3k · #15008

create-plugin

它能做什么

它说明如何创建 Vibe 插件文件夹,其中包括 plugin.json 清单,以及可选的技能、MCP 服务器和钩子。它适用于希望打包自己 Vibe 扩展的人。

适用场景

  • ✓当你想为 Mistral Vibe 创建新插件时。
  • ✓当你想为 Vibe 插件设置文件夹结构时。
  • ✓当你想为正在编写的插件添加技能或 MCP 服务器时。

技能链接

https://github.com/mistralai/mistral-vibe/blob/main/vibe/plugins/builtins/vibe/skills/create-plugin/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mistralai/mistral-vibe/blob/main/vibe/plugins/builtins/vibe/skills/create-plugin/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我创建一个 Vibe 插件,把我的自定义技能和一个 MCP 服务器打包在一起。”

每周 5 个新技能,1 分钟读完。

工作原理

技能说明了必需的清单文件,以及插件可以包含的文件夹。随后你的智能体会在正确的位置构建插件包。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Create a Vibe Plugin

A plugin is a directory containing a plugin.json manifest (Agent Plugins 1.0 schema) plus optional component directories and config files. Vibe discovers plugins under .vibe/plugins/ (project scope, requires trusted folder) and ~/.vibe/plugins/ (user global).

Plugin discovery locations

Scope Path When
Project <project>/.vibe/plugins/<name>/ trusted folder only
User global ~/.vibe/plugins/<name>/ always

Each subdirectory under a plugins root is one plugin package. The first match wins: project plugins take precedence over user plugins with the same name.

Plugin directory structure

my-plugin/
  plugin.json                 # required — Agent Plugins 1.0 manifest
  mcp.json                    # optional — MCP server definitions
  libraries.json              # optional — Node/Python library dependencies
  connectors.json             # optional — managed connector requirements
  skills/                     # optional — one subdirectory per skill
    my-skill/
      SKILL.md
  ai.mistral.vibe/            # optional — Vibe-specific extensions
    hooks.toml                # Vibe extension only
    knowledge/                # one subdirectory per knowledge folder
      topic-name/
        KNOWLEDGE.md
    agents/                   # one .toml per subagent
      researcher.toml
    INSTRUCTIONS.md           # optional plugin-wide instructions (not loaded)

Step 1 — plugin.json (required)

The manifest is a JSON file with $schema and name as required fields.

{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "my-plugin",
  "version": "1.0.0",
  "description": "What this plugin provides.",
  "author": {
    "name": "Author Name",
    "email": "author@example.com",
    "url": "https://example.com"
  },
  "homepage": "https://example.com/my-plugin",
  "repository": "https://github.com/example/my-plugin",
  "license": "MIT",
  "keywords": ["productivity", "finance"],
  "extensions": {}
}

Rules:

  • name must match ^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$ (1-64 chars), no -- or ...
  • $schema must be exactly https://agent-plugins.org/schemas/1.0.0/plugin.schema.json. Any other schema URL produces a fatal plugin.schema.version_unsupported error.
  • All fields other than those listed above are rejected (extra="forbid").

Step 2 — Vibe extension (optional)

To use Vibe-specific components (hooks, knowledge, agents, libraries, connectors), add an ai.mistral.vibe extension to plugin.json:

{
  "extensions": {
    "ai.mistral.vibe": {
      "schemaVersion": 1,
      "displayName": "My Plugin",
      "toolNamespace": "myPlugin",
      "toolOverrides": {
        "lookup": {
          "name": "search",
          "exposure": "direct_and_programmatic"
        }
      }
    }
  }
}

Without this extension, Vibe only loads plugin.json, skills/, and mcp.json. The toolNamespace defaults to a TypeScript identifier derived from the plugin name. It must not be one of the reserved namespaces: file_system, self, process, skill, subagent, vibe.

vibe is reserved for built-in plugins shipped with the CLI; user plugins must choose a different namespace.

displayName is an optional title of 1 to 100 characters; the plugin name stays its identity.

toolOverrides rename or restrict tool exposure. Each key matches a discovered tool name from MCP servers or connectors. exposure is one of programmatic, direct, or direct_and_programmatic.

Step 3 — Skills (optional)

Place skills under skills/ — one subdirectory per skill, each containing a SKILL.md. The skill name in SKILL.md frontmatter must match the directory name.

skills/
  format-reports/
    SKILL.md

Skills follow the standard SKILL.md format with YAML frontmatter (name, description, user-invocable, allowed-tools). Plugin skills are namespaced as <namespace>:<skill-name> at runtime.

Step 4 — MCP servers (optional)

Define MCP servers in mcp.json. Three transport types are supported:

{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
  "mcpServers": {
    "lookup": {
      "type": "stdio",
      "command": "node",
      "args": ["${PLUGIN_ROOT}/server/index.js"],
      "env": {
        "DEBUG": "true"
      },
      "cwd": "."
    },
    "remote-api": {
      "type": "streamable-http",
      "url": "https://api.example.com/mcp",
常见问题

Vibe 在哪里查找插件?

Vibe 会检查项目文件夹下 .vibe/plugins 中的受信任文件夹,以及用户文件夹 ~/.vibe/plugins。名称相同时,项目插件优先。

插件需要特殊的清单吗?

需要。必须有 plugin.json 文件,并遵循 Agent Plugins 1.0 格式。

一个插件可以包含多种部件吗?

可以。一个插件可以在同一个包中包含技能、MCP 服务器定义、钩子、知识文件夹和智能体。

详情

作者的原始描述

Create a Vibe plugin package — the Agent Plugins 1.0 format with optional Vibe extensions for skills, MCP servers, hooks, knowledge, agents, libraries, and connectors. Use when the user wants to create, scaffold, or author a plugin for Mistral Vibe.

repo: mistralai/mistral-vibe

热度

GitHub 星标
5.3k
排名
#15008
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能