/polymath-vcs:open-prfrom polymath-vcs
Open a GitHub PR via the github MCP server — push current branch, draft from polymath-release:pr template, set base, add reviewers, never force-push.
Ships in polymath-vcs. 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.
Open a real GitHub PR using the github MCP server. Pairs with
polymath-release:pr(which drafts the description) andpolymath-release:changelog(which updates CHANGELOG).
Mode: deterministic — same inputs, same output. Follow the steps and the output shape exactly; compute with the named script or tool, never by estimate; add nothing the shape does not ask for.
MCP binding (read before any tool call): if your host has a
githubMCP server, use its tools for this skill's data access. Check your own tool list — it may be registered under another name (a Claude Code connector appears asmcp__claude_ai_<Name>__*). Tool names differ between servers: use the closest match, and say so when the server is read-only. Never install or start a second copy. If there is none, work without MCP tool calls (give the user the queries or steps to run) and ask before suggesting an install.
origin/<base>).git symbolic-ref --short refs/remotes/origin/HEAD after git fetch, else main).docs/pr/<slug>.md from polymath-release:pr.Sanity checks before pushing:
git status clean (no uncommitted changes that aren't intended to ship).polymath-engineering secret-scan hook is a backstop, not a replacement for the check).main to main; create a branch first.Confirm. Show the branch, base, title, draft flag, and body source, and get explicit approval — pushing and opening a PR are visible to the whole team.
Push the branch:
git push -u origin <branch>
Never --force or --force-with-lease unless the user explicitly asked. If the push is rejected for non-fast-forward, stop and surface the conflict rather than overwriting upstream.
Draft body — if docs/pr/<slug>.md exists (from polymath-release:pr), use it (strip its frontmatter). Otherwise compose a body from the repo's own PR template if it has one, else the canonical PR template.
Create PR via the github MCP tool create_pull_request:
title: the headline commit's subject, in the repo's convention (Conventional Commits when the repo uses it).body: from step 4.base: the target base resolved in Inputs (the remote's default branch unless the user named one).head: current branch.draft: true if the change isn't ready for review (build still red, etc.).Reviewers — add via request_reviewers after creation. Tag by team if you can infer it from CODEOWNERS; otherwise ask the user.
Return the PR URL.
Opened: https://github.com/<org>/<repo>/pull/<n>
title: type(scope): summary
base: main head: <branch> draft: <true|false>
body: docs/pr/<slug>.md (from polymath-release:pr)
reviewers: @<handle> (CODEOWNERS: <team>)
git push --force to "fix" a rejected push.origin/HEAD was stale.docs/pr/<slug>.md when polymath-release:pr already drafted it.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/diagnose-ci-failureDiagnose a failed GitHub Actions run — fetch logs via MCP, identify the failing step, classify (flake / real / config), propose next action./triage-issueTriage an inbound GitHub issue — label, severity, area, ask for missing repro details if needed, route to the right team. GitHub issues only — not other trackers.npx claudepluginhub mohammadbafkar/polymath --plugin polymath-vcs