glean-plugin-checklist
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGlean Plugin Marketplace Checklist
Glean Plugin Marketplace 检查清单
This skill provides the checklist for correctly adding or modifying plugins in the glean-claude-plugins marketplace repository.
本技能提供了在glean-claude-plugins市场仓库中正确添加或修改插件的检查清单。
Repository Structure
仓库结构
glean-claude-plugins/
├── .claude-plugin/
│ └── marketplace.json # CRITICAL: Plugin registry - must list all plugins
├── plugins/
│ └── <plugin-name>/
│ ├── .claude-plugin/
│ │ └── plugin.json # Plugin manifest with version
│ ├── README.md # Plugin documentation
│ ├── commands/ # Slash commands
│ ├── skills/ # Auto-triggered skills
│ └── agents/ # Autonomous agents
├── README.md # Main repo README - must list all plugins
└── package.json # NPM package with versionglean-claude-plugins/
├── .claude-plugin/
│ └── marketplace.json # 关键文件:插件注册表 - 必须列出所有插件
├── plugins/
│ └── <plugin-name>/
│ ├── .claude-plugin/
│ │ └── plugin.json # 带版本信息的插件清单
│ ├── README.md # 插件文档
│ ├── commands/ # 斜杠命令
│ ├── skills/ # 自动触发技能
│ └── agents/ # 自主Agent
├── README.md # 主仓库README - 必须列出所有插件
└── package.json # 带版本信息的NPM包Adding a New Plugin Checklist
添加新插件检查清单
When creating a new plugin, you MUST complete ALL of these steps:
创建新插件时,你必须完成以下所有步骤:
1. Create Plugin Directory Structure
1. 创建插件目录结构
bash
mkdir -p plugins/<plugin-name>/.claude-plugin
mkdir -p plugins/<plugin-name>/commands
mkdir -p plugins/<plugin-name>/skills
mkdir -p plugins/<plugin-name>/agentsbash
mkdir -p plugins/<plugin-name>/.claude-plugin
mkdir -p plugins/<plugin-name>/commands
mkdir -p plugins/<plugin-name>/skills
mkdir -p plugins/<plugin-name>/agents2. Create plugin.json (REQUIRED)
2. 创建plugin.json(必填)
Path:
plugins/<plugin-name>/.claude-plugin/plugin.jsonjson
{
"name": "<plugin-name>",
"version": "<MATCH MARKETPLACE VERSION>",
"description": "<Brief description>. Requires glean-core.",
"author": {
"name": "Glean",
"email": "steve.calvert@glean.com",
"url": "https://glean.com"
},
"homepage": "https://docs.glean.com/administration/platform/mcp/about",
"repository": "https://github.com/gleanwork/claude-plugins",
"license": "MIT",
"keywords": ["glean", "mcp", "<relevant-keywords>"]
}CRITICAL: The version MUST match the version in .
.claude-plugin/marketplace.json路径:
plugins/<plugin-name>/.claude-plugin/plugin.jsonjson
{
"name": "<plugin-name>",
"version": "<与市场版本匹配>",
"description": "<简要描述>。需要 glean-core。",
"author": {
"name": "Glean",
"email": "steve.calvert@glean.com",
"url": "https://glean.com"
},
"homepage": "https://docs.glean.com/administration/platform/mcp/about",
"repository": "https://github.com/gleanwork/claude-plugins",
"license": "MIT",
"keywords": ["glean", "mcp", "<相关关键词>"]
}关键注意事项:版本必须与中的版本一致。
.claude-plugin/marketplace.json3. Add to marketplace.json (REQUIRED)
3. 添加至marketplace.json(必填)
Path:
.claude-plugin/marketplace.jsonAdd entry to the array:
pluginsjson
{
"name": "<plugin-name>",
"source": "./plugins/<plugin-name>",
"description": "<One-line description for marketplace listing>"
}路径:
.claude-plugin/marketplace.json在数组中添加条目:
pluginsjson
{
"name": "<plugin-name>",
"source": "./plugins/<plugin-name>",
"description": "<市场列表用的单行描述>"
}4. Create Plugin README.md (REQUIRED)
4. 创建插件README.md(必填)
Path:
plugins/<plugin-name>/README.mdInclude:
- Plugin description
- Prerequisites (usually "Requires glean-core")
- Available commands
- Available skills
- Available agents
- Usage examples
路径:
plugins/<plugin-name>/README.md需包含:
- 插件描述
- 前置条件(通常为“需要 glean-core”)
- 可用命令
- 可用技能
- 可用Agent
- 使用示例
5. Update Main README.md (REQUIRED)
5. 更新主README.md(必填)
Path:
README.mdUpdate THREE sections:
a) Quick Start section - Add install command:
markdown
/plugin install <plugin-name>b) Plugins table - Add row:
markdown
| **[<plugin-name>](plugins/<plugin-name>)** | <Description> | [README](plugins/<plugin-name>/README.md) |c) "Which Plugin Do I Need?" section - Add use case:
markdown
| <Use case description> | `glean-core` + `<plugin-name>` |路径:
README.md更新三个部分:
a) 快速入门章节 - 添加安装命令:
markdown
/plugin install <plugin-name>b) 插件表格 - 添加行:
markdown
| **[<plugin-name>](plugins/<plugin-name>)** | <描述> | [README](plugins/<plugin-name>/README.md) |c) “我需要哪个插件?”章节 - 添加使用场景:
markdown
| <使用场景描述> | `glean-core` + `<plugin-name>` |Version Management
版本管理
All plugins should have the same version as the marketplace:
- Check current version:
jq '.version' .claude-plugin/marketplace.json - Set plugin version to match in
plugins/<plugin-name>/.claude-plugin/plugin.json
When releasing a new version:
- Update version
.claude-plugin/marketplace.json - Update version
package.json - Update ALL versions
plugins/*/.claude-plugin/plugin.json
所有插件的版本应与市场版本保持一致:
- 查看当前版本:
jq '.version' .claude-plugin/marketplace.json - 在中设置插件版本以匹配市场版本
plugins/<plugin-name>/.claude-plugin/plugin.json
发布新版本时:
- 更新中的版本
.claude-plugin/marketplace.json - 更新中的版本
package.json - 更新所有中的版本
plugins/*/.claude-plugin/plugin.json
Verification Commands
验证命令
After adding a plugin, verify with:
bash
undefined添加插件后,使用以下命令验证:
bash
undefinedCheck marketplace.json is valid JSON
检查marketplace.json是否为有效的JSON
jq . .claude-plugin/marketplace.json
jq . .claude-plugin/marketplace.json
List all plugins in marketplace
列出市场中的所有插件
jq -r '.plugins[].name' .claude-plugin/marketplace.json
jq -r '.plugins[].name' .claude-plugin/marketplace.json
Check all plugin versions match
检查所有插件版本是否匹配
for p in plugins/*/.claude-plugin/plugin.json; do
echo "$p: $(jq -r '.version' "$p")"
done
for p in plugins/*/.claude-plugin/plugin.json; do
echo "$p: $(jq -r '.version' "$p")"
done
Check README mentions the plugin
检查README中是否提及该插件
grep "<plugin-name>" README.md
undefinedgrep "<plugin-name>" README.md
undefinedCommon Mistakes to Avoid
需避免的常见错误
- Forgetting marketplace.json - Plugin won't appear in marketplace
- Version mismatch - Can cause installation issues
- Missing README update - Users won't know plugin exists
- Wrong source path - Use not
./plugins/<name>plugins/<name>
- 忘记更新marketplace.json - 插件不会在市场中显示
- 版本不匹配 - 可能导致安装问题
- 未更新README - 用户无法知晓该插件的存在
- 源路径错误 - 应使用而非
./plugins/<name>plugins/<name>
Using plugin-dev:create-plugin
使用plugin-dev:create-plugin
The command can help scaffold the plugin, but you MUST still:
/plugin-dev:create-plugin- Add to manually
.claude-plugin/marketplace.json - Update the main manually
README.md - Ensure versions match
Always run the verification commands after using .
/plugin-dev:create-plugin/plugin-dev:create-plugin- 手动将插件添加至
.claude-plugin/marketplace.json - 手动更新主
README.md - 确保版本一致
使用后,务必运行验证命令。
/plugin-dev:create-plugin