# git-workflow

Automates branch workflows, Conventional Commits, and pull request checks. Guides agents through safe rebase steps and CI gates using GitHub CLI.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 722 installs · ★ 55
- Author: Netresearch DTT GmbH
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/netresearch/git-workflow-skill/tree/HEAD/skills/git-workflow/SKILL.md
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/netresearch-dtt-gmbh-git-workflow

## What it does

This skill establishes strict policies for Git repositories and pull requests. It enforces Conventional Commits, blocks direct pushes to `main`, and mandates `--force-with-lease` over raw force-pushing. Merges cannot proceed until CI checks pass, commits are signed, and all review threads are marked resolved.

Under the hood, the skill supplies Bash automation. Scripts such as `pr-status.sh` inspect merge gates, `pr-merge.sh` handles signed fast-forward merges, and `pr-sweep.sh` automates bulk reviews. It also inspects repositories for hooks configured with `lefthook`, `husky`, `captainhook`, or `pre-commit`.

The built-in pull request automation targets GitHub GraphQL directly, which means `git` and `gh` CLI are required prerequisites. If you run GitLab, you must rely on manual `glab` commands documented in the reference files.

## Requirements
- Works with: GitHub

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add netresearch/git-workflow-skill --skill git-workflow -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/git-workflow/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/git-workflow/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add netresearch/git-workflow-skill --skill git-workflow -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/git-workflow/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add netresearch/git-workflow-skill --skill git-workflow -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/git-workflow/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install netresearch/git-workflow-skill git-workflow
```

2. **Manually: put the files in place**
- File: `.github/skills/git-workflow/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add netresearch/git-workflow-skill --skill git-workflow -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/netresearch/git-workflow-skill --path skills/git-workflow
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/git-workflow/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add netresearch/git-workflow-skill --skill git-workflow -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/netresearch/git-workflow-skill/tree/HEAD/skills/git-workflow/SKILL.md

## When to use it
- enforce Conventional Commits and atomic branch history
- prevent merges while review comments remain unresolved
- automate PR status checks and fast-forward merges
- detect and configure git hooks across repositories

## Example prompts
- Check the current pull request gate using pr-status.sh
- Format my staged changes into a conventional commit
- Merge this PR with pr-merge.sh --self-reviewed

## Similar
- [conventional-git](https://affpapa.org/en/nevibecode/skills/conventional-git.md) — skill · 4600 installs
- [antfu-create-pr](https://affpapa.org/en/nevibecode/skills/antfu-create-pr.md) — skill · 485 installs
- [git-worktree-explorer](https://affpapa.org/en/nevibecode/plugins/git-worktree-explorer.md) — plugin · ★ 40418
- [create-pr](https://affpapa.org/en/nevibecode/skills/create-pr.md) — skill · 1200 installs
- [git-commit](https://affpapa.org/en/nevibecode/skills/fvadicamo-git-commit.md) — skill · 319 installs

## Other versions with the same name
- [git-workflow · affaan-m](https://affpapa.org/en/nevibecode/skills/git-workflow.md) — 5000 installs
- [git-workflow · agno-agi](https://affpapa.org/en/nevibecode/skills/agno-team-git-workflow.md) — 665 installs
- [git-workflow · ruvnet](https://affpapa.org/en/nevibecode/skills/ruvnet-git-workflow.md) — 743 installs
- [git-workflow · galaxy-dawn](https://affpapa.org/en/nevibecode/skills/galaxy-dawn-git-workflow.md) — 374 installs
- [git-workflow · jezweb](https://affpapa.org/en/nevibecode/skills/jezweb-git-workflow.md) — 1200 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
