No slash command · from Club Med — GitHub
Push the current branch to the remote under a speaking branch name derived from the last conventional commit (<type>/<scope>-<description>). Use when the user asks to push their branch, publish their work, push before opening a PR, or push with a meaningful branch name. Hard guard: NEVER pushes the default branch (detected dynamically from origin/HEAD — main, develop, etc.) — if HEAD is on it, a speaking feature branch is carved and switched to first. Sets upstream with -u. Triggers on: "push", "push my branch", "push this", "publish my branch", "push with a good branch name", "push before 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.
Push the current branch to origin under a human-readable name derived from the last conventional commit. The default branch is never pushed directly — a feature branch is carved first if needed.
This is the single source of truth for the speaking branch name, referenced by git-rebase-branch and github-publish.
Read the last commit subject:
SUBJECT=$(git log -1 --pretty=%s)
Parse the Conventional Commits form and build the branch:
<type>(scope): desc → <type>/<scope>-<desc-kebab><type>: desc → <type>/<desc-kebab>chore/<subject-kebab>Kebab-case the description/scope: lowercase, replace any run of non-alphanumeric chars with a single -, trim leading/trailing -, and truncate the whole branch name to ~60 characters (don't cut mid-word when avoidable).
Examples:
feat(tracking-plan): add confidence display → feat/tracking-plan-add-confidence-displayfix: remove enum param type → fix/remove-enum-param-typeDEFAULT=$(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')
CURRENT=$(git rev-parse --abbrev-ref HEAD)
echo "Default: $DEFAULT | Current: $CURRENT"
If CURRENT equals $DEFAULT, do not push. Carve a speaking branch (naming rule above) from the current commit and switch to it:
git switch -c "<speaking-branch>"
CURRENT="<speaking-branch>"
If CURRENT is already a feature branch, keep its name — do not rename an existing branch the user chose. Only derive a name when carving from the default branch or when the current branch has no upstream and its name is a non-descriptive placeholder (e.g. HEAD, tmp).
git push -u origin "$CURRENT"
If the remote rejects because history diverged, stop and report — do not force-push. Suggest the user rebase (git-rebase-branch) first.
✔ Pushed <branch> → origin/<branch>
upstream set, <n> commits
main, develop, …) — always a feature branch + PR--force / --force-with-lease without an explicit user requestWhat 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.