No slash command · from git-plugin
Crafts conventional-commit PR titles (type(scope): subject) for squash-merge workflows that drive release-please version automation. Validates format and selects correct type.
Ships in git-plugin. 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.
Read when SKILL.md points to them.
Craft clear PR titles using conventional commits format.
CRITICAL: PR titles must follow conventional commit format. This drives release-please version automation and ensures consistent git history when using squash-and-merge.
| Use this skill when... | Use the alternative when... |
|---|---|
Authoring a type(scope): subject PR title that drives release-please automation | Use git-pr for the full PR creation workflow (body, labels, reviewers) |
| Renaming an existing PR title to fix release-please version-bump detection | Use git-commit-workflow to set the same conventions on commit messages |
Selecting the right feat, fix, perf, refactor, chore type for a PR | Use github-issue-writing for issue titles (different [Type] Component: format) |
| Validating PR title format before merge to maintain clean git history | Use git-commit to fix already-committed message formats locally |
<type>(<scope>): <subject>
See Conventional Commits Standards for comprehensive format guide.
| Type | Use Case | Version Bump |
|---|---|---|
feat | New feature | Minor |
fix | Bug fix | Patch |
perf | Performance improvement | Patch |
refactor | Code restructure (no behavior change) | None |
docs | Documentation only | None |
test | Tests | None |
build | Build/deps | None |
ci | CI config | None |
chore | Maintenance | None |
Decision tree: Feature → feat | Bug → fix | Performance → perf | Restructure → refactor | Docs → docs | Everything else → chore
The scope is required. The Conventional Commits spec lets you omit it; this house convention does not (.claude/rules/conventional-commits.md), and a squash-merge lands the PR title as the commit on main. Use the component or plugin the change touches:
feat(auth): add OAuth support
fix(api): handle null response
docs(readme): update install steps
refactor(core): simplify error handling
Discover repo scopes:
gh pr list --state merged -L 30 --json title | jq -r '.[].title' | grep -oE '\([^)]+\)' | sort | uniq -c | sort -rn
Or from commits:
git log --format='%s' -n 50 | grep -oE '\([^)]+\)' | sort | uniq -c | sort -rn
Examples:
| ❌ Bad | ✅ Good |
|---|---|
Added login button | add login button |
Fixes the bug. | fix null pointer in auth |
Update | update dependencies |
Resolved Performance Issues | improve query performance |
Append ! before colon:
feat(api)!: remove deprecated endpoints
fix!: require Node.js 18+
refactor(db)!: change schema format
Breaking changes trigger major version bumps.
revert: feat(auth): add OAuth support
| Scenario | Template |
|---|---|
| Feature | feat(<scope>): add <what> |
| Bug fix | fix(<scope>): resolve <what> |
| Performance | perf(<scope>): optimize <what> |
| Docs | docs(<scope>): update <what> |
| Refactor | refactor(<scope>): simplify <what> |
| Deps | build(deps): bump <pkg> to <ver> |
| Breaking | feat(<scope>)!: change <what> |
The title only drives release-please under squash merge. Under rebase,
each branch commit lands as-is and the PR title/body are discarded. The house
default is rebase unless there is a reason to squash; single-commit PRs,
release PRs and PRs with fixups squash, so the title still decides most
releases. The squash body follows the repo's squash_merge_commit_message:
COMMIT_MESSAGES uses the branch commits' messages and PR_BODY the PR body; read it with gh api repos/{owner}/{repo} --jq .squash_merge_commit_message rather than assuming. On a PR_BODY repo the PR body becomes the commit body and
release-please parses it: a BREAKING CHANGE: footer
forces a major bump, a footer line shaped like fix(x): … adds an extra
changelog entry, and Release-As: pins the version. Write the body as a commit
body (prose + Fixes #N footers, no checklists).
Decision rule, method table, body shape, and post-merge repair
(BEGIN_COMMIT_OVERRIDE): merge-strategies.md.
Conventional commit PR titles ensure:
| Context | Command |
|---|---|
| Get commits | git log origin/main..HEAD --format='%s' -n 10 |
| Changed dirs | git diff origin/main..HEAD --name-only | xargs dirname | sort -u |
| Update title | gh pr edit N --title "new title" |
| Repo merge settings | gh api repos/{owner}/{repo} --jq '{squash: .allow_squash_merge, rebase: .allow_rebase_merge, title: .squash_merge_commit_title, message: .squash_merge_commit_message}' |
| Discover scopes | gh pr list --state merged -L 30 --json title | jq -r '.[].title' | grep -oE '\([^)]+\)' | sort | uniq |
For detailed rules, patterns, and troubleshooting, see Conventional Commits Standards.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub laurigates/claude-plugins --plugin git-plugin52 skills in this plugin
/deadbranchdeadbranch CLI for stale-branch cleanup — dry-run preview, TUI or non-interactive delete, protects main/develop/WIP. Use when asked to clean up branches, prune branches, or remove stale branches./external-pr-trustAuthorship as a precondition of merging — bot vs stranger classification, what a merge executes, the merge-guard hook. Use when bulk-merging PRs, or when a merge is denied for a non-self author./gh-cli-agenticgh CLI commands with JSON output for agents. Use when querying PRs, issues, runs, or repo metadata; inspecting PR checks; fetching failed CI logs; or mapping a github.com URL to an API call./git-api-prGitHub API PR creation without local git. Use when submitting file changes as a PR without local commits — quick fixes, typos, config updates, or bypassing local git state./git-branch-namingBranch names: type prefix (feat/, fix/, chore/), issue number, kebab-case. Use when picking a name for a new branch or setting a repo's branch-naming convention./git-branch-pr-workflowBranch management and PR workflows — git switch/restore, GitHub MCP. Use when creating branches, opening PRs, or working with feature branches.Other plugins' skills for the same job