/clubmed-github:github-cancelfrom Club Med — GitHub
Abandon the work in progress: close its pull request (or turn it into a draft), drop the local branch, and return to a clean base. The symmetric inverse of github-publish — the way to undo an attempt at sending work. Always confirms first, spelling out exactly what will be lost and that closing a pull request is visible to the team. Never deletes the remote branch, so a closed pull request can still be reopened. Use when the user wants to cancel, abandon, drop, or throw away what they are working on, close a pull request they opened, or undo something they sent by mistake. Refuses on already-merged pull requests, which need a revert instead. Triggers on: "cancel this", "abandon this work", "drop what I am doing", "close my pull request", "I sent this by mistake", "throw this away", "undo my PR", "/github-cancel".
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.
Undo an attempt: close the pull request opened for the current work, drop the local branch, and return to a clean base.
This is the inverse of github-publish. A surface where work can be sent but not un-sent is incomplete — people who cannot cancel simply leave dead pull requests open forever, which is worse for the team than an explicit close.
The audience is often non-technical. This skill destroys work and its effect is visible to colleagues, so the confirmation is the most important part of it — not the git commands.
Closing a pull request goes through the GitHub MCP (mcp__github__*). If those tools are unavailable or a call fails with an auth error, invoke the github-authentication skill, then retry once.
github-newBoth leave the current work. They are not interchangeable, and the difference is the whole point:
github-new — "I'll come back to this": the work is kept, the pull request stays open.github-cancel — "I don't want this": the pull request is closed, the local branch is dropped.If the user seems to mean "put this aside for now" rather than "throw this away", offer the draft option below, or send them to github-new.
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 equals $DEFAULT, there is nothing in progress to cancel. Say so and point at github-my-prs, which can close an older pull request:
ℹ Nothing in progress to cancel — you are on a clean base
To close something you sent earlier, use github-my-prs
Resolve owner/repo from git remote get-url origin (both SSH and HTTPS forms, strip a trailing .git), then look for a pull request whose head is the current branch — mcp__github__list_pull_requests with head set to <owner>:<CURRENT> and state: "all".
Three outcomes:
✗ This work is already published (PR #<n> was merged) — it cannot be cancelled
Undoing a merged change means reverting it. Ask a developer.
The confirmation is only meaningful if it is specific. Gather:
git status --porcelain — count and name the files)git log --oneline "origin/$DEFAULT..HEAD")git log @{u}..HEAD when an upstream exists) — these are the ones that disappear for goodUse AskUserQuestion. Describe the work by its title, quantify what is lost, and say that closing is visible to the team. Never phrase this as a yes/no on a git operation.
With an open pull request, offer three options:
mcp__github__update_pull_request with draft: true). Nothing is closed, nothing is destroyed, it stops asking for review. This option exists because people hesitate in front of irreversible actions and end up doing nothing at all; a reversible middle path keeps the pull request list honest.Without a pull request, offer two: abandon this work / never mind.
If there are unpushed commits or uncommitted changes, they must appear in the question text — not in the report afterwards. That is the only moment the user can still say no.
Close it:
mcp__github__update_pull_request { "owner": ..., "repo": ..., "pullNumber": <n>, "state": "closed" }
Then return to a clean base and drop the local branch:
git switch "$DEFAULT"
git pull --ff-only
git branch -D "<branch>"
-D (not -d) is deliberate: the branch is intentionally unmerged and -d would refuse. The user has just consented to exactly that.
Never delete the branch on the remote. It costs nothing to keep, and it is what makes a closed pull request reopenable — the safety net that lets a hesitant user say yes.
Put it aside: set draft: true, leave the pull request open, then return to the clean base the same way. Keep the local branch in this case: the work is paused, not abandoned.
Never mind: change nothing and say so plainly.
✔ Cancelled
work : <PR title>
PR : #<n> closed — reopenable from github-my-prs
base : <default> — up to date
Put aside:
✔ Put aside
work : <PR title>
PR : #<n> is now a draft — no longer waiting for review
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.