No slash command · from Club Med — GitHub
Open a GitHub pull request for the current branch via the GitHub MCP server (mcp__github__create_pull_request). Use when the user asks to open a PR, create a pull request, or submit their branch for review. Derives owner/repo from the git remote, uses the current branch as head and the default branch as base, and builds a title/body from the last commit. If GITHUB_TOKEN is missing or the GitHub MCP is not connected, it invokes the github-authentication skill first, then retries. Never targets main as head. Triggers on: "open a PR", "create a pull request", "open pull request", "submit for review", "PR this branch", "raise a PR".
Ships in Club Med — GitHub. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create a pull request from the current branch using the GitHub MCP (mcp__github__create_pull_request). Owner, repo, base, head, and the initial title/body are all derived from local git state.
The GitHub MCP server must be connected and GITHUB_TOKEN valid. If mcp__github__* tools are unavailable or a call fails with an auth/connection error → invoke the github-authentication skill, then retry. (Same pattern as figma-client → figma-authentication.)
DEFAULT=$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's@^origin/@@')
[ -z "$DEFAULT" ] && DEFAULT=$(git remote show origin | sed -n 's/.*HEAD branch: //p')
HEAD_BRANCH=$(git rev-parse --abbrev-ref HEAD)
REMOTE_URL=$(git remote get-url origin)
echo "remote=$REMOTE_URL | head=$HEAD_BRANCH | base=$DEFAULT"
Parse owner/repo from REMOTE_URL, handling both forms:
[email protected]:OWNER/REPO.githttps://github.com/OWNER/REPO.gitStrip a trailing .git.
HEAD_BRANCH equals $DEFAULT, stop — you cannot open a PR from the default branch into itself. Tell the user to create/switch to a feature branch (or use git-push-branch, which carves one).git ls-remote --heads origin "$HEAD_BRANCH"). If not, tell the user to push it first (git-push-branch).git log -1 --pretty=%s.git log --pretty='- %s' "origin/$DEFAULT..$HEAD_BRANCH"
Include a ## Summary list of those commit subjects. If a commit references an issue (#123), add a Closes #123 line. Search the repo for a PR template first (.github/PULL_REQUEST_TEMPLATE.md or .github/PULL_REQUEST_TEMPLATE/) and follow it when present.
Call the MCP tool:
mcp__github__create_pull_request {
"owner": "<OWNER>",
"repo": "<REPO>",
"title": "<title>",
"head": "<HEAD_BRANCH>",
"base": "<DEFAULT>",
"body": "<body>"
}
On an auth/connection error → run github-authentication, then retry this call once.
✔ PR opened: <title>
<html_url>
<head> → <base>
Print the PR URL returned by the MCP so the user can click it.
head = default branchmcp__github__list_pull_requests shows an open PR for this head, report it instead of creating a new onegit-push-branch to push)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub clubmediterranee/ai-core --plugin clubmed-github10 skills in this plugin
/git-commitExecute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping/github-authenticationGenerates, validates, and persists a GitHub personal access token (PAT) to the user-global ~/.claude/settings.json, so it is created once and valid in every repository. Use this skill whenever a GitHub token is needed, missing, expired, or must be refreshed — before any task that calls the GitHub API or connects the GitHub MCP server. Triggers on: "generate github token", "create github token", "set up github token", "update github token", "GITHUB_TOKEN missing", "GITHUB_TOKEN not set", "GITHUB_TOKEN expired", "github token invalid", "github authentication", "connect github mcp", "configure github access", or any task that requires GitHub API access and the token is absent or invalid. Works by checking for an existing valid token first, then manual browser login (the primary path — GitHub enforces 2FA), with optional best-effort auto-login if GITHUB_USERNAME/GITHUB_PASSWORD are available. Token is stored in ~/.claude/settings.json and auto-injected by Claude Code into every shell session; a legacy project-level .claude/settings.local.json is still read and takes precedence when present. Browser automation uses the Playwright MCP.