create-plugin
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCreate Plugin
创建插件
Scaffold a new Claude Code plugin from scratch.
从头开始搭建一个全新的Claude Code插件。
When to use
使用场景
When you want to create a new plugin that extends Claude Code with skills, commands, and agents. This generates the correct directory structure and wires up MCP tools.
当你想要创建一个新插件来扩展Claude Code的技能、命令和Agent时使用。此工具会生成正确的目录结构并对接MCP工具。
Steps
步骤
- Get plugin name and description from the user
- Check for conflicts — call to ensure the name isn't taken
mcp__claude-flow__transfer_plugin-search - Create directory structure:
plugins/<name>/ ├── .claude-plugin/ │ └── plugin.json ├── skills/ │ └── <skill-name>/ │ └── SKILL.md ├── commands/ │ └── <command-name>.md ├── agents/ │ └── <agent-name>.md └── README.md - Generate plugin.json with name, description, version, author (do NOT include ,
skills, orcommandsarrays — Claude Code auto-discovers these from directory structure)agents - Generate SKILL.md files with proper frontmatter:
yaml
--- name: skill-name description: What this skill does allowed-tools: mcp__claude-flow__tool1 mcp__claude-flow__tool2 Bash --- - Generate command files with name and description frontmatter
- Generate agent files with name, description, and
model: sonnet - Generate README.md with install instructions, features, commands, and skills
- Update marketplace.json if adding to the ruflo marketplace
- 从用户处获取插件名称和描述
- 检查冲突 — 调用确保名称未被占用
mcp__claude-flow__transfer_plugin-search - 创建目录结构:
plugins/<name>/ ├── .claude-plugin/ │ └── plugin.json ├── skills/ │ └── <skill-name>/ │ └── SKILL.md ├── commands/ │ └── <command-name>.md ├── agents/ │ └── <agent-name>.md └── README.md - 生成plugin.json,包含名称、描述、版本、作者(请勿包含、
skills或commands数组——Claude Code会从目录结构中自动发现这些内容)agents - 生成SKILL.md文件,包含正确的前置元数据:
yaml
--- name: skill-name description: What this skill does allowed-tools: mcp__claude-flow__tool1 mcp__claude-flow__tool2 Bash --- - 生成命令文件,包含名称和描述前置元数据
- 生成Agent文件,包含名称、描述和
model: sonnet - 生成README.md,包含安装说明、功能介绍、命令和技能列表
- 若要添加到ruflo市场,更新marketplace.json
Plugin.json schema
plugin.json Schema
Required fields:
- — plugin identifier (kebab-case)
name - — what the plugin does
description - — semver
version
Recommended fields:
- —
author{ "name": "...", "url": "..." } - ,
homepage,licensekeywords
Do NOT include , , or arrays in plugin.json — these are auto-discovered from the directory structure by Claude Code and will cause validation errors if present.
skillscommandsagents必填字段:
- — 插件标识符(短横线命名法)
name - — 插件功能说明
description - — 语义化版本号
version
推荐字段:
- —
author{ "name": "...", "url": "..." } - ,
homepage,licensekeywords
请勿包含 、或数组在plugin.json中——Claude Code会从目录结构中自动发现这些内容,若手动添加会导致验证错误。
skillscommandsagentsAvailable MCP tools to wire
可对接的MCP工具
Browse available tools:
mcp__claude-flow__transfer_plugin-infoCommon tool categories:
- — storage, search, retrieval
memory_* - — 19 AgentDB controllers
agentdb_* - — neural training and prediction
neural_* - — lifecycle hooks and intelligence
hooks_* - — browser automation
browser_* - — workflow management
workflow_* - — safety scanning
aidefence_* - — vector embeddings
embeddings_*
浏览可用工具:
mcp__claude-flow__transfer_plugin-info常见工具类别:
- — 存储、搜索、检索
memory_* - — 19个AgentDB控制器
agentdb_* - — 神经网络训练与预测
neural_* - — 生命周期钩子与智能逻辑
hooks_* - — 浏览器自动化
browser_* - — 工作流管理
workflow_* - — 安全扫描
aidefence_* - — 向量嵌入
embeddings_*