/git-workflow:git-workflowfrom git-workflow
Guides branching strategies, Conventional Commits, PR/MR workflows, merge conflict resolution, rebasing, git hooks, and bare-repo worktrees. Supports GitHub and GitLab.
Ships in git-workflow. 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; scripts run unread.
Releases: github-release. BLOCKED-PR diagnosis: github-project.
GitHub first. pr-status.sh also reads a GitLab merge request (-R host/group/project <iid>, needs glab) and prints the glab merge command; pr-merge.sh, pr-sweep.sh, the merge gate and review-thread handling speak GitHub only. For the rest of a GitLab merge request the glab calls are in references/pull-request-workflow.md § GitLab: the same gate with glab.
references/pull-request-workflow.md).~/.claude/skills/, ~/.claude/plugins/cache/, **/.bare/**) — always the repo worktree, verified by pwd.--force-with-lease — never plain --force.add → commit → fetch → rebase → push (a dirty tree aborts it).references/no-editorializing.md).| Reference | Content Triggers |
|---|---|
references/merge-dependencies.md | Prerequisite discovery, stacked PR/MR safeguards, GitLab CE discussion gates and native dependencies |
references/commit-conventions.md | Conventional commits, DCO sign-off |
references/pull-request-workflow.md | PR merge gate, signed rebase, posting a review with inline suggestions, writing or updating the PR body, merging a stack, sibling PRs that change checks or output |
references/ci-cd-integration.md | CI watching, git mirrors |
references/advanced-git.md | Rebase (incl. non-interactive rebase -i), cherry-pick, bisect, stash, worktrees, reflog, hanging push/fetch (SSH mux), parsing git output in a script (flags that pin diff/log/status output against user config), fetching one branch in a single-branch clone (refspec) |
references/github-releases.md | → github-release skill |
references/git-hooks-setup.md | Hook frameworks, hooks per stage, tests that a hook starts touching the real repository |
references/claude-code-hooks.md | settings.json merge gate, cache-path rejection, auto-lint |
references/code-quality-tools.md | shellcheck, shfmt, git-absorb, difftastic |
references/merge-gate-watcher.md | Waiting on a gate, a hand-rolled watch loop, a watch that returns at once, a watcher the harness killed, merge-driver loop, check taxonomy, stale-SHA rerun, rerun of a superseded run cancelling the newer one, merge-queue entry dropped or stuck in AWAITING_CHECKS |
references/spec-cleanup.md | Planning artifacts off the base branch |
references/no-editorializing.md | No self-praise, no narrating the expected |
<type>[scope]: <description>
feat MINOR, fix PATCH; full type list and DCO sign-off in references/commit-conventions.md.
Breaking: ! after type, or BREAKING CHANGE: in the footer.
Branches: feature/TICKET-123-description, release/1.2.0
found=$(ls lefthook.yml .lefthook.yml captainhook.json Build/captainhook.json .pre-commit-config.yaml .husky/pre-commit 2>/dev/null)
[ -n "$found" ] && echo "$found" || echo "No hooks"
Install commands per framework: references/git-hooks-setup.md.
When creating, reviewing or preparing to merge, proactively check linked work,
discussions and code for prerequisites. Read references/merge-dependencies.md
when one is found: distinguish a review stack from an enforced merge gate,
check platform capabilities, and propose or apply a suitable safeguard within
the task's authorization. Do not leave a known dependency as a plain comment
and call it protected.
Before merging: threads resolved, CI green (incl. annotations), rebased, signed, and reviewed on the current head — by a human, a bot, or the author through pr-merge.sh --self-reviewed. A review is mandatory; a bot review is not, and one is waited for only while it is actually in flight. Rebase-only + signed: git merge --ff-only.
./scripts/verify-git-workflow.sh /path/to/repository
# Gate state, next action:
./scripts/pr-status.sh [-R owner/repo | -R host/group/project] [PR] [--json] [--watch] [--stuck-after MIN] [--threads]
# Merge; refuses when the gate is shut:
./scripts/pr-merge.sh [-R owner/repo] [PR] [--dry-run|--self-reviewed|--retarget-stacked] [--wait [--interval SEC] [--max-wait SEC] [--request-coderabbit]]
# Many PRs (`owner/repo N` per line) to merge; stops on any NEXT it does not handle:
./scripts/pr-sweep.sh [--interval SEC] [--timeout SEC] [--attention FILE] LISTFILE
# What a repository expects, before the first artifact:
./scripts/repo-contribution-preflight.sh [--repo <dir>] [--section docs|templates|packaging|ci|tools]
# Which copy is installed here (every script answers this):
./scripts/pr-status.sh --version
Contributing: https://github.com/lufox-digital/git-workflow-skill
checkpoints.yaml (opens in a new tab)evals/evals.json (opens in a new tab)references/advanced-git.md (opens in a new tab)references/ci-cd-integration.md (opens in a new tab)references/claude-code-hooks.md (opens in a new tab)references/code-quality-tools.md (opens in a new tab)references/commit-conventions.md (opens in a new tab)references/git-hooks-setup.md (opens in a new tab)references/github-releases.md (opens in a new tab)references/merge-dependencies.md (opens in a new tab)references/merge-gate-watcher.md (opens in a new tab)references/no-editorializing.md (opens in a new tab)references/pull-request-workflow.md (opens in a new tab)references/spec-cleanup.md (opens in a new tab)scripts/conflict-marker-gate.py (opens in a new tab)scripts/merge-gate.sh (opens in a new tab)scripts/pr-merge.sh (opens in a new tab)scripts/pr-status-evaluate.jq (opens in a new tab)scripts/pr-status-gitlab.jq (opens in a new tab)scripts/pr-status-investigate.jq (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
git-workflow, pull-request, merge-strategy, git-hooks, branching
git-workflow@netresearch-claude-code-marketplace is listed by netresearch/claude-code-marketplace — review the source before installing
npx claudepluginhub netresearch/claude-code-marketplace --plugin git-workflowOther plugins' skills for the same job