From mygit
Smart git workflow automation — grouped conventional commits, push, PR creation, and branch sync. Use this skill whenever the user wants to commit changes, push code, create a pull request, sync their main branch, or clean up stale branches. Triggers on phrases like "commit this", "push it", "create a PR", "sync main", "clean up branches", or any combination of these git operations.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mygit:git-workflowThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Automates common git workflows. Determine which mode to use based on the user's intent:
Automates common git workflows. Determine which mode to use based on the user's intent:
| User intent | Mode |
|---|---|
| Commit changes only | commit |
| Commit and push | commit-push |
| Commit, push, and create a PR | commit-push-pr |
| Sync main and clean up branches | sync |
If the intent is ambiguous, default to commit — the safest option.
Analyze all changes and create one or more git commits, grouping related changes together. Each commit uses conventional commit format:
<type>(<optional scope>): <description>
Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert
For each group: stage specific files with git add, then git commit. Process groups sequentially.
git status, git diff HEAD, git log --oneline -10 for contextgit status, git diff HEAD, git branch --show-current, git log --oneline -10 for contextgit pushgit status, git diff HEAD, git branch --show-current, git log --oneline -10 for contextmain or master, create a feature branch derived from the changes:
feat/short-description, fix/short-description, chore/short-description, refactor/short-description, docs/short-descriptiongit checkout -b <branch-name>git push -u origin <branch-name>gh pr create --title "<title>" --body "..." with a summary of all commitsgit branch --show-current, git branch -v, git worktree list for contextmain or master via git rev-parse --verify main)git checkout <main-branch> && git pullgit fetch --prune[gone] in git branch -v:
git worktree remove --force <path>git branch -D <branch-name>Execute all steps using tool calls with minimal text output. Only the sync mode's final report should include a text summary.
npx claudepluginhub knight42/claude-plugins --plugin mygitManages Git branch strategy, worktrees, commits, PR preparation, merge/rebase decisions, conflict resolution, tagging, and release notes. Validates state before making changes.
Manages Git workflows including branching, commit conventions, pull requests, and conflict resolution. Use with Git operations or version control questions.
Guides Git operations with Conventional Commits, PR formats, workflows including local CI and squash merges. Use for commits, branches, pull requests, and merge conflicts.