/clubmed-github:github-publishfrom Club Med — GitHub
End-to-end "send my work to GitHub": commit the current changes as a Conventional Commit, then either open a pull request for new work or add to the pull request already open for it, and finally ask whether to keep going or move on. Recognises whether the current work is already published, so a second send adds to the existing pull request instead of silently mixing unrelated work into it or failing on a rejected push. Use when the user wants to ship their work, send changes to GitHub, open a PR from their current changes, "commit push and PR", finalize a piece of work, or go from dirty working tree to an open PR. Composes the git-commit, git-rebase-branch, git-push-branch, and github-open-pr skills. Absolute invariant: NEVER pushes to the default branch (main, develop, etc.) — always a feature branch and a PR. Triggers on: "send to github", "ship it", "ship this", "open a PR for my changes", "commit push and open a PR", "send my work", "create a PR from my work", "/github-publish".
Trending skills
7-day visitors to each skill page
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.
Never push to the default branch (main, develop, …). Always a feature branch and a pull request. Every step enforces this; if any step would push the default branch, it carves a feature branch first.
Take the working tree from "dirty" to "pull request open", by delegating each concern to a dedicated skill: git-commit, git-rebase-branch, git-push-branch, github-open-pr. Keep the rules (branch naming, conflict handling, authentication) in those skills — this one decides which path applies and talks to the user.
The audience is often non-technical. Describe work by its commit subject or pull request title, never by branch name, and describe outcomes by what changed for them.
Everything depends on one question: is the current work already published?
That last point is not a detail. Rebasing a branch whose commits are already on the remote rewrites published history, and the next push is rejected as non-fast-forward — with no way out that does not involve force-pushing. Bringing a published branch up to date with the base is github-update's job, and it does it without rewriting anything.
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')
CURRENT=$(git rev-parse --abbrev-ref HEAD)
git status --porcelain
git log --oneline "origin/$DEFAULT..HEAD" 2>/dev/null
If CURRENT is the default branch, this is new work — go to step 2.
Otherwise, look for a pull request on this branch. Resolve owner/repo from git remote get-url origin (SSH and HTTPS forms, strip a trailing .git), then mcp__github__list_pull_requests with head: "<owner>:<CURRENT>", state: "all". If the MCP is unavailable or errors on auth, invoke github-authentication and retry once.
AskUserQuestion, which work these changes belong to. Frame it by content, not by git state — something like "Are these changes part of «PR title», or is this something new?":
github-new to return to a clean base first, then continue as new work. Note that github-new will ask what to do with anything unpublished, which is exactly right here.github-new to return to a clean base, then continue as new work.Invoke the git-commit skill: staging, type/scope detection, conventional message. If the commit fails (hook rejection), stop and report — do not continue.
Skip this step entirely on the already-published path. See "The two paths" above.
For new work, invoke git-rebase-branch. It carves a speaking feature branch if HEAD is on the default branch (enforcing the invariant) and rebases onto the latest origin/<default>, resolving safe conflicts and asking the user to arbitrate genuine ones.
If the rebase is aborted, stop and report — do not push a half-rebased branch.
Invoke the git-push-branch skill. It pushes the current feature branch with upstream tracking and refuses the default branch by design.
On the already-published path the push is a fast-forward, since nothing was rewritten. If it is still rejected, the remote branch moved on its own — stop and send the user to github-update. Never force-push to resolve it.
github-open-pr skill.✔ Sent
work : <type>(scope): <description> (<short-hash>)
PR : <html_url>
Already published:
✔ Added to «<PR title>»
work : <type>(scope): <description> (<short-hash>)
PR : <html_url>
Then use AskUserQuestion — this is what keeps the user from drifting into the state this skill exists to prevent:
github-new skill, which returns them to a clean, up-to-date base.Ask every time, including on the already-published path. It costs one question and it is the moment the user is actually thinking about what comes next.
git-commit, git-rebase-branch, git-push-branch, or github-open-prgit config, never skip hooks unless the user explicitly asksWhat 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.