Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions script/install-claude-plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ echo "[INFO] マーケットプレイスを初期化中..."
if [[ -f "${CLAUDE_DIR}/plugins/known_marketplaces.json" ]]; then
echo "[INFO] known_marketplaces.jsonが見つかりました"

# 必須マーケットプレイスを追加
claude plugin add-marketplace anthropic/claude-code --name claude-code-plugins 2>&1 || echo "[WARN] claude-code-plugins already exists or failed to add"
claude plugin add-marketplace https://github.com/davila7/claude-code-templates.git --name claude-code-templates 2>&1 || echo "[WARN] claude-code-templates already exists or failed to add"
claude plugin add-marketplace wshobson/agents --name claude-code-workflows 2>&1 || echo "[WARN] claude-code-workflows already exists or failed to add"
# 必須マーケットプレイスを追加(正しいコマンド: claude plugin marketplace add)
claude plugin marketplace add anthropic/claude-code 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"
Comment on lines +52 to +55

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

# First, let's examine the file to understand the context better
cat -n script/install-claude-plugins.sh | head -60 | tail -20

Repository: keito4/config

Length of output: 1096


🏁 Script executed:

# Check git history to see what the original command was
cd script && git log -p --follow -S "add-marketplace" -- install-claude-plugins.sh | head -100

Repository: keito4/config

Length of output: 39


🏁 Script executed:

# Look for any documentation or comments about Claude CLI in the repo
find . -type f \( -name "*.md" -o -name "*.txt" -o -name "*.sh" \) -exec grep -l "claude.*plugin.*marketplace" {} \; | head -10

Repository: keito4/config

Length of output: 157


🏁 Script executed:

# Check git diff for this specific file
git diff HEAD~5..HEAD -- script/install-claude-plugins.sh | head -100

Repository: keito4/config

Length of output: 91


🏁 Script executed:

# Read the README for plugin context
cat .claude/plugins/README.md

Repository: keito4/config

Length of output: 3164


🏁 Script executed:

# Search for any documentation about the old command
rg "add-marketplace|claude.*plugin" --type sh --context 3

Repository: keito4/config

Length of output: 3691


🌐 Web query:

Claude CLI command syntax "claude marketplace add" OR "claude plugin marketplace add"

💡 Result:

Use the Claude Code plugin command: /plugin marketplace add

Examples:

  • Add GitHub repo: /plugin marketplace add owner/repo. [1]
  • Add any git URL: /plugin marketplace add https://gitlab.com/company/plugins.git. [1]
  • Add local directory: /plugin marketplace add ./my-marketplace (or a direct marketplace.json path). [1]
  • You can then list marketplaces with /plugin marketplace list and install plugins with /plugin install name@marketplace. [2]

Sources: [1] Claude Docs — Plugin Marketplaces; [2] Claude Docs — Plugins.


🌐 Web query:

Claude CLI v2.0.76 documentation plugin marketplace

💡 Result:

Here are official docs and resources for Claude Code/CLI plugins and marketplaces (including marketplace commands and examples):

  • Plugins (quickstart, plugin structure, install/manage commands). See "Plugins" guide. [1]
  • Plugin marketplaces (how to create/add marketplaces, examples, CLI commands like /plugin marketplace add, /plugin install, /plugin marketplace list, auto-update and team config). [2]
  • Plugins reference (component schemas: commands, agents, skills, hooks, MCP servers and CLI schemas). [3]
  • Community/third‑party registries & CLI helpers (browse/install public plugins easily). [4]

If you want, I can:

  • show the exact CLI commands and example marketplace.json manifest for v2.0.76-compatible Claude Code, or
  • fetch the changelog entry for v2.0.76 specifically.

Sources:
[1] Claude Docs — Plugins. https://docs.claude.com/en/docs/claude-code/plugins
[2] Claude Docs — Plugin marketplaces. https://docs.claude.com/en/docs/claude-code/plugin-marketplaces
[3] Claude Docs — Plugins reference. https://docs.claude.com/en/docs/claude-code/plugins-reference
[4] Claude-plugins community registry / claude-plugins.dev. https://claude-plugins.dev/


🌐 Web query:

Anthropic GitHub organization "anthropic/claude-code" OR "anthropics/claude-code" official repository

💡 Result:

The official Claude Code repository is under the GitHub org "anthropics" → anthropics/claude-code. [1][2]

Sources:
[1] GitHub — anthropics/claude-code. (github.com)
[2] Anthropic — Claude Code product page. (anthropic.com)

Citations:


Fix marketplace source identifier and update error messages.

Line 53 has a critical typo: anthropic/claude-code should be anthropics/claude-code (the official Anthropic GitHub organization name includes an 's'). The command syntax itself is correct.

Additionally, the error messages on lines 53–55 reference marketplace names (claude-code-plugins, claude-code-templates, claude-code-workflows) that were previously set via the --name option, which has been removed. Update them to reference the actual sources being added:

-    claude plugin marketplace add anthropic/claude-code 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 anthropics/claude-code 2>&1 || echo "[WARN] Failed to add anthropics/claude-code marketplace"
+    claude plugin marketplace add https://github.com/davila7/claude-code-templates.git 2>&1 || echo "[WARN] Failed to add davila7/claude-code-templates marketplace"
+    claude plugin marketplace add wshobson/agents 2>&1 || echo "[WARN] Failed to add wshobson/agents marketplace"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# 必須マーケットプレイスを追加(正しいコマンド: claude plugin marketplace add)
claude plugin marketplace add anthropic/claude-code 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)
claude plugin marketplace add anthropics/claude-code 2>&1 || echo "[WARN] Failed to add anthropics/claude-code marketplace"
claude plugin marketplace add https://github.com/davila7/claude-code-templates.git 2>&1 || echo "[WARN] Failed to add davila7/claude-code-templates marketplace"
claude plugin marketplace add wshobson/agents 2>&1 || echo "[WARN] Failed to add wshobson/agents marketplace"
🤖 Prompt for AI Agents
In script/install-claude-plugins.sh around lines 52 to 55, fix the marketplace
source identifier typo and update the error messages: change the source
"anthropic/claude-code" to "anthropics/claude-code" and adjust the echo warnings
to reference the actual sources being added (e.g., "anthropics/claude-code",
"https://github.com/davila7/claude-code-templates.git", and "wshobson/agents")
so they accurately state the source already exists or failed to add.

else
echo "[WARN] known_marketplaces.jsonが見つかりません"
fi
Expand Down