From cc5a501ea44099235092d840bd7448656f0109e1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 24 Dec 2025 22:08:12 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E3=83=9E=E3=83=BC=E3=82=B1=E3=83=83?= =?UTF-8?q?=E3=83=88=E3=83=97=E3=83=AC=E3=82=A4=E3=82=B9=E8=BF=BD=E5=8A=A0?= =?UTF-8?q?=E3=81=A7HTTPS=20URL=E3=82=92=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 問題 v1.6.3でも`claude-code-plugins`マーケットプレイスの追加に失敗し、 4つのプラグインがインストールできていませんでした。 ### エラー内容 ``` SSH not configured, cloning via HTTPS: https://github.com/anthropic/claude-code.git HTTPS clone failed, retrying with SSH: git@github.com:anthropic/claude-code.git ✘ Failed to add marketplace: SSH authentication failed ``` ### 根本原因 `anthropic/claude-code`という短縮形では、Claude CLIがHTTPSクローンに失敗し、 SSHにフォールバックしますが、Dockerコンテナ内にSSHキーがないため失敗します。 ## 解決策 ### URL修正 すべてのマーケットプレイスで完全なHTTPS URLを使用: **Before**: ```bash claude plugin marketplace add anthropic/claude-code claude plugin marketplace add https://github.com/davila7/claude-code-templates.git claude plugin marketplace add wshobson/agents ``` **After**: ```bash claude plugin marketplace add https://github.com/anthropics/claude-code.git claude plugin marketplace add https://github.com/davila7/claude-code-templates.git claude plugin marketplace add https://github.com/wshobson/agents.git ``` ### 変更ポイント - `anthropic/claude-code` → `https://github.com/anthropics/claude-code.git` - `wshobson/agents` → `https://github.com/wshobson/agents.git` - 完全なHTTPS URLを使用することでSSHフォールバックを回避 ## 期待効果 | 項目 | v1.6.3 | v1.6.4 (This PR) | |------|--------|------------------| | claude-code-plugins 追加 | ❌ 失敗 | ✅ 成功 | | プラグインインストール | 11/15 | ✅ 15/15 | 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- script/install-claude-plugins.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/install-claude-plugins.sh b/script/install-claude-plugins.sh index f7c3d210..08d23415 100755 --- a/script/install-claude-plugins.sh +++ b/script/install-claude-plugins.sh @@ -49,10 +49,10 @@ echo "[INFO] マーケットプレイスを初期化中..." if [[ -f "${CLAUDE_DIR}/plugins/known_marketplaces.json" ]]; then echo "[INFO] known_marketplaces.jsonが見つかりました" - # 必須マーケットプレイスを追加(正しいコマンド: claude plugin marketplace add) - claude plugin marketplace add anthropic/claude-code 2>&1 || echo "[WARN] claude-code-plugins already exists or failed to add" + # 必須マーケットプレイスを追加(完全なHTTPS URLを使用) + claude plugin marketplace add https://github.com/anthropics/claude-code.git 2>&1 || echo "[WARN] claude-code-plugins already exists or failed to add" claude plugin marketplace add https://github.com/davila7/claude-code-templates.git 2>&1 || echo "[WARN] claude-code-templates already exists or failed to add" - claude plugin marketplace add wshobson/agents 2>&1 || echo "[WARN] claude-code-workflows already exists or failed to add" + claude plugin marketplace add https://github.com/wshobson/agents.git 2>&1 || echo "[WARN] claude-code-workflows already exists or failed to add" else echo "[WARN] known_marketplaces.jsonが見つかりません" fi From fb8920f56f60fc5a6597621d5884faf01027c3db Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 24 Dec 2025 22:26:18 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E5=AD=98=E5=9C=A8=E3=81=97=E3=81=AA?= =?UTF-8?q?=E3=81=84=E3=83=97=E3=83=A9=E3=82=B0=E3=82=A4=E3=83=B3=E3=83=9E?= =?UTF-8?q?=E3=83=BC=E3=82=B1=E3=83=83=E3=83=88=E3=83=97=E3=83=AC=E3=82=A4?= =?UTF-8?q?=E3=82=B9=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 問題 `davila7/claude-code-templates`は**プラグインマーケットプレイスではなくCLIツール**のため、以下のプラグインが存在せず、すべてインストールに失敗していました: - supabase-toolkit@claude-code-templates - documentation-generator@claude-code-templates - nextjs-vercel-pro@claude-code-templates - devops-automation@claude-code-templates ## 解決策 ### 1. plugins.txtから存在しないプラグインを削除 **Before** (15プラグイン): - 4個 from claude-code-plugins ✅ - 4個 from claude-code-templates ❌ - 7個 from claude-code-workflows ✅ **After** (11プラグイン): - 4個 from claude-code-plugins ✅ - 7個 from claude-code-workflows ✅ ### 2. install-claude-plugins.shからclaudetemplates削除 **Before**: ```bash claude plugin marketplace add https://github.com/anthropics/claude-code.git claude plugin marketplace add https://github.com/davila7/claude-code-templates.git claude plugin marketplace add https://github.com/wshobson/agents.git ``` **After**: ```bash claude plugin marketplace add https://github.com/anthropics/claude-code.git claude plugin marketplace add https://github.com/wshobson/agents.git ``` ### 3. Dockerfileからknown_marketplaces.jsonコピー削除 `known_marketplaces.json`は環境固有のため、Dockerfileでコピーせず、 install-claude-plugins.shで動的に生成するように変更。 ## 期待効果 | 項目 | v1.6.4 | v1.6.5 (This PR) | |------|--------|------------------| | マーケットプレイス | 3個(1個無効) | 2個(すべて有効) | | プラグイン総数 | 15個 | 11個 | | インストール成功率 | 11/15 (73%) | ✅ 11/11 (100%) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .claude/plugins/plugins.txt | 6 ------ .devcontainer/Dockerfile | 1 - script/install-claude-plugins.sh | 14 +++----------- 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/.claude/plugins/plugins.txt b/.claude/plugins/plugins.txt index 141707e0..e5e7bdd8 100644 --- a/.claude/plugins/plugins.txt +++ b/.claude/plugins/plugins.txt @@ -9,12 +9,6 @@ hookify@claude-code-plugins feature-dev@claude-code-plugins security-guidance@claude-code-plugins -# === Template Plugins (claude-code-templates) === -supabase-toolkit@claude-code-templates -documentation-generator@claude-code-templates -nextjs-vercel-pro@claude-code-templates -devops-automation@claude-code-templates - # === Workflow Plugins (claude-code-workflows) === backend-development@claude-code-workflows full-stack-orchestration@claude-code-workflows diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 416edae3..ea9f7f5a 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -76,7 +76,6 @@ COPY --chown=vscode:vscode .claude/commands /home/vscode/.claude/commands COPY --chown=vscode:vscode .claude/agents /home/vscode/.claude/agents COPY --chown=vscode:vscode .claude/hooks /home/vscode/.claude/hooks COPY --chown=vscode:vscode .claude/plugins/plugins.txt /home/vscode/.claude/plugins/plugins.txt -COPY --chown=vscode:vscode .claude/plugins/known_marketplaces.json /home/vscode/.claude/plugins/known_marketplaces.json COPY --chown=vscode:vscode script/install-claude-plugins.sh /tmp/install-claude-plugins.sh # Install Claude plugins using BuildKit secret diff --git a/script/install-claude-plugins.sh b/script/install-claude-plugins.sh index 08d23415..eeae3085 100755 --- a/script/install-claude-plugins.sh +++ b/script/install-claude-plugins.sh @@ -45,17 +45,9 @@ else fi echo "[INFO] マーケットプレイスを初期化中..." -# known_marketplaces.jsonから必要なマーケットプレイスを追加 -if [[ -f "${CLAUDE_DIR}/plugins/known_marketplaces.json" ]]; then - echo "[INFO] known_marketplaces.jsonが見つかりました" - - # 必須マーケットプレイスを追加(完全なHTTPS URLを使用) - claude plugin marketplace add https://github.com/anthropics/claude-code.git 2>&1 || echo "[WARN] claude-code-plugins already exists or failed to add" - claude plugin marketplace add https://github.com/davila7/claude-code-templates.git 2>&1 || echo "[WARN] claude-code-templates already exists or failed to add" - claude plugin marketplace add https://github.com/wshobson/agents.git 2>&1 || echo "[WARN] claude-code-workflows already exists or failed to add" -else - echo "[WARN] known_marketplaces.jsonが見つかりません" -fi +# 必須マーケットプレイスを追加(完全なHTTPS URLを使用) +claude plugin marketplace add https://github.com/anthropics/claude-code.git 2>&1 || echo "[WARN] claude-code-plugins already exists or failed to add" +claude plugin marketplace add https://github.com/wshobson/agents.git 2>&1 || echo "[WARN] claude-code-workflows already exists or failed to add" echo "[INFO] プラグインをインストール中..." echo "[DEBUG] Claude version: $(claude --version 2>&1 || echo 'not found')"