Plugin Forge

作者 softaworks3027f20f3181無授權條款2.5K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫7 個月前更新

Create and manage Claude Code plugins with proper structure, manifests, and marketplace integration. Use when creating plugins for a marketplace, adding plugin components (commands, agents, hooks), bumping plugin versions, or working with plugin.json/marketplace.json manifests.

包含腳本AI & Agents
AI 產生的概覽

用於建立與管理 Claude Code 外掛,涵蓋清單檔、市集註冊與版本更新。

功能
此技能指導建立與維護 Claude Code 外掛,包含正確的目錄結構、plugin.json 與 marketplace.json 清單,以及指令、技能、代理、鉤子和 MCP 伺服器等元件的放置方式。它附帶兩個 Python 指令碼:create_plugin.py 用於產生新外掛並更新市集清單,bump_version.py 用於依 major、minor 或 patch 更新兩份清單中的版本。它也說明了本機測試、指令命名、外掛模式、慣例式提交與發佈流程。
適用情境
適用於為市集建立新外掛、新增或修改外掛元件、更新外掛版本,或處理外掛與市集清單的情況。也適合設定本機外掛測試與發佈外掛。
執行需求
需要 Python 來執行隨附的 create_plugin.py 與 bump_version.py 指令碼;需要存取市集根目錄及其清單檔。此技能附帶可執行指令碼。

CC Plugin Forge

Purpose

Build and manage Claude Code plugins with correct structure, manifests, and marketplace integration. Includes workflows, automation scripts, and reference docs.

When to Use

  • Creating new plugins for a marketplace
  • Adding/modifying plugin components (commands, skills, agents, hooks)
  • Updating plugin versions
  • Working with plugin or marketplace manifests
  • Setting up local plugin testing
  • Publishing plugins

Getting Started

Create New Plugin

Use create_plugin.py to generate plugin structure:

bash
python scripts/create_plugin.py plugin-name \  --marketplace-root /path/to/marketplace \  --author-name "Your Name" \  --author-email "[email protected]" \  --description "Plugin description" \  --keywords "keyword1,keyword2" \  --category "productivity"

This automatically:

  • Creates plugin directory structure
  • Generates plugin.json manifest
  • Creates README template
  • Updates marketplace.json

Bump Version

Use bump_version.py to update versions in both manifests:

bash
python scripts/bump_version.py plugin-name major|minor|patch \  --marketplace-root /path/to/marketplace

Semantic versioning:

  • major: Breaking changes (1.0.0 → 2.0.0)
  • minor: New features, refactoring (1.0.0 → 1.1.0)
  • patch: Bug fixes, docs (1.0.0 → 1.0.1)

Development Workflow

1. Create Structure

Manual approach (if not using script):

bash
mkdir -p plugins/plugin-name/.claude-pluginmkdir -p plugins/plugin-name/commandsmkdir -p plugins/plugin-name/skills

2. Plugin Manifest

File: plugins/plugin-name/.claude-plugin/plugin.json

json
{  "name": "plugin-name",  "version": "0.1.0",  "description": "Plugin description",  "author": {    "name": "Your Name",    "email": "[email protected]"  },  "keywords": ["keyword1", "keyword2"]}

3. Register in Marketplace

Update .claude-plugin/marketplace.json:

json
{  "name": "plugin-name",  "source": "./plugins/plugin-name",  "description": "Plugin description",  "version": "0.1.0",  "keywords": ["keyword1", "keyword2"],  "category": "productivity"}

4. Add Components

Create in respective directories:

ComponentLocationFormat
Commandscommands/Markdown with frontmatter
Skillsskills/<name>/Directory with SKILL.md
Agentsagents/Markdown definitions
Hookshooks/hooks.jsonEvent handlers
MCP Servers.mcp.jsonExternal integrations

5. Local Testing

bash
# Add marketplace/plugin marketplace add /path/to/marketplace-root
# Install plugin/plugin install plugin-name@marketplace-name
# After changes: reinstall/plugin uninstall plugin-name@marketplace-name/plugin install plugin-name@marketplace-name

Plugin Patterns

Framework Plugin

For framework-specific guidance (React, Vue, etc.):

plugins/framework-name/├── .claude-plugin/plugin.json├── skills/│   └── framework-name/│       ├── SKILL.md│       └── references/├── commands/│   └── prime/│       ├── components.md│       └── framework.md└── README.md

Utility Plugin

For tools and commands:

plugins/utility-name/├── .claude-plugin/plugin.json├── commands/│   ├── action1.md│   └── action2.md└── README.md

Domain Plugin

For domain-specific knowledge:

plugins/domain-name/├── .claude-plugin/plugin.json├── skills/│   └── domain-name/│       ├── SKILL.md│       ├── references/│       └── scripts/└── README.md

Command Naming

Subdirectory-based namespacing with : separator:

  • commands/namespace/command.md → /namespace:command
  • commands/simple.md → /simple

Examples:

  • commands/prime/vue.md → /prime:vue
  • commands/docs/generate.md → /docs:generate

Version Management

Important: Update version in BOTH locations:

  1. plugins/<name>/.claude-plugin/plugin.json
  2. .claude-plugin/marketplace.json

Use bump_version.py to automate.

Git Commits

Use conventional commits:

bash
git commit -m "feat: add new plugin"git commit -m "fix: correct plugin manifest"git commit -m "docs: update plugin README"git commit -m "feat!: breaking change"

Reference Docs

Detailed documentation included:

ReferenceContent
references/plugin-structure.mdDirectory structure, manifest schema, components
references/marketplace-schema.mdMarketplace format, plugin entries, distribution
references/workflows.mdStep-by-step workflows, patterns, publishing

Scripts

ScriptPurpose
scripts/create_plugin.pyScaffold new plugin
scripts/bump_version.pyUpdate versions

來源與署名

來源:softaworks/agent-toolkit位於skills/plugin-forge提交3027f20

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架