- Pre-commit config: !`find . -maxdepth 1 -name ".pre-commit-config.yaml"`
Creates commits with conventional messages and pushes to remote with PR creation.
/plugin marketplace add laurigates/claude-plugins/plugin install git-plugin@lgates-claude-pluginsgit/find . -maxdepth 1 -name ".pre-commit-config.yaml"git branch --show-currentgit status --shortgit diff --statgit diff --cached --statgit log --oneline -10git remote -v | head -1git status -sb | head -1gh label list --json name,description --limit 50 2>/dev/null || echo "(no remote configured)"Parse these parameters from the command (all optional):
$1: Remote branch name to push to (e.g., feat/auth-oauth2). If not provided, auto-generate from first commit type. Ignored with --direct.--push: Automatically push after commits--direct: Push current branch directly to same-named remote (e.g., git push origin main). Mutually exclusive with --pr.--pr / --pull-request: Create pull request after pushing (implies --push, uses feature branch pattern)--draft: Create as draft PR (requires --pr)--issue <num>: Link to specific issue number (requires --pr)--no-commit: Skip commit creation (assume commits already exist)--range <start>..<end>: Push specific commit range instead of all commits on main--labels <label1,label2>: Apply labels to the created PR (requires --pr)Execute this commit workflow using the main-branch development pattern:
--direct, any branch is valid. Otherwise, verify on main branch (warn if not).git add -u for modified files, git add <file> for new filespre-commit rungit add -uFixes #N - for bug fixes that resolve an issueCloses #N - for features that complete an issueResolves #N - alternative closing keywordRefs #N - references issue without closingRelated to #N - indicates relationshipFixes owner/repo#N - closes issue in different repoFixes #1, fixes #2, fixes #3Fixes: #123If --direct: Push current branch to same-named remote:
# Direct push to current branch
git push origin HEAD
Otherwise (feature branch pattern for PRs):
# Push main to remote feature branch
git push origin main:<remote-branch>
# Or push commit range for multi-PR workflow
git push origin <start>^..<end>:<remote-branch>
Use mcp__github__create_pull_request with:
head: The remote branch name (e.g., feat/auth-oauth2)base: maintitle: Derived from commit messagebody: Include summary and issue link if --issue provideddraft: true if --draft flag setIf --labels provided, add labels after PR creation:
gh pr edit <pr-number> --add-label "label1,label2"
git add -u--direct): Use git push origin HEAD to push current branch directlygit push origin main:<remote-branch> for PR workflowgit push origin <start>^..<end>:<remote-branch> for commit rangesFixes, Closes, Resolves) auto-close issues when merged to default branchRefs, Related to, See) link without closing - use for partial workFixes #123, Fixes: #123, fixes org/repo#123Fixes #1, fixes #2, fixes #3 (repeat keyword for each)--issue <num> provided, use Fixes #<num> or Closes #<num> in commit body