Creating and Managing Plugin Marketplaces by bbrowning/bbrowning-claude-marketplace
npx skills add https://github.com/bbrowning/bbrowning-claude-marketplace --skill 'Creating and Managing Plugin Marketplaces'市场是一个 Claude 代码插件集合,可以作为一个整体单元进行共享。市场支持:
市场遵循以下结构:
my-marketplace/
├── .claude-plugin/
│ └── marketplace.json # 市场清单文件(必需)
├── plugin-one/
│ └── .claude-plugin/
│ └── plugin.json # 单个插件清单文件
├── plugin-two/
│ └── .claude-plugin/
│ └── plugin.json
└── README.md # 文档(推荐)
.claude-plugin/marketplace.jsonplugin.json 清单文件市场清单文件必须位于:
.claude-plugin/marketplace.json
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
此文件定义了市场元数据并列出所有可用插件。
{
"name": "my-marketplace",
"owner": {
"name": "Your Name"
},
"plugins": []
}
字段说明:
name:市场标识符,使用 kebab-case 格式(例如 "team-tools"、"data-science-plugins")owner.name:维护者姓名(必需)owner.email:维护者邮箱(可选)plugins:插件条目数组(初始可以为空){
"name": "my-marketplace",
"description": "Marketplace description",
"version": "1.0.0",
"owner": {
"name": "Your Name",
"email": "you@example.com"
},
"homepage": "https://github.com/username/marketplace",
"plugins": []
}
附加字段:
description:市场用途的简要概述version:市场版本(语义化版本)homepage:市场文档或仓库的 URLplugins 数组中的每个插件都需要:
{
"plugins": [
{
"name": "plugin-name",
"source": "./plugin-directory",
"description": "Brief description"
}
]
}
插件条目字段:
name:插件标识符(必须与插件的 plugin.json 中的名称匹配)source:插件的路径或 URL(参见插件来源部分)description:简要描述(可选,但推荐用于提高可发现性){
"name": "team-productivity",
"owner": {
"name": "Engineering Team"
},
"description": "Productivity tools for our engineering team",
"plugins": [
{
"name": "code-review-helper",
"source": "./code-review-helper",
"description": "Automated code review assistance"
},
{
"name": "pr-templates",
"source": "./pr-templates",
"description": "Standardized PR templates and workflows"
},
{
"name": "testing-utils",
"source": "./testing-utils",
"description": "Test generation and coverage tools"
}
]
}
marketplace.json 中的插件来源支持多种格式:
{
"name": "local-plugin",
"source": "./local-plugin"
}
用于存储在市场目录内的插件。路径必须相对于市场根目录。
{
"name": "github-plugin",
"source": "github:username/repo"
}
用于托管在 GitHub 上的插件。Claude 代码将克隆该仓库。
{
"name": "git-plugin",
"source": "https://github.com/username/repo.git"
}
用于托管在任何 Git 提供商上的插件。支持完整的 git URL。
{
"plugins": [
{
"name": "internal-tool",
"source": "./internal-tool",
"description": "Internal team tool"
},
{
"name": "community-plugin",
"source": "github:community/awesome-plugin",
"description": "Community-maintained plugin"
},
{
"name": "external-tool",
"source": "https://gitlab.com/team/tool.git",
"description": "External Git repository"
}
]
}
mkdir my-marketplace
cd my-marketplace
mkdir .claude-plugin
创建 .claude-plugin/marketplace.json:
{
"name": "my-marketplace",
"owner": {
"name": "Your Name"
},
"plugins": []
}
git init
版本控制支持:
对于要包含的每个插件:
创建插件目录:
mkdir my-plugin
mkdir my-plugin/.claude-plugin
创建插件清单文件 (my-plugin/.claude-plugin/plugin.json):
{
"name": "my-plugin",
"version": "1.0.0",
"description": "Plugin description"
}
添加插件组件(技能、命令、代理等)
更新 marketplace.json:
{
"plugins": [
{
"name": "my-plugin",
"source": "./my-plugin",
"description": "Plugin description"
}
]
}
将市场添加到 Claude 代码:
/plugin marketplace add /path/to/my-marketplace
安装并测试插件:
/plugin install my-plugin@my-marketplace
验证安装:
/plugin 查看已安装的插件/help 获取新命令修改市场中的插件时:
卸载旧版本:
/plugin uninstall plugin-name@marketplace-name
重新安装更新版本:
/plugin install plugin-name@marketplace-name
或者,重启 Claude 代码以重新加载所有插件。
推荐的工作流程:
使用调试模式进行故障排除:
claude --debug
这将显示:
提交到 git:
git add .
git commit -m "Add marketplace with plugins"
推送到远程仓库:
git remote add origin <repository-url>
git push -u origin main
与用户共享: 用户添加你的市场:
/plugin marketplace add <repository-url>
或对于本地路径:
/plugin marketplace add /path/to/marketplace
4. 安装插件:
/plugin install plugin-name@marketplace-name
用户可以管理已安装的插件:
# 启用插件
/plugin enable plugin-name@marketplace-name
# 禁用插件
/plugin disable plugin-name@marketplace-name
# 卸载插件
/plugin uninstall plugin-name@marketplace-name
分发市场前:
./ 开头claude --debug 测试警告有关组织、版本控制、分发和协作的全面最佳实践,请参阅 reference/best-practices.md。
.claude-plugin/marketplace.json(不在根目录)name、source,可选 description./plugin)、GitHub 仓库(github:user/repo)或 Git URL/plugin marketplace add <path-or-url>/plugin install plugin-name@marketplace-name.claude-plugin/marketplace.json 的市场目录plugin.json 清单文件的插件/plugin marketplace add /local/path有关个人、团队、社区和混合市场模式的详细示例,请参阅 reference/best-practices.md。
每周安装量
0
仓库
GitHub 星标数
1
首次出现
1970年1月1日
安全审计
A marketplace is a collection of Claude Code plugins that can be shared as a cohesive unit. Marketplaces enable:
A marketplace follows this structure:
my-marketplace/
├── .claude-plugin/
│ └── marketplace.json # Marketplace manifest (REQUIRED)
├── plugin-one/
│ └── .claude-plugin/
│ └── plugin.json # Individual plugin manifest
├── plugin-two/
│ └── .claude-plugin/
│ └── plugin.json
└── README.md # Documentation (recommended)
.claude-plugin/marketplace.json in the marketplace rootplugin.json manifestThe marketplace manifest MUST be located at:
.claude-plugin/marketplace.json
This file defines the marketplace metadata and lists all available plugins.
{
"name": "my-marketplace",
"owner": {
"name": "Your Name"
},
"plugins": []
}
Field Descriptions:
name: Marketplace identifier in kebab-case (e.g., "team-tools", "data-science-plugins")owner.name: Maintainer's name (REQUIRED)owner.email: Maintainer's email (OPTIONAL)plugins: Array of plugin entries (can be empty initially){
"name": "my-marketplace",
"description": "Marketplace description",
"version": "1.0.0",
"owner": {
"name": "Your Name",
"email": "you@example.com"
},
"homepage": "https://github.com/username/marketplace",
"plugins": []
}
Additional Fields:
description: Brief overview of the marketplace's purposeversion: Marketplace version (semantic versioning)homepage: URL to marketplace documentation or repositoryEach plugin in the plugins array requires:
{
"plugins": [
{
"name": "plugin-name",
"source": "./plugin-directory",
"description": "Brief description"
}
]
}
Plugin Entry Fields:
name: Plugin identifier (MUST match the plugin's plugin.json name)source: Path or URL to plugin (see Plugin Sources section)description: Brief description (optional but recommended for discoverability){
"name": "team-productivity",
"owner": {
"name": "Engineering Team"
},
"description": "Productivity tools for our engineering team",
"plugins": [
{
"name": "code-review-helper",
"source": "./code-review-helper",
"description": "Automated code review assistance"
},
{
"name": "pr-templates",
"source": "./pr-templates",
"description": "Standardized PR templates and workflows"
},
{
"name": "testing-utils",
"source": "./testing-utils",
"description": "Test generation and coverage tools"
}
]
}
Plugin sources in marketplace.json support multiple formats:
{
"name": "local-plugin",
"source": "./local-plugin"
}
Use for plugins stored within the marketplace directory. Paths must be relative to the marketplace root.
{
"name": "github-plugin",
"source": "github:username/repo"
}
Use for plugins hosted on GitHub. Claude Code will clone the repository.
{
"name": "git-plugin",
"source": "https://github.com/username/repo.git"
}
Use for plugins hosted on any Git provider. Full git URLs are supported.
{
"plugins": [
{
"name": "internal-tool",
"source": "./internal-tool",
"description": "Internal team tool"
},
{
"name": "community-plugin",
"source": "github:community/awesome-plugin",
"description": "Community-maintained plugin"
},
{
"name": "external-tool",
"source": "https://gitlab.com/team/tool.git",
"description": "External Git repository"
}
]
}
mkdir my-marketplace
cd my-marketplace
mkdir .claude-plugin
Create .claude-plugin/marketplace.json:
{
"name": "my-marketplace",
"owner": {
"name": "Your Name"
},
"plugins": []
}
git init
Version control enables:
For each plugin you want to include:
Create plugin directory:
mkdir my-plugin
mkdir my-plugin/.claude-plugin
Create plugin manifest (my-plugin/.claude-plugin/plugin.json):
{
"name": "my-plugin",
"version": "1.0.0",
"description": "Plugin description"
}
Add plugin components (skills, commands, agents, etc.)
Update marketplace.json:
{
"plugins": [
{
"name": "my-plugin",
"source": "./my-plugin",
"description": "Plugin description"
}
]
}
Add marketplace to Claude Code:
/plugin marketplace add /path/to/my-marketplace
Install and test plugins:
/plugin install my-plugin@my-marketplace
Verify installation:
/plugin to see installed plugins/help for new commandsWhen modifying plugins in your marketplace:
Uninstall old version:
/plugin uninstall plugin-name@marketplace-name
Reinstall updated version:
/plugin install plugin-name@marketplace-name
Alternatively, restart Claude Code to reload all plugins.
Recommended workflow:
Use debug mode to troubleshoot:
claude --debug
This shows:
Commit to git:
git add .
git commit -m "Add marketplace with plugins"
Push to remote repository:
git remote add origin <repository-url>
git push -u origin main
Share with users: Users add your marketplace:
/plugin marketplace add <repository-url>
Or for local paths:
/plugin marketplace add /path/to/marketplace
4. Install plugins:
/plugin install plugin-name@marketplace-name
Users can manage installed plugins:
# Enable plugin
/plugin enable plugin-name@marketplace-name
# Disable plugin
/plugin disable plugin-name@marketplace-name
# Uninstall plugin
/plugin uninstall plugin-name@marketplace-name
Before distributing your marketplace:
./claude --debug for warningsFor comprehensive best practices on organization, versioning, distribution, and collaboration, see reference/best-practices.md.
.claude-plugin/marketplace.json (not root)name, source, and optionally description./plugin), GitHub repos (github:user/repo), or Git URLs/plugin marketplace add <path-or-url>/plugin install plugin-name@marketplace-name.claude-plugin/marketplace.jsonplugin.json manifests/plugin marketplace add /local/pathFor detailed examples of personal, team, community, and hybrid marketplace patterns, see reference/best-practices.md.
Weekly Installs
0
Repository
GitHub Stars
1
First Seen
Jan 1, 1970
Security Audits
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
147,400 周安装