Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
netresearch avatar

Git Workflow

  • 509 installs
  • 37 repo stars
  • Updated August 4, 2026
  • netresearch/git-workflow-skill

git-workflow is a Claude Code skill that enforces team branching, commit, rebase, and pull-request conventions so agents merge safely without breaking history or skipping review gates.

About

git-workflow is a netresearch/git-workflow-skill agent skill codifying expert Git patterns for branching strategies, Conventional Commits, pull request workflows, and CI/CD integration. The skill bundles five reference documents covering branching models, commit conventions, pull request processes, CI/CD automation, and advanced Git operations, plus a /pr-finish slash command for rebasing, resolving review threads, and merging. It supports Git Flow, GitHub Flow, and trunk-based development with semantic versioning, signed commits, branch protection, and GitHub Actions or GitLab CI patterns. Developers reach for git-workflow when agents need standardized merge strategies, atomic Conventional Commits, or PR templates instead of ad hoc git commands. The repository also ships git hook templates and a verify-harness.sh consistency checker for workflow validation.

  • Branch naming conventions
  • Atomic commit guidance
  • Rebase and merge workflows
  • Conflict resolution patterns

Git Workflow by the numbers

  • 509 all-time installs (skills.sh)
  • +32 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #106 of 733 Git & Pull Requests skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/netresearch/git-workflow-skill --skill git-workflow

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs509
repo stars37
Last updatedAugust 4, 2026
Repositorynetresearch/git-workflow-skill

How do agents follow team Git and PR conventions?

Enforce team branching, commit, rebase, and pull-request conventions so agents merge safely without breaking history or skipping review gates.

Who is it for?

Development teams onboarding AI agents to Git Flow or GitHub Flow with Conventional Commits, signed merges, and CI-gated pull requests.

Skip if: Solo experiments without branching standards or repositories that do not use pull requests, code review, or CI merge gates.

When should I use this skill?

A developer asks to create a feature branch, write Conventional Commits, open or finish a PR, resolve merge conflicts, or integrate Git with CI/CD safely.

What you get

Conventional Commits, branch-aligned PRs, resolved review threads, CI-verified merges, and documented merge strategy decisions.

  • Conventional Commit messages
  • PR descriptions
  • merge-ready branches

By the numbers

  • Bundles 5 Git workflow reference documents plus a /pr-finish slash command
  • Covers Git Flow, GitHub Flow, and trunk-based branching models

Files

SKILL.mdMarkdownGitHub ↗

Git Workflow Skill

Expert patterns for Git: branching, commits, collaboration, CI/CD.

Critical Rules (Non-Negotiable)

1. No direct push to main — always open a PR. 2. No merge before all threads resolved — see references/pull-request-workflow.md. 3. No squash unless asked — preserves atomic commits, signatures, bisection. 4. No "tested/verified/working" without pasted command output — else say so. 5. No edits to installed skill/plugin cache paths (~/.claude/skills/, ~/.claude/plugins/cache/, **/.bare/**) — always the repo worktree, verified by pwd. 6. Force-push only with `--force-with-lease` — never plain --force. 7. Commit before rebaseadd → commit → fetch → rebase → push. Dirty tree aborts rebase.

See references/pull-request-workflow.md for merge-gate and atomic-commit patterns.

Reference Files

Load references on demand:

ReferenceContent Triggers
references/branching-strategies.mdBranching model, Git Flow, GitHub Flow, trunk-based, branch protection
references/commit-conventions.mdCommit messages, conventional commits, DCO sign-off, semantic versioning, commitlint
references/pull-request-workflow.mdPR create/review/merge, thread resolution, merge strategies, CODEOWNERS, signed commits + rebase
references/ci-cd-integration.mdGitHub Actions, GitLab CI, semantic release, deployment
references/advanced-git.mdRebase, cherry-pick, bisect, stash, worktrees, reflog, submodules, recovery
references/github-releases.mdRelease management, immutable releases, --latest=false, multi-branch
references/git-hooks-setup.mdHook frameworks, detection, recommended hooks per stage
references/claude-code-hooks.mdClaude Code settings.json hooks — merge gate, cache-path rejection, auto-lint
references/code-quality-tools.mdshellcheck, shfmt, git-absorb, difftastic
references/merge-gate-watcher.mdMerge-driver loop, hard/soft check taxonomy, rerun stale-SHA, review-bot rounds
references/spec-cleanup.mdKeep planning artifacts off the base branch; guard + capture-to-ADR

Conventional Commits

<type>[scope]: <description>

Types: feat (MINOR), fix (PATCH), docs, style, refactor, perf, test, build, ci, chore, revert

Breaking change: Add ! after type or BREAKING CHANGE: in footer.

Branch Naming

feature/TICKET-123-description
fix/TICKET-456-bug-name
release/1.2.0
hotfix/1.2.1-security-patch

Hook Detection

Detect hooks before first commit:

ls lefthook.yml .lefthook.yml captainhook.json .pre-commit-config.yaml .husky/pre-commit 2>/dev/null || echo "No hooks"

Install: lefthook install | composer install | npm install | pre-commit install

Critical Release Rules

1. Immutable releases: deleted releases block tag reuse; bump version. 2. Multi-branch releases: Use --latest=false from non-default branches. 3. Pre-release: Version bumped, CI green, CHANGELOG updated, git pull BEFORE gh release create.

PR Merge Requirements

Before merging: threads resolved, CI green (incl. annotations), rebased, signed. Rebase-only + signed: git merge --ff-only.

Verification

./scripts/verify-git-workflow.sh /path/to/repository

---

Contributing: <https://github.com/netresearch/git-workflow-skill>

Related skills

How it compares

Pick git-workflow over ad hoc git prompts when agents must follow team Conventional Commits, PR templates, and CI merge gates instead of improvising merge commands.

FAQ

What branching models does git-workflow support?

git-workflow documents Git Flow with feature, release, and hotfix branches, GitHub Flow with simple feature branches, and trunk-based development. The skill's branching-strategies.md reference guides pattern selection and release management.

What reference docs ship with git-workflow?

git-workflow bundles five references: branching-strategies.md, commit-conventions.md, pull-request-workflow.md, ci-cd-integration.md, and advanced-git.md. Agents load the relevant file based on triggers for commits, PRs, or CI tasks.

What does the git-workflow /pr-finish command do?

git-workflow's /pr-finish slash command automates rebasing, resolving PR review threads, verifying CI, and merging pull requests. The skill requires resolved threads, passing CI, and rebased branches before merge completion.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.