/polymath-release:commitfrom polymath-release
Draft a Conventional Commits message for the current diff; never commits without showing the user the staged changes and the message first.
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.
Craft a Conventional Commits message for the current diff. Never commit until the user has approved the staged files AND the message.
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.
feat / fix / refactor / …).git status and git diff --staged plus
git diff. If nothing is staged, show what would be staged and ask
which files to include.conventions.commit_style, a commitlint /
commitizen config, CONTRIBUTING.md, and the last ~20 subjects in
git log --oneline. Conventional Commits is the default only when the
repo shows no other convention — never force it onto a repo that writes
plain imperative subjects or [JIRA-123] … prefixes.feat — new user-facing behavior.fix — bug fix.refactor — behavior unchanged.perf — behavior unchanged, measurable performance improvement.docs — documentation only.test — tests only.chore — build / tooling / dependencies.style — formatting only.polymath-flows, engineering, docs). Pick one scope. If the
diff truly spans multiple unrelated scopes, split into multiple
commits instead of choosing a vague umbrella.type(scope): summary (or the repo's own subject format)
≤ 72 chars, imperative mood ("add" not "added").attribution.commit_trailer
(polymath-core:project-context) when it is a non-empty string —
append it verbatim as the final line. Absent or empty = NO trailer;
never invent one. Catalog-authoring work follows
polymath-core/skills/conventions/SKILL.md.git add -- <paths>, never git add -A / .) and run git commit
with the message.--amend (it would rewrite the previous commit)
and never --no-verify.--amend, --no-verify, --no-gpg-sign. Never
include unrelated files.polymath-engineering
secret-scan hook should already block edits, but verify here too),
stop and report.Staged: src/refunds.py, tests/test_refunds.py
Message: fix(refunds): guard against negative refund amounts
Shown to user for approval before commit. On approval:
a1b2c3d fix(refunds): guard against negative refund amounts
chore when the diff is actually a feat or fix.--amend to "fix" a hook failure (creates two-commit-in-one
audit trails).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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./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)./migration-guideWrite a consumer migration guide for a breaking change — before/after examples, ordered steps, gotchas, rollback. Consumer upgrade steps, not the deprecation timeline (deprecation-plan)./prDraft 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./release-notesDraft version release notes (GitHub release / docs page) from CHANGELOG [Unreleased]; not a customer announcement (write-release-notes)./safe-rolloutDesign a safe progressive rollout — flags, canary/blue-green, ring stages, SLO health gates, automated rollback, kill switch. Rollout mechanics, not env promotion or A/B experiments.