/polymath-release:prfrom polymath-release
Draft a PR description for the current branch following the canonical PR template; saves the draft to docs/pr/<slug>.md without opening a real PR.
Ships in polymath-release. 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.
Draft a PR description from the current branch's commits. Writes to
docs/pr/<slug>.md. Drafts only — it never opens a real GitHub PR; that'spolymath-vcs:open-pr, which consumes this draft.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
git log).docs/prds/<slug>.md (anchors motivation).git symbolic-ref --short refs/remotes/origin/HEAD, else main).Before the procedure, resolve the project snapshot —
${POLYMATH_DATA_DIR:-$HOME/.polymath/data}/polymath-core/project-context.json
(ignore it if its _meta.source belongs to another repo; absent → read
.polymath/project.yaml directly; neither → built-in defaults). Then apply
(contract: polymath-core:project-context):
prompts.pr_description_template: when set, use that file as the PR
body template instead of the catalog default.git fetch origin <base> (when a remote exists), then
git log origin/<base>..HEAD --oneline to see the branch's own commits.git diff origin/<base>...HEAD --stat (three dots: against the merge
base) for the file list.docs/prds/<slug>.md exists) to ground the
motivation section.prompts.pr_description_template; the repo's own GitHub template
(.github/pull_request_template.md, .github/PULL_REQUEST_TEMPLATE.md,
root PULL_REQUEST_TEMPLATE.md, or docs/PULL_REQUEST_TEMPLATE.md); else
the catalog default PR-description.md.
A repo template's headings win over the catalog's — keep the
PRDescription frontmatter for the workflow gate.${workflow.slug} wins; otherwise lowercase it, replace each run of characters outside a-z0-9 with -, trim - at the ends, and cut to ≤ 60 characters at a -. An existing file at the target path is updated in place (show the diff), never duplicated.docs/pr/<slug>.md with the validated frontmatter
(artifact: PRDescription).The PR draft is a file, not an opened PR. Pair with
polymath-vcs:open-pr to open the actual PR via MCP.
gh pr create — PR creation is polymath-vcs:open-pr's job, after the user approves this draft.docs/pr/<slug>.md with PRDescription frontmatter.mustPass:
- id: pr-draft-valid
type: artifactSchemaStrict
path: docs/pr/${workflow.slug}.md
artifact: PRDescription
minBodyChars: 300
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-release7 skills in this plugin
/changelogWrite a user-facing CHANGELOG entry under [Unreleased] in Keep-a-Changelog format, mapped from Conventional Commits./commitDraft a Conventional Commits message for the current diff; never commits without showing the user the staged changes and the message first./deprecation-planPlan a deprecation — two dates (warn + remove), telemetry-gated removal, comms cadence, exception path, code/header markers. The lifecycle plan, not the customer notice (write-sunset-notice).Other plugins' skills for the same job