jpskill.com
🛠️ 開発・MCP コミュニティ

marketplace-release

Use when creating releases for Claude Code plugin marketplaces. Supports independent plugin versioning - each plugin can be released separately. Triggered by "release", "bump version", "create release", "publish plugin".

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o marketplace-release.zip https://jpskill.com/download/19003.zip && unzip -o marketplace-release.zip && rm marketplace-release.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19003.zip -OutFile "$d\marketplace-release.zip"; Expand-Archive "$d\marketplace-release.zip" -DestinationPath $d -Force; ri "$d\marketplace-release.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して marketplace-release.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → marketplace-release フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[スキル名] marketplace-release

マーケットプレイスリリース自動化

独立したプラグインのバージョン管理を備えた Claude Code プラグインマーケットプレイス向けのポータブルなリリーススクリプトです。マーケットプレイス内の各プラグインは独自のバージョンを保持し、個別にリリースできます。

前提条件

  1. GitHub CLI が認証済みであること: gh auth status
  2. クリーンな git 状態であること(またはコミットされていない変更を認識していること)
  3. .claude-plugin/marketplace.jsonmarketplace.json が存在すること
  4. マーケットプレイスのルートディレクトリから実行すること

使用方法

# 特定のプラグインをリリースする
python "${CLAUDE_PLUGIN_ROOT}/scripts/release.py" <bump-type> <plugin-name> "<release-notes>"

# すべてのプラグインとそのバージョンを一覧表示する
python "${CLAUDE_PLUGIN_ROOT}/scripts/release.py" --list

# または、スクリプトをマーケットプレイスにコピーしてルートから実行する
python scripts/release.py <bump-type> <plugin-name> "<release-notes>"

# ghe プラグインのパッチリリース
python "${CLAUDE_PLUGIN_ROOT}/scripts/release.py" patch ghe "Fix avatar loading issue"

# marketplace-utils のマイナーリリース
python "${CLAUDE_PLUGIN_ROOT}/scripts/release.py" minor marketplace-utils "Add TOC generator"

# 破壊的変更を伴うメジャーリリース
python "${CLAUDE_PLUGIN_ROOT}/scripts/release.py" major ghe "Breaking: New API structure"

# すべてのプラグインと現在のバージョンを表示する
python "${CLAUDE_PLUGIN_ROOT}/scripts/release.py" --list

バージョンバンプの種類

種類 使用するタイミング
patch バグ修正、軽微な改善 0.5.4 -> 0.5.5
minor 新機能、破壊的変更なし 0.5.5 -> 0.6.0
major 破壊的変更、大規模な書き換え 0.6.0 -> 1.0.0

機能

  1. 前提条件の検証 - gh CLI、git リポジトリ、コミットされていない変更をチェックします。
  2. プラグインの検証 - claude plugin validate を実行してプラグインが正しいことを確認します。
  3. プラグインバージョンのバンプ - marketplace.json とプラグインの plugin.json の両方でバージョンをバンプします。
  4. スクリプトバージョンの更新 - すべてのスクリプトの __version__ を自動的に更新します (marketplace-utils のみ)。
  5. README の更新 - プラグインの README バッジとマーケットプレイスの README バージョンテーブルを更新します。
  6. コミットの作成 - リリースメッセージ付きでコミットを作成します。
  7. git タグの作成 - プラグイン固有のタグ: <plugin-name>-v<version> を作成します。
  8. リモートへのプッシュ - コミットとタグの両方をプッシュします。
  9. GitHub リリースの作成 - インストール手順付きで作成します。

プラグインの検証

リリースする前に、プラグインを検証して早期にエラーを検出してください。

# 特定のプラグインを検証する
python "${CLAUDE_PLUGIN_ROOT}/scripts/validate_plugin.py" ghe

# すべてのプラグインを検証する
python "${CLAUDE_PLUGIN_ROOT}/scripts/validate_plugin.py" --all

# バージョンを表示する
python "${CLAUDE_PLUGIN_ROOT}/scripts/validate_plugin.py" --version

検証スクリプトは claude plugin validate をラップし、以下を提供します。

  • 個別のプラグイン検証
  • --all によるバッチ検証
  • すべての結果のサマリーレポート

独立したバージョン管理

各プラグインは marketplace.json で独自のバージョンが追跡されます。

{
  "name": "my-marketplace",
  "plugins": [
    {
      "name": "ghe",
      "source": "./plugins/ghe",
      "version": "0.5.4"
    },
    {
      "name": "marketplace-utils",
      "source": "./plugins/marketplace-utils",
      "version": "1.0.0"
    }
  ]
}

プラグインをリリースすると、以下のようになります。

  • そのプラグインのバージョンのみがバンプされます。
  • タグはプラグイン固有です: ghe-v0.5.4marketplace-utils-v1.0.0
  • 他のプラグインは変更されません。

設定ファイル

marketplace.json (必須)

.claude-plugin/marketplace.json に配置されます。

{
  "name": "my-marketplace",
  "plugins": [
    {
      "name": "plugin-a",
      "source": "./plugins/plugin-a",
      "version": "1.0.0"
    },
    {
      "name": "plugin-b",
      "source": "./plugins/plugin-b",
      "version": "2.3.1"
    }
  ]
}

plugin.json (自動検出)

plugins/<name>/.claude-plugin/plugin.json に配置されます。

{
  "name": "plugin-a",
  "version": "1.0.0"
}

両方のファイルは、特定のプラグインをリリースする際に更新されます。

バージョンサフィックスの処理

スクリプトは -alpha-beta のようなバージョンサフィックスを保持します。

  • 入力バージョン: 0.2.5-alpha
  • patch 後: 0.2.6-alpha
  • 作成されたタグ: ghe-v0.2.6-alpha

生成されるリリース本文

## What's Changed

<あなたのリリースノート>

## Installation

```bash
/plugin marketplace update my-marketplace
/plugin install ghe@my-marketplace

Full Changelog

https://github.com/owner/repo/compare/ghe-v0.5.3...ghe-v0.5.4


## 確認プロンプト

スクリプトは変更を行う前に確認を促します。

Marketplace: my-marketplace Plugin: ghe Current version: 0.5.3 New version: 0.5.4

Proceed with release ghe-v0.5.4? [y/N]


## プラグイン一覧コマンド

`--list` を使用して、すべてのプラグインとその現在のバージョンを表示します。

```bash
$ python release.py --list

Marketplace: my-marketplace

Plugin                    Version         Source
----------------------------------------------------------------------
ghe                       0.5.4           ./plugins/ghe
marketplace-utils         1.0.0           ./plugins/marketplace-utils

マーケットプレイスの README バージョンテーブル

リリーススクリプトは、マーケットプレイスの README.md にバージョンテーブルを自動的に維持します。

<!-- PLUGIN-VERSIONS-START -->
## Plugin Versions

| Plugin | Version | Description |
|--------|---------|-------------|
| ghe | 0.5.4 | GHE (GitHub-Elements) - Automated project manag... |
| marketplace-utils | 1.0.0 | Portable utility tools for Claude Code plugin m... |

*Last updated: 2025-01-15*

<!-- PLUGIN-VERSIONS-END -->

このセクションは自動的に以下のようになります。

  • 目次より前に挿入されます (マーカーが存在しない場合)。
  • その場で更新されます (マーカーがすでに存在する場合)。
  • 各リリースで最新の状態に保たれます

README ヘッダーのメインバージョンバッジも、最初のプラグインのバージョンと一致するように更新されます。

トラブルシューティング

"Plugin validation failed"

プラグインに問題があり、リリース前に修正する必要があります。エラーメッセージを確認し、plugin.json または構造を修正してください。

"marketplace.json not found"

マーケットプレイスのルートディレクトリから実行してください。

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Marketplace Release Automation

A portable release script for Claude Code plugin marketplaces with independent plugin versioning. Each plugin in a marketplace maintains its own version and can be released separately.

Prerequisites

  1. GitHub CLI authenticated: gh auth status
  2. Clean git state (or acknowledge uncommitted changes)
  3. marketplace.json at .claude-plugin/marketplace.json
  4. Run from the marketplace root directory

Usage

# Release a specific plugin
python "${CLAUDE_PLUGIN_ROOT}/scripts/release.py" <bump-type> <plugin-name> "<release-notes>"

# List all plugins and their versions
python "${CLAUDE_PLUGIN_ROOT}/scripts/release.py" --list

# Or copy script to marketplace and run from root
python scripts/release.py <bump-type> <plugin-name> "<release-notes>"

Examples

# Patch release for ghe plugin
python "${CLAUDE_PLUGIN_ROOT}/scripts/release.py" patch ghe "Fix avatar loading issue"

# Minor release for marketplace-utils
python "${CLAUDE_PLUGIN_ROOT}/scripts/release.py" minor marketplace-utils "Add TOC generator"

# Major release with breaking changes
python "${CLAUDE_PLUGIN_ROOT}/scripts/release.py" major ghe "Breaking: New API structure"

# View all plugins and current versions
python "${CLAUDE_PLUGIN_ROOT}/scripts/release.py" --list

Version Bump Types

Type When to Use Example
patch Bug fixes, minor improvements 0.5.4 -> 0.5.5
minor New features, non-breaking changes 0.5.5 -> 0.6.0
major Breaking changes, major rewrites 0.6.0 -> 1.0.0

What It Does

  1. Validates prerequisites - Checks gh CLI, git repo, uncommitted changes
  2. Validates plugin - Runs claude plugin validate to ensure plugin is correct
  3. Bumps plugin version - In both marketplace.json and the plugin's plugin.json
  4. Updates script versions - Automatically updates __version__ in all scripts (marketplace-utils only)
  5. Updates READMEs - Plugin README badges + marketplace README version table
  6. Creates commit - With release message
  7. Creates git tag - Plugin-specific tag: <plugin-name>-v<version>
  8. Pushes to remote - Both commit and tag
  9. Creates GitHub release - With installation instructions

Plugin Validation

Before releasing, validate your plugin to catch errors early:

# Validate a specific plugin
python "${CLAUDE_PLUGIN_ROOT}/scripts/validate_plugin.py" ghe

# Validate all plugins
python "${CLAUDE_PLUGIN_ROOT}/scripts/validate_plugin.py" --all

# Show version
python "${CLAUDE_PLUGIN_ROOT}/scripts/validate_plugin.py" --version

The validation script wraps claude plugin validate and provides:

  • Individual plugin validation
  • Batch validation with --all
  • Summary report of all results

Independent Versioning

Each plugin has its own version tracked in marketplace.json:

{
  "name": "my-marketplace",
  "plugins": [
    {
      "name": "ghe",
      "source": "./plugins/ghe",
      "version": "0.5.4"
    },
    {
      "name": "marketplace-utils",
      "source": "./plugins/marketplace-utils",
      "version": "1.0.0"
    }
  ]
}

When you release a plugin:

  • Only that plugin's version is bumped
  • Tags are plugin-specific: ghe-v0.5.4, marketplace-utils-v1.0.0
  • Other plugins remain unchanged

Configuration Files

marketplace.json (required)

Located at .claude-plugin/marketplace.json:

{
  "name": "my-marketplace",
  "plugins": [
    {
      "name": "plugin-a",
      "source": "./plugins/plugin-a",
      "version": "1.0.0"
    },
    {
      "name": "plugin-b",
      "source": "./plugins/plugin-b",
      "version": "2.3.1"
    }
  ]
}

plugin.json (auto-detected)

Located at plugins/<name>/.claude-plugin/plugin.json:

{
  "name": "plugin-a",
  "version": "1.0.0"
}

Both files are updated when releasing that specific plugin.

Version Suffix Handling

The script preserves version suffixes like -alpha, -beta:

  • Input version: 0.2.5-alpha
  • After patch: 0.2.6-alpha
  • Tag created: ghe-v0.2.6-alpha

Generated Release Body

## What's Changed

<your release notes>

## Installation

```bash
/plugin marketplace update my-marketplace
/plugin install ghe@my-marketplace

Full Changelog

https://github.com/owner/repo/compare/ghe-v0.5.3...ghe-v0.5.4


## Confirmation Prompt

The script prompts for confirmation before making changes:

Marketplace: my-marketplace Plugin: ghe Current version: 0.5.3 New version: 0.5.4

Proceed with release ghe-v0.5.4? [y/N]


## List Plugins Command

Use `--list` to see all plugins and their current versions:

```bash
$ python release.py --list

Marketplace: my-marketplace

Plugin                    Version         Source
----------------------------------------------------------------------
ghe                       0.5.4           ./plugins/ghe
marketplace-utils         1.0.0           ./plugins/marketplace-utils

Marketplace README Version Table

The release script automatically maintains a version table in the marketplace README.md:

<!-- PLUGIN-VERSIONS-START -->
## Plugin Versions

| Plugin | Version | Description |
|--------|---------|-------------|
| ghe | 0.5.4 | GHE (GitHub-Elements) - Automated project manag... |
| marketplace-utils | 1.0.0 | Portable utility tools for Claude Code plugin m... |

*Last updated: 2025-01-15*

<!-- PLUGIN-VERSIONS-END -->

This section is automatically:

  • Inserted before the Table of Contents (if no markers exist)
  • Updated in place (if markers already exist)
  • Kept current with each release

The main version badge in the README header is also updated to match the first plugin's version.

Troubleshooting

"Plugin validation failed"

The plugin has issues that must be fixed before release. Check the error message and fix the plugin.json or structure.

"marketplace.json not found"

Run from marketplace root directory, not plugin subdirectory.

"Unknown plugin: xyz"

Check plugin name matches exactly what's in marketplace.json. Use --list to see available plugins.

"Not authenticated with GitHub CLI"

Run gh auth login and authenticate.

"You have uncommitted changes"

Commit or stash changes, or proceed and include them in the release.

Portability

This script is fully portable:

  • All values read from JSON config files
  • GitHub repo info detected via gh repo view
  • No hardcoded paths, names, or user-specific values
  • Can be copied to any Claude Code marketplace project