/clubmed-github:github-newfrom Club Med — GitHub
Move on to something else: leave the work in progress behind and return to a clean, up-to-date base branch, ready to start fresh. Nothing is discarded silently — if the current work only exists locally (uncommitted changes or commits never pushed), the user is asked what to do with it first, because work left behind on a local branch cannot be found again through github-my-prs. Use when the user has finished a piece of work and wants to start another one, asks to go back to a clean state, wants to start from scratch, or says they are done with what they were doing. Never deletes anything without asking. Triggers on: "I want to work on something else", "start something new", "back to a clean base", "I am done with this", "reset my working state", "start fresh", "/github-new".
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.
Bring the user back to a clean, up-to-date base branch so the next piece of work starts from a fresh state.
This exists because the natural end of github-publish leaves the user on a feature branch. If they start editing again from there, the new work piles onto the previous pull request. This skill is the deliberate exit from that state.
The audience is often non-technical. Never surface branch names, rebases, or stashes as concepts the user has to reason about — describe work by what it is (the commit subject or pull request title), and describe outcomes by what changed for them.
Work that exists only on the user's machine is invisible to github-my-prs, which lists pull requests. So before leaving a branch, anything unpublished must be either published or explicitly kept by an informed choice. Silently switching away is what makes people believe their work vanished.
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
Three signals matter:
CURRENT vs DEFAULT — is there any work in progress at all?origin/$DEFAULT — committed work; check separately whether it is pushed (git log @{u}..HEAD when an upstream exists, otherwise every commit ahead is unpublished)If HEAD is detached, stop and report — there is no branch to leave.
If CURRENT equals $DEFAULT and the tree is clean:
git pull --ff-only
Report and stop — this is the desired state already.
✔ You are on a clean, up-to-date base — ready to start something new
If git pull --ff-only fails, the local base has diverged from the remote. Do not force anything: report it and suggest github-update.
If there is anything unpublished (dirty tree or unpushed commits), use AskUserQuestion. Name the work by its commit subject or pull request title, state plainly what is unpublished, and offer:
github-publish skill, then continue at step 4. This is the recommended option because published work reappears in github-my-prs; unpublished work does not.git-commit) so nothing is left loose, then continue at step 4. Warn explicitly that this work stays only on their machine and will not appear in github-my-prs; the way back is to run this skill again from the same computer.github-cancel, which is built for that and confirms before destroying anything.Never stash. A stash is an invisible holding area a non-technical user cannot reason about or recover from.
If everything is already published (clean tree, nothing unpushed), skip the question — there is nothing at risk. Go straight to step 4.
git switch "$DEFAULT"
git pull --ff-only
Do not delete the branch that was just left. It is the user's way back, and github-cancel is the only skill allowed to remove work.
✔ Back on a clean base
left behind : <commit subject or PR title> (<PR link, if any>)
base : <default> — up to date
If the work was kept locally rather than published, say so in one line, because it is the one case the user needs to remember:
ℹ "<subject>" stays on this computer only — it will not show up in github-my-prs
github-cancelgit pull --ff-only fails on the base branch, stop and report — a diverged local base is a real problem, not something to paper overWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub clubmediterranee/ai-core --plugin clubmed-githubOther plugins' skills for the same job
10 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.