Help us improve
Share bugs, ideas, or general feedback.
From software-release-downloader
创建和发布 Claude Code 插件到插件市场。当用户想创建插件、配置 marketplace.json、发布 MCP 服务器插件、或了解插件格式时使用。必须使用此技能处理任何 Claude Code 插件开发任务。
npx claudepluginhub lpx0312/myai-plugins --plugin wake-on-lanHow this skill is triggered — by the user, by Claude, or both
Slash command
/software-release-downloader:claude-plugin-creatorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Claude Code 插件可以包含 Skills(技能)和 MCP Servers(MCP 服务器)。本指南帮助你创建、配置和发布插件到插件市场。
Creates p5.js generative art with seeded randomness, noise fields, and interactive parameter exploration. Use for algorithmic art, flow fields, or particle systems.
Share bugs, ideas, or general feedback.
Claude Code 插件可以包含 Skills(技能)和 MCP Servers(MCP 服务器)。本指南帮助你创建、配置和发布插件到插件市场。
my-plugins/
├── .claude-plugin/
│ └── marketplace.json # 插件市场定义
├── skills/ # Skills 插件目录
│ ├── skill-a/
│ │ └── SKILL.md
│ └── skill-b/
│ └── SKILL.md
└── plugins/ # MCP 插件目录
└── mcp-server/
├── .claude-plugin/
│ └── plugin.json
└── config.json
Skills 插件用于定义 Claude 的行为和能力。
marketplace.json 配置:
{
"name": "my-skills",
"description": "我的技能集合",
"source": "./",
"strict": false,
"skills": [
"./skills/skill-a",
"./skills/skill-b"
]
}
SKILL.md 格式:
---
name: skill-name
description: 技能描述,说明何时触发
---
# 技能标题
技能内容...
MCP 插件用于集成外部工具和服务。
plugin.json 配置(重要:mcpServers 必须在这里定义):
{
"name": "my-mcp-server",
"description": "我的 MCP 服务器",
"author": {
"name": "Your Name"
},
"mcpServers": {
"server-name": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"package-name",
"--config-file",
"${CONFIG_PATH}"
]
}
}
}
marketplace.json 配置:
{
"name": "my-mcp-server",
"description": "MCP 服务器描述",
"source": "./plugins/my-mcp-server",
"category": "mcp"
}
假设你有两个技能想打包:
my-plugins/
├── .claude-plugin/
│ └── marketplace.json
└── skills/
├── code-reviewer/
│ └── SKILL.md
└── test-generator/
└── SKILL.md
marketplace.json:
{
"name": "dev-tools",
"description": "开发工具集",
"owner": {
"name": "Your Name",
"email": "your@email.com"
},
"plugins": [
{
"name": "code-review-skills",
"description": "代码审查技能集",
"source": "./",
"strict": false,
"skills": [
"./skills/code-reviewer",
"./skills/test-generator"
]
}
]
}
my-plugins/
├── .claude-plugin/
│ └── marketplace.json
└── plugins/
└── ssh-server/
├── .claude-plugin/
│ └── plugin.json
└── ssh-config.json
plugin.json(关键:mcpServers 必须在这里):
{
"name": "ssh-mcp-server",
"description": "SSH 远程连接 MCP 服务器",
"mcpServers": {
"ssh-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@anthropic/ssh-mcp-server"]
}
}
}
marketplace.json:
{
"name": "my-plugins",
"description": "我的插件集合",
"plugins": [
{
"name": "ssh-mcp-server",
"description": "SSH 远程连接工具",
"source": "./plugins/ssh-server",
"category": "mcp"
}
]
}
症状:插件已安装(claude plugins list 显示),但 claude mcp list 不显示。
原因:mcpServers 定义在了单独的 mcp.json 文件里,而不是 plugin.json。
解决:将 mcpServers 移到 plugin.json 里。
症状:安装了插件,但技能没有出现在可用列表中。
原因:skills 路径配置错误。
解决:检查 marketplace.json 中的 skills 路径是否正确。
症状:claude plugins install 报错。
原因:marketplace.json 格式错误。
解决:验证 JSON 格式,确保必需字段完整。
{
"name": "marketplace-name", // 市场名称
"description": "描述", // 市场描述
"owner": {
"name": "Owner Name", // 所有者名称
"email": "owner@email.com" // 所有者邮箱
},
"plugins": [
{
"name": "plugin-name", // 插件名称(必需)
"description": "插件描述", // 插件描述(必需)
"source": "./path/to/plugin", // 插件路径(必需)
"category": "development", // 分类(可选)
"strict": false, // 严格模式(可选)
"skills": [ // Skills 列表(Skills 插件必需)
"./skills/skill-1",
"./skills/skill-2"
]
}
]
}
source: "./" 和 skills 数组定义 Skills 插件plugins/ 下的独立目录mcp.json 文件category 字段帮助用户筛选插件description 字段影响插件的可发现性marketplace.jsonclaude plugins install <repo-url> 安装