How this command is triggered — by the user, by Claude, or both
Slash command
/dev-environment:git-workflowThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Git Workflow ## Commit Message Format Types: feat, fix, refactor, docs, test, chore, perf, ci Note: Attribution disabled globally via ~/.claude/settings.json. ## GitHub CLI (gh) Integration **Use GH CLI for GitHub operations** instead of web UI or git commands where applicable: ### Viewing GitHub Resources - `gh pr view [number]` - View PR details, checks, and comments - `gh pr list` - List open PRs - `gh pr status` - Show PRs relevant to current user - `gh issue view [number]` - View issue details - `gh issue list` - List open issues - `gh repo view` - View repository info ### P...
<type>: <description>
<optional body>
Types: feat, fix, refactor, docs, test, chore, perf, ci
Note: Attribution disabled globally via ~/.claude/settings.json.
Use GH CLI for GitHub operations instead of web UI or git commands where applicable:
gh pr view [number] - View PR details, checks, and commentsgh pr list - List open PRsgh pr status - Show PRs relevant to current usergh issue view [number] - View issue detailsgh issue list - List open issuesgh repo view - View repository infogh pr create - Create PR from current branch (use HEREDOC for body)gh pr checkout [number] - Check out a PR locallygh pr review [number] - Add review commentsgh pr merge [number] - Merge a PRgh pr diff [number] - View PR diffgh issue create - Create new issuegh issue close [number] - Close an issuegh issue comment [number] - Add comment to issuegh api repos/{owner}/{repo}/pulls/{pr}/comments - Access GitHub API directlygh over navigating to GitHub web UIgh pr view to check PR status before manual checksgh api for operations not available in standard commandsWhen creating PRs:
git diff [base-branch]...HEAD to see all changesgh pr create with HEREDOC body format:
gh pr create --title "feat: add user authentication" --body "$(cat <<'EOF'
- Implement JWT-based authentication
- Add login/logout endpoints
- Add auth middleware
EOF
)"
-u flag if new branchgh pr view to verify PR creation and check statusPlan First
TDD Approach
Code Review
Commit & Push
npx claudepluginhub arosenkranz/claude-code-config --plugin dev-environment/git-workflowGuides git workflows: prepare PRs, clean merged/stale branches, resolve conflicts, create version tags. Uses pr|clean|conflicts|tag args or auto-detects from git status.
/git-workflowOrchestrates git workflow from code review and quality gates through commit, push, and PR creation to target branch. Supports flags: --skip-tests, --draft-pr, --no-push, --squash, --conventional, --trunk-based.