Install a Claude Code plugin from a GitHub repository URL
Install a Claude Code plugin from a GitHub repository URL.
CRITICAL EXECUTION RULES:
The argument is a GitHub repository URL, e.g.:
https://github.com/owner/repohttps://github.com/leejaedus/pepcodeParse the URL to extract the repository owner and name:
# Example: https://github.com/leejaedus/pepcode -> owner=leejaedus, repo=pepcode
Set REPO_URL to the full URL and REPO_NAME to the repository name (last path segment).
git ls-remote <REPO_URL> HEAD
If this fails, inform the user the repository is not accessible and stop.
claude plugin marketplace list
Look for the repository name in the output.
If the marketplace is NOT already registered:
claude plugin marketplace add <REPO_URL>
If already registered, update it instead:
claude plugin marketplace update <REPO_NAME>
The plugin name follows the pattern <repo-name>@<repo-name> (e.g., pepcode@pepcode).
claude plugin list
Look for the plugin name in the output.
If NOT installed:
claude plugin install <REPO_NAME>@<REPO_NAME>
If already installed:
claude plugin update <REPO_NAME>@<REPO_NAME>
Tell the user:
/<REPO_NAME>:setup to complete configuration