技能 plugin-forge
📦

plugin-forge

安全 📁 檔案系統存取

构建和管理 Claude Code 插件

创建 Claude Code 插件需要正确的目录结构、清单文件和版本管理。此技能通过自动化插件脚手架生成正确的 plugin.json 清单、README 模板,并处理插件和市场清单中的语义化版本管理。

支援: Claude Codex Code(CC)
🥈 81 白銀
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「plugin-forge」。 Create a new plugin called 'task-runner' with author 'Jane Smith', email 'jane@example.com', description 'Run automated tasks', keywords 'automation,tasks', category 'devops'

預期結果:

  • Created plugin manifest: plugins/task-runner/.claude-plugin/plugin.json
  • Created README: plugins/task-runner/README.md
  • Updated marketplace manifest: .claude-plugin/marketplace.json
  • Plugin 'task-runner' created successfully!
  • Next steps:
  • 1. Add commands to: plugins/task-runner/commands
  • 2. Add skills to: plugins/task-runner/skills
  • 3. Test with: /plugin install task-runner@marketplace-name

正在使用「plugin-forge」。 Bump version of plugin 'task-runner' with a minor bump

預期結果:

  • Updated plugin.json: 0.1.0 → 0.2.0
  • Updated marketplace.json: 0.1.0 → 0.2.0
  • Version bumped successfully: 0.1.0 → 0.2.0

安全審計

安全
v1 • 1/28/2026

Static analysis detected 256 pattern matches that are all false positives. The 'external_commands' findings are Markdown code blocks in documentation, not actual shell execution. The 'weak cryptographic algorithm' findings are references to hash algorithms in documentation context. The filesystem operations are legitimate scaffolding file creation. No security risks identified.

7
已掃描檔案
1,175
分析行數
1
發現項
1
審計總數
審計者: claude

品質評分

82
架構
100
可維護性
87
內容
32
社群
100
安全
83
規範符合性

你能建構什麼

插件开发者入门

新开发者使用脚手架脚本创建他们的第一个 Claude Code 插件,使用正确的结构,避免常见的清单错误,并从第一天起确保市场兼容性。

市场维护

维护者使用 bump_version.py 确保在发布过程中 plugin.json 和 marketplace.json 之间的版本一致性,防止版本漂移和安装问题。

团队插件标准化

工程团队使用此技能在多个内部插件中强制执行一致的插件结构,确保所有团队成员遵循相同的约定和模式。

試試這些提示

创建新插件
创建一个名为 'my-plugin' 的新 Claude Code 插件,市场位于 /path/to/marketplace。作者是 'John Doe',邮箱是 'john@example.com'。插件描述为 '用于任务管理的生产力插件',关键词为 'productivity, tasks, management',类别为 'productivity'。
提升插件版本
提升市场中 /path/to/marketplace 下插件 'my-plugin' 的版本。我正在添加新功能,使用次要版本提升。
向插件添加组件
我需要向现有插件添加新命令。向我展示添加 '/docs:generate' 命令的正确目录结构和文件格式,该命令从代码注释创建文档。
插件架构审查
审查 /path/to/plugin 下的插件结构,并与参考模式比较。识别任何可能阻止市场注册的缺失组件或结构问题。

最佳實務

  • 始终使用 bump_version.py 更新版本以确保 plugin.json 和 marketplace.json 之间的一致性
  • 遵循 kebab-case 命名约定以确保兼容性
  • 在提交到共享市场之前,使用 /plugin install 在本地测试插件

避免

  • 不要只手动编辑一个清单文件中的版本号 - 这会导致版本漂移
  • 避免不使用脚手架脚本直接在市场中创建插件 - 手动创建通常会遗漏必填字段
  • 不要跳过本地测试步骤 - 格式错误的清单可能导致安装失败

常見問題

plugin.json 和 marketplace.json 有什么区别?
plugin.json 位于插件目录内,描述插件本身。marketplace.json 是列出市场中所有可用插件的注册表。两者都是插件可安装所必需的。
我可以使用此技能发布到官方的 Claude Code 市场吗?
此技能帮助您准备插件以发布到任何市场。对于官方市场,使用此技能创建插件结构后,您需要遵循 Anthropic 文档的具体提交流程。
支持哪些插件模式?
该技能支持三种模式:框架插件用于框架特定指导,工具插件用于工具和命令,领域插件用于领域特定知识。每种都有在参考文档中记录的推荐目录结构。
如何在发布前测试我的插件?
使用 /plugin marketplace add 命令添加您的本地市场根目录,然后使用 /plugin install plugin-name@marketplace-name 安装您的插件。进行更改、卸载和重新安装以测试更新。
如果忘记提升版本会怎样?
Claude Code 可能会缓存旧版本。进行更改时始终提升版本,即使是文档更新,以确保用户获得最新版本。
可以将现有技能转换为插件吗?
可以。创建新的插件结构,然后将您的 SKILL.md 移动到 skills/ 目录。使用适当的元数据更新 plugin.json 并在 marketplace.json 中注册。